Query Cycle Simulator HEADER

qcsim.runtime.impl
Class QueryCycleSimulatorRun

java.lang.Object
  |
  +--qcsim.runtime.impl.QueryCycleSimulatorRun
All Implemented Interfaces:
java.io.Serializable, Simulator

public class QueryCycleSimulatorRun
extends java.lang.Object
implements Simulator, java.io.Serializable

Coordinates the simulation steps.

Version:
1.0
Author:
unascribed
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface qcsim.runtime.Simulator
CYCLE_BOUND
 
Constructor Summary
QueryCycleSimulatorRun(int maxCycle)
          Constructor
 
Method Summary
 int cycle()
          The current cycle the simulator is running
 void cycle(int cycle)
          Simulates one simulation cycle or query round.
 int maxCycle()
          The maximum cycle this simulator is able to simulate
 void notifiee(Notifiee notifiee)
          Add a new notifiee.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCycleSimulatorRun

public QueryCycleSimulatorRun(int maxCycle)
Constructor

Method Detail

maxCycle

public int maxCycle()
The maximum cycle this simulator is able to simulate

Specified by:
maxCycle in interface Simulator
Returns:
the maximum cycle.

notifiee

public void notifiee(Notifiee notifiee)
Add a new notifiee.

Specified by:
notifiee in interface Simulator
Parameters:
notifiee - The client to be notifieed.

cycle

public void cycle(int cycle)
Simulates one simulation cycle or query round.

Specified by:
cycle in interface Simulator
Parameters:
cycle - set the current cycle.

cycle

public int cycle()
The current cycle the simulator is running

Specified by:
cycle in interface Simulator
Returns:
the current cycle.

Query Cycle Simulator HEADER