Package ai.libs.hasco.core
Class HASCOSolutionCandidate<V extends java.lang.Comparable<V>>
- java.lang.Object
-
- ai.libs.hasco.core.HASCOSolutionCandidate<V>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
EvaluatedSoftwareConfigurationSolution<V>
,org.api4.java.common.attributedobjects.ScoredItem<V>
public class HASCOSolutionCandidate<V extends java.lang.Comparable<V>> extends java.lang.Object implements EvaluatedSoftwareConfigurationSolution<V>
This is a wrapper class only used for efficient processing of solutions. For example, to lookup the annotations of a solution, we do not need the possibly costly equals method of T but only this class. For each solution, only one such object is created.
-
-
Constructor Summary
Constructors Constructor Description HASCOSolutionCandidate(ComponentInstance componentInstance, ai.libs.jaicore.planning.core.interfaces.IEvaluatedGraphSearchBasedPlan<?,?,V> planningSolution, int timeToEvaluateCandidate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentInstance
getComponentInstance()
V
getScore()
long
getTimeOfCreation()
int
getTimeToEvaluateCandidate()
-
-
-
Constructor Detail
-
HASCOSolutionCandidate
public HASCOSolutionCandidate(ComponentInstance componentInstance, ai.libs.jaicore.planning.core.interfaces.IEvaluatedGraphSearchBasedPlan<?,?,V> planningSolution, int timeToEvaluateCandidate)
-
-
Method Detail
-
getComponentInstance
public ComponentInstance getComponentInstance()
- Specified by:
getComponentInstance
in interfaceEvaluatedSoftwareConfigurationSolution<V extends java.lang.Comparable<V>>
-
getScore
public V getScore()
-
getTimeToEvaluateCandidate
public int getTimeToEvaluateCandidate()
-
getTimeOfCreation
public long getTimeOfCreation()
-
-