se.sics.tasim.props
Class SimulationStatus

java.lang.Object
  extended by se.sics.tasim.props.SimpleContent
      extended by se.sics.tasim.props.SimulationStatus
All Implemented Interfaces:
java.io.Serializable, Transportable

public class SimulationStatus
extends SimpleContent

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.

See Also:
Serialized Form

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

SimulationStatus

public SimulationStatus()

SimulationStatus

public SimulationStatus(int currentDate,
                        int consumedMillis)

SimulationStatus

public SimulationStatus(int currentDate,
                        int consumedMillis,
                        boolean isSimulationEnded)
Method Detail

isSimulationEnded

public boolean isSimulationEnded()
Returns true if the simulation has ended and false otherwise.


getCurrentDate

public int getCurrentDate()

getConsumedMillis

public int getConsumedMillis()
Returns the number of milliseconds passed since start of day when this message was sent.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTransportName

public java.lang.String getTransportName()
Returns the transport name used for externalization.


read

public void read(TransportReader reader)
          throws java.text.ParseException
Description copied from interface: Transportable
Reads the state for this transportable from the specified reader.

Specified by:
read in interface Transportable
Overrides:
read in class SimpleContent
Parameters:
reader - the reader to read data from
Throws:
java.text.ParseException - if a parse error occurs

write

public void write(TransportWriter writer)
Description copied from interface: Transportable
Writes the state for this transportable to the specified writer.

Specified by:
write in interface Transportable
Overrides:
write in class SimpleContent
Parameters:
writer - the writer to write data to


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.