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)
RegState
public void removeTransition(int pos)
RegState
removeTransition
in class RegState
pos
- position of the edge.public void addTransition(RegState suc, Integer val)
RegState
addTransition
in class RegState
suc
- successor stateval
- an accepting valuepublic void addTransitions(RegState suc, IntervalDomain val)
RegState
addTransitions
in class RegState
suc
- successor stateval
- interval of accepting values.public boolean intersects(IntDomain dom, int successorNo)
RegState
intersects
in class RegState
dom
- domain against which interesection is performed.successorNo
- a position of the edge.public void setSupports(Map<Integer,RegEdge> hashMap, int i)
setSupports
in class RegState
hashMap
- It contains supports for all values of a given variable.i
- it specifies the edge position.public String sucDomToString(int successorNo)
sucDomToString
in class RegState
successorNo
- - edge position.public void add(IntDomain varDom, int successorNo)
RegState
public boolean updateSupport(RegEdge edge, int v)
RegState
updateSupport
in class RegState
edge
- information about support is stored here.v
- value for which support is looked for.Copyright © 2022. All rights reserved.