public class ResponseMessage extends GBEvent implements cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent, cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected String |
Config |
protected List<String> |
FOVs |
protected List<String> |
Names |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected List<String> |
Statuses |
protected double |
Time |
protected String |
Type |
protected List<String> |
Viewports |
| Constructor and Description |
|---|
ResponseMessage()
Used by Yylex to create empty message then to fill it's protected fields
(Yylex is in the same package).
|
ResponseMessage(double Time,
String Type,
String Config,
String Status) |
ResponseMessage(ResponseMessage original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfig()
Describes the current viewport configuration.
|
List<String> |
getFOVs()
Each value is the current field of view of the camera being described, in
radians.
|
List<String> |
getNames()
Name of the camera that will be described by the next two parameters: FOV
and Status.
|
List<String> |
getStatuses()
Status of the viewport configuration after the SET command has been
issued.
|
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.
|
List<String> |
getViewports()
Each value is the name of the camera currently attached to viewportN,
where N is 1..4.
|
String |
toHtmlString()
Gets all properties and values to create a HTML formated string;
|
String |
toString() |
getSimTime, getWorldEventtoJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String PROTOTYPE
protected double Time
protected String Type
protected String Config
public ResponseMessage(ResponseMessage original)
public ResponseMessage()
public double getTime()
public String getType()
public String getConfig()
public List<String> getStatuses()
public List<String> getViewports()
public List<String> getNames()
public List<String> getFOVs()
public String toString()
toString in class cz.cuni.amis.pogamut.base.communication.messages.InfoMessagepublic String toHtmlString()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.