|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.tasim.props.SimpleContent
se.sics.tasim.props.SimulationStatus
public class SimulationStatus
SimulationStatus
contains in game / simulation status.
Warning: serialized objects of this class might not be compatible with future versions. Only use serialization of this class for temporary storage or RMI using the same version of the class.
Constructor Summary | |
---|---|
SimulationStatus()
|
|
SimulationStatus(int currentDate,
int consumedMillis)
|
|
SimulationStatus(int currentDate,
int consumedMillis,
boolean isSimulationEnded)
|
Method Summary | |
---|---|
int |
getConsumedMillis()
Returns the number of milliseconds passed since start of day when this message was sent. |
int |
getCurrentDate()
|
java.lang.String |
getTransportName()
Returns the transport name used for externalization. |
boolean |
isSimulationEnded()
Returns true if the simulation has ended and
false otherwise. |
void |
read(TransportReader reader)
Reads the state for this transportable from the specified reader. |
java.lang.String |
toString()
|
void |
write(TransportWriter writer)
Writes the state for this transportable to the specified writer. |
Methods inherited from class se.sics.tasim.props.SimpleContent |
---|
getAttribute, getAttribute, getAttributeAsFloat, getAttributeAsInt, getAttributeAsLong, isLocked, lock, params, removeAttribute, setAttribute, setAttribute, setAttribute, setAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimulationStatus()
public SimulationStatus(int currentDate, int consumedMillis)
public SimulationStatus(int currentDate, int consumedMillis, boolean isSimulationEnded)
Method Detail |
---|
public boolean isSimulationEnded()
true
if the simulation has ended and
false
otherwise.
public int getCurrentDate()
public int getConsumedMillis()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTransportName()
public void read(TransportReader reader) throws java.text.ParseException
Transportable
read
in interface Transportable
read
in class SimpleContent
reader
- the reader to read data from
java.text.ParseException
- if a parse error occurspublic void write(TransportWriter writer)
Transportable
write
in interface Transportable
write
in class SimpleContent
writer
- the writer to write data to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |