Unit DSSClass

Description

 

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TDSSEnum  
Record TAction  
Class TDSSClass  
Class TProxyClass  
Class TDSSContext  

Types

TDSSObjectFlag = (...);
TDSSObjectFlags = set of TDSSObjectFlag;
Flg = TDSSObjectFlag;
TActorStatus = (...);
TDSSObjectProp = (...);
TPropertyFlag = (...);
TPropertyFlags = set of TPropertyFlag;
TPropertyType = (...);
ArrayOfDouble = Array of Double;
ArrayOfInteger = Array of Integer;
ArrayOfString = Array of String;
ArrayOfPointer = Array of Pointer;
PropertyTypeArray = Array[1..100] of TPropertyType;
pPropertyTypeArray = ˆPropertyTypeArray;
TDoublePropertyFunction = function (obj: Pointer): Double;
TPropertyScaleFunction = function (obj: Pointer; getter: Boolean): Double;
TIntegerPropertyFunction = function (obj: Pointer): Integer;
TStringPropertyFunction = function (obj: Pointer): String;
TStringListPropertyFunction = function (obj: Pointer): TStringList;
TDoublesPropertyFunction = procedure (obj: Pointer; var ResultPtr: PDouble; ResultCount: PAPISize);
TObjRefsPropertyFunction = procedure (obj: Pointer; var ResultPtr: PPointer; ResultCount: PAPISize);
TWriteDoublePropertyFunction = procedure (obj: Pointer; Value: double);
TWriteObjRefPropertyFunction = procedure (obj: Pointer; Value: Pointer);
TWriteIntegerPropertyFunction = procedure (obj: Pointer; Value: Integer);
TWriteStringListPropertyFunction = procedure (obj: Pointer; Value: TStringList);
TWriteObjRefsPropertyFunction = procedure (obj: Pointer; Values: PPointer; ValueCount: Integer);
TWriteDoublesPropertyFunction = procedure (obj: Pointer; Values: PDouble; ValueCount: Integer);
TEnumActionProcedure = TWriteIntegerPropertyFunction;
TActionProcedure = procedure (obj: Pointer);
BooleanArray = Array[1..100] of Boolean;
pBooleanArray = ˆBooleanArray;
pAction = ˆTAction;
dss_callback_plot_t = function (DSS: TDSSContext; jsonParams: PChar): Integer; CDECL;
dss_callback_message_t = function (DSS: TDSSContext; messageStr: PChar; messageType: Integer): Integer; CDECL;

Variables

DSSPrime: TDSSContext;

Description

Types

TDSSObjectFlag = (...);
 
Values
  • EditionActive
  • HasBeenSaved
  • Checked: originally from TDSSObject Originally from TDSSCktElement
  • Flag
  • HasEnergyMeter: General purpose Flag for each object don't assume inited
  • HasSensorObj
  • IsIsolated
  • HasControl
  • IsMonitored
  • HasOCPDevice: indicates some control is monitoring this element IsPartofFeeder, – UNUSED Drawn, // Flag used in tree searches etc – UNUSED
  • HasAutoOCPDevice: Fuse, Relay, or Recloser
  • NeedsRecalc: Relay or Recloser only HasSwtControl // Has a remotely-controlled Switch – UNUSED
TDSSObjectFlags = set of TDSSObjectFlag;

Used for Edit command loops

Flg = TDSSObjectFlag;
 
TActorStatus = (...);
 
Values
  • Busy = 0
  • Idle = 1
TDSSObjectProp = (...);
 
Values
  • INVALID = 0
  • like = 1
TPropertyFlag = (...);
 
Values
  • CustomSet
  • CustomSetRaw: Implemented only for a few types – parse and pass value to the object.
  • CustomGet: Only for some LoadShape props – pass string instead of parsing first.
  • IsFilename
  • IgnoreInvalid: for strings
  • NonPositive
  • NonNegative
  • NonZero
  • Transform_Abs
  • Transform_LowerCase
  • ScaledByFunction
  • WriteByFunction: Used only in Line and LineCode
  • ReadByFunction
  • RealPart
  • ImagPart
  • GreaterThanOne
  • IntegerStructIndex
  • OnArray: used in LineGeometry, Transformer, AutoTrans, XfmrCode
  • IntervalUnits: only used for LineGeometry
  • AltIndex
  • SizeIsFunction: only used for LineGeometry (nphases vs. nconds etc.)
  • SilentReadOnly
  • ConditionalReadOnly: TODO: SilentRO=ignore writes. We might want to change this in the future to error out instead of ignoring
  • ConditionalValue: only implemented for MappedStringEnumProperty
  • IntegerToDouble: for sym comp in LineCode
  • CheckForVar: for double arrays – read integer, convert to double
  • AllowNone: for object references
  • ArrayMaxSize: for arrays
  • ValueOffset: for arrays
  • FullNameAsArray: only implemented for integers
  • Redundant: special case for LineGeometry, when reading wire as an array of strings through the Obj_* API
  • Util
  • Unused: things like X and Y from XYcurve that don't have value as data
TPropertyFlags = set of TPropertyFlag;
 
TPropertyType = (...);
 
Values
  • DoubleProperty = 0
  • EnabledProperty
  • MakeLikeProperty
  • BooleanActionProperty
  • StringEnumActionProperty
  • DoubleOnArrayProperty: TODO: use Flags for the following (i.e. transform them into DoubleProperty) For (double,string,integer)-on-array, offset is the offset pointer to the pointer/array offset2 is the offset pointer to the element index (Integer)
  • DoubleOnStructArrayProperty: 1-based For (double,string,integer)-on-array, offset is the offset pointer to the pointer/array offset2 is the offset pointer to the element index (Integer) step is the size of the step used in offset2 (direct integer)
  • StringSilentROFunctionProperty
  • DoubleArrayProperty: TODO: SilentRO=ignore writes. We might want to change this in the future to error out instead of ignoring
  • DoubleDArrayProperty
  • DoubleVArrayProperty: -> For dynamic arrays
  • DoubleFArrayProperty: -> Use ParseAsVector
  • ComplexPartSymMatrixProperty: -> For fixed-size arrays, with size in offset2
  • DoubleSymMatrixProperty
  • IntegerArrayProperty
  • StringListProperty
  • DSSObjectReferenceProperty: A string with a name of an object offset is the offset pointer to the pointer to the object offset2 is the pointer to the TDSSClass; if NIL, assumes any CktElement
  • DSSObjectReferenceArrayProperty: List of strings with names of objects offset is the offset pointer to the pointer to the object offset2 is the pointer to the TDSSClass; if NIL, assumes any CktElement
  • DoubleArrayOnStructArrayProperty
  • IntegerProperty
  • StringProperty
  • ComplexProperty
  • BooleanProperty
  • BusProperty
  • ComplexPartsProperty
  • MappedStringEnumProperty
  • MappedIntEnumProperty
  • MappedStringEnumArrayProperty
  • MappedStringEnumOnStructArrayProperty
  • MappedStringEnumArrayOnStructArrayProperty
  • StringOnArrayProperty: For (double,string,integer)-on-array, offset is the offset pointer to the pointer/array offset2 is the offset pointer to the element index (Integer)
  • IntegerOnStructArrayProperty: 1-based For (double,string,integer)-on-array, offset is the offset pointer to the pointer/array offset2 is the offset pointer to the element index (Integer) step is the size of the step used in offset2 (direct integer)
  • StringOnStructArrayProperty
  • BusOnStructArrayProperty
  • BusesOnStructArrayProperty
ArrayOfDouble = Array of Double;

AutoTrans, Transformer OtherProperty

ArrayOfInteger = Array of Integer;
 
ArrayOfString = Array of String;
 
ArrayOfPointer = Array of Pointer;
 
PropertyTypeArray = Array[1..100] of TPropertyType;
 
pPropertyTypeArray = ˆPropertyTypeArray;
 
TDoublePropertyFunction = function (obj: Pointer): Double;
 
TPropertyScaleFunction = function (obj: Pointer; getter: Boolean): Double;
 
TIntegerPropertyFunction = function (obj: Pointer): Integer;
 
TStringPropertyFunction = function (obj: Pointer): String;
 
TStringListPropertyFunction = function (obj: Pointer): TStringList;
 
TDoublesPropertyFunction = procedure (obj: Pointer; var ResultPtr: PDouble; ResultCount: PAPISize);
 
TObjRefsPropertyFunction = procedure (obj: Pointer; var ResultPtr: PPointer; ResultCount: PAPISize);
 
TWriteDoublePropertyFunction = procedure (obj: Pointer; Value: double);

TDoubleArrayPropertyFunction = function (obj: Pointer): Array of Double;

TWriteObjRefPropertyFunction = procedure (obj: Pointer; Value: Pointer);
 
TWriteIntegerPropertyFunction = procedure (obj: Pointer; Value: Integer);
 
TWriteStringListPropertyFunction = procedure (obj: Pointer; Value: TStringList);
 
TWriteObjRefsPropertyFunction = procedure (obj: Pointer; Values: PPointer; ValueCount: Integer);
 
TWriteDoublesPropertyFunction = procedure (obj: Pointer; Values: PDouble; ValueCount: Integer);
 
TEnumActionProcedure = TWriteIntegerPropertyFunction;
 
TActionProcedure = procedure (obj: Pointer);
 
BooleanArray = Array[1..100] of Boolean;
 
pBooleanArray = ˆBooleanArray;
 
pAction = ˆTAction;
 
dss_callback_plot_t = function (DSS: TDSSContext; jsonParams: PChar): Integer; CDECL;
 
dss_callback_message_t = function (DSS: TDSSContext; messageStr: PChar; messageType: Integer): Integer; CDECL;
 

Variables

DSSPrime: TDSSContext;
 

Generated by PasDoc 0.16.0.