public abstract class AbstractCompactSimpleDet<I,SP> extends Object implements MutableDeterministic<Integer,I,Integer,SP,Void>, UniversalFiniteAlphabetAutomaton<Integer,I,Integer,SP,Void>, StateIDs<Integer>
| Modifier and Type | Field and Description |
|---|---|
protected Alphabet<I> |
alphabet |
protected int |
alphabetSize |
static int |
DEFAULT_INIT_CAPACITY |
static float |
DEFAULT_RESIZE_FACTOR |
protected int |
initial |
protected int |
numStates |
protected float |
resizeFactor |
protected int |
stateCapacity |
protected int[] |
transitions |
| Modifier | Constructor and Description |
|---|---|
|
AbstractCompactSimpleDet(Alphabet<I> alphabet) |
protected |
AbstractCompactSimpleDet(Alphabet<I> alphabet,
AbstractCompactSimpleDet<?,?> other) |
|
AbstractCompactSimpleDet(Alphabet<I> alphabet,
float resizeFactor) |
|
AbstractCompactSimpleDet(Alphabet<I> alphabet,
int stateCapacity) |
|
AbstractCompactSimpleDet(Alphabet<I> alphabet,
int stateCapacity,
float resizeFactor) |
protected |
AbstractCompactSimpleDet(Alphabet<I> alphabet,
int numStates,
int initial,
int[] transitions,
float resizeFactor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTransition, removeAllTransitions, removeTransition, setInitial, setTransition, setTransitionsgetSuccessor, getSuccessors, getTransitions, transToSetgetInitialStates, getStates, getSuccessors, stateToSetaddInitialState, addInitialState, addState, addTransition, addTransitionstransitionGraphViewcreateStaticStateMapping, iteratorforEach, spliteratorpowersetViewcreateDynamicStateMapping, getSuccessorstransitionGraphViewgraphViewpublic static final float DEFAULT_RESIZE_FACTOR
public static final int DEFAULT_INIT_CAPACITY
protected final int alphabetSize
protected int[] transitions
protected int stateCapacity
protected int numStates
protected int initial
protected final float resizeFactor
public AbstractCompactSimpleDet(Alphabet<I> alphabet, int stateCapacity, float resizeFactor)
protected AbstractCompactSimpleDet(Alphabet<I> alphabet, int numStates, int initial, int[] transitions, float resizeFactor)
protected AbstractCompactSimpleDet(Alphabet<I> alphabet, AbstractCompactSimpleDet<?,?> other)
public void ensureCapacity(int newCapacity)
protected void ensureCapacity(int oldCap,
int newCap)
public Alphabet<I> getInputAlphabet()
getInputAlphabet in interface InputAlphabetHolder<I>public int size()
size in interface SimpleAutomaton<Integer,I>public Collection<Integer> getStates()
getStates in interface SimpleAutomaton<Integer,I>public int getStateId(Integer state)
getStateId in interface StateIDs<Integer>public Integer getInitialState()
getInitialState in interface SimpleDTS<Integer,I>public int getIntInitialState()
public Integer getTransition(Integer state, I input)
getTransition in interface DeterministicTransitionSystem<Integer,I,Integer>public int getIntTransition(int state,
I input)
public void setInitialState(int state)
public void setInitialState(Integer state)
setInitialState in interface MutableDeterministic<Integer,I,Integer,SP,Void>public void setTransition(int state,
int inputIdx,
int succ)
public void setTransition(int state,
I input,
int succ)
public void setTransition(Integer state, I input, Integer transition)
setTransition in interface MutableDeterministic<Integer,I,Integer,SP,Void>public void clear()
public void removeAllTransitions(int state)
public void removeAllTransitions(Integer state)
removeAllTransitions in interface MutableAutomaton<Integer,I,Integer,SP,Void>public Integer copyTransition(Integer trans, Integer succ)
copyTransition in interface MutableAutomaton<Integer,I,Integer,SP,Void>public Integer getSuccessor(Integer transition)
getSuccessor in interface TransitionSystem<Integer,I,Integer>public int getIntSuccessor(int state,
I input)
public abstract SP getStateProperty(int stateId)
public SP getStateProperty(Integer state)
getStateProperty in interface UniversalTransitionSystem<Integer,I,Integer,SP,Void>public Void getTransitionProperty(Integer transition)
getTransitionProperty in interface UniversalTransitionSystem<Integer,I,Integer,SP,Void>protected abstract void initState(int stateId,
SP property)
public int addIntState(SP property)
public int addIntState()
public int addIntInitialState(SP property)
public int addIntInitialState()
public abstract void setStateProperty(int stateId,
SP property)
public void setStateProperty(Integer state, SP property)
setStateProperty in interface MutableAutomaton<Integer,I,Integer,SP,Void>public void setTransitionProperty(Integer transition, Void property)
setTransitionProperty in interface MutableAutomaton<Integer,I,Integer,SP,Void>public Integer createTransition(Integer successor, Void properties)
createTransition in interface MutableAutomaton<Integer,I,Integer,SP,Void>public StateIDs<Integer> stateIDs()
stateIDs in interface SimpleAutomaton<Integer,I>public Integer getSuccessor(Integer state, Iterable<? extends I> input)
getSuccessor in interface SimpleDTS<Integer,I>protected static Integer wrapState(int id)
Copyright © 2015. All Rights Reserved.