Menu

What does +J indicate?

Help
Ash
2008-03-31
2012-11-23
  • Ash

    Ash - 2008-03-31

    When I load a CLIPS program, I see the following output:
    -------------------------------------------------------
             CLIPS (V6.22 06/15/04)
    CLIPS> (load "C:/Documents and Settings/Administrator/Desktop/clips/clips-example.clp")
    Defining deftemplate: person
    Defining deffacts: myFiriends
    Defining defrule: find-blue-eyes +j
    TRUE
    CLIPS>
    -----------------------------------

    My question is: What does +J indicate in the last but one line of the output above?

    Thanks very much.

    Sincerely,
    Ash

     
    • Gary Riley

      Gary Riley - 2008-03-31

      Each pattern in a rule creates a "join" in the rete network which is used to constrain the common variables bound across patterns. Sometimes joins can be shared by multiple rules. When you see +j that signifies a new join was created. When you see =j that signifies that an existing join was reused.

       
    • Ash

      Ash - 2008-03-31

      Thanks so much, Gary. I much appreciate your prompt reply.
      Regards,
      Ashraf

       

Log in to post a comment.