|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.usar2004.communication.messages.GBEvent cz.cuni.amis.pogamut.usar2004.communication.messages.usarinfomessages.ResponseMessage
public class ResponseMessage
Response message reports the message that user's been asking for. Please note that the robot Response message parameters depend on the type of robot that you are driving. For example, a robot of type “GroundVehicle” will not have the same Response message as a robot of type “AerialVehicle.” * Corresponding GameBots message is RES. A response message is delivered to describe the status of a command that has been sent to USARSim. Response messages are used so that users can tell whether or not particular commands were successfully executed. There are three different response messages. The first response message is issued after a SET {Type Viewports} command. The second response messaged is issued after a SET {Type Camera} command. The third response message is a generic message used for sensors and effecters. After a SET {Type Viewports} command, the response message will be issued.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class cz.cuni.amis.pogamut.usar2004.communication.messages.GBEvent |
---|
getSimTime, getWorldEvent |
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
---|
toJsonLiteral |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent |
---|
getSimTime |
Methods inherited from interface cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent |
---|
getSimTime |
Field Detail |
---|
public static final String PROTOTYPE
protected double Time
protected String Type
protected String Config
protected List<String> Statuses
protected List<String> Viewports
protected List<String> Names
protected List<String> FOVs
Constructor Detail |
---|
public ResponseMessage(double Time, String Type, String Config, String Status)
public ResponseMessage(ResponseMessage original)
public ResponseMessage()
Method Detail |
---|
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.InfoMessage
public String toHtmlString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |