NumericConstraint

org.nlogo.agent.NumericConstraint
class NumericConstraint(var defaultValue: Double) extends ValueConstraint

Constraint suitable for Slider variables.

Attributes

Source
NumericConstraint.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this()

Attributes

Source
NumericConstraint.scala

Concrete methods

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.

Attributes

Source
NumericConstraint.scala
def coerceValue(value: AnyRef): Double

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

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

Attributes

Source
NumericConstraint.scala

Concrete fields

var defaultValue: Double

Returns the default value for this constraint.

Returns the default value for this constraint.

Attributes

Source
NumericConstraint.scala