Class ObjectTypeNode

  • All Implemented Interfaces:
    MemoryFactory<ObjectTypeNode.ObjectTypeNodeMemory>, NetworkNode, ObjectSink, Sink
    Direct Known Subclasses:
    ReteObjectTypeNode

    public class ObjectTypeNode
    extends ObjectSource
    implements ObjectSink, MemoryFactory<ObjectTypeNode.ObjectTypeNodeMemory>
    ObjectTypeNodes are responsible for filtering and propagating the matching fact assertions propagated from the Rete node using ObjectType interface.

    The assert and retract methods do not attempt to filter as this is the role of the Rete node which builds up a cache of matching ObjectTypdeNodess for each asserted object, using the matches(Object object) method. Incorrect propagation in these methods is not checked and will result in ClassCastExpcections later on in the network.

    Filters Objects coming from the Rete using a ObjectType semantic module.

    See Also:
    Rete