OpenTD.Results.Dataset.Dataset Class Reference
Last update: 16.07.2025An abstract class representing a set of solution results from a Sinda run. Returns data as DataArrays. More...

Public Member Functions | |
| Dataset () | |
| DataArrayCollection | GetData (DataItemIdentifierCollection dataItems) |
| Gets data for a collection of data items (e.g., "MAIN.T10", "FLOW.TL40", etc.). | |
| List< List< string > > | GetUdcaData (DataItemIdentifierCollection dataItems) |
| Gets data for a collection of data items representing character UDFAs. | |
| virtual DataArrayCollection | GetData (params string[] sindaNames) |
| virtual DataArrayCollection | GetData (ItemIdentifierCollection itemIds, DataSubtype subtype, UnitsData units=null) |
| DataArray | GetDataAtRecord (DataSubtype subtype, long recordNum) |
| 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. | |
| DataArray | GetRegisterDataAtRecord (long recordNum, DataSubtype subtype=null, UnitsData units=null) |
| 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. | |
| List< DataSubtype > | GetUdfasAtRecord (long recordNum) |
Gets DataSubtypes UDFA at the given record number. | |
| List< string > | GetUdcaDataAtRecord (DataSubtype subtype, long recordNum) |
Gets the UDFA of strings represented by a DataSubtype at a given record. | |
| DataArray | GetConstraintData (long constraintNumber, DataSubtype subtype=null, UnitsData units=null) |
| DataArray | GetReliabilityData (long reliabilityNumber, DataSubtype subtype=null, UnitsData units=null) |
| DataArray | GetRegisterData (string registerName, DataSubtype subtype=null, UnitsData units=null) |
| Gets all data for a register across all records. If data doesn't exist at a record, NaN will be returned instead. | |
| List< long > | GetRecordNumbers () |
| DataArray | GetRecordNumbersAsDataArray () |
| List< string > | GetRecordNames () |
| DataArray | GetTimes () |
| DataArray | GetTimesOrRecordNumbers () |
| long | GetNsol (long recordNum) |
| long | GetNpcsrec (long recordNum) |
| Dimensional< StefanBoltzmann > | GetSigma () |
| Dimensional< Temp > | GetAbszro () |
| Dimensional< Pressure > | GetPatmos () |
| List< long > | GetLoopctData () |
| List< long > | GetLoopcoData () |
| long | GetNamedInt (IntegerNames name) |
| long | GetNamedInt (string name) |
| List< long > | GetNamedIntArray (ArrayIntegerNames name) |
| List< long > | GetNamedIntArray (string name) |
| List< string > | GetThermalSubmodels () |
| List< string > | GetFluidSubmodels () |
| List< string > | GetRegisterNames () |
| List< long > | GetLumpIds (string submodel) |
| List< long > | GetPathIds (string submodel) |
| List< long > | GetTieIds (string submodel) |
| List< long > | GetFtieIds (string submodel) |
| List< long > | GetIfaceIds (string submodel) |
| List< long > | GetNodeIds (string submodel) |
| List< long > | GetConductorIds (string submodel) |
| long | GetInternalIndex (DataTypes dataType, string submodel, long id) |
| The 0-indexed position of the given Sinda entity in arrays returned by GetDataAtRecord. Returns -1 if entity can't be found. | |
| virtual long | GetInternalIndex (string registerName) |
| The 0-indexed position of the given register in arrays returned by GetRegisterDataAtRecord. Returns -1 if registerName can't be found. | |
| void | Close () |
| void | ReOpen () |
| override string | ToString () |
Protected Member Functions | |
| bool | UnitsChangedSinceLastRead () |
| virtual string | GetSelfSuggestedName () |
| virtual string | GetSelfSuggestedComment () |
| List< T_item > | Relay< T_collection, T_item > (T_collection x) |
| List< T_item > | Relay< T_item > (List< T_item > x) |
Properties | |
| UnitsData | Units [get, set] |
| The unit system of the dataset. | |
| virtual string | Source [get, protected set] |
| The name of the source of the data. | |
| IUDFAManager | UDFAManager = null [get, set] |
| AutoNamer | AutoNamer [get, set] |
| string | Name [get, set] |
| string | InternalSuggestedName [get, set] |
| AutoCommenter | AutoCommenter [get, set] |
| string | Comment [get, set] |
| string | InternalSuggestedComment [get, set] |
Detailed Description
An abstract class representing a set of solution results from a Sinda run. Returns data as DataArrays.
Constructor & Destructor Documentation
◆ Dataset()
|
inline |
Member Function Documentation
◆ Close()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetAbszro()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetConductorIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetConstraintData()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetData() [1/3]
|
abstract |
Gets data for a collection of data items (e.g., "MAIN.T10", "FLOW.TL40", etc.).
- Parameters
-
dataItems
- Returns
- A
DataArrayCollectionfor the requested dataItems.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetData() [2/3]
|
inlinevirtual |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetData() [3/3]
|
inlinevirtual |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetDataAtRecord()
|
abstract |
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.
- Exceptions
-
OpenTDException Thrown if the DataSubtyperepresents a character UDFA.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetFluidSubmodels()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetFtieIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetIfaceIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetInternalIndex() [1/2]
|
abstract |
The 0-indexed position of the given Sinda entity in arrays returned by GetDataAtRecord. Returns -1 if entity can't be found.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetInternalIndex() [2/2]
|
inlinevirtual |
The 0-indexed position of the given register in arrays returned by GetRegisterDataAtRecord. Returns -1 if registerName can't be found.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetLoopcoData()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetLoopctData()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetLumpIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNamedInt() [1/2]
|
inline |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNamedInt() [2/2]
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNamedIntArray() [1/2]
|
inline |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNamedIntArray() [2/2]
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNodeIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNpcsrec()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetNsol()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetPathIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetPatmos()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRecordNames()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRecordNumbers()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRecordNumbersAsDataArray()
|
inline |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRegisterData()
|
abstract |
Gets all data for a register across all records. If data doesn't exist at a record, NaN will be returned instead.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRegisterDataAtRecord()
|
abstract |
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.
- See also
- OpenTD.Results.Dataset.Dataset.GetRegisterNames, OpenTD.Results.Dataset.Dataset.GetInternalIndex
Implements OpenTD.Results.Dataset.IDataset.
◆ GetRegisterNames()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetReliabilityData()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetSelfSuggestedComment()
|
inlineprotectedvirtual |
◆ GetSelfSuggestedName()
|
inlineprotectedvirtual |
Reimplemented in OpenTD.Results.Dataset.SpreadsheetDataFile, and OpenTD.Results.Dataset.TextTransientFile.
◆ GetSigma()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetThermalSubmodels()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetTieIds()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetTimes()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetTimesOrRecordNumbers()
|
inline |
Implements OpenTD.Results.Dataset.IDataset.
◆ GetUdcaData()
|
abstract |
Gets data for a collection of data items representing character UDFAs.
- Parameters
-
dataItems
- Returns
- A
DataArrayCollectionfor the requested dataItems.
- Exceptions
-
OpenTDException Thrown if any of items in dataItems do not specify character UDFAs
Implements OpenTD.Results.Dataset.IDataset.
◆ GetUdcaDataAtRecord()
|
abstract |
Gets the UDFA of strings represented by a DataSubtype at a given record.
- Parameters
-
recordNum Record number from which to extract UDFA strings.
- Returns
- A list of character UDFA values.
- Exceptions
-
OpenTDException Thrown if the DataSubtyperepresents a noncharacter UDFA.
Implements OpenTD.Results.Dataset.IDataset.
◆ GetUdfasAtRecord()
|
abstract |
Gets DataSubtypes UDFA at the given record number.
- Parameters
-
recordNum Record number from which to extract UDFA subtypes.
- Returns
- A list of
DataSubtypeobjects.
Implements OpenTD.Results.Dataset.IDataset.
◆ Relay< T_collection, T_item >()
|
inlineprotected |
- Type Constraints
-
T_collection : System.Collections.IEnumerable
◆ Relay< T_item >()
|
inlineprotected |
◆ ReOpen()
|
abstract |
Implements OpenTD.Results.Dataset.IDataset.
◆ ToString()
|
inline |
◆ UnitsChangedSinceLastRead()
|
inlineprotected |
Property Documentation
◆ AutoCommenter
|
getsetprotected |
◆ AutoNamer
|
getsetprotected |
◆ Comment
|
getset |
Implements OpenTD.Results.Dataset.IAutoComment.
◆ InternalSuggestedComment
|
getset |
Implements OpenTD.Results.Dataset.IAutoComment.
◆ InternalSuggestedName
|
getset |
Implements OpenTD.Results.Dataset.IAutoName.
◆ Name
|
getset |
Implements OpenTD.Results.Dataset.IAutoName.
◆ Source
|
getprotected set |
The name of the source of the data.
Implements OpenTD.Results.Dataset.IDataset.
◆ UDFAManager
|
getsetprotected |
◆ Units
|
getset |
The unit system of the dataset.
Implements OpenTD.Results.Dataset.IDataset.
The documentation for this class was generated from the following file:
- C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV_ALPHA/buildXX/OpenTD.Results/Dataset/Dataset.cs