Constructor. Pass a head and a body.
Parameters: c - a list of facts that is going to be the body of the rule Parameters: h - a fact that is going to be the head of the rule
Constructor. Pass a head and a body.
Parameters: c - a list of facts that is going to be the body of the rule Parameters: h - a fact that is going to be the head of the rule Parameters: or - if true the premisses are connected by OR, otherwise by AND
Apply a set of replacements to a clause. Returns a new clause!
the rule (clause) resulting from the application of the replacements Parameters: r - a collection of replacements
Apply a single replacement to a fact. Returns a new clause!
the rule (clause) resulting from the application of the replacemen Parameters: r - the replacement
public void setBodyOrConnected(boolean value)(Code)
Set a new value. A value true means that the prerequisistes are connected by OR,
a value false means that the prerequistes are connected by AND.
Parameters: value - a boolean
Set the head. Note that we fire an event because changing the head
could imply changing the key and containers (knowledge bases) need to be notified
about this.
Prova: add isBound processing
Parameters: f - the new head