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(int state,
java.lang.String label)
Tests whether the given state of this transition system has the
given label.
|
java.util.Set<java.lang.Integer> |
post(int state)
Returns the set of successor states of the given state.
|
static TransitionSystem |
random(int states)
Returns a random transition system with the given number of states.
|
java.lang.String |
toDot()
Returns a dot representation of this transition system.
|
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 java.lang.String toDot()
public java.util.Set<java.lang.Integer> post(int state)
state
- a statepublic boolean hasLabel(int state, java.lang.String label)
state
- a state of this transition systemlabel
- an atomic proposition