Constructor and Description |
---|
ElapsedTimeCollector()
Constructs a collector for recording the elapsed execution time of an algorithm.
|
Modifier and Type | Method and Description |
---|---|
Collector |
attach(java.lang.Object object)
Returns a new instance of this collector which has been attached to the
specified object as identified by the attach point returned through
Collector.getAttachPoint() . |
void |
collect(Observation observation)
Collects the requested information from the object, storing the data
to the specified observation.
|
AttachPoint |
getAttachPoint()
Returns the attach point describing where this collector is attached.
|
static double |
getElapsedTime(Observation observation)
Reads the elapsed time value from the observation.
|
public ElapsedTimeCollector()
public void collect(Observation observation)
Collector
public AttachPoint getAttachPoint()
Collector
getAttachPoint
in interface Collector
public Collector attach(java.lang.Object object)
Collector
Collector.getAttachPoint()
.public static double getElapsedTime(Observation observation)
observation
- the observationCopyright 2009-2024 David Hadka and other contributors. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage.