public class RegStateDom extends RegState
| Constructor and Description |
|---|
RegStateDom(int level,
int id,
int sucNumber,
int posInArray)
It constructs a state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(IntDomain varDom,
int successorNo)
It adds to domain values which are accepted by a given edge.
|
void |
addTransition(RegState suc,
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<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(Map<Integer,RegEdge> hashMap,
int i) |
String |
sucDomToString(int successorNo) |
boolean |
updateSupport(RegEdge edge,
int v)
It updates a support if given state supports given value.
|
public RegStateDom(int level,
int id,
int sucNumber,
int posInArray)
level - the position of the associated variable with the state.id - the state id.sucNumber - the number of successors for this state.posInArray - the position within a states array for the level of this state.public boolean isActive(TimeStamp<Integer>[] activeLevels)
RegStatepublic void removeTransition(int pos)
RegStateremoveTransition in class RegStatepos - position of the edge.public void addTransition(RegState suc, Integer val)
RegStateaddTransition in class RegStatesuc - successor stateval - an accepting valuepublic void addTransitions(RegState suc, IntervalDomain val)
RegStateaddTransitions in class RegStatesuc - successor stateval - interval of accepting values.public boolean intersects(IntDomain dom, int successorNo)
RegStateintersects in class RegStatedom - domain against which interesection is performed.successorNo - a position of the edge.public void setSupports(Map<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 String sucDomToString(int successorNo)
sucDomToString in class RegStatesuccessorNo - - edge position.public void add(IntDomain varDom, int successorNo)
RegStatepublic boolean updateSupport(RegEdge edge, int v)
RegStateupdateSupport in class RegStateedge - information about support is stored here.v - value for which support is looked for.Copyright © 2022. All rights reserved.