|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.werken.blissed.Process
A graph of nodes and transitions in the form of a state machine.
| Constructor Summary | |
Process(java.lang.String name,
java.lang.String description)
Construct a new process. |
|
| Method Summary | |
protected void |
addState(State state)
Add a state to this process. |
State |
addState(java.lang.String name,
java.lang.String description)
Create a new state for this process. |
java.lang.String |
getDescription()
Retrieve the description of this process. |
java.util.Set |
getEdges()
Reteieve all edges (transitions). |
java.util.Set |
getEdges(org.apache.commons.graph.Vertex vertex)
Retrieve all edges (transitions) from a given vertex (state). |
java.util.Set |
getInbound(org.apache.commons.graph.Vertex vertex)
Retrieve all inbound edges (transitions) for a vertex (state). |
java.lang.String |
getName()
Retrieve the name of this process. |
java.util.Set |
getOutbound(org.apache.commons.graph.Vertex vertex)
Retrieve all outbound edges (transitions) for a vertex (state). |
org.apache.commons.graph.Vertex |
getSource(org.apache.commons.graph.Edge edge)
Retrieve the source vertex (state) of an edge (transition). |
State |
getStartState()
Retrieve the entry-point start state of this process. |
State |
getState(java.lang.String name)
Retrieve a stae in this process, by name. |
org.apache.commons.graph.Vertex |
getTarget(org.apache.commons.graph.Edge edge)
Retrieve the target vertex (state) of an edge (transition). |
State |
getTerminalState()
Retrieve the terminal state. |
java.util.Set |
getVertices()
Retrieve all vertices (states). |
java.util.Set |
getVertices(org.apache.commons.graph.Edge edge)
Retrieve all vertices (states) connected by an edge (transition) |
protected boolean |
removeState(State state)
Remove a state from this process. |
void |
setDescription(java.lang.String description)
Set the description |
void |
setName(java.lang.String name)
Set the name of this process. |
void |
setStartState(State startState)
Set the start state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Process(java.lang.String name,
java.lang.String description)
name - The name of the process.description - A description of the process.| Method Detail |
public State getStartState()
public State getTerminalState()
public void setStartState(State startState)
startState - The start state, or null to
remove the start state.protected void addState(State state)
state - The state to add.public State getState(java.lang.String name)
name - The name of the stae to retrieve.null of no stae
with the given name is known to this process.protected boolean removeState(State state)
state - The state to remove.true if the state was removed,
otherwise false.
public State addState(java.lang.String name,
java.lang.String description)
throws DuplicateStateException
name - The name of the state.description - The description of the state.State.DuplicateStateException - If a state already exists within
this process with the specified name.public java.lang.String getName()
getName in interface Namedpublic void setName(java.lang.String name)
name - The name of this process.public java.lang.String getDescription()
getDescription in interface Describedpublic void setDescription(java.lang.String description)
setDescription in interface Describeddescription - The description.public java.util.Set getVertices()
getVertices in interface org.apache.commons.graph.Graphpublic java.util.Set getEdges(org.apache.commons.graph.Vertex vertex)
getEdges in interface org.apache.commons.graph.Graphvertex - The vertex (state).public java.util.Set getVertices(org.apache.commons.graph.Edge edge)
getVertices in interface org.apache.commons.graph.Graphedge - The edge (transition).public java.util.Set getEdges()
getEdges in interface org.apache.commons.graph.Graphpublic java.util.Set getInbound(org.apache.commons.graph.Vertex vertex)
getInbound in interface org.apache.commons.graph.DirectedGraphvertex - The vertex (state).public java.util.Set getOutbound(org.apache.commons.graph.Vertex vertex)
getOutbound in interface org.apache.commons.graph.DirectedGraphvertex - The vertex (state).public org.apache.commons.graph.Vertex getSource(org.apache.commons.graph.Edge edge)
getSource in interface org.apache.commons.graph.DirectedGraphedge - The edge (transition).public org.apache.commons.graph.Vertex getTarget(org.apache.commons.graph.Edge edge)
getTarget in interface org.apache.commons.graph.DirectedGraphedge - The edge (transition).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||