Package org.opentrafficsim.sim0mq.kpi
Class NodeData
java.lang.Object
org.opentrafficsim.sim0mq.kpi.NodeData
- All Implemented Interfaces:
Identifiable,NodeDataInterface
public class NodeData extends java.lang.Object implements NodeDataInterface
Copyright (c) 2013-2020 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 13 okt. 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description NodeData(java.lang.String nodeName, CartesianPoint position) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()java.lang.StringgetNodeName()CartesianPointgetPosition()inthashCode()java.lang.StringtoString()
-
Constructor Details
-
NodeData
- Parameters:
nodeName- String; name of the nodeposition- CartesianPoint; position of the node
-
-
Method Details
-
getNodeName
public final java.lang.String getNodeName()- Returns:
- nodeName
-
getPosition
- Returns:
- position
-
getId
public java.lang.String getId()- Specified by:
getIdin interfaceIdentifiable- Specified by:
getIdin interfaceNodeDataInterface
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-