org.drools.ruleflow.core.impl
Class MilestoneNodeImpl

java.lang.Object
  extended by org.drools.ruleflow.core.impl.NodeImpl
      extended by org.drools.ruleflow.core.impl.MilestoneNodeImpl
All Implemented Interfaces:
java.io.Serializable, MilestoneNode, Node

public class MilestoneNodeImpl
extends NodeImpl
implements MilestoneNode

Default implementation of a milestone node.

Author:
Kris Verlaenen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.ruleflow.core.impl.NodeImpl
EMPTY_NODE_ARRAY
 
Constructor Summary
MilestoneNodeImpl()
           
 
Method Summary
 java.lang.String getConstraint()
          Returns the constraint of the MilestoneNode.
 Connection getFrom()
          Returns the incoming connection of the MilestoneNode.
 Connection getTo()
          Returns the outgoing connection of the MilestoneNode.
 void setConstraint(java.lang.String constraint)
          Sets the constraint of the MilestoneNode.
protected  void validateAddIncomingConnection(Connection connection)
          This method validates whether the given connection can be added.
protected  void validateAddOutgoingConnection(Connection connection)
          This method validates whether the given connection can be added.
 
Methods inherited from class org.drools.ruleflow.core.impl.NodeImpl
addIncomingConnection, addOutgoingConnection, getId, getIncomingConnections, getName, getOutgoingConnections, removeIncomingConnection, removeOutgoingConnection, setId, setName, validateRemoveIncomingConnection, validateRemoveOutgoingConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.ruleflow.core.Node
getId, getIncomingConnections, getName, getOutgoingConnections, setId, setName
 

Constructor Detail

MilestoneNodeImpl

public MilestoneNodeImpl()
Method Detail

setConstraint

public void setConstraint(java.lang.String constraint)
Description copied from interface: MilestoneNode
Sets the constraint of the MilestoneNode.

Specified by:
setConstraint in interface MilestoneNode
Parameters:
constraint - The constraint of the MilestoneNode

getConstraint

public java.lang.String getConstraint()
Description copied from interface: MilestoneNode
Returns the constraint of the MilestoneNode.

Specified by:
getConstraint in interface MilestoneNode
Returns:
the constraint of the MilestoneNode.

getFrom

public Connection getFrom()
Description copied from interface: MilestoneNode
Returns the incoming connection of the MilestoneNode.

Specified by:
getFrom in interface MilestoneNode
Returns:
the incoming connection of the MilestoneNode.

getTo

public Connection getTo()
Description copied from interface: MilestoneNode
Returns the outgoing connection of the MilestoneNode.

Specified by:
getTo in interface MilestoneNode
Returns:
the outgoing connection of the MilestoneNode.

validateAddIncomingConnection

protected void validateAddIncomingConnection(Connection connection)
Description copied from class: NodeImpl
This method validates whether the given connection can be added. If the connection cannot be added, an IllegalArgumentException is thrown.

Overrides:
validateAddIncomingConnection in class NodeImpl
Parameters:
connection - the incoming connection to be added

validateAddOutgoingConnection

protected void validateAddOutgoingConnection(Connection connection)
Description copied from class: NodeImpl
This method validates whether the given connection can be added. If the connection cannot be added, an IllegalArgumentException is thrown.

Overrides:
validateAddOutgoingConnection in class NodeImpl
Parameters:
connection - the outgoin connection to be added