|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.agent.module.AgentModule<AGENT>
cz.cuni.amis.pogamut.base.agent.module.SensorModule<USAR2004Bot>
cz.cuni.amis.pogamut.usar2004.agent.module.master.SensorSpecificModule<Module>
public class SensorSpecificModule<Module extends SuperSensor>
Module that is used for particular Sensors. We can have multiple type of sensor mounted on our robot. We can use either SensorMasterModule/SensorMasterModuleQueued to gather all SEN messages or SensorSpecificModule to catch just the type we desire.
| Field Summary | |
|---|---|
protected boolean |
flagReaded
|
protected Module |
sensor
|
protected cz.cuni.amis.pogamut.usar2004.agent.module.master.SensorSpecificModule.SensorMessageListener |
sensorListener
|
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.SensorModule |
|---|
worldView |
| Fields inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
|---|
agent, controller, eventBus, log |
| Constructor Summary | |
|---|---|
SensorSpecificModule(USAR2004Bot bot,
Class<Module> c)
Captures and provides data of the first sensor of respective type |
|
SensorSpecificModule(USAR2004Bot bot,
String name,
Class<Module> c)
If we know both type and name of sensor we want to get data from - this ctor is the one to use. |
|
| Method Summary | |
|---|---|
protected void |
cleanUp()
|
protected void |
fillModule(SensorMessage message)
Updates sensor data when either the sensor name was not specified(Than it monitors the first Sensor of this type) or the type and name matches. |
Module |
getModule()
Returns module of specified type by generics. |
boolean |
isReaded()
Check method for making sure we don't use old value. |
Boolean |
isReady()
Collection of sensor data check. |
| Methods inherited from class cz.cuni.amis.pogamut.base.agent.module.AgentModule |
|---|
getComponentId, getLog, getState, initComponentId, isRunning, kill, pause, reset, resume, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected cz.cuni.amis.pogamut.usar2004.agent.module.master.SensorSpecificModule.SensorMessageListener sensorListener
protected Module extends SuperSensor sensor
protected boolean flagReaded
| Constructor Detail |
|---|
public SensorSpecificModule(USAR2004Bot bot,
Class<Module> c)
bot - USAR2004Bot variable for creating sensor instancec - Class definition of Generic class. Ideally we would want to say
Module.class, but that is not possible
public SensorSpecificModule(USAR2004Bot bot,
String name,
Class<Module> c)
bot - USAR2004Bot variable for creating sensor instancename - Name of the modulec - Class definition of Generic class. Ideally we would want to say
Module.class, but that is not possible| Method Detail |
|---|
public Boolean isReady()
public boolean isReaded()
public Module getModule()
protected void fillModule(SensorMessage message)
message - protected void cleanUp()
cleanUp in class cz.cuni.amis.pogamut.base.agent.module.AgentModule<USAR2004Bot>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||