Packages

t

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 (jp.kobe_u.copris.Var).

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

Abstract Value Members

  1. abstract def csp: CSP

    CSP to be used

  2. abstract def solver: AbstractSolver

    Solver to be used

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

    Changes the solver to be used

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(cs: Constraint*): Unit

    Adds a constraint

    Adds a constraint

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

    Adds constraints

    Adds constraints

    Definition Classes
    CSPTrait
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def bool(p: Bool): Bool

    Adds a Boolean variable

    Adds a Boolean variable

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

    Adds Boolean variables

    Adds Boolean variables

    Definition Classes
    CSPTrait
  9. def boolInt(x: Var): Var

    Adds a 0-1 integer variable

    Adds a 0-1 integer variable

    Definition Classes
    CoprisTraitCSPTrait
  10. def boolInt(xs: Iterable[Term]): Iterable[Term]

    Adds 0-1 integer variables

    Adds 0-1 integer variables

    Definition Classes
    CSPTrait
  11. def cancel: Unit
    Definition Classes
    CoprisTraitSolverTrait
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  13. def commit: Unit
    Definition Classes
    CoprisTraitSolverTrait
  14. def dump(fileName: String, format: String): Unit
  15. def dump(fileName: String): Unit
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def find: Boolean

    Finds the first solution

    Finds the first solution

    Definition Classes
    CoprisTraitSolverTrait
  19. def findNext: Boolean

    Finds the next solution

    Finds the next solution

    Definition Classes
    CoprisTraitSolverTrait
  20. def findOpt: Boolean

    Finds the optimum solution

    Finds the optimum solution

    Definition Classes
    CoprisTraitSolverTrait
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def info: Map[String, String]

    Returns the info of the solver (experimental)

  24. def init: Unit

    Initializes the CSP and solver

    Initializes the CSP and solver

    Definition Classes
    CoprisTraitSolverTrait
  25. def int[A](x: Var, enum: EnumDomain[A]): Var
  26. def int(x: Var, d: Domain): Var

    Adds an integer variable

    Adds an integer variable

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

    Adds integer variables

    Adds integer variables

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

    Adds integer variables

    Adds integer variables

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

    Adds integer variables

    Adds integer variables

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

    Adds integer variables

    Adds integer variables

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

    Adds an integer variable

    Adds an integer variable

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

    Adds an integer variable

    Adds an integer variable

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

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CSPTrait
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def maximize(x: Var): Var

    Specifies objective variable to be maximized

    Specifies objective variable to be maximized

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

    Specifies objective variable to be minimized

    Specifies objective variable to be minimized

    Definition Classes
    CoprisTraitCSPTrait
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. def options: Map[String, String]

    Gets the options of the solver

  41. def satisfiedBy(solution: Solution): Boolean

    Checks whether the CSP is satisfied by the solution

    Checks whether the CSP is satisfied by the solution

    Definition Classes
    CoprisTraitCSPTrait
  42. def setOptions(opts: Map[String, String]): Unit

    Sets the options of the solver

  43. def show: Unit

    Shows the CSP

  44. def solution: Solution

    Returns the current solution

    Returns the current solution

    Definition Classes
    CoprisTraitSolverTrait
  45. def solutions: Iterator[Solution]

    Returns the iterator of all solutions

    Returns the iterator of all solutions

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

    Starts the timer (experimental)

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

    Returns the status of the solver (experimental)

  48. def stopTimer: Unit

    Stops the timer (experimental)

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

    Implicit conversion from scala Symbol to jp.kobe_u.copris.Var.

  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. def toString(): String
    Definition Classes
    AnyRef → Any
  52. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

  2. 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
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use apply method of jp.kobe_u.copris.Solution instead

  3. 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
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use apply method of jp.kobe_u.copris.Solution instead

  4. 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
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use apply method of jp.kobe_u.copris.Solution instead

  5. 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
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.1) use apply method of jp.kobe_u.copris.Solution instead

Inherited from SolverTrait

Inherited from CSPTrait

Inherited from AnyRef

Inherited from Any

Ungrouped