Class AdaptiveMultimethodVariationCollector
java.lang.Object
org.moeaframework.analysis.runtime.AdaptiveMultimethodVariationCollector
- All Implemented Interfaces:
Collector
Collects the individual operator probabilities from
AdaptiveMultimethodVariation.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an unattached collector for recording the individual operator probabilities fromAdaptiveMultimethodVariation.Constructs a collector for recording the individual operator probabilities from the specifiedAdaptiveMultimethodVariation. -
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint().voidcollect(ResultEntry result) Collects the requested information from the object, storing the data to the given result.Returns the attach point describing where this collector is attached.static doublegetOperatorProbability(ResultEntry result, String name) Reads the operator probability from the result.static doublegetOperatorProbability(ResultEntry result, Variation operator) Reads the operator probability from the result.
-
Constructor Details
-
AdaptiveMultimethodVariationCollector
public AdaptiveMultimethodVariationCollector()Constructs an unattached collector for recording the individual operator probabilities fromAdaptiveMultimethodVariation. -
AdaptiveMultimethodVariationCollector
Constructs a collector for recording the individual operator probabilities from the specifiedAdaptiveMultimethodVariation.- Parameters:
variation- theAdaptiveMultimethodVariationinstance this collector records data from
-
-
Method Details
-
collect
Description copied from interface:CollectorCollects the requested information from the object, storing the data to the given result. This method must only be invoked after this collector has been attached to an appropriate object. -
getAttachPoint
Description copied from interface:CollectorReturns the attach point describing where this collector is attached. The matched object should be unique.- Specified by:
getAttachPointin interfaceCollector- Returns:
- the attach point describing where this collector is attached
-
attach
Description copied from interface:CollectorReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint(). -
getOperatorProbability
Reads the operator probability from the result.- Parameters:
result- the resultname- the name of the operator- Returns:
- the operator probability
-
getOperatorProbability
Reads the operator probability from the result.- Parameters:
result- the resultoperator- the operator- Returns:
- the operator probability
-