Skip to main content
Namespace: OpenTD.CoSolver
Assembly: OpenTD.CoSolver.dll
Base class for communicating with a Sinda run via an SF_Pipe.

Inheritance

object ← CoSolver

Derived

SF_CoSolver, TDSF_CoSolver

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Fields

pipeID

Field Value

string

sf_pipe

Field Value

SF_Pipe

Properties

Converged

Property Value

bool

CouplingTimeStep

Property Value

double

InitializeTimeoutMs

Determines how long in milliseconds that Initialize() will try to connect to the Sinda run.

Property Value

int

Methods

Abort()

CloseSF_Pipe()

Continue()

Tells Sinda to proceed to the next step of the simulation. Return values: -1 - Sinda disconnected or error 0 - Sinda initial connection after call to OPENSF 99 - Sinda termination 11 - beginning of STEADY 12 - end of STEADY 1 - beginning of TRANSIENT 2 - at end of TRANSIENT time step 3 - at end of TRANSIENT

Returns

int

CreateSF_Pipe()

DoStep()

Returns

int

GetCondSequenceNumber(string, int)

Parameters

submodel string Id int

Returns

long

GetLumpSequenceNumber(string, int)

Parameters

submodel string Id int

Returns

long

GetNodeSequenceNumber(string, int)

Parameters

submodel string Id int

Returns

long

GetPathSequenceNumber(string, int)

Parameters

submodel string Id int

Returns

long

GetRegisterExpression(string)

Parameters

name string

Returns

string

GetRegisterValue(string)

Parameters

name string

Returns

double

GetTieSequenceNumber(string, int)

Parameters

submodel string Id int

Returns

long

GetValue(string, int, string)

Parameters

submodel string Id int type string

Returns

double

GetValue(int, string)

Parameters

SequenceNumber int type string

Returns

double

GetValue(string)

Parameters

name string

Returns

double

Initialize()

SetRegisterExpression(string, double)

Parameters

name string value double

SetValue(string, int, string, double)

Parameters

submodel string Id int type string value double

SetValue(int, string, double)

Parameters

SequenceNumber int type string value double

SetValue(string, double)

Parameters

name string value double

Set_Q_UDFA(string, int, double)

Parameters

name string SequenceNumber int value double

SetupExperiment()