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

Field Summary
private  FzyRuleComponent owner
           
(package private) static long serialVersionUID
           
private  int setCount
           
 
Fields inherited from class infosapient.system.FzySet
alfaCut, completeMembership, curveSide, domain, hasSolution, hedges, height, leftShouldered, membership, myAttribute, resolvedValue, rightShouldered, serialVersionUID, setType, twoSided, VECMAX
 
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
FzySolutionSet()
           
FzySolutionSet(FzyAttribute fa)
           
FzySolutionSet(FzyRuleComponent frc)
           
 
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.FzyClauseComponent
append, append, getOwner, getText, setOwnerClause, setText, toText
 
Methods inherited from class infosapient.system.FzySystemComponent
addPropertyChangeListener, addVetoableChangeListener, equals, getID, getPropertyChangeSupport, getVetoableChangeSupport, hashCode, removePropertyChangeListener, removeVetoableChangeListener, setID, setName
 
Methods inherited from class infosapient.system.ObservableImpl
addObserver, clearChanged, containsObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

owner

private FzyRuleComponent owner

setCount

private int setCount
Constructor Detail

FzySolutionSet

public FzySolutionSet()

FzySolutionSet

public FzySolutionSet(FzyAttribute fa)

FzySolutionSet

public FzySolutionSet(FzyRuleComponent frc)
Method Detail

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

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.

Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved