jp.kobe_u.copris

CoprisTrait

trait CoprisTrait extends CSPTrait with SolverTrait

Trait for Copris DSL which provides methods for CSP and CSP solver. This trait also provides implicit conversion of converting scala Symbols to CSP integer variables (Var).

Linear Supertypes
SolverTrait, CSPTrait, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CoprisTrait
  2. SolverTrait
  3. CSPTrait
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def csp : CSP

    CSP to be used

    CSP to be used

    Attributes
    abstract
  2. def solver : AbstractSolver

    Solver to be used

    Solver to be used

    Attributes
    abstract
  3. def use (newSolver: AbstractSolver): Unit

    Changes the solver to be used

    Changes the solver to be used

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def add (cs: Constraint*): Unit

    Adds a constraint

    Adds a constraint

    Definition Classes
    CoprisTraitCSPTrait
  7. def add (cs: Iterable[Constraint]): Unit

    Adds constraints

    Adds constraints

    Definition Classes
    CSPTrait
  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def bool (p: Bool): Bool

    Adds a Boolean variable

    Adds a Boolean variable

    Definition Classes
    CoprisTraitCSPTrait
  10. def bool (ps: Iterable[Bool]): Iterable[Bool]

    Adds Boolean variables

    Adds Boolean variables

    Definition Classes
    CSPTrait
  11. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  13. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def find : Boolean

    Finds the first solution

    Finds the first solution

    Definition Classes
    CoprisTraitSolverTrait
  16. def findNext : Boolean

    Finds the next solution

    Finds the next solution

    Definition Classes
    CoprisTraitSolverTrait
  17. def findOpt : Boolean

    Finds the optimum solution

    Finds the optimum solution

    Definition Classes
    CoprisTraitSolverTrait
  18. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  19. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  20. def init : Unit

    Initializes the CSP and solver

    Initializes the CSP and solver

    Definition Classes
    CoprisTraitSolverTrait
  21. def int (x: Var, d: Domain): Var

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CoprisTraitCSPTrait
  22. def int (xs: Iterable[Term], value: Int): Iterable[Term]

    Adds integer variables

    Adds integer variables

    Definition Classes
    CSPTrait
  23. def int (xs: Iterable[Term], lo: Int, hi: Int): Iterable[Term]

    Adds integer variables

    Adds integer variables

    Definition Classes
    CSPTrait
  24. def int (xs: Iterable[Term], d: Set[Int]): Iterable[Term]

    Adds integer variables

    Adds integer variables

    Definition Classes
    CSPTrait
  25. def int (xs: Iterable[Term], d: Domain): Iterable[Term]

    Adds integer variables

    Adds integer variables

    Definition Classes
    CSPTrait
  26. def int (x: Var, value: Int): Var

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CSPTrait
  27. def int (x: Var, lo: Int, hi: Int): Var

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CSPTrait
  28. def int (x: Var, d: Set[Int]): Var

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CSPTrait
  29. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  30. def maximize (x: Var): Var

    Specifies objective variable to be maximized

    Specifies objective variable to be maximized

    Definition Classes
    CoprisTraitCSPTrait
  31. def minimize (x: Var): Var

    Specifies objective variable to be minimized

    Specifies objective variable to be minimized

    Definition Classes
    CoprisTraitCSPTrait
  32. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  33. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  34. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  35. def options (opts: Map[String, String]): Unit

    Sets the options of the solver

  36. def show : Unit

    Shows the CSP

  37. def solution : Solution

    Shows the current solution

    Shows the current solution

    Definition Classes
    CoprisTraitSolverTrait
  38. def startTimer (timeout: Long): Unit

    Starts the timer (experimental)

  39. def stats : Seq[Map[String, Map[String, Number]]]

    Returns the status of the solver (experimental)

  40. def stopTimer : Unit

    Stops the timer (experimental)

  41. implicit def symbol2var (s: Symbol): Var

    Implicit conversion from scala Symbol to Var.

    Implicit conversion from scala Symbol to Var.

    Attributes
    implicit
  42. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  43. def toString (): String

    Definition Classes
    AnyRef → Any
  44. def value (p: Bool): Boolean

    Returns the Boolean variable value of the current solution

    Returns the Boolean variable value of the current solution

    Definition Classes
    SolverTrait
  45. def value (x: Var): Int

    Returns the integer variable value of the current solution

    Returns the integer variable value of the current solution

    Definition Classes
    SolverTrait
  46. def values (p: Bool, ps: Bool*): Seq[Boolean]

    Returns the Boolean variable values of the current solution

    Returns the Boolean variable values of the current solution

    Definition Classes
    SolverTrait
  47. def values (x: Var, xs: Var*): Seq[Int]

    Returns the integer variable values of the current solution

    Returns the integer variable values of the current solution

    Definition Classes
    SolverTrait
  48. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from SolverTrait

Inherited from CSPTrait

Inherited from AnyRef

Inherited from Any