Class MetaDataDestination
java.lang.Object
org.opentrafficsim.kpi.sampling.meta.MetaDataType<NodeDataInterface>
org.opentrafficsim.kpi.sampling.meta.MetaDataDestination
- All Implemented Interfaces:
Identifiable
public class MetaDataDestination extends MetaDataType<NodeDataInterface>
Accepts trajectories with a destination node included in a set in a query.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Sep 22, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description MetaDataDestination()
-
Method Summary
Modifier and Type Method Description java.lang.String
formatValue(java.lang.String format, NodeDataInterface value)
Formats the value into a string.NodeDataInterface
getValue(GtuDataInterface gtu)
Retrieves the value of the meta data of this type from a GTU.java.lang.String
toString()
-
Constructor Details
-
MetaDataDestination
public MetaDataDestination()
-
-
Method Details
-
getValue
Retrieves the value of the meta data of this type from a GTU.- Specified by:
getValue
in classMetaDataType<NodeDataInterface>
- Parameters:
gtu
- GtuDataInterface; gtu to retrieve the value from- Returns:
- value of the meta data of this type from a GTU, may be
null
if not applicable.
-
formatValue
Formats the value into a string. If the value is numeric, the default implementation is:String.format(format, value.si);
- Specified by:
formatValue
in classMetaDataType<NodeDataInterface>
- Parameters:
format
- String; formatvalue
- T; value- Returns:
- formatted value
-
toString
public java.lang.String toString()- Overrides:
toString
in classMetaDataType<NodeDataInterface>
-