jess
Class Accumulate

java.lang.Object
  extended by jess.Accumulate
All Implemented Interfaces:
java.io.Serializable, ConditionalElement, Visitable

public class Accumulate
extends java.lang.Object
implements ConditionalElement, Visitable

A special ConditionalElement used to implement "accumulate" conditional elements.

(C) 2007 Sandia National Laboratories

See Also:
Serialized Form

Field Summary
static java.lang.String RESULT
           
 
Constructor Summary
Accumulate()
           
 
Method Summary
 java.lang.Object accept(Visitor v)
          A proper accept() implementation should call one of the visitXXX() methods on the Visitor.
 void add(jess.ConditionalElementX p)
           
 void addDirectlyMatchedVariables(java.util.Set map)
           
 void addToGroup(Group g)
           
 jess.ConditionalElementX canonicalize()
           
 java.lang.Object clone()
           
 void findVariableDefinitions(int startIndex, java.util.Map bindingsSoFar, java.util.Map newBindings)
           
 boolean getBackwardChaining()
           
 Value getBody()
           
 java.lang.String getBoundName()
           
 ConditionalElement getConditionalElement(int i)
           
 jess.ConditionalElementX getConditionalElementX(int i)
           
 int getGroupSize()
           
 Value getInitializer()
           
 boolean getLogical()
           
 java.lang.String getName()
           
 boolean getNegated()
           
 int getPatternCount()
           
 Value getReturn()
           
 boolean isBackwardChainingTrigger()
           
 boolean isGroup()
           
 void recordTestedSlots(java.util.Set testedSlots)
           
 int renameUnmentionedVariables(java.util.Set map, java.util.Map subs, int sequenceNumber, java.lang.String groupPrefix)
           
 void setBody(Value s)
           
 void setBoundName(java.lang.String name)
           
 void setExplicit()
           
 void setInitializer(Value initializer)
           
 void setLogical()
           
 void setNegated()
           
 void setReturn(Value aReturn)
           
 void transformOrConjunctionsIntoOrFuncalls(int startIndex, java.util.Map bindings, Rete engine)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT

public static final java.lang.String RESULT
See Also:
Constant Field Values
Constructor Detail

Accumulate

public Accumulate()
           throws JessException
Throws:
JessException
Method Detail

setBoundName

public void setBoundName(java.lang.String name)
                  throws JessException
Throws:
JessException

setNegated

public void setNegated()
                throws JessException
Throws:
JessException

setExplicit

public void setExplicit()
                 throws JessException
Throws:
JessException

setLogical

public void setLogical()
                throws JessException
Throws:
JessException

getLogical

public boolean getLogical()

getNegated

public boolean getNegated()

canonicalize

public jess.ConditionalElementX canonicalize()
                                      throws JessException
Throws:
JessException

getBackwardChaining

public boolean getBackwardChaining()

addToGroup

public void addToGroup(Group g)
                throws JessException
Throws:
JessException

addDirectlyMatchedVariables

public void addDirectlyMatchedVariables(java.util.Set map)
                                 throws JessException
Throws:
JessException

renameUnmentionedVariables

public int renameUnmentionedVariables(java.util.Set map,
                                      java.util.Map subs,
                                      int sequenceNumber,
                                      java.lang.String groupPrefix)
                               throws JessException
Throws:
JessException

recordTestedSlots

public void recordTestedSlots(java.util.Set testedSlots)
                       throws JessException
Throws:
JessException

transformOrConjunctionsIntoOrFuncalls

public void transformOrConjunctionsIntoOrFuncalls(int startIndex,
                                                  java.util.Map bindings,
                                                  Rete engine)
                                           throws JessException
Throws:
JessException

isBackwardChainingTrigger

public boolean isBackwardChainingTrigger()

getPatternCount

public int getPatternCount()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

getName

public java.lang.String getName()
Specified by:
getName in interface ConditionalElement

getBoundName

public java.lang.String getBoundName()
Specified by:
getBoundName in interface ConditionalElement

getGroupSize

public int getGroupSize()
Specified by:
getGroupSize in interface ConditionalElement

getConditionalElementX

public jess.ConditionalElementX getConditionalElementX(int i)

isGroup

public boolean isGroup()
Specified by:
isGroup in interface ConditionalElement

add

public void add(jess.ConditionalElementX p)
         throws JessException
Throws:
JessException

getConditionalElement

public ConditionalElement getConditionalElement(int i)
Specified by:
getConditionalElement in interface ConditionalElement

setBody

public void setBody(Value s)

getBody

public Value getBody()

getInitializer

public Value getInitializer()

getReturn

public Value getReturn()

setInitializer

public void setInitializer(Value initializer)

setReturn

public void setReturn(Value aReturn)

accept

public java.lang.Object accept(Visitor v)
Description copied from interface: Visitable
A proper accept() implementation should call one of the visitXXX() methods on the Visitor.

Specified by:
accept in interface Visitable
Parameters:
v - a visitor to invoke
Returns:
whatever the invoked Visitor method returns.

findVariableDefinitions

public void findVariableDefinitions(int startIndex,
                                    java.util.Map bindingsSoFar,
                                    java.util.Map newBindings)
                             throws JessException
Throws:
JessException

2013 Sandia Corporation