|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sics.tasim.is.SimulationInfo
public class SimulationInfo
Field Summary | |
---|---|
static java.lang.String |
RESERVED
|
Constructor Summary | |
---|---|
SimulationInfo()
|
|
SimulationInfo(int id,
java.lang.String type,
java.lang.String params,
int simulationLength)
|
Method Summary | |
---|---|
boolean |
addParticipant(int agentID,
int role)
Adds the specified agent with the specified role. |
void |
copyParticipants(SimulationInfo info)
|
long |
getEndTime()
|
int |
getFlags()
|
int |
getID()
|
java.lang.String |
getParameter(java.lang.String name)
|
int |
getParameter(java.lang.String name,
int defaultValue)
|
java.lang.String |
getParams()
|
int |
getParticipantCount()
|
int |
getParticipantID(int index)
|
int |
getParticipantRole(int index)
|
int |
getSimulationID()
|
int |
getSimulationLength()
Returns the simulation length in milliseconds |
long |
getStartTime()
|
java.lang.String |
getTransportName()
Returns the transport name used for externalization. |
java.lang.String |
getType()
|
boolean |
hasSimulationID()
|
int |
indexOfParticipant(int agentID)
|
boolean |
isBuiltinParticipant(int index)
|
boolean |
isEmpty()
|
boolean |
isFull()
|
boolean |
isParticipant(int agentID)
|
boolean |
isReservation()
|
void |
read(TransportReader reader)
Reads the state for this transportable from the specified reader. |
void |
setFlags(int flags)
|
void |
setFull()
|
void |
setSimulationID(int simulationID)
|
void |
setStartTime(long startTime)
|
java.lang.String |
toString()
|
void |
write(TransportWriter writer)
Writes the state for this transportable to the specified writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESERVED
Constructor Detail |
---|
public SimulationInfo(int id, java.lang.String type, java.lang.String params, int simulationLength)
public SimulationInfo()
Method Detail |
---|
public int getID()
public boolean isReservation()
public java.lang.String getType()
public java.lang.String getParams()
public java.lang.String getParameter(java.lang.String name)
public int getParameter(java.lang.String name, int defaultValue)
public boolean hasSimulationID()
public int getSimulationID()
public void setSimulationID(int simulationID)
public long getStartTime()
public void setStartTime(long startTime)
public long getEndTime()
public int getSimulationLength()
public boolean isEmpty()
public boolean isFull()
public void setFull()
public int getFlags()
public void setFlags(int flags)
public int getParticipantCount()
public int getParticipantID(int index)
public boolean isBuiltinParticipant(int index)
public int getParticipantRole(int index)
public int indexOfParticipant(int agentID)
public boolean isParticipant(int agentID)
public boolean addParticipant(int agentID, int role)
agentID
- the id of the participating agent to addrole
- the role of the agent (as specified by the simulation manager)public void copyParticipants(SimulationInfo info)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTransportName()
Transportable
getTransportName
in interface Transportable
public void read(TransportReader reader) throws java.text.ParseException
Transportable
read
in interface Transportable
reader
- the reader to read data from
java.text.ParseException
- if a parse error occurspublic void write(TransportWriter writer)
Transportable
write
in interface Transportable
writer
- the writer to write data to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |