Assembly: OpenTD.Results.dll A DerivedDataArray is a DataArray that gets its data by operating on its InputCollection of DataArrays. For example, a SelectMaxDataArray selects the DataArray with the maximum value and returns data from it only. An AverageDataArray returns the average value of its InputCollection at each record. To create your own custom DerivedDataArray, inherit from this class and override at least the SetDerivedData() method.
Inheritance
object ← DataArray ← DerivedDataArrayDerived
FormulaDataArray, OneSubtypeDerivedDataArray, SelectOneDataArrayImplements
IEnumerable<double>, IEnumerableInherited Members
DataArray.SetValues(IEnumerable<double>, DataSubtype, UnitsData, ItemIdentifier), DataArray.SourceDataset, DataArray.SourceItem, DataArray.Subtype, DataArray.SourceDataItem, DataArray.Dimension, DataArray.IsInteger, DataArray.GetValues(), DataArray.GetValues(UnitsData), DataArray.Count, DataArray.this[int], DataArray.ValuesSI, DataArray.CheckData(), DataArray.AutoNamer, DataArray.Name, DataArray.InternalSuggestedName, DataArray.GetSelfSuggestedName(), DataArray.ToString(), DataArray.AutoCommenter, DataArray.Comment, DataArray.InternalSuggestedComment, DataArray.GetSelfSuggestedComment(), DataArray.GetEnumerator(), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()Constructors
DerivedDataArray(DataArrayCollection)
Parameters
inputCollection DataArrayCollection
DerivedDataArray()
Properties
Count
The number of items in this DataArray.Property Value
intIgnoreNaNInCalculations
Property Value
boolInputCollection
The collection of DataArrays operated upon to derive data.Property Value
DataArrayCollectionSourceDataset
The source Dataset for the InputCollection.Property Value
IDatasetExceptions
OpenTDException Cannot set DerivedDataArray.SourceDataset directly. It will be derived from InputArrays.SourceItem
The SourceItem for the InputCollection.Property Value
ItemIdentifierExceptions
OpenTDException Cannot set DerivedDataArray.SourceItem directly. It will be derived from InputArrays.this[int]
Property Value
doubleMethods
CheckData()
GetSelfSuggestedName()
Returns
stringGetValues(UnitsData)
Gets the data in the units provided.Parameters
units UnitsData
The units to return the data in.