Class

org.tropic.sparkor.core

Solver

Related Doc: package core

Permalink

abstract class Solver extends AnyRef

Abstract class representing a solver

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

Instance Constructors

  1. new Solver(_sc: SparkContext = null)

    Permalink

    _sc

    SparkContext

Type Members

  1. type NewSolutionFoundCallback = (Int, Solution, Solver) ⇒ Unit

    Permalink

    Callback function called every n iterations Int: number of iterations (n) after which the callback is called Solution: new solution after n iterations Solver: solver used for this problem

  2. type SolvingStartedCallback = (Solver) ⇒ Unit

    Permalink

    Callback function called when starting the solving process Solver: solver used for this problem

  3. type SolvingStoppedCallback = (Solution, Solver) ⇒ Unit

    Permalink

    Callback function called at the end of the solving process Solution: final solution of the problem Solver: solver used for this problem

Abstract Value Members

  1. abstract def _cleanupSolving(): Unit

    Permalink

    Cleans up the solving process

  2. abstract def _initSolving(): Unit

    Permalink

    Initializes the solving process

  3. abstract def _solveNIters(iterCount: Int): (Int, Solution)

    Permalink

    Solves the problem within iterCount iterations

    Solves the problem within iterCount iterations

    iterCount

    number of maximum iterations

    returns

    Tuple (number of iterations to solve the problem, solution found)

  4. abstract def getScore: Double

    Permalink

    Returns the score of the solution

    Returns the score of the solution

    returns

    score of the solution

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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  12. def isSolving: Boolean

    Permalink

    Returns a boolean to know if the problem is being solved

    Returns a boolean to know if the problem is being solved

    returns

    True if the problem is being solved, false otherwise

  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. var sc: SparkContext

    Permalink
  17. def setNewSolutionFoundCallback(iterInterval: Int, callback: NewSolutionFoundCallback): Unit

    Permalink

    Sets the newSolutionFoundCallback function

    Sets the newSolutionFoundCallback function

    iterInterval

    maximum number of iterations before calling the callback

    callback

    newSolutionFoundCallback function

  18. def setSolvingStartedCallback(callback: SolvingStartedCallback): Unit

    Permalink

    Sets the solvingStartedCallback function

    Sets the solvingStartedCallback function

    callback

    solvingStartedCallback function

  19. def setSolvingStoppedCallback(callback: SolvingStoppedCallback): Unit

    Permalink

    Sets the solvingStoppedCallback function

    Sets the solvingStoppedCallback function

    callback

    solvingStoppedCallback function

  20. def solve(): Unit

    Permalink

    Solves the problem

  21. def stopSolving(): Unit

    Permalink

    Stops solving the problem

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped