jess
Class Group
java.lang.Object
   jess.Group
jess.Group
- All Implemented Interfaces: 
- java.lang.Cloneable, ConditionalElement, jess.ConditionalElementX, java.io.Serializable, Visitable
- public class Group- extends java.lang.Object- implements ConditionalElement, jess.ConditionalElementX, java.io.Serializable, Visitable
A group of patterns on the LHS of a rule, like an "and", "or", "not", "accumulate", or
 other special CE.
 (C) 2006 Sandia National Laboratories
- See Also:
- Serialized Form
| Field Summary | 
| static java.lang.String | ACCUMULATE
 | 
| static java.lang.String | AND
 | 
| static java.lang.String | EXISTS
 | 
| static java.lang.String | EXPLICIT
 | 
| static java.lang.String | FORALL
 | 
| static java.lang.String | LOGICAL
 | 
| static java.lang.String | NOT
 | 
| static java.lang.String | OR
 | 
| static java.lang.String | TEST
 | 
| static java.lang.String | UNIQUE
 | 
 
| Constructor Summary | 
| Group(java.lang.String name)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
AND
public static final java.lang.String AND
- See Also:
- Constant Field Values
UNIQUE
public static final java.lang.String UNIQUE
- See Also:
- Constant Field Values
EXPLICIT
public static final java.lang.String EXPLICIT
- See Also:
- Constant Field Values
NOT
public static final java.lang.String NOT
- See Also:
- Constant Field Values
EXISTS
public static final java.lang.String EXISTS
- See Also:
- Constant Field Values
TEST
public static final java.lang.String TEST
- See Also:
- Constant Field Values
OR
public static final java.lang.String OR
- See Also:
- Constant Field Values
LOGICAL
public static final java.lang.String LOGICAL
- See Also:
- Constant Field Values
FORALL
public static final java.lang.String FORALL
- See Also:
- Constant Field Values
ACCUMULATE
public static final java.lang.String ACCUMULATE
- See Also:
- Constant Field Values
Group
public Group(java.lang.String name)
      throws JessException
clone
public java.lang.Object clone()
- 
- Specified by:
- clonein interface- jess.ConditionalElementX
 
- 
 
getName
public java.lang.String getName()
- 
- Specified by:
- getNamein interface- ConditionalElement
 
- 
 
getPatternCount
public int getPatternCount()
- 
- Specified by:
- getPatternCountin interface- jess.ConditionalElementX
 
- 
 
add
public final Group add(ConditionalElement g)
                throws JessException
- 
 
- 
- Throws:
- JessException
 
add
public final Group add(jess.ConditionalElementX newChild)
                throws JessException
- 
 
- 
- Throws:
- JessException
 
getBackwardChaining
public boolean getBackwardChaining()
- 
- Specified by:
- getBackwardChainingin interface- jess.ConditionalElementX
 
- 
 
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
 
- 
 
setNegated
public void setNegated()
                throws JessException
- 
- Specified by:
- setNegatedin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
setBoundName
public void setBoundName(java.lang.String name)
                  throws JessException
- 
- Specified by:
- setBoundNamein interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
getBoundName
public java.lang.String getBoundName()
- 
- Specified by:
- getBoundNamein interface- ConditionalElement
 
- 
 
isNegatedName
public static boolean isNegatedName(java.lang.String s)
- 
 
- 
 
toString
public java.lang.String toString()
- 
 
- 
 
canonicalize
public jess.ConditionalElementX canonicalize()
                                      throws JessException
- 
- Specified by:
- canonicalizein interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
addToGroup
public void addToGroup(Group g)
                throws JessException
- 
- Specified by:
- addToGroupin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException
 
getGroupSize
public int getGroupSize()
- 
- Specified by:
- getGroupSizein interface- ConditionalElement
 
- 
 
isGroup
public boolean isGroup()
- 
- Specified by:
- isGroupin interface- ConditionalElement
 
- 
 
getConditionalElement
public ConditionalElement getConditionalElement(int i)
- 
- Specified by:
- getConditionalElementin interface- ConditionalElement
 
- 
 
getConditionalElementX
public jess.ConditionalElementX getConditionalElementX(int i)
- 
- Specified by:
- getConditionalElementXin interface- jess.ConditionalElementX
 
- 
 
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 set,
                                       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
 
- 
 
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
- The argument could be a nested group -- a (NOT (AND)). In that
 case, the indexes used for pattern binding should start with
 the normal CE index and increment from there, but without affecting
 the "size" of this LHS.These indexes will be used off on a "branch"
 of the Rete network.
 
- 
- Specified by:
- findVariableDefinitionsin interface- jess.ConditionalElementX
 
- 
- Throws:
- JessException