Package org.baseagent.embodied.sensors
Class AllSignalSensor
java.lang.Object
org.baseagent.grid.GridPosition
org.baseagent.embodied.sensors.EmbodiedSensor
org.baseagent.embodied.sensors.AllSignalSensor
- All Implemented Interfaces:
HasGridPosition
,Sensor
A SignalSensor detects a Signal.
Example sensors:
- Light sensor
- Sound sensor
- Pheromone sensor
- Vision sensor
You can really sense a bunch of things:
- A signal in the environment
- Something physical about the environment, like the surface you're standing on, or whether you're near another agent
- Internal states
- Author:
- David Koelle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Posts a list of every signal found by the sensorMethods inherited from class org.baseagent.embodied.sensors.EmbodiedSensor
getGridLayer, getLayerName
Methods inherited from class org.baseagent.grid.GridPosition
equals, getCellX, getCellY, getHeading, hashCode, setCellX, setCellY, toString
-
Constructor Details
-
AllSignalSensor
-
-
Method Details
-
sense
Posts a list of every signal found by the sensor- Specified by:
sense
in interfaceSensor
- Specified by:
sense
in classEmbodiedSensor
-
getDirectionPort
-
getIntensityPort
-
getValuePort
-