c

org.nlogo.agent

NumericConstraint

class NumericConstraint extends ValueConstraint

Constraint suitable for Slider variables.

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

Instance Constructors

  1. new NumericConstraint()
  2. new NumericConstraint(defaultValue: Double)

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
    NumericConstraintValueConstraint
    Annotations
    @throws( classOf[ValueConstraint.Violation] )
  2. def coerceValue(value: AnyRef): Double

    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
    NumericConstraintValueConstraint
  3. var defaultValue: Double

    Returns the default value for this constraint.

    Returns the default value for this constraint.

    Definition Classes
    NumericConstraintValueConstraint