net.sourceforge.cilib.measurement
Class MeasurementStateManager
java.lang.Object
net.sourceforge.cilib.measurement.MeasurementStateManager
public class MeasurementStateManager
- extends Object
- Author:
- gpampara
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeasurementStateManager
public MeasurementStateManager()
setState
public void setState(Algorithm algorithm,
StateAwareMeasurement measurement)
- Restore the current state of the measurement which is assigned to the
provided algorithm instance.
- Parameters:
algorithm
- The algorithm for which this measurement's state needs
to be applied.measurement
- The measurement to which it's state needs to be
restored.
getState
public MeasurementMemento getState(Algorithm algorithm,
StateAwareMeasurement measurement)
- Extract the state of the provided
measurement
based on the current
provided algorithm
.
- Parameters:
algorithm
- The algorithm to which the measurement state is associated.measurement
- The measurement which needs to have it's state extracted.
Copyright © 2009 CIRG. All Rights Reserved.