Package org.uma.jmetal.util.measure.impl
Class BasicMeasure<T>
java.lang.Object
org.uma.jmetal.util.naming.impl.SimpleDescribedEntity
org.uma.jmetal.util.measure.impl.SimpleMeasure<T>
org.uma.jmetal.util.measure.impl.SimplePushMeasure<T>
org.uma.jmetal.util.measure.impl.BasicMeasure<T>
- All Implemented Interfaces:
Serializable,Measure<T>,PullMeasure<T>,PushMeasure<T>,DescribedEntity
A
BasicMeasure provides a simple way to define a
measure that merely stores a single value- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()voidNotify the observers which has registered aMeasureListenerthroughSimplePushMeasure.register(MeasureListener)about a value.voidMethods inherited from class org.uma.jmetal.util.measure.impl.SimplePushMeasure
register, unregisterMethods inherited from class org.uma.jmetal.util.naming.impl.SimpleDescribedEntity
description, name, setDescription, setName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.uma.jmetal.util.naming.DescribedEntity
description, nameMethods inherited from interface org.uma.jmetal.util.measure.PushMeasure
register, unregister
-
Constructor Details
-
BasicMeasure
public BasicMeasure()Create aBasicMeasure
-
-
Method Details
-
set
- Parameters:
value- The value to be stored
-
get
- Specified by:
getin interfacePullMeasure<T>- Returns:
- the current value
-
push
Description copied from class:SimplePushMeasureNotify the observers which has registered aMeasureListenerthroughSimplePushMeasure.register(MeasureListener)about a value.- Overrides:
pushin classSimplePushMeasure<T>- Parameters:
value- the value to send to the observers
-