Class SimplePerceptionModule
- java.lang.Object
-
- org.eclipse.mosaic.fed.application.ambassador.simulation.perception.AbstractPerceptionModule
-
- org.eclipse.mosaic.fed.application.ambassador.simulation.perception.SimplePerceptionModule
-
- All Implemented Interfaces:
PerceptionModule<SimplePerceptionConfiguration>
public class SimplePerceptionModule extends AbstractPerceptionModule
A perception module which detects all vehicles within the defined field of view.
-
-
Field Summary
-
Fields inherited from class org.eclipse.mosaic.fed.application.ambassador.simulation.perception.AbstractPerceptionModule
configuration, database, log, owner
-
-
Constructor Summary
Constructors Constructor Description SimplePerceptionModule(PerceptionModuleOwner owner, Database database, org.slf4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enable(SimplePerceptionConfiguration configuration)
Enables and configures this perception module.List<SpatialObject>
getObjectsInRange()
Collection<Edge<Vector3d>>
getSurroundingWalls()
Call to get surrounding building walls.List<TrafficLightObject>
getTrafficLightsInRange()
-
Methods inherited from class org.eclipse.mosaic.fed.application.ambassador.simulation.perception.AbstractPerceptionModule
getConfiguration, getPerceivedObjects, getPerceivedTrafficLights, getPerceivedVehicles, isEnabled
-
-
-
-
Constructor Detail
-
SimplePerceptionModule
public SimplePerceptionModule(PerceptionModuleOwner owner, Database database, org.slf4j.Logger log)
-
-
Method Detail
-
enable
public void enable(SimplePerceptionConfiguration configuration)
Description copied from interface:PerceptionModule
Enables and configures this perception module.- Specified by:
enable
in interfacePerceptionModule<SimplePerceptionConfiguration>
- Overrides:
enable
in classAbstractPerceptionModule
- Parameters:
configuration
- the configuration object
-
getTrafficLightsInRange
public List<TrafficLightObject> getTrafficLightsInRange()
-
getObjectsInRange
public List<SpatialObject> getObjectsInRange()
-
getSurroundingWalls
public Collection<Edge<Vector3d>> getSurroundingWalls()
Description copied from interface:PerceptionModule
Call to get surrounding building walls.- Specified by:
getSurroundingWalls
in interfacePerceptionModule<SimplePerceptionConfiguration>
- Specified by:
getSurroundingWalls
in classAbstractPerceptionModule
- Returns:
- a list of all surrounding building walls in the for of
Edge
s
-
-