Class VehicleUnit.PerceptionEgoVehicleAdapter
java.lang.Object
org.eclipse.mosaic.fed.application.ambassador.simulation.VehicleUnit.PerceptionEgoVehicleAdapter
- All Implemented Interfaces:
PerceptionEgo
- Enclosing class:
- VehicleUnit
Adapter for Vehicle Units to provide access to necessary data and functions for the
We don't let
SimplePerceptionModule.We don't let
VehicleUnit implement the PerceptionEgo interface directly to avoid exposing methods which are
relevant for perception only.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the heading in degrees of this perceiving ego entity.getId()Returns the unit ID of this perceiving ego entity.Returns the projected position in cartesian coordinates of this perceiving ego entity.Returns a list of walls in vicinity of this perceiving ego entity.doubleReturns the maximum viewing range of this perceiving ego entity.
-
Constructor Details
-
PerceptionEgoVehicleAdapter
-
-
Method Details
-
getId
Description copied from interface:PerceptionEgoReturns the unit ID of this perceiving ego entity.- Specified by:
getIdin interfacePerceptionEgo
-
getProjectedPosition
Description copied from interface:PerceptionEgoReturns the projected position in cartesian coordinates of this perceiving ego entity.- Specified by:
getProjectedPositionin interfacePerceptionEgo
-
getHeading
public double getHeading()Description copied from interface:PerceptionEgoReturns the heading in degrees of this perceiving ego entity.- Specified by:
getHeadingin interfacePerceptionEgo
-
getViewingRange
public double getViewingRange()Description copied from interface:PerceptionEgoReturns the maximum viewing range of this perceiving ego entity.- Specified by:
getViewingRangein interfacePerceptionEgo
-
getSurroundingWalls
Description copied from interface:PerceptionEgoReturns a list of walls in vicinity of this perceiving ego entity.- Specified by:
getSurroundingWallsin interfacePerceptionEgo
-