|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--infosapient.system.ObservableImpl | +--infosapient.system.FzySystemComponent | +--infosapient.system.FzyClauseComponent | +--infosapient.system.FzyAttribClause
Class AttribClause implements the concept of a rule clause. Rule clauses are used both within the premise and the consequent/alternate consequent of a rule
A rule clause will contain the following:
attribOI -- the attribute Of Interest, the attribute that we are attempting to determine the degree of membership.goalSet -- the fuzzy set contained within the attribOI that we are attempting to determine if this set displays any degree of membership.
If the goal set doesn't then this particular attribute clause will be evaluated to zero degree of membership (aka 'false').
Example: Amount_Of_Requested_PO is low.
goalAttribute -- this is present only if the goal set is NOT present. The goalAttribute indicates that we don't know which set of the goal attribute is to be evaluated for membership.
We are interested in this only to the extent that the current domain value of Amount_Of_Requested_PO is within the domain of Amount_Of_Requested_PO.low. If it is not, then this particular clause is evaluated to be FALSE.
Example: Amount_Of_Requested_PO is very above PO_Approval_AMT
In this case the attribute of interest is Amount_Of_Requested_PO. (The value of which we are attempting to determine if it is over PO_Approval_AMT).
The goal attribute is PO_Approval_AMT and we will need to determine the value of it before we can determine if Amount_Of_Requested_PO is very above PO_Approval_AMT.
Field Summary | |
(package private) FzyAttribute |
attribOI
The attributeOfInterest within this clause |
java.lang.String |
conjName
|
(package private) FzyAttribute |
goalAttribute
Goal Attribute (if present) of the attributeOfInterest. |
(package private) FzySet |
goalSet
Goal set (if present) of the atttributeOfInterest |
(package private) java.util.Vector |
hedges
A collection of hedges to modify the set. |
(package private) java.lang.Double |
n
Numeric literal (if present) -- found during parsing this clause. |
(package private) java.lang.String |
name
The name of this attribute clause -- same as the attribOI name. |
(package private) FzyHedge |
rh
A restriction hedge, such as increased or decreased |
(package private) static long |
serialVersionUID
|
(package private) FzySolutionSet |
solution
The solution set of this Attribute clause |
Fields inherited from class infosapient.system.FzyClauseComponent |
owner,
text |
Fields inherited from class infosapient.system.FzySystemComponent |
DEBUG_,
myID,
name,
pcs,
serialVersionUID,
trace,
vcs |
Fields inherited from class infosapient.system.ObservableImpl |
arr,
changed,
obs,
serialVersionUID |
Constructor Summary | |
FzyAttribClause()
Insert the method's description here. |
Method Summary | |
FzySet |
applyHedges()
Clone this set. |
FzyAttribute |
getAttribute()
Return the attribute Of Interest for this attribute clause. |
java.lang.String |
getConjName()
Return the conjunctive for this attribute clause. |
FzySet |
getGoal()
Returns the goal fuzzy set of this clause with the hedges applied. |
FzyAttribute |
getGoalAttribute()
Return the goal attribute for this attribute clause. |
java.util.Vector |
getHedges()
Insert the method's description here. |
java.lang.Double |
getN()
Return the fuzzy attribute numeric goal that the attribOI solution is to be compared to. |
java.lang.String |
getName()
|
double |
getSolution()
Convienence method to return the current solution set's solution (domain value). |
double |
getSolutionDOM()
Convienence method to return the current solution set's solution DOM (membership value). |
FzySolutionSet |
getSolutionSet()
Return the solution set for the attribOI. |
boolean |
hasSolution()
If a solution for this attributes solution fuzzy set has been computed, return true. |
void |
reset()
|
void |
setAttribute(FzyAttribute newAttribute)
Set the attribOI for this attribClause. |
void |
setConjName(java.lang.String newConjName)
Insert the method's description here. |
void |
setGoal(FzySet fs)
Sets the goal fuzzy set of this attribute (the set that we are trying to determine. |
void |
setGoalAttribute(FzyAttribute newGoalAttribute)
Insert the method's description here. |
void |
setHedges(java.util.Vector newHedges)
Insert the method's description here. |
void |
setN(java.lang.Double newN)
Insert the method's description here. |
void |
setName(java.lang.String n)
|
void |
setSolutionSet(FzySolutionSet fos)
Sets the SolutionSet for the attribOI. |
java.lang.String |
toString()
|
java.lang.StringBuffer |
toXML(int nTabs)
Represent this attribute clause as text. |
void |
update(Observable juo,
java.lang.Object obj)
|
Methods inherited from class infosapient.system.FzyClauseComponent |
append,
append,
getOwner,
getText,
setOwnerClause,
setText,
toText |
Methods inherited from class infosapient.system.FzySystemComponent |
addPropertyChangeListener,
addVetoableChangeListener,
equals,
getID,
getPropertyChangeSupport,
getVetoableChangeSupport,
hashCode,
printOn,
removePropertyChangeListener,
removeVetoableChangeListener,
setID |
Methods inherited from class infosapient.system.ObservableImpl |
addObserver,
clearChanged,
containsObserver,
countObservers,
deleteObserver,
deleteObservers,
hasChanged,
notifyObservers,
notifyObservers,
setChanged |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final long serialVersionUID
FzyAttribute attribOI
FzySet goalSet
java.util.Vector hedges
FzyAttribute goalAttribute
FzyHedge rh
FzySolutionSet solution
java.lang.String name
java.lang.Double n
public java.lang.String conjName
Constructor Detail |
public FzyAttribClause()
Method Detail |
public FzySet applyHedges() throws java.lang.CloneNotSupportedException
public FzyAttribute getAttribute()
public java.lang.String getConjName()
public FzySet getGoal() throws java.lang.CloneNotSupportedException, FzySystemException
public FzyAttribute getGoalAttribute()
public java.util.Vector getHedges()
public java.lang.Double getN()
public java.lang.String getName()
public double getSolution()
public double getSolutionDOM()
public FzySolutionSet getSolutionSet()
public boolean hasSolution()
public void reset()
public void setAttribute(FzyAttribute newAttribute)
newAttribute
- infosapient.system.FzyAttributepublic void setConjName(java.lang.String newConjName)
newConjName
- java.lang.Stringpublic void setGoal(FzySet fs)
FzySet
- the goal set of this attribute.public void setGoalAttribute(FzyAttribute newGoalAttribute)
newGoalAttribute
- infosapient.system.FzyAttributepublic void setHedges(java.util.Vector newHedges)
newHedges
- java.util.Vectorpublic void setN(java.lang.Double newN)
newN
- java.lang.Doublepublic void setName(java.lang.String n)
public void setSolutionSet(FzySolutionSet fos)
FzySolutionSet
- sol -- the solutionSet for the attribOI.public java.lang.String toString()
public java.lang.StringBuffer toXML(int nTabs)
public void update(Observable juo, java.lang.Object obj)
|
License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |