data
Interface DataListener

All Known Subinterfaces:
ApproxModel, DataFit, TwoFidelityApproxModel
All Known Implementing Classes:
AbstractInitialSampleBasedOptimizer, AbstractOptimizer, AbstractPointOptimizer, AbstractPopulationOptimizer, AdaptiveMultiPointRiskPerfOptimizer, BasicApproxModel, BasicRealEncodedGA, BasicTwoFidelityModel, ConstrainedTwoStageAlgoBuilder, GPRegression, ImprovementAlgoBuilder, ISIS, MultiPointRiskPerfAlgoBuilder, MultiPointRiskPerfOptimizer, NSGA2, PCGA, PenaltyFunctionModel, PenaltyTwoStageAlgoBuilder, TwoStageAlgoBuilder, TwoStageOptimizer, TwoStageRiskPerfAlgoBuilder, TwoStageRiskPerfOptimizer

public interface DataListener

Objects supporting this interface can be added as listeners to DataHandlers, and thus be notified whenever data is added or removed to a DataHandler.

Author:
dgorur

Method Summary
 void clear()
          Notification that all data has been removed.
 int dataAdded(DataBlock block)
          Notification that a DataBlock has been added.
 boolean dataAdded(DataPoint dataPoint)
          Notification that a single DataPoint has been added.
 int dataRemoved(DataBlock dataBlock)
          Notification that a DataBlock has been removed.
 boolean dataRemoved(DataPoint dataPoint)
          Notification that a single DataPoint has been removed.
 

Method Detail

clear

void clear()
Notification that all data has been removed.


dataAdded

int dataAdded(DataBlock block)
Notification that a DataBlock has been added.

Parameters:
block - the DataBlock added.
Returns:
number of points successfully added.

dataAdded

boolean dataAdded(DataPoint dataPoint)
Notification that a single DataPoint has been added.

Parameters:
dataPoint - the DataPoint added.
Returns:
true if the DataPoint was successfully added.

dataRemoved

int dataRemoved(DataBlock dataBlock)
Notification that a DataBlock has been removed.

Parameters:
dataBlock - the DataBlock removed.
Returns:
the number of DataPoints successfully removed.

dataRemoved

boolean dataRemoved(DataPoint dataPoint)
Notification that a single DataPoint has been removed.

Parameters:
dataPoint - the DataPointremoved.
Returns:
true if the DataPoint was successfully removed.