public class Region
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Region.Builder
Helper class for creating Region instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkValidRegion()
Check if this region is indeed a valid region and throw an exception if not.
|
boolean |
equals(java.lang.Object obj) |
java.math.BigInteger |
evaluateParikhVector(java.util.List<java.math.BigInteger> vector)
Evaluate the given Parikh vector with respect to this region.
|
Arc |
findArcWithWrongEffect()
Check if this region allows the cycles that it must allow.
|
Pair<State,java.lang.String> |
findPreventedArc()
Check if this region prevents any arcs that it should not prevent.
|
java.math.BigInteger |
getBackwardWeight(int index)
Return the backward weight for the given event index.
|
java.math.BigInteger |
getBackwardWeight(java.lang.String event)
Return the backward weight for the given event.
|
java.math.BigInteger |
getForwardWeight(int index)
Return the forward weight for the given event index.
|
java.math.BigInteger |
getForwardWeight(java.lang.String event)
Return the forward weight for the given event.
|
java.math.BigInteger |
getInitialMarking()
Return the initial marking of this region.
|
java.math.BigInteger |
getMarkingForState(State state)
Get the marking that a normal region based on this abstract would assign to the given state.
|
RegionUtility |
getRegionUtility()
Return the region utility which this region uses.
|
TransitionSystem |
getTransitionSystem()
Return the transitions system on which this region is defined.
|
java.math.BigInteger |
getWeight(int index)
Return the total weight for the given event index.
|
java.math.BigInteger |
getWeight(java.lang.String event)
Return the total weight for the given event.
|
int |
hashCode() |
java.lang.String |
toString() |
public RegionUtility getRegionUtility()
public TransitionSystem getTransitionSystem()
public java.math.BigInteger getBackwardWeight(int index)
index - The event index to query.public java.math.BigInteger getBackwardWeight(java.lang.String event)
event - The event to query.public java.math.BigInteger getForwardWeight(int index)
index - The event index to query.public java.math.BigInteger getForwardWeight(java.lang.String event)
event - The event to query.public java.math.BigInteger getWeight(int index)
index - The event index to query.public java.math.BigInteger getWeight(java.lang.String event)
event - The event to query.public java.math.BigInteger evaluateParikhVector(java.util.List<java.math.BigInteger> vector)
vector - The vector to evaluate.public java.math.BigInteger getInitialMarking()
public java.math.BigInteger getMarkingForState(State state) throws UnreachableException
state - The state to evaluate. Must be reachable from the initial state.UnreachableException - if the given state is unreachable from the initial statepublic Pair<State,java.lang.String> findPreventedArc()
checkValidRegionpublic Arc findArcWithWrongEffect()
checkValidRegionpublic void checkValidRegion()
throws InvalidRegionException
InvalidRegionException - If this region is not valid.findPreventedArc,
findArcWithWrongEffectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object