Class OptimizingFactory<P extends SoftwareConfigurationProblem<V>,​T,​C extends EvaluatedSoftwareConfigurationSolution<V>,​V extends java.lang.Comparable<V>>

  • All Implemented Interfaces:
    java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>, java.util.concurrent.Callable<T>, java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>, org.api4.java.algorithm.IAlgorithm<OptimizingFactoryProblem<P,​T,​V>,​T>, org.api4.java.common.control.ICancelable, org.api4.java.common.control.ILoggingCustomizable

    public class OptimizingFactory<P extends SoftwareConfigurationProblem<V>,​T,​C extends EvaluatedSoftwareConfigurationSolution<V>,​V extends java.lang.Comparable<V>>
    extends ai.libs.jaicore.basic.algorithm.AAlgorithm<OptimizingFactoryProblem<P,​T,​V>,​T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T call()  
      void cancel()  
      ComponentInstance getComponentInstanceOfObject()  
      java.lang.String getLoggerName()  
      SoftwareConfigurationAlgorithm<P,​C,​V> getOptimizer()  
      V getPerformanceOfObject()  
      ai.libs.jaicore.basic.algorithm.AlgorithmInitializedEvent init()  
      org.api4.java.algorithm.events.IAlgorithmEvent nextWithException()  
      void setLoggerName​(java.lang.String name)  
      void setTimeout​(org.api4.java.algorithm.Timeout to)  
      java.lang.String toString()  
      • Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm

        activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setDeadline, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Method Detail

      • nextWithException

        public org.api4.java.algorithm.events.IAlgorithmEvent nextWithException()
                                                                         throws org.api4.java.algorithm.exceptions.AlgorithmException,
                                                                                java.lang.InterruptedException,
                                                                                org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException,
                                                                                org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
        Throws:
        org.api4.java.algorithm.exceptions.AlgorithmException
        java.lang.InterruptedException
        org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
        org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
      • call

        public T call()
               throws org.api4.java.algorithm.exceptions.AlgorithmException,
                      java.lang.InterruptedException,
                      org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException,
                      org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
        Throws:
        org.api4.java.algorithm.exceptions.AlgorithmException
        java.lang.InterruptedException
        org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
        org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
      • init

        public ai.libs.jaicore.basic.algorithm.AlgorithmInitializedEvent init()
      • getPerformanceOfObject

        public V getPerformanceOfObject()
      • getComponentInstanceOfObject

        public ComponentInstance getComponentInstanceOfObject()
      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
        Overrides:
        getLoggerName in class ai.libs.jaicore.basic.algorithm.AAlgorithm<OptimizingFactoryProblem<P extends SoftwareConfigurationProblem<V>,​T,​V extends java.lang.Comparable<V>>,​T>
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
        Overrides:
        setLoggerName in class ai.libs.jaicore.basic.algorithm.AAlgorithm<OptimizingFactoryProblem<P extends SoftwareConfigurationProblem<V>,​T,​V extends java.lang.Comparable<V>>,​T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.api4.java.common.control.ICancelable
        Overrides:
        cancel in class ai.libs.jaicore.basic.algorithm.AAlgorithm<OptimizingFactoryProblem<P extends SoftwareConfigurationProblem<V>,​T,​V extends java.lang.Comparable<V>>,​T>