public class FastTraceResponse extends InfoMessage implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected Location |
From
Location from which the ray is emitted.
|
protected String |
Id
An Id matching the one sent by client.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected boolean |
Result
True if it hit something, false if not.
|
protected long |
SimTime |
protected Location |
To
Location to which the ray is sent.
|
| Constructor and Description |
|---|
FastTraceResponse()
Parameter-less contructor for the message.
|
FastTraceResponse(FastTraceResponse original)
Cloning constructor from the full message.
|
FastTraceResponse(String Id,
Location From,
Location To,
boolean Result)
Creates new instance of the message FastTraceResponse.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getFrom()
Location from which the ray is emitted.
|
String |
getId()
An Id matching the one sent by client.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
Location |
getTo()
Location to which the ray is sent.
|
boolean |
isResult()
True if it hit something, false if not.
|
protected void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toJsonLiteral() |
String |
toString() |
public static final String PROTOTYPE
protected long SimTime
protected String Id
protected Location From
protected Location To
protected boolean Result
public FastTraceResponse()
public FastTraceResponse(String Id, Location From, Location To, boolean Result)
Id - An Id matching the one sent by client. Allows bot to match
answer with right query.From - Location from which the ray is emitted.To - Location to which the ray is sent.Result - True if it hit something, false if not.public FastTraceResponse(FastTraceResponse original)
original - public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventprotected void setSimTime(long SimTime)
public String getId()
public Location getFrom()
public Location getTo()
public boolean isResult()
public String toString()
toString in class InfoMessagepublic String toHtmlString()
public String toJsonLiteral()
toJsonLiteral in class InfoMessageCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.