Class SurroundingVehicle
java.lang.Object
org.eclipse.mosaic.lib.objects.vehicle.SurroundingVehicle
- All Implemented Interfaces:
Serializable
A container class holding basic information about a surrounding or detected vehicle object.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSurroundingVehicle
(String id, Position position, double speed, double heading, String edgeId, int laneIndex, double length, double width, double height) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the current edge of the surrounding vehicle.Returns the geographical position of the surrounding vehicle.double
Returns the current heading of the surrounding vehicle.double
Returns the height of the surrounding vehicle.getId()
Returns the id of the surrounding vehicle.int
Returns the current lane index of the surrounding vehicle.double
Returns the length of the surrounding vehicle.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()
toString()
-
Constructor Details
-
SurroundingVehicle
-
-
Method Details
-
getId
Returns the id of the surrounding vehicle. -
getProjectedPosition
Returns the cartesian position of the surrounding vehicle. -
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
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] -
equals
-
hashCode
public int hashCode() -
toString
-