edu.indiana.iucbrf.feature.unknown
Class AggregateFeatureValueSet

java.lang.Object
  extended by edu.indiana.util.statistics.RunningAggregateSet
      extended by edu.indiana.iucbrf.feature.unknown.AggregateFeatureValueSet
All Implemented Interfaces:
CaseBaseListener, java.io.Serializable, java.util.EventListener

public class AggregateFeatureValueSet
extends RunningAggregateSet
implements CaseBaseListener

Keeps track of the aggregate of each feature, when it is known. The features are assumed to be DoubleRepresentable.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.indiana.util.statistics.RunningAggregateSet
RunningAggregateSet.AggregateNotSetException
 
Field Summary
protected  ComponentFactory componentFactory
           
 
Fields inherited from class edu.indiana.util.statistics.RunningAggregateSet
aggs
 
Constructor Summary
AggregateFeatureValueSet()
          Creates a new instance of AggregateFeatureValueSet
AggregateFeatureValueSet(Domain domain, java.util.ArrayList cases)
           
AggregateFeatureValueSet(Domain domain, CaseBase cb)
           
 
Method Summary
 void addToAggregates(Case addedCase)
           
 void addToAggregates(java.util.Iterator caseIter)
           
 void caseAdded(CaseBaseEvent cle)
          Describes the desired reaction to a case addition.
 void caseClassChanged(CaseBaseEvent cle)
          Describes the desired reaction to the changing of the class of cases in the case base.
 void caseRemoved(CaseBaseEvent cle)
          Describes the desired reaction to a case removal.
 void caseReplaced(CaseBaseEvent cle)
          Describes the desired reaction to a case replacement.
 void casesCleared(CaseBaseEvent cle)
          Describes the desired reaction to clearing of all cases.
protected  void init(Domain domain, java.util.Iterator caseIter)
           
 void removeFromAggregates(Case removedCase)
           
 void removeFromAggregates(java.util.Iterator caseIter)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.indiana.util.statistics.RunningAggregateSet
addToAggregate, calcAggregateValue, getAggregate, removeFromAggregate, reset, resetAll, setAggregate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

componentFactory

protected ComponentFactory componentFactory
Constructor Detail

AggregateFeatureValueSet

public AggregateFeatureValueSet()
Creates a new instance of AggregateFeatureValueSet


AggregateFeatureValueSet

public AggregateFeatureValueSet(Domain domain,
                                CaseBase cb)

AggregateFeatureValueSet

public AggregateFeatureValueSet(Domain domain,
                                java.util.ArrayList cases)
Method Detail

init

protected void init(Domain domain,
                    java.util.Iterator caseIter)

addToAggregates

public void addToAggregates(java.util.Iterator caseIter)

removeFromAggregates

public void removeFromAggregates(java.util.Iterator caseIter)

addToAggregates

public void addToAggregates(Case addedCase)

removeFromAggregates

public void removeFromAggregates(Case removedCase)

caseAdded

public void caseAdded(CaseBaseEvent cle)
Describes the desired reaction to a case addition.

Specified by:
caseAdded in interface CaseBaseListener

caseClassChanged

public void caseClassChanged(CaseBaseEvent cle)
Describes the desired reaction to the changing of the class of cases in the case base.

Specified by:
caseClassChanged in interface CaseBaseListener

caseRemoved

public void caseRemoved(CaseBaseEvent cle)
Describes the desired reaction to a case removal.

Specified by:
caseRemoved in interface CaseBaseListener

caseReplaced

public void caseReplaced(CaseBaseEvent cle)
Describes the desired reaction to a case replacement.

Specified by:
caseReplaced in interface CaseBaseListener

casesCleared

public void casesCleared(CaseBaseEvent cle)
Describes the desired reaction to clearing of all cases.

Specified by:
casesCleared in interface CaseBaseListener

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object