Query Cycle Simulator HEADER

qcsim.runtime.impl
Class QueryCycleSimulatorImpl

java.lang.Object
  |
  +--qcsim.runtime.impl.QueryCycleSimulatorImpl
All Implemented Interfaces:
Simulator

public class QueryCycleSimulatorImpl
extends java.lang.Object
implements Simulator

Coordinates the simulation steps.

Version:
1.0
Author:
unascribed

Field Summary
 int debugLevel_
          system debug level
static int trustIter
           
 
Fields inherited from interface qcsim.runtime.Simulator
CYCLE_BOUND
 
Constructor Summary
QueryCycleSimulatorImpl()
          Constructor
QueryCycleSimulatorImpl(int debug)
          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 notifiee to the simulator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trustIter

public static final int trustIter
See Also:
Constant Field Values

debugLevel_

public int debugLevel_
system debug level

Constructor Detail

QueryCycleSimulatorImpl

public QueryCycleSimulatorImpl()
Constructor


QueryCycleSimulatorImpl

public QueryCycleSimulatorImpl(int debug)
Constructor

Parameters:
debug - Debugging level.
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)
Description copied from interface: Simulator
Add a notifiee to the simulator.

Specified by:
notifiee in interface Simulator

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