rule
Class EffectorClause

java.lang.Object
  |
  +--rule.Clause
        |
        +--rule.EffectorClause

public class EffectorClause
extends Clause

The EffectorClause class adds effectors to a rule.


Field Summary
(package private)  java.lang.String arguments
           
(package private)  java.lang.String effectorName
           
(package private)  Effector object
           
 
Fields inherited from class rule.Clause
cond, consequent, lhs, rhs, ruleRefs, truth
 
Constructor Summary
EffectorClause(java.lang.String eName, java.lang.String args)
          Creates an EffectorClause object with the given name and argument string.
 
Method Summary
 java.lang.String display()
          Returns a display string for the effector.
 java.lang.Boolean perform(BooleanRuleBase rb)
          Peforms the effector clause.
 
Methods inherited from class rule.Clause
addRuleRef, check, getRule, setConsequent, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

object

Effector object

effectorName

java.lang.String effectorName

arguments

java.lang.String arguments
Constructor Detail

EffectorClause

public EffectorClause(java.lang.String eName,
                      java.lang.String args)
Creates an EffectorClause object with the given name and argument string.
Parameters:
eName - the String object that contains the name of the effector
args - the String object that contains arguments for the effector
Method Detail

display

public java.lang.String display()
Returns a display string for the effector.
Returns:
the String object that contains a displayable string

perform

public java.lang.Boolean perform(BooleanRuleBase rb)
Peforms the effector clause.
Parameters:
rb - the BooleanRuleBase object that this clause is part of
Returns:
the Boolean object that contains the value true