Skip to main content
Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll
An abstract class representing a set of solution results from a Sinda run. Returns data as DataArrays.

Inheritance

object ← Dataset

Derived

SimpleDataset

Implements

IDataset

Inherited Members

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

Constructors

Dataset()

Properties

AutoCommenter

Property Value

AutoCommenter

AutoNamer

Property Value

AutoNamer

Comment

Property Value

string

InternalSuggestedComment

Property Value

string

InternalSuggestedName

Property Value

string

Name

Property Value

string

Source

The name of the source of the data.

Property Value

string

UDFAManager

Property Value

IUDFAManager

Units

The unit system of the dataset.

Property Value

UnitsData

Methods

Close()

GetAbszro()

Returns

Dimensional<Temp>

GetConductorIds(string)

Parameters

submodel string

Returns

List<long>

GetConstraintData(long, DataSubtype, UnitsData)

Parameters

constraintNumber long subtype DataSubtype units UnitsData

Returns

DataArray

GetData(DataItemIdentifierCollection)

Gets data for a collection of data items (e.g., “MAIN.T10”, “FLOW.TL40”, etc.).

Parameters

dataItems DataItemIdentifierCollection

Returns

DataArrayCollection A DataArrayCollection for the requested dataItems.

GetData(params string[])

Parameters

sindaNames string[]

Returns

DataArrayCollection

GetData(ItemIdentifierCollection, DataSubtype, UnitsData)

Parameters

itemIds ItemIdentifierCollection subtype DataSubtype units UnitsData

Returns

DataArrayCollection

GetDataAtRecord(DataSubtype, long)

Gets all data for a given subtype at a single record. If recordNum is invalid, or if no data of the given subtype exists at the record, will return an empty DataArray.

Parameters

subtype DataSubtype recordNum long

Returns

DataArray

Exceptions

OpenTDException Thrown if the DataSubtype represents a character UDFA.

GetFluidSubmodels()

Returns

List<string>

GetFtieIds(string)

Parameters

submodel string

Returns

List<long>

GetIfaceIds(string)

Parameters

submodel string

Returns

List<long>

GetInternalIndex(DataTypes, string, long)

The 0-indexed position of the given Sinda entity in arrays returned by GetDataAtRecord. Returns -1 if entity can’t be found.

Parameters

dataType DataTypes submodel string id long

Returns

long

See Also

Dataset.GetDataAtRecord(DataSubtype, long)

GetInternalIndex(string)

The 0-indexed position of the given register in arrays returned by GetRegisterDataAtRecord. Returns -1 if registerName can’t be found.

Parameters

registerName string

Returns

long

See Also

Dataset.GetRegisterDataAtRecord(long, DataSubtype, UnitsData)

GetLoopcoData()

Returns

List<long>

GetLoopctData()

Returns

List<long>

GetLumpIds(string)

Parameters

submodel string

Returns

List<long>

GetNamedInt(IntegerNames)

Parameters

name IntegerNames

Returns

long

GetNamedInt(string)

Parameters

name string

Returns

long

GetNamedIntArray(ArrayIntegerNames)

Parameters

name ArrayIntegerNames

Returns

List<long>

GetNamedIntArray(string)

Parameters

name string

Returns

List<long>

GetNodeIds(string)

Parameters

submodel string

Returns

List<long>

GetNpcsrec(long)

Parameters

recordNum long

Returns

long

GetNsol(long)

Parameters

recordNum long

Returns

long

GetPathIds(string)

Parameters

submodel string

Returns

List<long>

GetPatmos()

Returns

Dimensional<Pressure>

GetRecordNames()

Returns

List<string>

GetRecordNumbers()

Returns

List<long>

GetRecordNumbersAsDataArray()

Returns

DataArray

GetRegisterData(string, DataSubtype, UnitsData)

Gets all data for a register across all records. If data doesn’t exist at a record, NaN will be returned instead.

Parameters

registerName string subtype DataSubtype units UnitsData

Returns

DataArray

GetRegisterDataAtRecord(long, DataSubtype, UnitsData)

Gets all register data at a single record. Use GetRegisterNames to get a list of register names in the same order as the data returned from this method. Or use GetInternalIndex to find the index of a specific register in this list. If recordNum is invalid, or if no register data exists at the record, will return an empty DataArray.

Parameters

recordNum long subtype DataSubtype units UnitsData

Returns

DataArray

See Also

Dataset.GetRegisterNames(), Dataset.GetInternalIndex(DataTypes, string, long)

GetRegisterNames()

Returns

List<string>

GetReliabilityData(long, DataSubtype, UnitsData)

Parameters

reliabilityNumber long subtype DataSubtype units UnitsData

Returns

DataArray

GetSelfSuggestedComment()

Returns

string

GetSelfSuggestedName()

Returns

string

GetSigma()

Returns

Dimensional<StefanBoltzmann>

GetThermalSubmodels()

Returns

List<string>

GetTieIds(string)

Parameters

submodel string

Returns

List<long>

GetTimes()

Returns

DataArray

GetTimesOrRecordNumbers()

Returns

DataArray

GetUDFAManager()

Returns

IUDFAManager

GetUdcaData(DataItemIdentifierCollection)

Gets data for a collection of data items representing character UDFAs.

Parameters

dataItems DataItemIdentifierCollection

Returns

List<List<string>> A DataArrayCollection for the requested dataItems.

Exceptions

OpenTDException Thrown if any of items in dataItems do not specify character UDFAs

GetUdcaDataAtRecord(DataSubtype, long)

Gets the UDFA of strings represented by a DataSubtype at a given record

Parameters

subtype DataSubtype recordNum long Record number from which to extract UDFA strings.

Returns

List<string> A list of character UDFA values.

Exceptions

OpenTDException Thrown if the DataSubtype represents a noncharacter UDFA.

GetUdfasAtRecord(long)

Gets DataSubtypes UDFA at the given record number.

Parameters

recordNum long Record number from which to extract UDFA subtypes.

Returns

List<DataSubtype> A list of DataSubtype objects.

ReOpen()

Relay<T_collection, T_item>(T_collection)

Parameters

x T_collection

Returns

List<T_item>

Type Parameters

T_collection T_item

Relay<T_item>(List<T_item>)

Parameters

x List<T_item>

Returns

List<T_item>

Type Parameters

T_item

ToString()

Returns a string that represents the current object.

Returns

string A string that represents the current object.

UnitsChangedSinceLastRead()

Returns

bool

See Also

IAutoName, SaveXFile, SaveFile, CSR, DataArray