Class TStoreDynaModel
Unit
Declaration
type TStoreDynaModel = class(TObject)
Description
Interface for Dynamics-only user-written model
Hierarchy
- TObject
- TStoreDynaModel
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; |
|
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); |
|
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 |
FNumVars: Function:Integer; Stdcall; |
|
Called when props of generator updated 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); |
|
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 |
property Edit : String write Set_Edit; |
|
property Exists : Boolean read Get_Exists; |
|
Generated by PasDoc 0.16.0.