FileDocCategorySizeDatePackage
StateImpl.javaAPI DocJava SE 5 API1809Fri Aug 26 14:54:40 BST 2005com.sun.corba.se.spi.orbutil.fsm

StateImpl

public class StateImpl extends com.sun.corba.se.impl.orbutil.fsm.NameBase implements State
Base class for all states in a StateEngine. This must be used as the base class for all states in transitions added to a StateEngine.

Fields Summary
private Action
defaultAction
private State
defaultNextState
private Map
inputToGuardedActions
Constructors Summary
public StateImpl(String name)

 
	super( name ) ; 
	defaultAction = null ;
	inputToGuardedActions = new HashMap() ;
    
Methods Summary
public voidaddGuardedAction(Input in, com.sun.corba.se.impl.orbutil.fsm.GuardedAction ga)

	Set gas = (Set)inputToGuardedActions.get( in ) ;
	if (gas == null) {
	    gas = new HashSet() ;
	    inputToGuardedActions.put( in, gas ) ;
	}

	gas.add( ga ) ;
    
public ActiongetDefaultAction()

	return defaultAction ;
    
public StategetDefaultNextState()

	return defaultNextState ;
    
public java.util.SetgetGuardedActions(Input in)

	return (Set)inputToGuardedActions.get( in ) ;
    
public voidpostAction(FSM fsm)

    
public voidpreAction(FSM fsm)

    
public voidsetDefaultAction(Action defaultAction)

	this.defaultAction = defaultAction ;
    
public voidsetDefaultNextState(State defaultNextState)

	this.defaultNextState = defaultNextState ;