Trait

nl.rabobank.oss.rules.services

HeuristicService

Related Doc: package services

Permalink

trait HeuristicService extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HeuristicService
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def heuristics: List[Heuristic]

    Permalink

    Implement this function to gather your Heuristic functions.

    Implement this function to gather your Heuristic functions. The result will be used in the evaluations to find a fitting Context result.

    returns

    a List of Heuristic functions which create useful modifications on the Contexts in this scenario.

  2. abstract def scoringFunction(as1: AnalyzedScenario, as2: AnalyzedScenario): AnalyzedScenario

    Permalink

    Implement this function to allow the algorithm to find the best scoring situation.

    Implement this function to allow the algorithm to find the best scoring situation. It receives two AnalyzedScenarios and is tasked with selecting the best one. Whatever the 'best one' is, is up to the implementation.

    as1

    first AnalyzedScenario to choose from.

    as2

    second AnalyzedScenario to choose from.

    returns

    the AnalyzedScenario considered to be the best with respect to the other.

  3. abstract def successCondition(context: Context): Boolean

    Permalink

    Implement this function with the selection criteria for when a Context should be considered valid.

    Implement this function with the selection criteria for when a Context should be considered valid. This function is invoked after the complete calculation of a Context to determine whether the results in that Context are to be returned by the HeuristicService.

    context

    the Context to check for success.

    returns

    true if the Context should be considered for output, false to drop the Context from being a potential result.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def defaultSearchDepth: Int

    Permalink

    returns

    the default depth to search for a scenario fitting in this HeuristicService.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def runHeuristics(initialContext: Context, engineRunner: (Context) ⇒ Context): Option[AnalyzedScenario]

    Permalink
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped