|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.regular.RegState
JaCoP.constraints.regular.RegStateInt
public class RegStateInt
It is an implementation of the Regular state which uses a separate successor for each value. Different values using different entries in the successor array can lead to the same successor.
| Field Summary |
|---|
| Fields inherited from class JaCoP.constraints.regular.RegState |
|---|
id, inDegree, level, outDegree, pos, successors |
| Constructor Summary | |
|---|---|
RegStateInt(int level,
int id,
int sucNumber,
int posInArray)
It constructs an integer based representation of the state. |
|
| Method Summary | |
|---|---|
void |
add(IntDomain varDom,
int successorNo)
It adds to domain values which are accepted by a given edge. |
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. |
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. |
boolean |
intersects(IntDomain dom,
int successorNo)
It checks if the accepting values associated with an edge intersect. |
boolean |
isActive(TimeStamp<java.lang.Integer>[] activeLevels)
The function return if the state is still active. |
void |
removeTransition(int pos)
It informs the state that the edge on the given position is no longer active. |
void |
setSupports(java.util.HashMap<java.lang.Integer,RegEdge> hashMap,
int i)
|
java.lang.String |
sucDomToString(int successorNo)
|
java.lang.String |
toString()
|
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, wait, wait, wait |
| Constructor Detail |
|---|
public RegStateInt(int level,
int id,
int sucNumber,
int posInArray)
level - level of the state (position of the associated variable).id - id of the state.sucNumber - the number of successors.posInArray - the position within the array of states.| Method Detail |
|---|
public void addTransitions(RegState suc,
IntervalDomain val)
RegState
addTransitions in class RegStatesuc - successor stateval - interval of accepting values.
public void addTransition(RegState suc,
java.lang.Integer val)
RegState
addTransition in class RegStatesuc - successor stateval - an accepting valuepublic boolean isActive(TimeStamp<java.lang.Integer>[] activeLevels)
RegState
isActive in class RegStateactiveLevels - -
public void removeTransition(int pos)
RegState
removeTransition in class RegStatepos - position of the edge.
public boolean intersects(IntDomain dom,
int successorNo)
RegState
intersects in class RegStatedom - domain against which interesection is performed.successorNo - a position of the edge.
public void setSupports(java.util.HashMap<java.lang.Integer,RegEdge> hashMap,
int i)
setSupports in class RegStatehashMap - It contains supports for all values of a given variable.i - it specifies the edge position.
public boolean updateSupport(RegEdge edge,
int v)
RegState
updateSupport in class RegStateedge - information about support is stored here.v - value for which support is looked for.
public void add(IntDomain varDom,
int successorNo)
RegState
add in class RegStatevarDom - - domain collecting suported values.successorNo - - position of an edge from which values are collected.public java.lang.String sucDomToString(int successorNo)
sucDomToString in class RegStatesuccessorNo - - edge position.
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||