Class TGenUserModel

Unit

Declaration

type TGenUserModel = class(TObject)

Description

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 FActiveGeneratorVars: Pointer;
Public FSave: Procedure; Stdcall;
Public FRestore: 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; ActiveGeneratorVars: Pointer);
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 FActiveGeneratorVars: Pointer;

Called when props of generator updated

Public FSave: Procedure; Stdcall;

Save and restore data

Public FRestore: Procedure; Stdcall;
 
Public FNumVars: Function:Integer; Stdcall;

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; ActiveGeneratorVars: Pointer);
 
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 Wide string OK here

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

Converted to Ansi string in Set_Edit


Generated by PasDoc 0.16.0.