Package org.opentrafficsim.kpi.sampling
Class DataType<T,G extends GtuData>
java.lang.Object
org.opentrafficsim.kpi.sampling.DataType<T,G>
- Type Parameters:
T- type of valueG- GTU data type
- All Implemented Interfaces:
Identifiable
- Direct Known Subclasses:
ExtendedDataType,FilterDataType
Abstract class for defining a type of extended or filter data.
Copyright (c) 2013-2026 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataType
Constructor setting the id.- Parameters:
id- iddescription- descriptiontype- type class
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getDescription
Returns the description.- Returns:
- description
-
getType
Returns the value type.- Returns:
- the value type
-
getValue
Retrieves the value of the data of this type from a GTU.- Parameters:
gtu- gtu to retrieve the value from- Returns:
- value of the data of this type from a GTU, may be empty if not applicable.
-
hashCode
public final int hashCode() -
equals
-