|
||||||||||
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.StartInfo
public class StartInfo
StartInfo
holds information about a game / simulation. It is
sent (wrapped in a Message) to all participating agents in the beginning of a
game.
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 | |
---|---|
StartInfo()
|
|
StartInfo(int simulationID,
long startTime,
int simulationLength,
int secondsPerDay)
|
Method Summary | |
---|---|
long |
getEndTime()
|
int |
getNumberOfDays()
Returns the number of days in the simulation. |
int |
getSecondsPerDay()
Returns the length of each simulated day in seconds. |
int |
getSimulationID()
Returns the id of the simulation. |
int |
getSimulationLength()
Returns the length of the simulation in milliseconds. |
long |
getStartTime()
|
java.lang.String |
getTransportName()
Returns the transport name used for externalization. |
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 StartInfo()
public StartInfo(int simulationID, long startTime, int simulationLength, int secondsPerDay)
Method Detail |
---|
public int getSimulationID()
public long getStartTime()
public long getEndTime()
public int getSimulationLength()
public int getSecondsPerDay()
public int getNumberOfDays()
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 |