ChooserConstraint

org.nlogo.agent.ChooserConstraint
class ChooserConstraint(var _acceptedValues: LogoList, var defaultIndex: Int) extends ValueConstraint

Attributes

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

Members list

Value members

Concrete methods

Attributes

Source
ChooserConstraint.scala
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
ChooserConstraint.scala
def coerceValue(value: AnyRef): AnyRef

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
ChooserConstraint.scala
def defaultValue: AnyRef

Returns the default value for this constraint.

Returns the default value for this constraint.

Attributes

Source
ChooserConstraint.scala
def indexForValue(value: AnyRef): Int

Attributes

Source
ChooserConstraint.scala

Concrete fields

Attributes

Source
ChooserConstraint.scala