CPSolver.Variable behaviour (Fixpoint v0.8.5)

Summary

Types

@type t() :: %CPSolver.Variable{
  domain: Domain.t(),
  fixed?: boolean(),
  id: reference(),
  index: integer(),
  name: term(),
  propagate_on: Propagator.propagator_event(),
  store: term()
}

Callbacks

Link to this callback

new(values, opts)

@callback new(values :: Enum.t(), opts :: Keyword.t()) :: t()

Functions

Link to this function

contains?(variable, value)

Link to this function

domain(variable)

Link to this function

fix(variable, value)

Link to this function

fixed?(variable)

Link to this function

remove(variable, value)

Link to this function

removeAbove(variable, value)

Link to this function

removeBelow(variable, value)