Class AlphaNode

  • All Implemented Interfaces:
    java.io.Serializable, org.drools.base.common.NetworkNode, ObjectSink, ObjectSinkNode, Sink

    public class AlphaNode
    extends ObjectSource
    implements ObjectSinkNode
    AlphaNodes are nodes in the Rete network used to apply FieldConstraint<.code>s on asserted fact objects where the FieldConstraints have no dependencies on any other of the facts in the current Rule.
    See Also:
    AlphaNodeFieldConstraint, Serialized Form
    • Field Detail

      • constraint

        protected org.drools.base.rule.constraint.AlphaNodeFieldConstraint constraint
        The FieldConstraint
    • Constructor Detail

      • AlphaNode

        public AlphaNode()
      • AlphaNode

        public AlphaNode​(int id,
                         org.drools.base.rule.constraint.AlphaNodeFieldConstraint constraint,
                         ObjectSource objectSource,
                         BuildContext context)
        Construct an AlphaNode with a unique id using the provided FieldConstraint and the given ObjectSource. Set the boolean flag to true if the node is supposed to have local memory, or false otherwise. Memory is optional for AlphaNodes and is only of benefic when adding additional Rules at runtime.
        Parameters:
        id - Node's ID
        constraint - Node's constraints
        objectSource - Node's object source