Class TGenUserModel
Unit
Declaration
type TGenUserModel = class(TObject)
Description
Hierarchy
- TObject
- TGenUserModel
Overview
Fields
DSS: TDSSContext; |
|
FEdit: Procedure(s:pAnsichar; Maxlen:Cardinal); Stdcall; |
|
FInit: procedure(V, I:pComplexArray); Stdcall; |
|
FCalc: Procedure(V, I:pComplexArray); stdcall; |
|
FIntegrate: Procedure; stdcall; |
|
FUpdateModel: Procedure; Stdcall; |
|
FActiveGeneratorVars: Pointer; |
|
FSave: Procedure; Stdcall; |
|
FRestore: Procedure; Stdcall; |
|
FNumVars: Function:Integer; Stdcall; |
|
FGetAllVars: Procedure(Vars:pDoubleArray); StdCall; |
|
FGetVariable: Function(var I:Integer):Double; StdCall; |
|
FSetVariable: Procedure(var i:Integer; var value:Double); StdCall; |
|
FGetVarName: Procedure(var VarNum:Integer; VarName:pAnsiChar; maxlen:Cardinal); StdCall; |
Methods
Procedure Select; |
|
Procedure Integrate; |
|
constructor Create(dssContext: TDSSContext; ActiveGeneratorVars: Pointer); |
|
destructor Destroy; override; |
Properties
property Name: String read Fname write Set_Name; |
|
property Edit: String write Set_Edit; |
|
property Exists: Boolean read Get_Exists; |
Description
Fields
DSS: TDSSContext; |
|
FEdit: Procedure(s:pAnsichar; Maxlen:Cardinal); Stdcall; |
|
FInit: procedure(V, I:pComplexArray); Stdcall; |
|
send string to user model to handle |
FCalc: Procedure(V, I:pComplexArray); stdcall; |
|
For dynamics |
FIntegrate: Procedure; stdcall; |
|
returns Currents or sets Pshaft |
FUpdateModel: Procedure; Stdcall; |
|
Integrates any state vars |
FActiveGeneratorVars: Pointer; |
|
Called when props of generator updated |
FSave: Procedure; Stdcall; |
|
Save and restore data |
FRestore: Procedure; Stdcall; |
|
FNumVars: Function:Integer; Stdcall; |
|
Monitoring functions |
FGetAllVars: Procedure(Vars:pDoubleArray); StdCall; |
|
FGetVariable: Function(var I:Integer):Double; StdCall; |
|
Get all vars |
FSetVariable: Procedure(var i:Integer; var value:Double); StdCall; |
|
Get a particular var |
FGetVarName: Procedure(var VarNum:Integer; VarName:pAnsiChar; maxlen:Cardinal); StdCall; |
|
Methods
Procedure Select; |
|
Procedure Integrate; |
|
constructor Create(dssContext: TDSSContext; ActiveGeneratorVars: Pointer); |
|
destructor Destroy; override; |
|
Properties
property Name: String read Fname write Set_Name; |
|
this property loads library (if needed), sets the procedure variables, and makes a new instance old reference is freed first Wide string OK here |
property Edit: String write Set_Edit; |
|
property Exists: Boolean read Get_Exists; |
|
Converted to Ansi string in Set_Edit |
Generated by PasDoc 0.16.0.