|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjess.Pattern
Pattern represents a single conditional element on a rule LHS. A Pattern consists mainly of a two-dimensional array of Test1 structures. Each Test1 contains information about a specific characteristic of a slot.
(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories
Constructor Summary | |
Pattern(java.lang.String name,
Deftemplate deft)
|
|
Pattern(java.lang.String name,
Rete engine)
|
Method Summary | |
java.lang.Object |
accept(Visitor jv)
|
void |
addDirectlyMatchedVariables(java.util.Map map)
|
void |
addTest(java.lang.String slotname,
Test1 aTest)
Add a test to this pattern |
void |
addToGroup(jess.Group g)
|
jess.LHSComponent |
canonicalize()
|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getBackchainingTemplateName()
|
boolean |
getBackwardChaining()
|
java.lang.String |
getBoundName()
|
ConditionalElement |
getConditionalElement(int i)
|
Deftemplate |
getDeftemplate()
|
boolean |
getExplicit()
|
int |
getGroupSize()
|
jess.LHSComponent |
getLHSComponent(int i)
|
boolean |
getLogical()
|
java.lang.String |
getName()
|
java.lang.String |
getNameWithoutBackchainingPrefix()
|
boolean |
getNegated()
Is this pattern a (not()) CE pattern, possibly nested? |
int |
getNMultifieldsInSlot(int slot)
|
int |
getNSlots()
|
int |
getNTests(int slot)
|
int |
getPatternCount()
|
int |
getSlotLength(int slot)
|
Test1 |
getTest(int slot,
int test)
|
boolean |
isBackwardChainingTrigger()
|
boolean |
isGroup()
|
boolean |
isMultifieldSubslot(int slot,
int subslot)
|
void |
renameUnmentionedVariables(java.util.Map map,
java.util.Map substitutes,
int size,
HasLHS unused)
|
void |
setBoundName(java.lang.String s)
|
void |
setExplicit()
|
void |
setLogical()
|
void |
setNegated()
|
void |
setSlotLength(java.lang.String slotname,
int length)
Set the length of a multislot within a pattern |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Pattern(java.lang.String name, Rete engine) throws JessException
public Pattern(java.lang.String name, Deftemplate deft)
Method Detail |
public java.lang.Object clone()
clone
in interface jess.LHSComponent
public void setSlotLength(java.lang.String slotname, int length) throws JessException
JessException
public void addTest(java.lang.String slotname, Test1 aTest) throws JessException
JessException
public void addDirectlyMatchedVariables(java.util.Map map) throws JessException
addDirectlyMatchedVariables
in interface jess.LHSComponent
JessException
public void renameUnmentionedVariables(java.util.Map map, java.util.Map substitutes, int size, HasLHS unused) throws JessException
renameUnmentionedVariables
in interface jess.LHSComponent
JessException
public boolean getNegated()
getNegated
in interface jess.LHSComponent
public void setNegated()
setNegated
in interface jess.LHSComponent
public void setLogical()
setLogical
in interface jess.LHSComponent
public boolean getLogical()
getLogical
in interface jess.LHSComponent
public void setExplicit()
setExplicit
in interface jess.LHSComponent
public boolean getExplicit()
public boolean getBackwardChaining()
getBackwardChaining
in interface jess.LHSComponent
public java.lang.String getName()
getName
in interface ConditionalElement
public void setBoundName(java.lang.String s) throws JessException
setBoundName
in interface jess.LHSComponent
JessException
public java.lang.String getBoundName()
getBoundName
in interface ConditionalElement
public int getNSlots()
public int getNTests(int slot)
public int getSlotLength(int slot)
public int getNMultifieldsInSlot(int slot)
public boolean isMultifieldSubslot(int slot, int subslot)
public Test1 getTest(int slot, int test)
public Deftemplate getDeftemplate()
public void addToGroup(jess.Group g) throws JessException
addToGroup
in interface jess.LHSComponent
JessException
public jess.LHSComponent canonicalize()
canonicalize
in interface jess.LHSComponent
public java.lang.Object accept(Visitor jv)
accept
in interface Visitable
public int getGroupSize()
getGroupSize
in interface ConditionalElement
public boolean isGroup()
isGroup
in interface ConditionalElement
public ConditionalElement getConditionalElement(int i)
getConditionalElement
in interface ConditionalElement
public int getPatternCount()
getPatternCount
in interface jess.LHSComponent
public jess.LHSComponent getLHSComponent(int i)
getLHSComponent
in interface jess.LHSComponent
public boolean equals(java.lang.Object o)
public boolean isBackwardChainingTrigger()
isBackwardChainingTrigger
in interface jess.LHSComponent
public java.lang.String getBackchainingTemplateName()
public java.lang.String getNameWithoutBackchainingPrefix()
public java.lang.String toString()
|
© 2001 E.J. Friedman-Hill and Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |