public abstract class AbstractCompactDeterministic<I,T,SP,TP> extends Object implements MutableDeterministic<Integer,I,T,SP,TP>, StateIDs<Integer>, UniversalFiniteAlphabetAutomaton<Integer,I,T,SP,TP>
| 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 Object[] |
transitions |
| Constructor and Description |
|---|
AbstractCompactDeterministic(Alphabet<I> alphabet) |
AbstractCompactDeterministic(Alphabet<I> alphabet,
float resizeFactor) |
AbstractCompactDeterministic(Alphabet<I> alphabet,
int stateCapacity) |
AbstractCompactDeterministic(Alphabet<I> alphabet,
int stateCapacity,
float resizeFactor) |
| Modifier and Type | Method and Description |
|---|---|
int |
addIntInitialState() |
int |
addIntInitialState(SP property) |
int |
addIntState() |
int |
addIntState(SP property) |
Integer |
addState(SP property) |
void |
clear() |
abstract T |
copyTransition(T trans,
int succId) |
T |
copyTransition(T trans,
Integer succ) |
protected int |
createState() |
T |
createTransition(Integer succ,
TP property) |
abstract T |
createTransition(int succId,
TP property) |
protected void |
ensureCapacity() |
void |
ensureCapacity(int newCapacity) |
protected static int |
getId(Integer id) |
Integer |
getInitialState() |
Alphabet<I> |
getInputAlphabet() |
int |
getIntInitialState() |
abstract int |
getIntSuccessor(T transition) |
Integer |
getState(int id) |
int |
getStateId(Integer state) |
abstract SP |
getStateProperty(int stateId) |
SP |
getStateProperty(Integer state) |
Collection<Integer> |
getStates() |
Integer |
getSuccessor(T transition) |
T |
getTransition(Integer state,
I input) |
T |
getTransition(int stateId,
I input) |
T |
getTransition(int stateId,
int inputIdx) |
protected static Integer |
makeId(int id) |
void |
removeAllTransitions(Integer state) |
void |
setInitialState(int stateId) |
void |
setInitialState(Integer state) |
void |
setStateProperty(Integer state,
SP property) |
abstract void |
setStateProperty(int state,
SP property) |
void |
setTransition(Integer state,
I input,
T transition) |
void |
setTransition(int stateId,
int inputIdx,
int succId) |
void |
setTransition(int stateId,
int inputIdx,
int succId,
TP property) |
void |
setTransition(int state,
int inputIdx,
T trans) |
int |
size() |
StateIDs<Integer> |
stateIDs() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTransition, removeAllTransitions, removeTransition, setInitial, setTransition, setTransitionsgetSuccessor, getSuccessors, getTransitions, transToSetgetInitialStates, getState, getStates, getSuccessor, getSuccessors, stateToSetaddInitialState, addInitialState, addState, addTransition, addTransitions, setTransitionPropertytransitionGraphViewcreateStaticStateMapping, iteratorforEach, spliteratorgetTransitionPropertypowersetViewcreateDynamicStateMapping, getSuccessorstransitionGraphViewgraphViewpublic static final float DEFAULT_RESIZE_FACTOR
public static final int DEFAULT_INIT_CAPACITY
protected final int alphabetSize
protected Object[] transitions
protected int stateCapacity
protected int numStates
protected int initial
protected final float resizeFactor
public AbstractCompactDeterministic(Alphabet<I> alphabet, int stateCapacity)
public AbstractCompactDeterministic(Alphabet<I> alphabet, float resizeFactor)
protected static final int getId(Integer id)
protected static final Integer makeId(int id)
protected void ensureCapacity()
public final void ensureCapacity(int newCapacity)
public int size()
size in interface SimpleAutomaton<Integer,I>public void setInitialState(int stateId)
public void setInitialState(Integer state)
setInitialState in interface MutableDeterministic<Integer,I,T,SP,TP>public void setTransition(int state,
int inputIdx,
T trans)
public void setTransition(int stateId,
int inputIdx,
int succId)
public void setTransition(int stateId,
int inputIdx,
int succId,
TP property)
public void setTransition(Integer state, I input, T transition)
setTransition in interface MutableDeterministic<Integer,I,T,SP,TP>public T createTransition(Integer succ, TP property)
createTransition in interface MutableAutomaton<Integer,I,T,SP,TP>public T copyTransition(T trans, Integer succ)
copyTransition in interface MutableAutomaton<Integer,I,T,SP,TP>public abstract int getIntSuccessor(T transition)
public final Integer getSuccessor(T transition)
getSuccessor in interface TransitionSystem<Integer,I,T>public Collection<Integer> getStates()
getStates in interface SimpleAutomaton<Integer,I>public int getStateId(Integer state)
getStateId in interface StateIDs<Integer>public int getIntInitialState()
public Integer getInitialState()
getInitialState in interface SimpleDTS<Integer,I>public T getTransition(int stateId, int inputIdx)
public T getTransition(Integer state, I input)
getTransition in interface DeterministicTransitionSystem<Integer,I,T>public abstract SP getStateProperty(int stateId)
public SP getStateProperty(Integer state)
getStateProperty in interface UniversalTransitionSystem<Integer,I,T,SP,TP>protected final int createState()
public int addIntInitialState(SP property)
public int addIntInitialState()
public int addIntState()
public int addIntState(SP property)
public abstract void setStateProperty(int state,
SP property)
public void setStateProperty(Integer state, SP property)
setStateProperty in interface MutableAutomaton<Integer,I,T,SP,TP>public void removeAllTransitions(Integer state)
removeAllTransitions in interface MutableAutomaton<Integer,I,T,SP,TP>public StateIDs<Integer> stateIDs()
stateIDs in interface SimpleAutomaton<Integer,I>public Alphabet<I> getInputAlphabet()
getInputAlphabet in interface InputAlphabetHolder<I>Copyright © 2015. All Rights Reserved.