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>
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
ConstructorsConstructorDescriptionSimplePerceptionModule
(PerceptionModuleOwner owner, Database database, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionvoid
enable
(SimplePerceptionConfiguration configuration) Enables and configures this perception module.List<SpatialObject<?>>
Call to get surrounding building walls.Methods inherited from class org.eclipse.mosaic.fed.application.ambassador.simulation.perception.AbstractPerceptionModule
getConfiguration, getPerceivedObjects, getPerceivedTrafficLights, getPerceivedVehicles, isEnabled
-
Constructor Details
-
SimplePerceptionModule
-
-
Method Details
-
enable
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
-
getObjectsInRange
-
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
-