public class ResponseModule extends cz.cuni.amis.pogamut.base.agent.module.SensorModule<USAR2004Bot>
| Modifier and Type | Field and Description |
|---|---|
protected cz.cuni.amis.pogamut.usar2004.agent.module.master.ResponseModule.ResponseMessageListener |
confListener |
protected static ResponseModule |
singleton |
| Modifier and Type | Method and Description |
|---|---|
protected SuperResponse |
createNewSensor(ResponseMessage message)
Asks ResponseType enum if it knows ResponseType represented by string
type.
|
static ResponseModule |
getModuleInstance(USAR2004Bot bot)
Method for obtaining the singleton.
|
SuperResponse |
peek()
This method offers to peek on the beginning of the queue, but the queue
stays intact.
|
SuperResponse |
pull()
Removes one message from the queue and offers this very object as an
output.
|
int |
size()
Returns number of messages waiting in the queue.
|
protected cz.cuni.amis.pogamut.usar2004.agent.module.master.ResponseModule.ResponseMessageListener confListener
protected static ResponseModule singleton
protected SuperResponse createNewSensor(ResponseMessage message)
type - String representing possible valid ResponseType.public static ResponseModule getModuleInstance(USAR2004Bot bot)
bot - USAR2004Bot parameter for creation of the singleton instance
when called for the first time.public SuperResponse peek()
public SuperResponse pull()
public int size()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.