com.karneim.util.collection.automaton
Class Automaton

java.lang.Object
  extended bycom.karneim.util.collection.automaton.Automaton
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
AutomatonSet_String

public abstract class Automaton
extends java.lang.Object
implements java.lang.Cloneable


Nested Class Summary
static interface Automaton.IChangedListener
           
static interface Automaton.IState
           
static interface Automaton.IStateChangedListener
           
static interface Automaton.IStateVisitedListener
           
static interface Automaton.ITransitionVisitedListener
           
 class Automaton.LinkedSet_State
           
 class Automaton.State
           
static class Automaton.Wrapper_State
           
 
Field Summary
protected  Automaton.LinkedSet_State aStates
           
protected  int automatonNr
           
protected  int currentStateNr
           
protected static int FALSE
           
protected  int isDeterministic
           
protected  java.util.LinkedList listeners
           
protected  Automaton.State startState
           
protected static int TRUE
           
protected static int UNKNOWN
           
 
Constructor Summary
Automaton()
           
 
Method Summary
protected  void addChangedListener(Automaton.IChangedListener listener)
           
protected  Automaton.State addState()
           
protected  void addState(Automaton.State state)
           
protected  void clear()
           
protected  java.lang.Object clone()
           
protected  java.util.Map cloneState(Automaton.State state)
           
protected  java.util.Map cloneStates(Automaton.LinkedSet_State states)
           
protected  Automaton.State createState()
           
protected  Automaton.State getStartState()
           
protected  boolean isDeterministic()
           
protected  boolean isDeterministic(Automaton.State startState)
           
protected abstract  Automaton.LinkedSet_State newLinkedSet_State()
           
protected abstract  Automaton.LinkedSet_State newLinkedSet_State(Automaton.State state)
           
protected  boolean removeChangedListener(Automaton.IChangedListener listener)
           
protected  boolean removeState(Automaton.State removeState)
           
protected  void removeUnreachableStates()
           
protected  void setDeterminstic(java.lang.Boolean isDeterministic)
           
protected  void setStartState(Automaton.State startState)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

protected static final int TRUE
See Also:
Constant Field Values

FALSE

protected static final int FALSE
See Also:
Constant Field Values

UNKNOWN

protected static final int UNKNOWN
See Also:
Constant Field Values

listeners

protected java.util.LinkedList listeners

startState

protected Automaton.State startState

aStates

protected Automaton.LinkedSet_State aStates

isDeterministic

protected int isDeterministic

automatonNr

protected int automatonNr

currentStateNr

protected int currentStateNr
Constructor Detail

Automaton

public Automaton()
Method Detail

addChangedListener

protected void addChangedListener(Automaton.IChangedListener listener)

removeChangedListener

protected boolean removeChangedListener(Automaton.IChangedListener listener)

newLinkedSet_State

protected abstract Automaton.LinkedSet_State newLinkedSet_State()

newLinkedSet_State

protected abstract Automaton.LinkedSet_State newLinkedSet_State(Automaton.State state)

createState

protected Automaton.State createState()

setDeterminstic

protected void setDeterminstic(java.lang.Boolean isDeterministic)

isDeterministic

protected boolean isDeterministic()

isDeterministic

protected boolean isDeterministic(Automaton.State startState)

addState

protected Automaton.State addState()

setStartState

protected void setStartState(Automaton.State startState)

getStartState

protected Automaton.State getStartState()

addState

protected void addState(Automaton.State state)

removeState

protected boolean removeState(Automaton.State removeState)

removeUnreachableStates

protected void removeUnreachableStates()

clear

protected void clear()

cloneState

protected java.util.Map cloneState(Automaton.State state)

cloneStates

protected java.util.Map cloneStates(Automaton.LinkedSet_State states)

toString

public java.lang.String toString()

clone

protected java.lang.Object clone()