|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.regular.RegState
public abstract class RegState
The state class representing a state in the regular automaton within Regular constraint.
| Field Summary | |
|---|---|
int |
id
The unique id of the state. |
int |
inDegree
It specifies the number of edges incoming to the state. |
int |
level
It specifies the level, the variable position this state is associated with. |
int |
outDegree
It specifies the number of edges outgoing from the state. |
int |
pos
The position of the state within a level. |
RegState[] |
successors
It specifies the list of successor states for this state. |
| Constructor Summary | |
|---|---|
RegState()
|
|
| Method Summary | |
|---|---|
abstract void |
add(IntDomain varDom,
int successorNo)
It adds to domain values which are accepted by a given edge. |
abstract void |
addTransition(RegState suc,
java.lang.Integer val)
It specifies that for a given value an automata will move from the current state to the successor state. |
abstract void |
addTransitions(RegState suc,
IntervalDomain val)
It specifies that for a given values from an interval an automata will move from the current state to the successor state. |
abstract boolean |
intersects(IntDomain dom,
int successorNo)
It checks if the accepting values associated with an edge intersect. |
abstract boolean |
isActive(TimeStamp<java.lang.Integer>[] activeLevels)
The function return if the state is still active. |
abstract void |
removeTransition(int pos)
It informs the state that the edge on the given position is no longer active. |
abstract void |
setSupports(java.util.HashMap<java.lang.Integer,RegEdge> hashMap,
int successorNo)
|
abstract java.lang.String |
sucDomToString(int successorNo)
|
abstract boolean |
updateSupport(RegEdge edge,
int v)
It updates a support if given state supports given value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public RegState[] successors
public int outDegree
public int inDegree
public int id
public int level
public int pos
| Constructor Detail |
|---|
public RegState()
| Method Detail |
|---|
public abstract void addTransitions(RegState suc,
IntervalDomain val)
suc - successor stateval - interval of accepting values.
public abstract void addTransition(RegState suc,
java.lang.Integer val)
suc - successor stateval - an accepting valuepublic abstract boolean isActive(TimeStamp<java.lang.Integer>[] activeLevels)
activeLevels - -
public abstract void removeTransition(int pos)
pos - position of the edge.
public abstract boolean intersects(IntDomain dom,
int successorNo)
dom - domain against which interesection is performed.successorNo - a position of the edge.
public abstract void setSupports(java.util.HashMap<java.lang.Integer,RegEdge> hashMap,
int successorNo)
hashMap - It contains supports for all values of a given variable.successorNo - it specifies the edge position.
public abstract boolean updateSupport(RegEdge edge,
int v)
edge - information about support is stored here.v - value for which support is looked for.
public abstract void add(IntDomain varDom,
int successorNo)
varDom - - domain collecting suported values.successorNo - - position of an edge from which values are collected.public abstract java.lang.String sucDomToString(int successorNo)
successorNo - - edge position.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||