public class Reachable extends InfoMessage implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected Location |
From
Exact location of bot at time of check.
|
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 |
Reachable
True if the bot can run here directly, false otherwise.
|
protected long |
SimTime |
| Constructor and Description |
|---|
Reachable()
Parameter-less contructor for the message.
|
Reachable(Reachable original)
Cloning constructor from the full message.
|
Reachable(String Id,
boolean Reachable,
Location From)
Creates new instance of the message Reachable.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getFrom()
Exact location of bot at time of check.
|
String |
getId()
An Id matching the one sent by client.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
boolean |
isReachable()
True if the bot can run here directly, false otherwise.
|
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 boolean Reachable
protected Location From
public Reachable()
public Reachable(String Id, boolean Reachable, Location From)
Id - An Id matching the one sent by client. Allows bot to match
answer with right querry.Reachable - True if the bot can run here directly, false otherwise.From - Exact location of bot at time of check.public Reachable(Reachable original)
original - public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventprotected void setSimTime(long SimTime)
public String getId()
public boolean isReachable()
public Location getFrom()
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.