public class RegStateInt extends RegState
Constructor and Description |
---|
RegStateInt(int level,
int id,
int sucNumber,
int posInArray)
It constructs an integer based representation of the 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) |
String |
toString() |
boolean |
updateSupport(RegEdge edge,
int v)
It updates a support if given state supports given value.
|
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.public void addTransitions(RegState suc, IntervalDomain val)
RegState
addTransitions
in class RegState
suc
- successor stateval
- interval of accepting values.public void addTransition(RegState suc, Integer val)
RegState
addTransition
in class RegState
suc
- successor stateval
- an accepting valuepublic boolean isActive(TimeStamp<Integer>[] activeLevels)
RegState
public void removeTransition(int pos)
RegState
removeTransition
in class RegState
pos
- position of the edge.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 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.public void add(IntDomain varDom, int successorNo)
RegState
public String sucDomToString(int successorNo)
sucDomToString
in class RegState
successorNo
- - edge position.Copyright © 2022. All rights reserved.