avrora.sim
Class FiniteStateMachine.TransitionEvent

java.lang.Object
  extended byavrora.sim.FiniteStateMachine.TransitionEvent
All Implemented Interfaces:
Simulator.Event
Enclosing class:
FiniteStateMachine

protected class FiniteStateMachine.TransitionEvent
extends java.lang.Object
implements Simulator.Event

The TransitionEvent class is used internally by the finite state machine for transitions that take 1 more more clock cycles. The machine is put in the IN_TRANSITION state and this event is inserted into the event queue of the underlying clock. When this event fires, it will complete the state transition and fire any probes as necessary.


Field Summary
protected  int newState
           
protected  int oldState
           
 
Constructor Summary
protected FiniteStateMachine.TransitionEvent()
           
 
Method Summary
 void fire()
          The fire() method is called when the event to which it is tied happens with in the simulator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oldState

protected int oldState

newState

protected int newState
Constructor Detail

FiniteStateMachine.TransitionEvent

protected FiniteStateMachine.TransitionEvent()
Method Detail

fire

public void fire()
Description copied from interface: Simulator.Event
The fire() method is called when the event to which it is tied happens with in the simulator.

Specified by:
fire in interface Simulator.Event