jjdh API

jjdh.java.event
Class StateSwitcher<E>

java.lang.Object
  extended by jjdh.java.event.StateSwitcher<E>

public class StateSwitcher<E>
extends Object


Field Summary
protected  int currentIndex
           
protected  StateManager<E> stateManager
           
protected  List<E> states
           
 
Constructor Summary
StateSwitcher(StateManager<E> stateManager, List<E> states)
          Creates a StateSwitcher which will circular apply the to delivered states on the given StateManager.
 
Method Summary
 void next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stateManager

protected StateManager<E> stateManager

states

protected List<E> states

currentIndex

protected int currentIndex
Constructor Detail

StateSwitcher

public StateSwitcher(StateManager<E> stateManager,
                     List<E> states)
Creates a StateSwitcher which will circular apply the to delivered states on the given StateManager.

Method Detail

next

public void next()

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.