Argument
Passes arguments to extension primitives.
Attributes
- Source
- Argument.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete 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
Agent
api.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
AgentSet
api.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
Boolean
api.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
boolean
api.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
AnonymousCommand
api.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
Attributes
- 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
Link
api.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
LogoList
api.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
Patch
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Used by the GIS extension. Other extensions should use getSymbol where possible. The compiler turns the reference into a _const, we just ensure the value is a reference.
Used by the GIS extension. Other extensions should use getSymbol where possible. The compiler turns the reference into a _const, we just ensure the value is a reference.
Attributes
- 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
AnonymousReporter
api.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
String
api.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
Token
api.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
Turtle
api.LogoExceptionif a LogoException occurred while evaluating this argument
- Source
- Argument.scala
Used by the rnd extension. Other extensions should use getReporter where possible
Used by the rnd extension. Other extensions should use getReporter where possible
Attributes
- Source
- Argument.scala