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