Package ai.libs.hasco.twophase
Class TwoPhaseCandidateEvaluator
- java.lang.Object
-
- ai.libs.hasco.twophase.TwoPhaseCandidateEvaluator
-
- All Implemented Interfaces:
java.lang.Runnable
,org.api4.java.common.control.ILoggingCustomizable
public class TwoPhaseCandidateEvaluator extends java.lang.Object implements java.lang.Runnable, org.api4.java.common.control.ILoggingCustomizable
-
-
Constructor Summary
Constructors Constructor Description TwoPhaseCandidateEvaluator(HASCOSolutionCandidate<java.lang.Double> c, long selectionPhaseDeadline, double timeoutTolerance, double blowupInSelection, double blowupInPostProcessing, org.api4.java.common.attributedobjects.IObjectEvaluator<ai.libs.jaicore.components.model.ComponentInstance,java.lang.Double> evaluator, java.util.concurrent.Semaphore sem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEstimatedInSelectionSingleIterationEvaluationTime()
int
getEstimatedPostProcessingTime()
int
getEstimatedTotalEffortInCaseOfSelection()
java.lang.String
getLoggerName()
double
getSelectionScore()
HASCOSolutionCandidate<java.lang.Double>
getSolution()
int
getTimeoutForEvaluation()
long
getTrueEvaluationTime()
void
run()
void
setLoggerName(java.lang.String name)
-
-
-
Constructor Detail
-
TwoPhaseCandidateEvaluator
public TwoPhaseCandidateEvaluator(HASCOSolutionCandidate<java.lang.Double> c, long selectionPhaseDeadline, double timeoutTolerance, double blowupInSelection, double blowupInPostProcessing, org.api4.java.common.attributedobjects.IObjectEvaluator<ai.libs.jaicore.components.model.ComponentInstance,java.lang.Double> evaluator, java.util.concurrent.Semaphore sem)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
getSelectionScore
public double getSelectionScore()
-
getSolution
public HASCOSolutionCandidate<java.lang.Double> getSolution()
-
getEstimatedInSelectionSingleIterationEvaluationTime
public int getEstimatedInSelectionSingleIterationEvaluationTime()
-
getEstimatedPostProcessingTime
public int getEstimatedPostProcessingTime()
-
getEstimatedTotalEffortInCaseOfSelection
public int getEstimatedTotalEffortInCaseOfSelection()
-
getTimeoutForEvaluation
public int getTimeoutForEvaluation()
-
getTrueEvaluationTime
public long getTrueEvaluationTime()
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
-
-