com.karneim.util.collection.set

Interface SAutomaton.IChangeListener

public interface SAutomaton.IChangeListener

The listener interface for receiving change events of a SAutomaton. The class that is interested in processing an automaton's change event implements this interface. A listener instance of that class is registered with the automaton using the automaton's addChangeListener method.

Version: 1.0

Author: Ralf Meyer

Method Summary
voidstartStateChanged(IStatePro oldStartState, IStatePro newStartState)
The Automaton invokes this method on all registered listener if the automaton's current startState has been changed.
voidstateAdded(IStatePro state)
The Automaton invokes this method on all registered listener if a new state has been added to the automaton.
voidstateRemoved(IStatePro state)
The Automaton invokes this method on all registered listener if an existing state has been removed from the automaton.

Method Detail

startStateChanged

public void startStateChanged(IStatePro oldStartState, IStatePro newStartState)
The Automaton invokes this method on all registered listener if the automaton's current startState has been changed. Both oldStartState and newStartState can be null.

stateAdded

public void stateAdded(IStatePro state)
The Automaton invokes this method on all registered listener if a new state has been added to the automaton.

stateRemoved

public void stateRemoved(IStatePro state)
The Automaton invokes this method on all registered listener if an existing state has been removed from the automaton.