|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.animator.AnimationMessage
public class AnimationMessage
This class implements a message which is passed from a Simulation to an Animation in the JSIM simulation package. A message specifies one of the operations defined in the Animator interface
Constructor Summary | |
---|---|
AnimationMessage(int id,
java.lang.Object[] parameters,
double time,
java.lang.String operation)
Constructor for AnimationMessage |
Method Summary | |
---|---|
int |
CompareTo(AnimationMessage am)
This method compares 2 AnimationMessage objects to see which one has the most recent timestamp |
boolean |
equals(AnimationMessage am)
This method Compares to AnimatiorMessages to determine if they are equivalent |
int |
getId()
|
java.lang.String |
getOperation()
|
java.lang.Object[] |
getParameters()
|
double |
getTime()
|
java.lang.String |
toString()
Serializes this AnimationMessage for debugging purposes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnimationMessage(int id, java.lang.Object[] parameters, double time, java.lang.String operation)
id
- id of entityparameters
- other parameters for the commandtime
- timestamp for messageoperation
- operation to performMethod Detail |
---|
public int CompareTo(AnimationMessage am)
am
- The AnimationMessage to compare this to
public boolean equals(AnimationMessage am)
am
- The AnimationMessage to compare this to
public int getId()
public java.lang.Object[] getParameters()
public double getTime()
public java.lang.String getOperation()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |