|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.util.fsm.FSM
public class FSM
Deterministic Finite Acyclic graph.
| Field Summary | |
|---|---|
java.util.HashSet<FSMState> |
allStates
It specifies all states including the initial one and final ones. |
java.util.HashSet<FSMState> |
finalStates
It specifies final states of DFA. |
FSMState |
initState
It specifies the intial state of DFA. |
static int |
stateId
It specifies number of states created in DFA class. |
static java.lang.String[] |
xmlAttributes
It specifies the arguments required to be saved by an XML format as well as the constructor being called to recreate an object from an XML format. |
| Constructor Summary | |
|---|---|
FSM()
It creates a Finite State Machine used by Regular constraint constructor. |
|
FSM(FSMState initState,
java.util.HashSet<FSMState> finalStates,
java.util.HashSet<FSMState> allStates)
It creates a Finite State Machine. |
|
| Method Summary | |
|---|---|
FSM |
concatenation(FSM other)
It does concatenation of two FSM. |
FSMState |
getState(int id)
It gets state of a given id. |
void |
resize()
It resizes the Finite State Machine. |
FSM |
star()
It performs star operation on this FSM. |
java.lang.String |
toString()
|
MDD |
transformDirectlyIntoMDD(IntVar[] vars)
It generates one by one tuples allowed by a Regular constraint, which are added to the MDD being built. |
MDD |
transformIntoMDD(IntVar[] vars)
It generates one by one tuples allowed by a Regular constraint, which are added to the MDD being built. |
int[][] |
transformIntoTuples(IntVar[] vars)
It creates an array of tuples representing this Regular context. |
FSM |
union(FSM other)
It computes a union of two Finite State Machines. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int stateId
public FSMState initState
public java.util.HashSet<FSMState> finalStates
public java.util.HashSet<FSMState> allStates
public static java.lang.String[] xmlAttributes
| Constructor Detail |
|---|
public FSM(FSMState initState,
java.util.HashSet<FSMState> finalStates,
java.util.HashSet<FSMState> allStates)
initState - it specifies the initial state.allStates - it specifies all the states.finalStates - it specifies the final states.public FSM()
| Method Detail |
|---|
public FSM union(FSM other)
other - the other FSM which is used in the union computation.
public FSM concatenation(FSM other)
other - the FSM with which the concatenation takes place.
public FSM star()
public FSMState getState(int id)
id - the id of the searched state.
public java.lang.String toString()
toString in class java.lang.Objectpublic void resize()
public int[][] transformIntoTuples(IntVar[] vars)
vars - variables in which context a list of tuples is created.
public MDD transformIntoMDD(IntVar[] vars)
vars - variables in which context MDD is being created from Regular constraint.
public MDD transformDirectlyIntoMDD(IntVar[] vars)
vars - variables in which context MDD is being created from Regular constraint.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||