public abstract class RegState extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
RegState() |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(IntDomain varDom,
int successorNo)
It adds to domain values which are accepted by a given edge.
|
abstract 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.
|
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<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(Map<Integer,RegEdge> hashMap,
int successorNo) |
abstract String |
sucDomToString(int successorNo) |
abstract boolean |
updateSupport(RegEdge edge,
int v)
It updates a support if given state supports given value.
|
public RegState[] successors
public int outDegree
public int inDegree
public int id
public int level
public int pos
public abstract void addTransitions(RegState suc, IntervalDomain val)
suc
- successor stateval
- interval of accepting values.public abstract void addTransition(RegState suc, Integer val)
suc
- successor stateval
- an accepting valuepublic abstract boolean isActive(TimeStamp<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(Map<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 String sucDomToString(int successorNo)
successorNo
- - edge position.Copyright © 2022. All rights reserved.