Package org.eclipse.mosaic.lib.objects
Class UnitData
java.lang.Object
org.eclipse.mosaic.lib.objects.UnitData
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AgentData
,ChargingStationData
,InductionLoopInfo
,LaneAreaDetectorInfo
,VehicleData
General unit data container for e.g. position, time etc.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnitData
Creates a newUnitData
.- Parameters:
time
- time of the last updatename
- name of the unitposition
- position of the unit
-
-
Method Details
-
getTime
public long getTime()Getter for the time of the last update.- Returns:
- Time of the last update
- See Also:
-
time
-
getName
Returns the unique string identifying the unit.- See Also:
-
name
-
getPosition
Returns the current geographical position of the unit. -
hashCode
public int hashCode() -
equals
-
toString
-