|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.usar2004.agent.module.response.SuperResponse
public abstract class SuperResponse
Parent class for all possible response messages. It covers the basic and common properties for all the response subjects.
Field Summary | |
---|---|
protected ResponseMessage |
lastMessage
|
protected ResponseType |
type
|
Constructor Summary | |
---|---|
SuperResponse(ResponseType type)
Ctor. |
Method Summary | |
---|---|
ResponseType |
getResponseType()
ResponseType is a descriptor used for creating particular instance and for getting type information about particular response message. |
double |
getTime()
Timestamp form the UT since server start in seconds. |
String |
getType()
Type of the response will be one of the following: "ViewPorts”, “Camera”, or some type of sensor or effecter. |
Boolean |
isReady()
Used to make sure the object is filled. |
void |
updateMessage(ResponseMessage message)
Method used for updating the message object that provides particular properties for given type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ResponseMessage lastMessage
protected ResponseType type
Constructor Detail |
---|
public SuperResponse(ResponseType type)
type
- Response type describes particular subject about which we
want to know about. It is used to distinguish incoming message from the
server.Method Detail |
---|
public Boolean isReady()
public double getTime()
public String getType()
public ResponseType getResponseType()
public void updateMessage(ResponseMessage message)
message
- Response message from server.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |