ValueConstraint

org.nlogo.api.ValueConstraint
See theValueConstraint companion object

Interface for objects which provide constraints for values

Attributes

Companion
object
Source
ValueConstraint.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

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

Returns the default value for this constraint.

Returns the default value for this constraint.

Attributes

Source
ValueConstraint.scala