Class ReteEdge


  • public class ReteEdge
    extends java.lang.Object
    An edge has start node, end node and a type (object or tuple).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected INode end
      The end node.
      protected INode start
      The start node.
      protected boolean tuple
      Flag indicating, if the edge is an object edge (false) or a tuple edge (true).
    • Constructor Summary

      Constructors 
      Constructor Description
      ReteEdge​(INode start, INode end, boolean tuple)
      Create a new edge.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Check if this edge equals a given object.
      INode getEnd()
      Return the end node of this edge.
      INode getStart()
      Return the start node of this edge.
      int hashCode()
      Hash code of the edge.
      boolean isTuple()
      Check, if this edge is a tuple edge (or an object edge).
      java.lang.String toString()
      Return a string representation
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • start

        protected INode start
        The start node.
      • end

        protected INode end
        The end node.
      • tuple

        protected boolean tuple
        Flag indicating, if the edge is an object edge (false) or a tuple edge (true).
    • Constructor Detail

      • ReteEdge

        public ReteEdge​(INode start,
                        INode end,
                        boolean tuple)
        Create a new edge.
    • Method Detail

      • getStart

        public INode getStart()
        Return the start node of this edge.
      • getEnd

        public INode getEnd()
        Return the end node of this edge.
      • isTuple

        public boolean isTuple()
        Check, if this edge is a tuple edge (or an object edge).
      • hashCode

        public int hashCode()
        Hash code of the edge.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Check if this edge equals a given object.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Return a string representation
        Overrides:
        toString in class java.lang.Object