Skip to main content

OpenTD reference 2026 R1

Class ConcatenatedDataset

Last update: 09.03.2026

Namespace: OpenTD.Results.Dataset
Assembly: OpenTD.Results.dll

A DerivedDataset that joins its InputDatasets together. Use it when you have multiple Datasets that represent sequential events. You can use the bool ShiftTimes to determine whether it adds the previous final time to all the times in the next Dataset. The default is that it does, i.e., it assumes that all of your input Datasets start at time 0.

public class ConcatenatedDataset : DerivedDataset, IDataset

Inheritance

object ← Dataset ← RecordFocusedDataset ← DerivedDataset ← ConcatenatedDataset

Implements

IDataset

Inherited Members

DerivedDataset.InputDatasets, DerivedDataset.Source, DerivedDataset.GetThermalSubmodels(), DerivedDataset.GetFluidSubmodels(), DerivedDataset.GetRegisterNames(), DerivedDataset.GetNodeIds(string), DerivedDataset.GetLumpIds(string), DerivedDataset.GetPathIds(string), DerivedDataset.GetTieIds(string), DerivedDataset.GetFtieIds(string), DerivedDataset.GetIfaceIds(string), DerivedDataset.GetConductorIds(string), DerivedDataset.Close(), DerivedDataset.ReOpen(), DerivedDataset.CheckInputDatasets(), Dataset.GetData(DataItemIdentifierCollection), Dataset.GetUdcaData(DataItemIdentifierCollection), Dataset.GetData(params string[]), Dataset.GetData(ItemIdentifierCollection, DataSubtype, UnitsData), Dataset.GetDataAtRecord(DataSubtype, long), Dataset.GetRegisterDataAtRecord(long, DataSubtype, UnitsData), Dataset.GetUdfasAtRecord(long), Dataset.GetUdcaDataAtRecord(DataSubtype, long), Dataset.GetConstraintData(long, DataSubtype, UnitsData), Dataset.GetReliabilityData(long, DataSubtype, UnitsData), Dataset.GetRegisterData(string, DataSubtype, UnitsData), Dataset.GetRecordNumbers(), Dataset.GetRecordNumbersAsDataArray(), Dataset.GetRecordNames(), Dataset.GetTimes(), Dataset.GetTimesOrRecordNumbers(), Dataset.GetNsol(long), Dataset.GetNpcsrec(long), Dataset.GetSigma(), Dataset.GetAbszro(), Dataset.GetPatmos(), Dataset.GetLoopctData(), Dataset.GetLoopcoData(), Dataset.GetNamedInt(IntegerNames), Dataset.GetNamedInt(string), Dataset.GetNamedIntArray(ArrayIntegerNames), Dataset.GetNamedIntArray(string), Dataset.GetThermalSubmodels(), Dataset.GetFluidSubmodels(), Dataset.GetRegisterNames(), Dataset.GetLumpIds(string), Dataset.GetPathIds(string), Dataset.GetTieIds(string), Dataset.GetFtieIds(string), Dataset.GetIfaceIds(string), Dataset.GetNodeIds(string), Dataset.GetConductorIds(string), Dataset.GetInternalIndex(DataTypes, string, long), Dataset.GetInternalIndex(string), Dataset.Units, Dataset.UnitsChangedSinceLastRead(), Dataset.Source, Dataset.Close(), Dataset.ReOpen(), Dataset.UDFAManager, Dataset.GetUDFAManager(), Dataset.AutoNamer, Dataset.Name, Dataset.InternalSuggestedName, Dataset.GetSelfSuggestedName(), Dataset.ToString(), Dataset.AutoCommenter, Dataset.Comment, Dataset.InternalSuggestedComment, Dataset.GetSelfSuggestedComment(), Dataset.Relay<T_collection, T_item>(T_collection), Dataset.Relay<T_item>(List<T_item>), object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

ConcatenatedDataset()

public ConcatenatedDataset()

Properties

ShiftTimes

Determines whether this ConcatenatedDataset adds the previous final time to all the times in the next InputDataset. The default is that it does, i.e., it assumes that all of your input Datasets start at time 0.

public bool ShiftTimes { get; set; }

Property Value

bool

Source

If the InputDatasets have a common source, it will be returned here.

public override string Source { get; protected set; }

Property Value

string

Exceptions

OpenTDException

Cannot set DerivedDataArray.SourceDataset directly. It will be derived from InputArrays.

Methods

GetAbszro()

public override Dimensional<Temp> GetAbszro()

Returns

Dimensional<Temp>

GetConstraintData(long, DataSubtype, UnitsData)

public override DataArray GetConstraintData(long constraintNumber, DataSubtype subtype = null, UnitsData units = null)

Parameters

constraintNumber long

subtype DataSubtype

units UnitsData

Returns

DataArray

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.

public override DataArray GetDataAtRecord(DataSubtype subtype, long recordNum)

Parameters

subtype DataSubtype

recordNum long

Returns

DataArray

Exceptions

OpenTDException

Thrown if the DataSubtype represents a character UDFA.

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 or if the index is not the same across all input datasets.

public override long GetInternalIndex(DataTypes dataType, string submodel, long id)

Parameters

dataType DataTypes

submodel string

id long

Returns

long

GetLoopcoData()

public override List<long> GetLoopcoData()

Returns

List<long>

GetLoopctData()

public override List<long> GetLoopctData()

Returns

List<long>

GetNamedInt(string)

public override long GetNamedInt(string name)

Parameters

name string

Returns

long

GetNamedIntArray(string)

public override List<long> GetNamedIntArray(string name)

Parameters

name string

Returns

List<long>

GetNpcsrec(long)

public override long GetNpcsrec(long recordNum)

Parameters

recordNum long

Returns

long

GetNsol(long)

public override long GetNsol(long recordNum)

Parameters

recordNum long

Returns

long

GetPatmos()

public override Dimensional<Pressure> GetPatmos()

Returns

Dimensional<Pressure>

GetRecordNames()

public override List<string> GetRecordNames()

Returns

List<string>

GetRecordNumbers()

public override List<long> GetRecordNumbers()

Returns

List<long>

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.

public override DataArray GetRegisterDataAtRecord(long recordNum, DataSubtype subtype = null, UnitsData units = null)

Parameters

recordNum long

subtype DataSubtype

units UnitsData

Returns

DataArray

See Also

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

GetReliabilityData(long, DataSubtype, UnitsData)

public override DataArray GetReliabilityData(long reliabilityNumber, DataSubtype subtype = null, UnitsData units = null)

Parameters

reliabilityNumber long

subtype DataSubtype

units UnitsData

Returns

DataArray

GetSigma()

public override Dimensional<StefanBoltzmann> GetSigma()

Returns

Dimensional<StefanBoltzmann>

GetTimes()

public override DataArray GetTimes()

Returns

DataArray

GetUdcaDataAtRecord(DataSubtype, long)

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

public override List<string> GetUdcaDataAtRecord(DataSubtype subtype, long recordNum)

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.

public override List<DataSubtype> GetUdfasAtRecord(long recordNum)

Parameters

recordNum long

Record number from which to extract UDFA subtypes.

Returns

List<DataSubtype>

A list of DataSubtype objects.

See Also

DerivedDataset, ConcatenatedDataset.ShiftTimes

Connect with Ansys