|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.ruleflow.core.impl.ConnectionImpl
public class ConnectionImpl
Default implementation of a connection.
Field Summary |
---|
Fields inherited from interface org.drools.ruleflow.core.Connection |
---|
TYPE_ABORT, TYPE_NORMAL |
Constructor Summary | |
---|---|
ConnectionImpl(Node from,
Node to,
int type)
Creates a new connection, given a from node, a to node and a type. |
Method Summary | |
---|---|
Node |
getFrom()
Returns the from node of the connection. |
Node |
getTo()
Returns the to node of the connection |
int |
getType()
Returns the connection type |
void |
terminate()
Destroys the connection. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionImpl(Node from, Node to, int type)
from
- The from nodeto
- The to nodetype
- The connection typeMethod Detail |
---|
public void terminate()
Connection
to
and from
nodes.
Onces a connection is destroyed, all methods throw
an IllegalStateException
.
terminate
in interface Connection
public Node getFrom()
Connection
getFrom
in interface Connection
public Node getTo()
Connection
getTo
in interface Connection
public int getType()
Connection
getType
in interface Connection
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |