Class TDSSContext

Unit

Declaration

type TDSSContext = class(TObject)

Description

Hierarchy

Overview

Fields

Protected FLoadShapeClass: TDSSClass;
Protected FTShapeClass: TDSSClass;
Protected FPriceShapeClass: TDSSClass;
Protected FXYCurveClass: TDSSClass;
Protected FGrowthShapeClass: TDSSClass;
Protected FSpectrumClass: TDSSClass;
Protected FEnergyMeterClass: TDSSClass;
Protected FMonitorClass: TDSSClass;
Protected FSensorClass: TDSSClass;
Protected FTCC_CurveClass: TDSSClass;
Protected FWireDataClass: TDSSClass;
Protected FCNDataClass: TDSSClass;
Protected FTSDataClass: TDSSClass;
Protected FLineGeometryClass: TDSSClass;
Protected FLineSpacingClass: TDSSClass;
Protected FLineCodeClass: TDSSClass;
Protected FStorageClass: TDSSClass;
Protected FStorage2Class: TDSSClass;
Protected FPVSystemClass: TDSSClass;
Protected FPVSystem2Class: TDSSClass;
Protected FInvControlClass: TDSSClass;
Protected FInvControl2Class: TDSSClass;
Protected FExpControlClass: TDSSClass;
Protected FLineClass: TDSSClass;
Protected FVSourceClass: TDSSClass;
Protected FISourceClass: TDSSClass;
Protected FVCSSClass: TDSSClass;
Protected FLoadClass: TDSSClass;
Protected FTransformerClass: TDSSClass;
Protected FRegControlClass: TDSSClass;
Protected FCapacitorClass: TDSSClass;
Protected FReactorClass: TDSSClass;
Protected FCapControlClass: TDSSClass;
Protected FFaultClass: TDSSClass;
Protected FGeneratorClass: TDSSClass;
Protected FGenDispatcherClass: TDSSClass;
Protected FStorageControllerClass: TDSSClass;
Protected FStorageController2Class: TDSSClass;
Protected FRelayClass: TDSSClass;
Protected FRecloserClass: TDSSClass;
Protected FFuseClass: TDSSClass;
Protected FSwtControlClass: TDSSClass;
Protected FUPFCClass: TDSSClass;
Protected FUPFCControlClass: TDSSClass;
Protected FESPVLControlClass: TDSSClass;
Protected FIndMach012Class: TDSSClass;
Protected FGICsourceClass: TDSSClass;
Protected FAutoTransClass: TDSSClass;
Protected FVSConverterClass: TDSSClass;
Protected FXfmrCodeClass: TDSSClass;
Protected FGICLineClass: TDSSClass;
Protected FGICTransformerClass: TDSSClass;
Protected FActiveFeederObj: TObject;
Protected FActiveSolutionObj: TObject;
Protected FActiveCapControlObj: TObject;
Protected FActiveESPVLControlObj: TObject;
Protected FActiveExpControlObj: TObject;
Protected FActiveGenDispatcherObj: TObject;
Protected FActiveInvControlObj: TObject;
Protected FActiveInvControl2Obj: TObject;
Protected FActiveRecloserObj: TObject;
Protected FActiveRegControlObj: TObject;
Protected FActiveRelayObj: TObject;
Protected FActiveStorageControllerObj: TObject;
Protected FActiveStorageController2Obj: TObject;
Protected FActiveSwtControlObj: TObject;
Protected FActiveUPFCControlObj: TObject;
Protected FActiveConductorDataObj: TObject;
Protected FActiveGrowthShapeObj: TObject;
Protected FActiveLineCodeObj: TObject;
Protected FActiveLineGeometryObj: TObject;
Protected FActiveLineSpacingObj: TObject;
Protected FActiveLoadShapeObj: TObject;
Protected FActivePriceShapeObj: TObject;
Protected FActiveSpectrumObj: TObject;
Protected FActiveTCC_CurveObj: TObject;
Protected FActiveTShapeObj: TObject;
Protected FActiveXfmrCodeObj: TObject;
Protected FActiveXYcurveObj: TObject;
Protected FActiveEnergyMeterObj: TObject;
Protected FActiveMonitorObj: TObject;
Protected FActiveSensorObj: TObject;
Protected FActiveEquivalentObj: TObject;
Protected FActiveGeneratorObj: TObject;
Protected FActiveGICLineObj: TObject;
Protected FActiveGICsourceObj: TObject;
Protected FActiveIndMach012Obj: TObject;
Protected FActiveIsourceObj: TObject;
Protected FActiveLoadObj: TObject;
Protected FActivePVsystemObj: TObject;
Protected FActivePVsystem2Obj: TObject;
Protected FActiveStorageObj: TObject;
Protected FActiveStorage2Obj: TObject;
Protected FActiveUPFCObj: TObject;
Protected FActiveVCCSObj: TObject;
Protected FActiveVSConverterObj: TObject;
Protected FActiveVsourceObj: TObject;
Protected FActiveAutoTransObj: TObject;
Protected FActiveCapacitorObj: TObject;
Protected FActiveFaultObj: TObject;
Protected FActiveFuseObj: TObject;
Protected FActiveGICTransformerObj: TObject;
Protected FActiveLineObj: TObject;
Protected FActiveReactorObj: TObject;
Protected FActiveTransfObj: TObject;
Protected FDSSExecutive: TObject;
Protected FCIMExporter: TObject;
Protected FActiveCircuit: TNamedObject;
Protected FActiveDSSObject:TNamedObject;
Protected FActorThread: TThread;
Protected CurrentDSSDir_internal: String;
Protected FSolutionAbort: LongInt;
Public Parent: TDSSContext;
Public DSSPlotCallback: dss_callback_plot_t;
Public DSSMessageCallback: dss_callback_message_t;
Public Children: array of TDSSContext;
Public ActiveChild: TDSSContext;
Public ActiveChildIndex: Integer;
Public CPU: Integer;
Public IsSolveAll: Boolean;
Public AllActors: Boolean;
Public Parallel_enabled: Boolean;
Public ConcatenateReports: Boolean;
Public ConcatenateReportsLock: TCriticalSection;
Public ActorPctProgress: Integer;
Public ActorStatus: TActorStatus;
Public ThreadStatusEvent: TEvent;
Public _Name: String;
Public GR_DataPtr_PPAnsiChar: PPAnsiChar;
Public GR_DataPtr_PDouble: PDouble;
Public GR_DataPtr_PInteger: PInteger;
Public GR_DataPtr_PByte: PByte;
Public GR_Counts_PPAnsiChar: Array[0..3] of TAPISize;
Public GR_Counts_PDouble: Array[0..3] of TAPISize;
Public GR_Counts_PInteger: Array[0..3] of TAPISize;
Public GR_Counts_PByte: Array[0..3] of TAPISize;
Public ClassNames: TClassNamesHashListType;
Public DSSClassList:TDSSPointerList;
Public Circuits:TDSSPointerList;
Public DSSObjs:TDSSPointerList;
Public NumIntrinsicClasses: Integer;
Public NumUserClasses: Integer;
Public ActiveDSSClass: TDSSClass;
Public AuxParser: TDSSParser;
Public PropParser: TDSSParser;
Public Parser: TDSSParser;
Public ParserVars: TParserVar;
Public LastClassReferenced:Integer;
Public NumCircuits:Integer;
Public MaxAllocationIterations:Integer;
Public ErrorPending:Boolean;
Public CmdResult:Integer;
Public ErrorNumber:Integer;
Public LastErrorMessage:String;
Public DefaultEarthModel:Integer;
Public ActiveEarthModel:Integer;
Public LastFileCompiled:String;
Public LastCommandWasCompile:Boolean;
Public InShowResults:Boolean;
Public Redirect_Abort:Boolean;
Public In_Redirect:Boolean;
Public DIFilesAreOpen:Boolean;
Public AutoShowExport:Boolean;
Public SolutionWasAttempted:Boolean;
Public GlobalHelpString:String;
Public GlobalPropertyValue:String;
Public GlobalResult:String;
Public LastResultFile:String;
Public LogQueries:Boolean;
Public QueryFirstTime:Boolean;
Public QueryLogFileName:String;
Public QueryLogFile:TFileStream;
Public DataDirectory:String;
Public OutputDirectory:String;
Public CircuitName_:String;
Public DefaultBaseFreq:Double;
Public DaisySize:Double;
Public EventStrings: TStringList;
Public SavedFileList:TStringList;
Public ErrorStrings: TStringList;
Public IncMat_Ordered: Boolean;
Public SeasonalRating: Boolean;
Public SeasonSignal: String;
Public LastCmdLine: String;
Public RedirFile: String;
Public IsPrime: Boolean;
Public FPropIndex: Integer;
Public FPropClass: TDSSClass;
Public tempBuffer: AnsiString;
Public ComParser: TDSSParser;
Public ReduceEditString: String;
Public EnergyMeterName: String;
Public FirstPDelement: String;
Public FControlProxyObj: TObject;
Public ActiveAction: pAction;
Public Enums: TObjectList;
Public UnitsEnum: TDSSENum;
Public ScanTypeEnum: TDSSENum;
Public SequenceEnum: TDSSENum;
Public ConnectionEnum: TDSSENum;
Public LeadLagEnum: TDSSENum;
Public CoreTypeEnum: TDSSENum;
Public LineTypeEnum: TDSSENum;
Public EarthModelEnum: TDSSENum;
Public DefaultLoadModelEnum: TDSSENum;
Public RandomModeEnum: TDSSENum;
Public ControlModeEnum: TDSSENum;
Public SolveModeEnum: TDSSENum;
Public SolveAlgEnum: TDSSENum;
Public CktModelEnum: TDSSENum;
Public AddTypeEnum: TDSSENum;
Public LoadShapeClassEnum: TDSSENum;
Public MonPhaseEnum: TDSSENum;
Public unzipper: TObject;
Public inZipPath: String;

Methods

Protected function get_SolutionAbort(): Boolean;
Protected procedure set_SolutionAbort(val: Boolean);
Public constructor Create(_Parent: TDSSContext = nil; _IsPrime: Boolean = False);
Public destructor Destroy; override;
Public function GetPrime(): TDSSContext;
Public function CurrentDSSDir(): String;
Public procedure SetCurrentDSSDir(dir: String);
Public function GetROFileStream(fn: String): TStream;
Public procedure NewDSSClass(Value: Pointer);

Properties

Public property SolutionAbort: Boolean READ get_SolutionAbort WRITE set_SolutionAbort;

Description

Fields

Protected FLoadShapeClass: TDSSClass;
 
Protected FTShapeClass: TDSSClass;
 
Protected FPriceShapeClass: TDSSClass;
 
Protected FXYCurveClass: TDSSClass;
 
Protected FGrowthShapeClass: TDSSClass;
 
Protected FSpectrumClass: TDSSClass;
 
Protected FEnergyMeterClass: TDSSClass;
 
Protected FMonitorClass: TDSSClass;
 
Protected FSensorClass: TDSSClass;
 
Protected FTCC_CurveClass: TDSSClass;
 
Protected FWireDataClass: TDSSClass;
 
Protected FCNDataClass: TDSSClass;
 
Protected FTSDataClass: TDSSClass;
 
Protected FLineGeometryClass: TDSSClass;
 
Protected FLineSpacingClass: TDSSClass;
 
Protected FLineCodeClass: TDSSClass;
 
Protected FStorageClass: TDSSClass;
 
Protected FStorage2Class: TDSSClass;
 
Protected FPVSystemClass: TDSSClass;
 
Protected FPVSystem2Class: TDSSClass;
 
Protected FInvControlClass: TDSSClass;
 
Protected FInvControl2Class: TDSSClass;
 
Protected FExpControlClass: TDSSClass;
 
Protected FLineClass: TDSSClass;
 
Protected FVSourceClass: TDSSClass;
 
Protected FISourceClass: TDSSClass;
 
Protected FVCSSClass: TDSSClass;
 
Protected FLoadClass: TDSSClass;
 
Protected FTransformerClass: TDSSClass;
 
Protected FRegControlClass: TDSSClass;
 
Protected FCapacitorClass: TDSSClass;
 
Protected FReactorClass: TDSSClass;
 
Protected FCapControlClass: TDSSClass;
 
Protected FFaultClass: TDSSClass;
 
Protected FGeneratorClass: TDSSClass;
 
Protected FGenDispatcherClass: TDSSClass;
 
Protected FStorageControllerClass: TDSSClass;
 
Protected FStorageController2Class: TDSSClass;
 
Protected FRelayClass: TDSSClass;
 
Protected FRecloserClass: TDSSClass;
 
Protected FFuseClass: TDSSClass;
 
Protected FSwtControlClass: TDSSClass;
 
Protected FUPFCClass: TDSSClass;
 
Protected FUPFCControlClass: TDSSClass;
 
Protected FESPVLControlClass: TDSSClass;
 
Protected FIndMach012Class: TDSSClass;
 
Protected FGICsourceClass: TDSSClass;
 
Protected FAutoTransClass: TDSSClass;
 
Protected FVSConverterClass: TDSSClass;
 
Protected FXfmrCodeClass: TDSSClass;
 
Protected FGICLineClass: TDSSClass;
 
Protected FGICTransformerClass: TDSSClass;
 
Protected FActiveFeederObj: TObject;
 
Protected FActiveSolutionObj: TObject;
 
Protected FActiveCapControlObj: TObject;
 
Protected FActiveESPVLControlObj: TObject;
 
Protected FActiveExpControlObj: TObject;
 
Protected FActiveGenDispatcherObj: TObject;
 
Protected FActiveInvControlObj: TObject;
 
Protected FActiveInvControl2Obj: TObject;
 
Protected FActiveRecloserObj: TObject;
 
Protected FActiveRegControlObj: TObject;
 
Protected FActiveRelayObj: TObject;
 
Protected FActiveStorageControllerObj: TObject;
 
Protected FActiveStorageController2Obj: TObject;
 
Protected FActiveSwtControlObj: TObject;
 
Protected FActiveUPFCControlObj: TObject;
 
Protected FActiveConductorDataObj: TObject;

FActiveVVCControlObj: TObject;

Protected FActiveGrowthShapeObj: TObject;
 
Protected FActiveLineCodeObj: TObject;
 
Protected FActiveLineGeometryObj: TObject;
 
Protected FActiveLineSpacingObj: TObject;
 
Protected FActiveLoadShapeObj: TObject;
 
Protected FActivePriceShapeObj: TObject;
 
Protected FActiveSpectrumObj: TObject;
 
Protected FActiveTCC_CurveObj: TObject;
 
Protected FActiveTShapeObj: TObject;
 
Protected FActiveXfmrCodeObj: TObject;
 
Protected FActiveXYcurveObj: TObject;
 
Protected FActiveEnergyMeterObj: TObject;
 
Protected FActiveMonitorObj: TObject;

FActiveFMonitorObj: TObject;

Protected FActiveSensorObj: TObject;
 
Protected FActiveEquivalentObj: TObject;
 
Protected FActiveGeneratorObj: TObject;
 
Protected FActiveGICLineObj: TObject;

FActiveGeneric5Obj: TObject;

Protected FActiveGICsourceObj: TObject;
 
Protected FActiveIndMach012Obj: TObject;
 
Protected FActiveIsourceObj: TObject;
 
Protected FActiveLoadObj: TObject;
 
Protected FActivePVsystemObj: TObject;
 
Protected FActivePVsystem2Obj: TObject;
 
Protected FActiveStorageObj: TObject;
 
Protected FActiveStorage2Obj: TObject;
 
Protected FActiveUPFCObj: TObject;
 
Protected FActiveVCCSObj: TObject;
 
Protected FActiveVSConverterObj: TObject;
 
Protected FActiveVsourceObj: TObject;
 
Protected FActiveAutoTransObj: TObject;
 
Protected FActiveCapacitorObj: TObject;
 
Protected FActiveFaultObj: TObject;
 
Protected FActiveFuseObj: TObject;
 
Protected FActiveGICTransformerObj: TObject;
 
Protected FActiveLineObj: TObject;
 
Protected FActiveReactorObj: TObject;
 
Protected FActiveTransfObj: TObject;
 
Protected FDSSExecutive: TObject;
 
Protected FCIMExporter: TObject;
 
Protected FActiveCircuit: TNamedObject;
 
Protected FActiveDSSObject:TNamedObject;
 
Protected FActorThread: TThread;
 
Protected CurrentDSSDir_internal: String;

TODO: Currently only for solution, extend later (send redirect command to the other thread, etc.)

Protected FSolutionAbort: LongInt;
 
Public Parent: TDSSContext;
 
Public DSSPlotCallback: dss_callback_plot_t;
 
Public DSSMessageCallback: dss_callback_message_t;
 
Public Children: array of TDSSContext;

Parallel Machine state

Public ActiveChild: TDSSContext;
 
Public ActiveChildIndex: Integer;
 
Public CPU: Integer;
 
Public IsSolveAll: Boolean;
 
Public AllActors: Boolean;
 
Public Parallel_enabled: Boolean;
 
Public ConcatenateReports: Boolean;
 
Public ConcatenateReportsLock: TCriticalSection;
 
Public ActorPctProgress: Integer;
 
Public ActorStatus: TActorStatus;
 
Public ThreadStatusEvent: TEvent;
 
Public _Name: String;
 
Public GR_DataPtr_PPAnsiChar: PPAnsiChar;

C-API pointer data (GR mode)

Public GR_DataPtr_PDouble: PDouble;
 
Public GR_DataPtr_PInteger: PInteger;
 
Public GR_DataPtr_PByte: PByte;
 
Public GR_Counts_PPAnsiChar: Array[0..3] of TAPISize;
 
Public GR_Counts_PDouble: Array[0..3] of TAPISize;
 
Public GR_Counts_PInteger: Array[0..3] of TAPISize;
 
Public GR_Counts_PByte: Array[0..3] of TAPISize;
 
Public ClassNames: TClassNamesHashListType;

Original global state

Public DSSClassList:TDSSPointerList;
 
Public Circuits:TDSSPointerList;

pointers to the base class types

Public DSSObjs:TDSSPointerList;
 
Public NumIntrinsicClasses: Integer;
 
Public NumUserClasses: Integer;
 
Public ActiveDSSClass: TDSSClass;
 
Public AuxParser: TDSSParser;
 
Public PropParser: TDSSParser;

Auxiliary parser for use by anybody for reparsing values

Public Parser: TDSSParser;

Parser dedicated for parsing in SetObjPropertyValue

Public ParserVars: TParserVar;
 
Public LastClassReferenced:Integer;
 
Public NumCircuits:Integer;

index of class of last thing edited

Public MaxAllocationIterations:Integer;
 
Public ErrorPending:Boolean;
 
Public CmdResult:Integer;
 
Public ErrorNumber:Integer;
 
Public LastErrorMessage:String;
 
Public DefaultEarthModel:Integer;
 
Public ActiveEarthModel:Integer;
 
Public LastFileCompiled:String;
 
Public LastCommandWasCompile:Boolean;
 
Public InShowResults:Boolean;
 
Public Redirect_Abort:Boolean;
 
Public In_Redirect:Boolean;
 
Public DIFilesAreOpen:Boolean;
 
Public AutoShowExport:Boolean;
 
Public SolutionWasAttempted:Boolean;
 
Public GlobalHelpString:String;
 
Public GlobalPropertyValue:String;
 
Public GlobalResult:String;
 
Public LastResultFile:String;
 
Public LogQueries:Boolean;
 
Public QueryFirstTime:Boolean;
 
Public QueryLogFileName:String;
 
Public QueryLogFile:TFileStream;
 
Public DataDirectory:String;
 
Public OutputDirectory:String;

used to be DSSDataDirectory

Public CircuitName_:String;

output files go here, same as DataDirectory if writable

Public DefaultBaseFreq:Double;

Name of Circuit with a "_" appended

Public DaisySize:Double;
 
Public EventStrings: TStringList;
 
Public SavedFileList:TStringList;
 
Public ErrorStrings: TStringList;
 
Public IncMat_Ordered: Boolean;
 
Public SeasonalRating: Boolean;

***********************Seasonal QSTS variables********************************

Public SeasonSignal: String;

Tells the energy meter if the seasonal rating feature is active

Public LastCmdLine: String;

Stores the name of the signal for selecting the rating dynamically

Public RedirFile: String;

always has last command processed

Public IsPrime: Boolean;
 
Public FPropIndex: Integer;

Indicates whether this instance is the first/main DSS instance For external APIs

Public FPropClass: TDSSClass;
 
Public tempBuffer: AnsiString;

Previously C-API or COM globals

Public ComParser: TDSSParser;

CAPI_Utils.pas

Public ReduceEditString: String;

CAPI_Parser.pas

Public EnergyMeterName: String;

CAPI_ReduceCkt.pas

Public FirstPDelement: String;

CAPI_ReduceCkt.pas

Public FControlProxyObj: TObject;

Full name – CAPI_ReduceCkt.pas

Public ActiveAction: pAction;

CAPI_CtrlQueue.pas

Public Enums: TObjectList;

CAPI_CtrlQueue.pas

Public UnitsEnum: TDSSENum;
 
Public ScanTypeEnum: TDSSENum;
 
Public SequenceEnum: TDSSENum;
 
Public ConnectionEnum: TDSSENum;
 
Public LeadLagEnum: TDSSENum;
 
Public CoreTypeEnum: TDSSENum;
 
Public LineTypeEnum: TDSSENum;
 
Public EarthModelEnum: TDSSENum;
 
Public DefaultLoadModelEnum: TDSSENum;
 
Public RandomModeEnum: TDSSENum;
 
Public ControlModeEnum: TDSSENum;
 
Public SolveModeEnum: TDSSENum;
 
Public SolveAlgEnum: TDSSENum;
 
Public CktModelEnum: TDSSENum;
 
Public AddTypeEnum: TDSSENum;
 
Public LoadShapeClassEnum: TDSSENum;
 
Public MonPhaseEnum: TDSSENum;
 
Public unzipper: TObject;

ZIP file state

Public inZipPath: String;
 

Methods

Protected function get_SolutionAbort(): Boolean;

changed to LongInt to enable InterLockedIncrement and others

Protected procedure set_SolutionAbort(val: Boolean);
 
Public constructor Create(_Parent: TDSSContext = nil; _IsPrime: Boolean = False);
 
Public destructor Destroy; override;
 
Public function GetPrime(): TDSSContext;
 
Public function CurrentDSSDir(): String;
 
Public procedure SetCurrentDSSDir(dir: String);
 
Public function GetROFileStream(fn: String): TStream;
 
Public procedure NewDSSClass(Value: Pointer);
 

Properties

Public property SolutionAbort: Boolean READ get_SolutionAbort WRITE set_SolutionAbort;
 

Generated by PasDoc 0.16.0.