InputBoxConstraint

org.nlogo.agent.InputBoxConstraint
class InputBoxConstraint(var typeName: String, _defaultValue: AnyRef) extends ValueConstraint

Attributes

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

Members list

Value members

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
InputBoxConstraint.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
InputBoxConstraint.scala
def correctType(obj: AnyRef): Boolean

Attributes

Source
InputBoxConstraint.scala
def setType(typeName: String, defaultValue: AnyRef): Unit

Attributes

Source
InputBoxConstraint.scala

Concrete fields

var defaultValue: AnyRef

Returns the default value for this constraint.

Returns the default value for this constraint.

Attributes

Source
InputBoxConstraint.scala

Attributes

Source
InputBoxConstraint.scala