public class AnimationChange extends InfoMessage implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
AnimEnd
True if this animation has ended.
|
protected boolean |
AnimStart
True if this animation has now started.
|
protected String |
Name
Name of the animation.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected long |
SimTime |
protected double |
Time
Time of the animation change.
|
| Constructor and Description |
|---|
AnimationChange()
Parameter-less contructor for the message.
|
AnimationChange(AnimationChange original)
Cloning constructor from the full message.
|
AnimationChange(String Name,
boolean AnimStart,
boolean AnimEnd,
double Time)
Creates new instance of the message AnimationChange.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Name of the animation.
|
long |
getSimTime()
Simulation time in MILLI SECONDS !!!
|
double |
getTime()
Time of the animation change.
|
boolean |
isAnimEnd()
True if this animation has ended.
|
boolean |
isAnimStart()
True if this animation has now started.
|
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 Name
protected boolean AnimStart
protected boolean AnimEnd
protected double Time
public AnimationChange()
public AnimationChange(String Name, boolean AnimStart, boolean AnimEnd, double Time)
Name - Name of the animation.AnimStart - True if this animation has now started.AnimEnd - True if this animation has ended.Time - Time of the animation change.public AnimationChange(AnimationChange original)
original - public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventprotected void setSimTime(long SimTime)
public String getName()
public boolean isAnimStart()
public boolean isAnimEnd()
public double getTime()
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.