c

org.nlogo.agent

ChooserConstraint

class ChooserConstraint extends ValueConstraint

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

Instance Constructors

  1. new ChooserConstraint(_acceptedValues: LogoList = LogoList(), defaultIndex: Int = 0)

Value Members

  1. def acceptedValues(vals: LogoList): Unit
  2. def acceptedValues: LogoList
  3. 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
    ChooserConstraintValueConstraint
    Annotations
    @throws( classOf[ValueConstraint.Violation] )
  4. def coerceValue(value: AnyRef): AnyRef

    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
    ChooserConstraintValueConstraint
  5. var defaultIndex: Int
  6. def defaultValue: AnyRef

    Returns the default value for this constraint.

    Returns the default value for this constraint.

    Definition Classes
    ChooserConstraintValueConstraint
  7. def indexForValue(value: AnyRef): Int