Packed Record TDSSCallBacks

Hierarchy
Methods
Properties

Unit

Declaration

type TDSSCallBacks = packed record

Description

Pointer to callback structure

Overview

Fields

Public MsgCallBack: Procedure(S : pAnsiChar; Maxlen:UInt32); Stdcall;
Public GetIntValue: Procedure(var i : Int32); Stdcall;
Public GetDblValue: Procedure(var x : Double); Stdcall;
Public GetStrValue: Procedure(s : pAnsiChar; maxlen : UInt32); Stdcall;
Public LoadParser: Procedure(S : pAnsiChar; maxlen : UInt32); Stdcall;
Public NextParam: Function(ParamName : pAnsiChar; Maxlen : UInt32):Int32; Stdcall;
Public DoDSSCommand: Procedure(S : pAnsiChar; Maxlen : UInt32); StdCall;
Public GetActiveElementBusNames: Procedure(Name1 : pAnsiChar; Len1 : UInt32; Name2 : pAnsiChar; Len2 : UInt32); StdCall;
Public GetActiveElementVoltages: Procedure(Var NumVoltages : Int32; V : pComplexArray); StdCall;
Public GetActiveElementCurrents: Procedure(Var NumCurrents : Int32; Curr : pComplexArray); StdCall;
Public GetActiveElementLosses: Procedure(Var TotalLosses, LoadLosses, NoLoadLosses : Complex); StdCall;
Public GetActiveElementPower: Procedure(Terminal : Int32; Var TotalPower : Complex); StdCall;
Public GetActiveElementNumCust: Procedure(Var NumCust, TotalCust : Int32); StdCall;
Public GetActiveElementNodeRef: Procedure(Maxsize : Int32; NodeReferenceArray : pIntegerArray); StdCall;
Public GetActiveElementBusRef: Function(Terminal : Int32) : Int32; StdCall;
Public GetActiveElementTerminalInfo: Procedure(Var NumTerminals, NumConds, NumPhases : Int32); StdCall;
Public GetPtrToSystemVarray: Procedure(var V : Pointer; var iNumNodes : Int32); StdCall;
Public GetActiveElementIndex: Function() : Int32; StdCall;
Public IsActiveElementEnabled: Function() : Boolean; StdCall;
Public IsBusCoordinateDefined: Function(BusRef : Int32) : Boolean; StdCall;
Public GetBusCoordinate: Procedure(BusRef : Int32; Var X, Y : Double); StdCall;
Public GetBuskVBase: Function(BusRef : Int32) : Double; StdCall;
Public GetBusDistFromMeter: Function(BusRef : Int32) : Double; StdCall;
Public GetDynamicsStruct: Procedure(var pDynamicsStruct : Pointer); StdCall;
Public GetStepSize: Function() : Double; StdCall;
Public GetTimeSec: Function() : Double; StdCall;
Public GetTimeHr: Function() : Double; StdCall;
Public GetPublicDataPtr: Procedure(var pPublicData : Pointer; Var PublicDataBytes : Int32); StdCall;
Public GetActiveElementName: Function(FullName : pAnsiChar; MaxNameLen : UInt32) : Int32; StdCall;
Public GetActiveElementPtr: Function() : Pointer; StdCall;
Public ControlQueuePush: Function(Const Hour:Int32; Const Sec:Double; Const Code, ProxyHdl:Int32; Owner:Pointer):Int32; StdCall;
Public GetResultStr: Procedure(S : pAnsiChar; Maxlen : UInt32); StdCall;

Description

Fields

Public MsgCallBack: Procedure(S : pAnsiChar; Maxlen:UInt32); Stdcall;
 
Public GetIntValue: Procedure(var i : Int32); Stdcall;

Routines for using DSS Parser. This allows you to write models that accept syntax like other DSS scripts.

Public GetDblValue: Procedure(var x : Double); Stdcall;

Get next param as an Int32

Public GetStrValue: Procedure(s : pAnsiChar; maxlen : UInt32); Stdcall;

Get next param as a double

Public LoadParser: Procedure(S : pAnsiChar; maxlen : UInt32); Stdcall;

Get next param as a string <= maxlen characters (UInt32 = 32-bit unsigned) caller must allocate space for s (Maxlen chars)

Public NextParam: Function(ParamName : pAnsiChar; Maxlen : UInt32):Int32; Stdcall;

Copies a string into a special instance of the DSS parser

Public DoDSSCommand: Procedure(S : pAnsiChar; Maxlen : UInt32); StdCall;

Advance to the next parameter and Get name of the param just retrieved, if one was given. Returns length of parameter found. If 0, then end of string. This is to handle the syntax "paramname=paramvalue" commonly used in DSS scripts Copies the string to the location specified by s up to maxlen characters. Caller must allocate space (Maxlen chars)

Public GetActiveElementBusNames: Procedure(Name1 : pAnsiChar; Len1 : UInt32; Name2 : pAnsiChar; Len2 : UInt32); StdCall;
 
Public GetActiveElementVoltages: Procedure(Var NumVoltages : Int32; V : pComplexArray); StdCall;
 
Public GetActiveElementCurrents: Procedure(Var NumCurrents : Int32; Curr : pComplexArray); StdCall;
 
Public GetActiveElementLosses: Procedure(Var TotalLosses, LoadLosses, NoLoadLosses : Complex); StdCall;
 
Public GetActiveElementPower: Procedure(Terminal : Int32; Var TotalPower : Complex); StdCall;
 
Public GetActiveElementNumCust: Procedure(Var NumCust, TotalCust : Int32); StdCall;
 
Public GetActiveElementNodeRef: Procedure(Maxsize : Int32; NodeReferenceArray : pIntegerArray); StdCall;
 
Public GetActiveElementBusRef: Function(Terminal : Int32) : Int32; StdCall;

calling program must allocate

Public GetActiveElementTerminalInfo: Procedure(Var NumTerminals, NumConds, NumPhases : Int32); StdCall;
 
Public GetPtrToSystemVarray: Procedure(var V : Pointer; var iNumNodes : Int32); StdCall;
 
Public GetActiveElementIndex: Function() : Int32; StdCall;

Returns pointer to Solution.V and size

Public IsActiveElementEnabled: Function() : Boolean; StdCall;
 
Public IsBusCoordinateDefined: Function(BusRef : Int32) : Boolean; StdCall;
 
Public GetBusCoordinate: Procedure(BusRef : Int32; Var X, Y : Double); StdCall;
 
Public GetBuskVBase: Function(BusRef : Int32) : Double; StdCall;
 
Public GetBusDistFromMeter: Function(BusRef : Int32) : Double; StdCall;
 
Public GetDynamicsStruct: Procedure(var pDynamicsStruct : Pointer); StdCall;
 
Public GetStepSize: Function() : Double; StdCall;

Returns pointer to dynamics variables structure

Public GetTimeSec: Function() : Double; StdCall;

Return just 'h' from dynamics record

Public GetTimeHr: Function() : Double; StdCall;

returns t in sec from top of hour

Public GetPublicDataPtr: Procedure(var pPublicData : Pointer; Var PublicDataBytes : Int32); StdCall;

returns time as a double in hours

Public GetActiveElementName: Function(FullName : pAnsiChar; MaxNameLen : UInt32) : Int32; StdCall;
 
Public GetActiveElementPtr: Function() : Pointer; StdCall;
 
Public ControlQueuePush: Function(Const Hour:Int32; Const Sec:Double; Const Code, ProxyHdl:Int32; Owner:Pointer):Int32; StdCall;

Returns pointer to active circuit element

Public GetResultStr: Procedure(S : pAnsiChar; Maxlen : UInt32); StdCall;
 

Generated by PasDoc 0.16.0.