jess
Class Accumulate
java.lang.Object
   jess.Accumulate
jess.Accumulate
- All Implemented Interfaces: 
- java.lang.Cloneable, ConditionalElement, jess.ConditionalElementX, java.io.Serializable, Visitable
- public class Accumulate- extends java.lang.Object- implements ConditionalElement, jess.ConditionalElementX, Visitable
A special ConditionalElement used to implement "accumulate"
 conditional elements.
 
 (C) 2006 Sandia National Laboratories
- See Also:
- Serialized Form
| Field Summary | 
| static java.lang.String | RESULT
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RESULT
public static final java.lang.String RESULT
- See Also:
- Constant Field Values
Accumulate
public Accumulate()
setBoundName
public void setBoundName(java.lang.String name)
                  throws JessException
- 
- Specified by:
- setBoundNamein interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
setNegated
public void setNegated()
                throws JessException
- 
- Specified by:
- setNegatedin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
setExplicit
public void setExplicit()
                 throws JessException
- 
- Specified by:
- setExplicitin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
setLogical
public void setLogical()
                throws JessException
- 
- Specified by:
- setLogicalin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
getLogical
public boolean getLogical()
- 
- Specified by:
- getLogicalin interface- jess.ConditionalElementX
 
- 
 
getNegated
public boolean getNegated()
- 
- Specified by:
- getNegatedin interface- jess.ConditionalElementX
 
- 
 
canonicalize
public jess.ConditionalElementX canonicalize()
                                      throws JessException
- 
- Specified by:
- canonicalizein interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
getBackwardChaining
public boolean getBackwardChaining()
- 
- Specified by:
- getBackwardChainingin interface- jess.ConditionalElementX
 
- 
 
addToGroup
public void addToGroup(Group g)
                throws JessException
- 
- Specified by:
- addToGroupin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
addDirectlyMatchedVariables
public void addDirectlyMatchedVariables(java.util.Set map)
                                 throws JessException
- 
- Specified by:
- addDirectlyMatchedVariablesin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
renameUnmentionedVariables
public void renameUnmentionedVariables(java.util.Set map,
                                       java.util.Map subs,
                                       int sequenceNumber)
                                throws JessException
- 
- Specified by:
- renameUnmentionedVariablesin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
recordTestedSlots
public void recordTestedSlots(int oldCount,
                              java.util.Set testedSlots)
- 
- Specified by:
- recordTestedSlotsin interface- jess.ConditionalElementX
 
- 
 
isBackwardChainingTrigger
public boolean isBackwardChainingTrigger()
- 
- Specified by:
- isBackwardChainingTriggerin interface- jess.ConditionalElementX
 
- 
 
getPatternCount
public int getPatternCount()
- 
- Specified by:
- getPatternCountin interface- jess.ConditionalElementX
 
- 
 
clone
public java.lang.Object clone()
- 
- Specified by:
- clonein interface- jess.ConditionalElementX
 
- 
 
getName
public java.lang.String getName()
- 
- Specified by:
- getNamein interface- ConditionalElement
 
- 
 
getBoundName
public java.lang.String getBoundName()
- 
- Specified by:
- getBoundNamein interface- ConditionalElement
 
- 
 
getGroupSize
public int getGroupSize()
- 
- Specified by:
- getGroupSizein interface- ConditionalElement
 
- 
 
getConditionalElementX
public jess.ConditionalElementX getConditionalElementX(int i)
- 
- Specified by:
- getConditionalElementXin interface- jess.ConditionalElementX
 
- 
 
isGroup
public boolean isGroup()
- 
- Specified by:
- isGroupin interface- ConditionalElement
 
- 
 
add
public void add(jess.ConditionalElementX p)
- 
 
- 
 
getConditionalElement
public ConditionalElement getConditionalElement(int i)
- 
- Specified by:
- getConditionalElementin 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:
- acceptin 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
- 
- Specified by:
- findVariableDefinitionsin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException