Assembly: OpenTD.Results.dll Data is returned from Datasets in the form of DataArrays, which in addition to containing the actual data, also know the physical dimension of the data, what units it is in, and have a reference to the Dataset it came from. Use the GetValues methods to get the data as lists of doubles, or use DataArrays directly as inputs to SimplePlots.
Inheritance
object ← DataArrayDerived
DerivedDataArrayImplements
IEnumerable<double>, IEnumerableInherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()Constructors
DataArray(DataItemIdentifier, IEnumerable<double>, UnitsData)
Parameters
dataItem DataItemIdentifier
values IEnumerable<double>
units UnitsData
DataArray()
DataArray(IEnumerable<double>)
Initializes a new instance of the DataArray class, assuming dimensionless data.Parameters
values IEnumerable<double>
The values.
DataArray(DataSubtype, IEnumerable<double>, UnitsData, ItemIdentifier)
Parameters
subtype DataSubtype
values IEnumerable<double>
units UnitsData
item ItemIdentifier
DataArray(DataArray)
Parameters
x DataArray
Fields
ValuesSI
Field Value
List<double>Properties
AutoCommenter
Property Value
AutoCommenterAutoNamer
Property Value
AutoNamerComment
Property Value
stringCount
The number of items in this DataArray.Property Value
intDimension
The physical dimension of this data.Property Value
UnitsData.UnitsTypeInternalSuggestedComment
Property Value
stringInternalSuggestedName
Property Value
stringIsInteger
Returns true if the subtype of this data represents integer data.Property Value
boolName
Property Value
stringSourceDataItem
Combines the SourceItem and Subtype. If either are null, this is null.Property Value
DataItemIdentifierSourceDataset
The source Dataset for this data.Property Value
IDatasetSourceItem
Identifies the item (node, lump, register, etc.) this data came from.Property Value
ItemIdentifierSubtype
The DataSubtype (T, TL, PL, GTX, etc.)Property Value
DataSubtypethis[int]
Property Value
doubleMethods
CheckData()
GetEnumerator()
Returns an enumerator that iterates through the collection.Returns
IEnumerator<double> An enumerator that can be used to iterate through the collection.GetSelfSuggestedComment()
Returns
stringGetSelfSuggestedName()
Returns
stringGetValues()
Gets the data in the current WorkingUnits.Returns
List<double> List<System.Double>.See Also
Units.WorkingUnitsGetValues(UnitsData)
Gets the data in the units provided.Parameters
units UnitsData
The units to return the data in.
Returns
List<double> List<System.Double>.SetValues(IEnumerable<double>, DataSubtype, UnitsData, ItemIdentifier)
Parameters
values IEnumerable<double>
subtype DataSubtype
units UnitsData
item ItemIdentifier
ToString()
Returns a string that represents the current object.Returns
string A string that represents the current object.Operators
implicit operator List<double>(DataArray)
Parameters
x DataArray
Returns
List<double>implicit operator List<DataArray>(DataArray)
Parameters
x DataArray