infosapient.system
Class FzySolutionSet
java.lang.Object
|
+--infosapient.system.ObservableImpl
|
+--infosapient.system.FzySystemComponent
|
+--infosapient.system.FzyClauseComponent
|
+--infosapient.system.FzySet
|
+--infosapient.system.FzySolutionSet
- public class FzySolutionSet
- extends FzySet
FzySolutionSet implements the output sets(solutions) of the fuzzy expert system.
- See Also:
- Serialized Form
Fields inherited from class infosapient.system.FzySet |
alfaCut,
completeMembership,
curveSide,
domain,
hasSolution,
hedges,
height,
leftShouldered,
membership,
myAttribute,
resolvedValue,
rightShouldered,
serialVersionUID,
setType,
twoSided,
VECMAX |
Method Summary |
java.lang.Object |
clone()
Method for Cloneable interface -- provides a deep copy of the current
set, EXCEPT the hedges. |
java.lang.String |
getName()
Return the name of the owning rule component or fzyattribute. |
boolean |
hasSolution()
Return a boolean based on: that this FzySolutionSet's resolvedValue != Double.NaN
AND that the integrated membership is > 0.0. |
void |
incrementSetCount()
|
FzySet |
initializeDomain()
intialize the starting domain for the solution set to be all zeros. |
FzySet |
initializeMembership()
intialize the starting membership for the solution set to be all zeros. |
boolean |
isEmpty()
Return a boolean based on whether or not any sets have been added to the
solution. |
java.lang.String |
typeAsString()
|
Methods inherited from class infosapient.system.FzySet |
addHedge,
doesContain,
domainForMembership,
dump,
dumpAsStringBuffer,
getAlphaCut,
getAttribute,
getCmpMembership,
getDOM,
getDomain,
getDomainArray,
getHedges,
getHighDomain,
getIndexForDomain,
getLowDomain,
getMaxHeight,
getMemberArray,
getMembership,
getMinHeight,
getQualifiedName,
getSides,
getSolution,
getSolutionDOM,
getVECMAX,
initializeDomain,
integrateMbr,
integrateMbr,
isLeftShouldered,
isNormal,
isRightShouldered,
isTwoSided,
lessThanOrEquals,
printOn,
reset,
setAttribute,
setCmpMembership,
setDomain,
setDomainArray,
setHedges,
setHighDomain,
setLeftShouldered,
setLowDomain,
setMembership,
setMembershipArray,
setRightShouldered,
setSolution,
setTwoSided,
sumDomain,
toXML,
validate,
validate |
Methods inherited from class infosapient.system.FzySystemComponent |
addPropertyChangeListener,
addVetoableChangeListener,
equals,
getID,
getPropertyChangeSupport,
getVetoableChangeSupport,
hashCode,
removePropertyChangeListener,
removeVetoableChangeListener,
setID,
setName |
Methods inherited from class java.lang.Object |
,
finalize,
getClass,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
serialVersionUID
static final long serialVersionUID
owner
private FzyRuleComponent owner
setCount
private int setCount
FzySolutionSet
public FzySolutionSet()
FzySolutionSet
public FzySolutionSet(FzyAttribute fa)
FzySolutionSet
public FzySolutionSet(FzyRuleComponent frc)
clone
public java.lang.Object clone()
- Method for Cloneable interface -- provides a deep copy of the current
set, EXCEPT the hedges.
- Overrides:
- clone in class FzySet
- Returns:
- Object the new FzySolutionSet cloned.
getName
public java.lang.String getName()
- Return the name of the owning rule component or fzyattribute.
- Overrides:
- getName in class FzySystemComponent
- Returns:
- String - the name of this solution set.
hasSolution
public boolean hasSolution()
- Return a boolean based on: that this FzySolutionSet's resolvedValue != Double.NaN
AND that the integrated membership is > 0.0.
Basically, this last part is saying that a solution can be
computed if it doesnt currently have a resolved value.
- Overrides:
- hasSolution in class FzySet
- Returns:
- boolean - true if this set has a solution.
incrementSetCount
public void incrementSetCount()
initializeDomain
public FzySet initializeDomain()
- intialize the starting domain for the solution set to be all zeros.
- Returns:
- FzySolutionSet - to maintain consistency with abstract FzySet.initializeDomain()
initializeMembership
public FzySet initializeMembership()
- intialize the starting membership for the solution set to be all zeros.
- Overrides:
- initializeMembership in class FzySet
- Returns:
- FzySolutionSet - to maintain consistency with abstract FzySet.initializeDomain()
isEmpty
public boolean isEmpty()
- Return a boolean based on whether or not any sets have been added to the
solution.
- Returns:
- boolean - true if no sets added.
typeAsString
public java.lang.String typeAsString()
- Overrides:
- typeAsString in class FzySet
Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved