|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.ruleflow.core.impl.Node
public abstract class Node
Default implementation of a node.
Field Summary | |
---|---|
protected static Node[] |
EMPTY_NODE_ARRAY
|
Constructor Summary | |
---|---|
Node()
|
Method Summary | |
---|---|
protected void |
addIncomingConnection(IConnection connection)
|
protected void |
addOutgoingConnection(IConnection connection)
|
long |
getId()
Returns the id of the node |
List |
getIncomingConnections()
Returns the incoming connections |
String |
getName()
Returns the name of the node |
List |
getOutgoingConnections()
Returns the outgoing connections |
protected void |
removeIncomingConnection(IConnection connection)
|
protected void |
removeOutgoingConnection(IConnection connection)
|
void |
setId(long id)
Method for setting the id of the node |
void |
setName(String name)
Method for setting the name of the node |
protected void |
validateAddIncomingConnection(IConnection connection)
This method validates whether the given connection can be added. |
protected void |
validateAddOutgoingConnection(IConnection connection)
This method validates whether the given connection can be added. |
protected void |
validateRemoveIncomingConnection(IConnection connection)
This method validates whether the given connection can be removed |
protected void |
validateRemoveOutgoingConnection(IConnection connection)
This method validates whether the given connection can be removed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Node[] EMPTY_NODE_ARRAY
Constructor Detail |
---|
public Node()
Method Detail |
---|
public long getId()
INode
public void setId(long id)
INode
id
- the id of the nodepublic String getName()
INode
public void setName(String name)
INode
name
- the name of the nodepublic List getIncomingConnections()
INode
getIncomingConnections
in interface INode
public List getOutgoingConnections()
INode
getOutgoingConnections
in interface INode
protected void addIncomingConnection(IConnection connection)
protected void validateAddIncomingConnection(IConnection connection)
connection
- the incoming connection to be added
IllegalArgumentException
- is thrown if the connection is null, or if a connection is
added twice. If subclasses want to change the rules for
adding incoming connections the
validateAddIncomingConnection(IConnection connection)
should be overridden.protected void addOutgoingConnection(IConnection connection)
protected void validateAddOutgoingConnection(IConnection connection)
connection
- the outgoin connection to be added
IllegalArgumentException
- is thrown if the connection is null, or if a connection is
added twice. If subclasses want to change the rules for
adding outgoing connections the
validateAddIncomingConnection(IConnection connection)
should be overridden.protected void removeIncomingConnection(IConnection connection)
protected void validateRemoveIncomingConnection(IConnection connection)
connection
- the incoming connection
IllegalArgumentException
- is thrown if connectin is null, or unknown. If subclasses
want to change the rules for removing incoming connections
the
validateRemoveIncomingConnection(IConnection connection)
should be overridden.protected void removeOutgoingConnection(IConnection connection)
protected void validateRemoveOutgoingConnection(IConnection connection)
connection
- the outgoing connection
IllegalArgumentException
- is thrown if connectin is null, or unknown. If subclasses
want to change the rules for removing outgoing connections
the
validateRemoveOutgoingConnection(IConnection connection)
should be overridden.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |