public final class TransitionSystem
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
getStates()
Returns the number of states of this transition system.
|
int |
hashCode() |
boolean[] |
hasLabel(java.lang.String label)
Returns the states of this transition system with the given label.
|
boolean[] |
post(int state)
Returns whether the given state can transition to any other state.
|
static TransitionSystem |
random(int states)
Returns a random transition system with the given number of states.
|
java.lang.String |
toString() |
public static TransitionSystem random(int states)
states
- the number of states of the transition systempublic int getStates()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean[] post(int state)
boolean[] post = system.post(source)post[target] captures whether source can transition to target.
state
- a statepublic boolean[] hasLabel(java.lang.String label)
boolean[] hasLabel = system.hasLabel(label)hasLabel[state] captures whether state has labelling label.
label
- an atomic proposition