public class FactoryUsed extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
Reason
If success is false, the reason why we couldn't use a factory will be here.
|
protected boolean |
Success
If we have successfully used the factory.
|
| Constructor and Description |
|---|
FactoryUsed()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
FactoryUsed(boolean Success,
String Reason)
Creates new instance of command FactoryUsed.
|
FactoryUsed(FactoryUsed original)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getReason()
If success is false, the reason why we couldn't use a factory will be here.
|
long |
getSimTime() |
boolean |
isSuccess()
If we have successfully used the factory.
|
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected boolean Success
protected String Reason
public FactoryUsed(boolean Success,
String Reason)
Success - If we have successfully used the factory.Reason - If success is false, the reason why we couldn't use a factory will be here.public FactoryUsed(FactoryUsed original)
public FactoryUsed()
public boolean isSuccess()
public String getReason()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.