c

org.nlogo.agent

BooleanConstraint

class BooleanConstraint extends ValueConstraint

Constraint suitable for Switch variables.

Source
BooleanConstraint.scala
Linear Supertypes
ValueConstraint, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BooleanConstraint
  2. ValueConstraint
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BooleanConstraint()
  2. new BooleanConstraint(defaultValue: Boolean)

Value Members

  1. def assertConstraint(value: AnyRef): Unit

    Throws a Violation condition if the input is not acceptable.

    Throws a Violation condition if the input is not acceptable.

    Definition Classes
    BooleanConstraintValueConstraint
    Annotations
    @throws( classOf[ValueConstraint.Violation] )
  2. def coerceValue(value: AnyRef): Boolean

    Returns the constrained value, which can differ from the input.

    Returns the constrained value, which can differ from the input. Throws a Violation condition if the input is not coercable.

    Definition Classes
    BooleanConstraintValueConstraint
  3. var defaultValue: Boolean
    Definition Classes
    BooleanConstraintValueConstraint