BooleanConstraint

org.nlogo.agent.BooleanConstraint
class BooleanConstraint(var defaultValue: Boolean) extends ValueConstraint

Constraint suitable for Switch variables.

Attributes

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

Members list

Value members

Constructors

def this()

Attributes

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

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
BooleanConstraint.scala

Concrete fields

var defaultValue: Boolean

Returns the default value for this constraint.

Returns the default value for this constraint.

Attributes

Source
BooleanConstraint.scala