Class TStoreDynaModel

Unit

Declaration

type TStoreDynaModel = class(TObject)

Description

Interface for Dynamics-only user-written model

Hierarchy

Overview

Fields

Public DSS: TDSSContext;
Public FEdit: Procedure(s:pAnsichar; Maxlen:Cardinal); Stdcall;
Public FInit: Procedure(V, I:pComplexArray); Stdcall;
Public FCalc: Procedure(V, I:pComplexArray); stdcall;
Public FIntegrate: Procedure; stdcall;
Public FUpdateModel: Procedure; Stdcall;
Public FNumVars: Function:Integer; Stdcall;
Public FGetAllVars: Procedure(Vars:pDoubleArray); StdCall;
Public FGetVariable: Function(var I:Integer):Double; StdCall;
Public FSetVariable: Procedure(var i:Integer; var value:Double); StdCall;
Public FGetVarName: Procedure(var VarNum:Integer; VarName:pAnsichar; maxlen:Cardinal); StdCall;

Methods

Public Procedure Select;
Public Procedure Integrate;
Public constructor Create(dssContext: TDSSContext);
Public destructor Destroy; override;

Properties

Public property Name : String read Fname write Set_Name;
Public property Edit : String write Set_Edit;
Public property Exists : Boolean read Get_Exists;

Description

Fields

Public DSS: TDSSContext;
 
Public FEdit: Procedure(s:pAnsichar; Maxlen:Cardinal); Stdcall;
 
Public FInit: Procedure(V, I:pComplexArray); Stdcall;

send string to user model to handle

Public FCalc: Procedure(V, I:pComplexArray); stdcall;

For dynamics

Public FIntegrate: Procedure; stdcall;

returns Currents or sets Pshaft

Public FUpdateModel: Procedure; Stdcall;

Integrates any state vars

Public FNumVars: Function:Integer; Stdcall;

Called when props of generator updated Monitoring functions

Public FGetAllVars: Procedure(Vars:pDoubleArray); StdCall;
 
Public FGetVariable: Function(var I:Integer):Double; StdCall;

Get all vars

Public FSetVariable: Procedure(var i:Integer; var value:Double); StdCall;

Get a particular var

Public FGetVarName: Procedure(var VarNum:Integer; VarName:pAnsichar; maxlen:Cardinal); StdCall;
 

Methods

Public Procedure Select;
 
Public Procedure Integrate;
 
Public constructor Create(dssContext: TDSSContext);
 
Public destructor Destroy; override;
 

Properties

Public 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

Public property Edit : String write Set_Edit;
 
Public property Exists : Boolean read Get_Exists;
 

Generated by PasDoc 0.16.0.