Class SurroundingVehicle
- java.lang.Object
-
- org.eclipse.mosaic.lib.objects.vehicle.SurroundingVehicle
-
- All Implemented Interfaces:
Serializable
@Immutable public class SurroundingVehicle extends Object implements Serializable
A container class holding basic information about a surrounding or detected vehicle object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SurroundingVehicle(String id, Position position, double speed, double heading, String edgeId, int laneIndex, double length, double width, double height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getEdgeId()
Returns the current edge of the surrounding vehicle.GeoPoint
getGeographicPosition()
Returns the geographical position of the surrounding vehicle.double
getHeading()
Returns the current heading of the surrounding vehicle.double
getHeight()
Returns the height of the surrounding vehicle.String
getId()
Returns the id of the surrounding vehicle.int
getLaneIndex()
Returns the current lane index of the surrounding vehicle.double
getLength()
Returns the length of the surrounding vehicle.CartesianPoint
getProjectedPosition()
Returns the cartesian position of the surrounding vehicle.double
getSpeed()
Returns the current speed of the surrounding vehicle.double
getWidth()
Returns the width of the surrounding vehicle.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getId
public String getId()
Returns the id of the surrounding vehicle.
-
getProjectedPosition
public CartesianPoint getProjectedPosition()
Returns the cartesian position of the surrounding vehicle.
-
getGeographicPosition
public GeoPoint getGeographicPosition()
Returns the geographical position of the surrounding vehicle.
-
getSpeed
public double getSpeed()
Returns the current speed of the surrounding vehicle. Unit: [m/s]
-
getHeading
public double getHeading()
Returns the current heading of the surrounding vehicle. Unit: [degrees from north clockwise]
-
getEdgeId
public String getEdgeId()
Returns the current edge of the surrounding vehicle.
-
getLaneIndex
public int getLaneIndex()
Returns the current lane index of the surrounding vehicle.
-
getLength
public double getLength()
Returns the length of the surrounding vehicle. Unit: [m]
-
getWidth
public double getWidth()
Returns the width of the surrounding vehicle. Unit: [m]
-
getHeight
public double getHeight()
Returns the height of the surrounding vehicle. Unit: [m]
-
-