|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectes.upv.dsic.gti_ia.cAgents.TransitionTable
public class TransitionTable
This class is used to define all the transitions between the states of a CProcessor's graph
| Constructor Summary | |
|---|---|
TransitionTable()
|
|
| Method Summary | |
|---|---|
protected void |
addState(String name)
Adds a state |
protected void |
addTransition(String from,
String destination)
Adds a transition between from state and destination state |
protected void |
clear()
Clears the transition table removing all the transitions |
protected boolean |
existsTransation(String from,
String destination)
Checks whether the transition exists |
Set<String> |
getTransitions(String from)
Returns the set of reachable states from the state |
protected void |
removeState(String name)
Removes a state |
protected void |
removeTransition(String from,
String destination)
Removes a transition between from state and destination state |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransitionTable()
| Method Detail |
|---|
protected void clear()
protected void addTransition(String from,
String destination)
from - statedestination - state
protected void removeTransition(String from,
String destination)
from - statedestination - stateprotected void addState(String name)
name - of the stateprotected void removeState(String name)
name - of the state
protected boolean existsTransation(String from,
String destination)
from - statedestination - state
public Set<String> getTransitions(String from)
from - state
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||