Class HASCOSolutionCandidate<V extends java.lang.Comparable<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 Detail

      • HASCOSolutionCandidate

        public HASCOSolutionCandidate​(ComponentInstance componentInstance,
                                      ai.libs.jaicore.planning.core.interfaces.IEvaluatedGraphSearchBasedPlan<?,​?,​V> planningSolution,
                                      int timeToEvaluateCandidate)
    • Method Detail

      • getScore

        public V getScore()
        Specified by:
        getScore in interface org.api4.java.common.attributedobjects.ScoredItem<V extends java.lang.Comparable<V>>
      • getTimeToEvaluateCandidate

        public int getTimeToEvaluateCandidate()
      • getTimeOfCreation

        public long getTimeOfCreation()