Class

jp.kobe_u.copris.sugar

Sugar

Related Doc: package sugar

Permalink

class Sugar extends CoprisTrait

Class for Sugar DSL

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

Instance Constructors

  1. new Sugar()

    Permalink
  2. new Sugar(satSolver: SatSolver)

    Permalink
  3. new Sugar(csp: CSP, satSolver: SatSolver)

    Permalink
  4. new Sugar(csp: CSP)

    Permalink
  5. new Sugar(csp: CSP, solver: Solver)

    Permalink

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. def add(cs: Constraint*): Unit

    Permalink

    Adds a constraint

    Adds a constraint

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

    Permalink

    Adds constraints

    Adds constraints

    Definition Classes
    CSPTrait
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def bool(p: Bool): Bool

    Permalink

    Adds a Boolean variable

    Adds a Boolean variable

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

    Permalink

    Adds Boolean variables

    Adds Boolean variables

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

    Permalink

    Adds a 0-1 integer variable

    Adds a 0-1 integer variable

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

    Permalink

    Adds 0-1 integer variables

    Adds 0-1 integer variables

    Definition Classes
    CSPTrait
  11. def cancel: Unit

    Permalink
    Definition Classes
    CoprisTraitSolverTrait
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def commit: Unit

    Permalink
    Definition Classes
    CoprisTraitSolverTrait
  14. val csp: CSP

    Permalink

    CSP to be used

    CSP to be used

    Definition Classes
    SugarCoprisTrait
  15. def dump(fileName: String, format: String): Unit

    Permalink
    Definition Classes
    CoprisTrait
  16. def dump(fileName: String): Unit

    Permalink
    Definition Classes
    CoprisTrait
  17. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def find: Boolean

    Permalink

    Finds the first solution

    Finds the first solution

    Definition Classes
    CoprisTraitSolverTrait
  21. def findNext: Boolean

    Permalink

    Finds the next solution

    Finds the next solution

    Definition Classes
    CoprisTraitSolverTrait
  22. def findOpt: Boolean

    Permalink

    Finds the optimum solution

    Finds the optimum solution

    Definition Classes
    CoprisTraitSolverTrait
  23. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def info: Map[String, String]

    Permalink

    Returns the info of the solver (experimental)

    Returns the info of the solver (experimental)

    Definition Classes
    CoprisTrait
  26. def init: Unit

    Permalink

    Initializes the CSP and solver

    Initializes the CSP and solver

    Definition Classes
    CoprisTraitSolverTrait
  27. def int[A](x: Var, enum: EnumDomain[A]): Var

    Permalink
    Definition Classes
    CoprisTrait
  28. def int(x: Var, d: Domain): Var

    Permalink

    Adds an integer variable

    Adds an integer variable

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

    Permalink

    Adds integer variables

    Adds integer variables

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

    Permalink

    Adds integer variables

    Adds integer variables

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

    Permalink

    Adds integer variables

    Adds integer variables

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

    Permalink

    Adds integer variables

    Adds integer variables

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

    Permalink

    Adds an integer variable

    Adds an integer variable

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

    Permalink

    Adds an integer variable

    Adds an integer variable

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

    Permalink

    Adds an integer variable

    Adds an integer variable

    Definition Classes
    CSPTrait
  36. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  37. def maximize(x: Var): Var

    Permalink

    Specifies objective variable to be maximized

    Specifies objective variable to be maximized

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

    Permalink

    Specifies objective variable to be minimized

    Specifies objective variable to be minimized

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

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

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

    Permalink
    Definition Classes
    AnyRef
  42. def options: Map[String, String]

    Permalink

    Gets the options of the solver

    Gets the options of the solver

    Definition Classes
    CoprisTrait
  43. def satisfiedBy(solution: Solution): Boolean

    Permalink

    Checks whether the CSP is satisfied by the solution

    Checks whether the CSP is satisfied by the solution

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

    Permalink

    Sets the options of the solver

    Sets the options of the solver

    Definition Classes
    CoprisTrait
  45. def show: Unit

    Permalink

    Shows the CSP

    Shows the CSP

    Definition Classes
    CoprisTrait
  46. def solution: Solution

    Permalink

    Returns the current solution

    Returns the current solution

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

    Permalink

    Returns the iterator of all solutions

    Returns the iterator of all solutions

    Definition Classes
    CoprisTraitSolverTrait
  48. var solver: Solver

    Permalink

    Solver to be used

    Solver to be used

    Definition Classes
    SugarCoprisTrait
  49. def startTimer(timeout: Long): Unit

    Permalink

    Starts the timer (experimental)

    Starts the timer (experimental)

    Definition Classes
    CoprisTrait
  50. def stats: Seq[Map[String, Map[String, Number]]]

    Permalink

    Returns the status of the solver (experimental)

    Returns the status of the solver (experimental)

    Definition Classes
    CoprisTrait
  51. def stopTimer: Unit

    Permalink

    Stops the timer (experimental)

    Stops the timer (experimental)

    Definition Classes
    CoprisTrait
  52. implicit def symbol2var(s: Symbol): Var

    Permalink

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

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

    Definition Classes
    CoprisTrait
  53. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  55. def use(newSatSolver: SatSolver): Unit

    Permalink
  56. def use(newSolver: AbstractSolver): Unit

    Permalink

    Changes the solver to be used

    Changes the solver to be used

    Definition Classes
    SugarCoprisTrait
  57. final def wait(): Unit

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

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

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

Deprecated Value Members

  1. def value(p: Bool): Boolean

    Permalink

    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

  2. def value(x: Var): Int

    Permalink

    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

  3. def values(p: Bool, ps: Bool*): Seq[Boolean]

    Permalink

    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

  4. def values(x: Var, xs: Var*): Seq[Int]

    Permalink

    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 CoprisTrait

Inherited from SolverTrait

Inherited from CSPTrait

Inherited from AnyRef

Inherited from Any

Ungrouped