Argument
Interface provides access to arguments passed to the perform or report methods of a primitive at run-time.
Arguments are created by NetLogo and passed to the perform or report methods of your primitive.
Attributes
- See also
-
Command#perform(Argument[], Context)
Reporter#report(Argument[], Context)
- Source
- Argument.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Argument
Members list
Value members
Abstract methods
Returns the argument as an Object without type checking.
Returns the argument as an Object without type checking.
Attributes
- Throws
-
api.LogoException
if a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as an Agent.
Returns the argument as an Agent.
Attributes
- Throws
-
api.ExtensionException
if the argument is not an
Agentapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as an org.nlogo.api.AgentSet.
Returns the argument as an org.nlogo.api.AgentSet.
Attributes
- Throws
-
api.ExtensionException
if the argument is not an
AgentSetapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a boxed java.lang.Boolean
Returns the argument as a boxed java.lang.Boolean
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
Booleanapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the value of the argument as an unboxed boolean.
Returns the value of the argument as an unboxed boolean.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
booleanapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a java.utilList[Token].
Returns the argument as a java.utilList[Token].
Attributes
- Throws
-
api.ExtensionException
if the argument is not a valid block of tokens
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.api.AnonymousCommand.
Returns the argument as a org.nlogo.api.AnonymousCommand.
Attributes
- Throws
-
api.ExtensionException
if the argument is not an
AnonymousCommandapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the value of the argument as a boxed java.lang.Double.
Returns the value of the argument as a boxed java.lang.Double.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a number.
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the value of the argument as an unboxed double.
Returns the value of the argument as an unboxed double.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a number.
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the value of the argument as an unboxed int. Any fractional part is discarded.
Returns the value of the argument as an unboxed int. Any fractional part is discarded.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a number.
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.api.Link.
Returns the argument as a org.nlogo.api.Link.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
Linkapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.core.LogoList
Returns the argument as a org.nlogo.core.LogoList
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
LogoListapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as an org.nlogo.api.Patch
Returns the argument as an org.nlogo.api.Patch
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
Patchapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.api.AnonymousReporter.
Returns the argument as a org.nlogo.api.AnonymousReporter.
Attributes
- Throws
-
api.ExtensionException
if the argument is not an
AnonymousReporterapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a String
Returns the argument as a String
Attributes
- Throws
-
api.ExtensionException
if the argument cannot be cast to a
Stringapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.api.Token.
Returns the argument as a org.nlogo.api.Token.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
Tokenapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Returns the argument as a org.nlogo.api.Turtle.
Returns the argument as a org.nlogo.api.Turtle.
Attributes
- Throws
-
api.ExtensionException
if the argument is not a
Turtleapi.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala