Query Cycle Simulator HEADER

qcsim
Interface QueryCycleManager

All Known Implementing Classes:
QueryCycleManagerImpl, QueryCycleManagerRun

public interface QueryCycleManager

Creates and initializes system components.

Version:
1.0
Author:
unascribed

Method Summary
 InitializationManager initializationManager()
          Get the initialization manager
 PeerDescription peer(int peerID)
          Get the description of the peer with id peerID.
 int peers()
          The total number of peers in the system.
 QueryCycleManager reset()
          Reset the simulation manager.
 void save(java.lang.String filename)
          Save the simulation manager.
 Simulator simulator()
          The system simulator used to update cycles.
 

Method Detail

initializationManager

public InitializationManager initializationManager()
Get the initialization manager

Returns:
The initialization manager

simulator

public Simulator simulator()
The system simulator used to update cycles. return the system simulator.


peers

public int peers()
The total number of peers in the system.

Returns:
the total number of peers.

peer

public PeerDescription peer(int peerID)
Get the description of the peer with id peerID.

Parameters:
peerID - The id of the desired peer description.

save

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

Parameters:
filename - file name in which to save file under.

reset

public QueryCycleManager reset()
Reset the simulation manager.

Returns:
manager reset to cycle 0.

Query Cycle Simulator HEADER