Class HASCOSolutionCandidate<V extends java.lang.Comparable<V>>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    ai.libs.jaicore.components.api.IEvaluatedSoftwareConfigurationSolution<V>, org.api4.java.common.attributedobjects.ScoredItem<V>

    public class HASCOSolutionCandidate<V extends java.lang.Comparable<V>>
    extends java.lang.Object
    implements ai.libs.jaicore.components.api.IEvaluatedSoftwareConfigurationSolution<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​(ai.libs.jaicore.components.model.ComponentInstance componentInstance, ai.libs.jaicore.planning.core.interfaces.IEvaluatedGraphSearchBasedPlan<?,​?,​V> planningSolution, int timeToEvaluateCandidate)  
    • Constructor Detail

      • HASCOSolutionCandidate

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

      • getComponentInstance

        public ai.libs.jaicore.components.model.ComponentInstance getComponentInstance()
        Specified by:
        getComponentInstance in interface ai.libs.jaicore.components.api.IEvaluatedSoftwareConfigurationSolution<V extends java.lang.Comparable<V>>
      • 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()