Query Cycle Simulator HEADER

qcsim.impl
Class QueryCycleManagerRun

java.lang.Object
  |
  +--qcsim.impl.QueryCycleManagerRun
All Implemented Interfaces:
QueryCycleManager, java.io.Serializable

public class QueryCycleManagerRun
extends java.lang.Object
implements QueryCycleManager, java.io.Serializable

Creates and initializes system components.

Version:
1.0
Author:
unascribed
See Also:
Serialized Form

Constructor Summary
QueryCycleManagerRun(int maxCycle)
          Constructor
 
Method Summary
 void description(PeerDescription desc)
          Add a new peer description to this manager
 InitializationManager initializationManager()
          There is no initialization manager for a saved simulation.
 PeerDescription peer(int peerID)
          The peer description for peer with id peerID
 int peers()
          The number of peers managed by this object.
 QueryCycleManager reset()
          The manager reset to cycle 0;
 void save(java.lang.String filename)
          Save the current simulation
 Simulator simulator()
          The simulator used to update the current cycle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCycleManagerRun

public QueryCycleManagerRun(int maxCycle)
Constructor

Parameters:
maxCycle - The maximum number of cycles simulated during this run.
Method Detail

initializationManager

public InitializationManager initializationManager()
There is no initialization manager for a saved simulation.

Specified by:
initializationManager in interface QueryCycleManager
Returns:
null.

simulator

public Simulator simulator()
The simulator used to update the current cycle.

Specified by:
simulator in interface QueryCycleManager
Returns:
the system simulator.

peers

public int peers()
The number of peers managed by this object.

Specified by:
peers in interface QueryCycleManager
Returns:
The number of peers

peer

public PeerDescription peer(int peerID)
The peer description for peer with id peerID

Specified by:
peer in interface QueryCycleManager
Parameters:
peerID - The peer's id.
Returns:
The peer's description.

save

public void save(java.lang.String filename)
Save the current simulation

Specified by:
save in interface QueryCycleManager
Parameters:
filename - file name to save simulation under

reset

public QueryCycleManager reset()
The manager reset to cycle 0;

Specified by:
reset in interface QueryCycleManager
Returns:
The reset manager.

description

public void description(PeerDescription desc)
Add a new peer description to this manager

Parameters:
desc - The peer's description.

Query Cycle Simulator HEADER