public abstract class SuperResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ResponseMessage |
lastMessage |
protected ResponseType |
type |
| Constructor and Description |
|---|
SuperResponse(ResponseType type)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected ResponseMessage lastMessage
protected ResponseType type
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.public Boolean isReady()
public double getTime()
public String getType()
public ResponseType getResponseType()
public void updateMessage(ResponseMessage message)
message - Response message from server.Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.