org.nlogo.core

package org.nlogo.core

Members list

Packages

Type members

Classlikes

sealed trait AgentKind extends Product, Serializable

Attributes

Companion
object
Source
AgentKind.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Link
object Observer
object Patch
object Turtle
object AgentKind

Attributes

Companion
trait
Source
AgentKind.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
AgentKind.type
object AgentKindJ

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Attributes

Source
AgentKind.scala
Supertypes
class Object
trait Matchable
class Any
Self type
AgentKindJ.type

Attributes

Source
Dialect.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
AgentVariables.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class AllShapesReplaced(oldShapeList: ShapeList, newShapeList: ShapeList) extends ShapeEvent

Attributes

Source
ShapeList.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ShapeEvent
class Object
trait Matchable
class Any
Show all
trait Application extends AstNode

represents an application, in the abstract (either a reporter application of a command application). This is used when parsing arguments, when we don't care what kind of application the args are for.

represents an application, in the abstract (either a reporter application of a command application). This is used when parsing arguments, when we don't care what kind of application the args are for.

Attributes

Source
AstNode.scala
Supertypes
trait AstNode
class Object
trait Matchable
class Any
Known subtypes
class ReporterApp
class Statement
trait AstFolder[A]

Attributes

Source
AstVisitor.scala
Supertypes
class Object
trait Matchable
class Any
trait AstNode extends SourceLocatable

An interface representing a node in the NetLogo abstract syntax tree (AKA parse tree, in NetLogo's case).

An interface representing a node in the NetLogo abstract syntax tree (AKA parse tree, in NetLogo's case).

Each AstNode, even if synthesized, should correspond to some particular source fragment, as indicated by the position and length. It's the compiler's job to make sure these values are always reasonable.

Attributes

Source
AstNode.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Application
class ReporterApp
class Statement
trait Expression
class CommandBlock
class Statements
Show all

Transforms an AST to allow changes without mutation

Transforms an AST to allow changes without mutation

Attributes

Source
AstVisitor.scala
Supertypes
class Object
trait Matchable
class Any
trait AstVisitor

The default AST tree-walker. This simply visits each node of the tree, and visits any children of each node in turn. Subclasses can implement pre-order or post-order traversal, or a wide range of other strategies.

The default AST tree-walker. This simply visits each node of the tree, and visits any children of each node in turn. Subclasses can implement pre-order or post-order traversal, or a wide range of other strategies.

Attributes

Source
AstVisitor.scala
Supertypes
class Object
trait Matchable
class Any
object BoxedValue

Attributes

Companion
trait
Source
InputBox.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
BoxedValue.type
sealed trait BoxedValue

Attributes

Companion
object
Source
InputBox.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Breed(name: String, singular: String, originalName: String, originalSingular: String, owns: Seq[String], isLinkBreed: Boolean, isDirected: Boolean)

Attributes

Source
Breed.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
BreedIdentifierHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class Button(source: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, display: Option[String], forever: Boolean, buttonKind: AgentKind, actionKey: Option[Char], disableUntilTicksStart: Boolean) extends Widget

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait Chooseable

Attributes

Companion
object
Source
Chooser.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Chooseable

Attributes

Companion
trait
Source
Chooser.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Chooseable.type
case class ChooseableBoolean(value: Boolean) extends Chooseable

Attributes

Source
Chooser.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Chooseable
class Object
trait Matchable
class Any
Show all
case class ChooseableDouble(value: Double) extends Chooseable

Attributes

Source
Chooser.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Chooseable
class Object
trait Matchable
class Any
Show all
case class ChooseableList(value: LogoList) extends Chooseable

Attributes

Source
Chooser.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Chooseable
class Object
trait Matchable
class Any
Show all
case class ChooseableString(value: String) extends Chooseable

Attributes

Source
Chooser.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Chooseable
class Object
trait Matchable
class Any
Show all
case class Chooser(variable: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, display: Option[String], choices: List[Chooseable], currentChoice: Int) extends Widget, DeclaresGlobal, DeclaresGlobalCommand, DeclaresConstraint

Attributes

Source
Chooser.scala
Supertypes
trait Product
trait Equals
trait NamedWidget
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
case class ClosedLambdaVariable(name: String) extends ClosedVariable

Attributes

Source
ClosedVariable.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ClosedLet(let: Let) extends ClosedVariable

Attributes

Source
ClosedVariable.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait ClosedVariable

Attributes

Source
ClosedVariable.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Color

Attributes

Companion
object
Source
Color.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Color
object Color
object Color extends Color

Attributes

Companion
trait
Source
Color.scala
Supertypes
trait Color
class Object
trait Matchable
class Any
Self type
Color.type

Attributes

Source
ColorConstants.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait Command extends Instruction

Attributes

Source
Instruction.scala
Supertypes
trait Instruction
trait TokenHolder
class Object
trait Matchable
class Any
Known subtypes
class _magicopen
class CommandBlock(val statements: Statements, val sourceLocation: SourceLocation, val synthetic: Boolean) extends Expression

represents a block containing zero or more statements. Called a command block rather than a statement block for consistency with usual NetLogo jargon. Note that this is an Expression, and as such can be an argument to commands and reporters, etc.

represents a block containing zero or more statements. Called a command block rather than a statement block for consistency with usual NetLogo jargon. Note that this is an Expression, and as such can be an argument to commands and reporters, etc.

Attributes

Source
AstNode.scala
Supertypes
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all

Attributes

Source
CompilationEnvironment.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class CompilationOperand(sources: Map[String, String], extensionManager: ExtensionManager, libraryManager: LibraryManager, compilationEnvironment: CompilationEnvironment, containingProgram: Program, oldProcedures: ProceduresMap, subprogram: Boolean, displayName: Option[String], shouldAutoInstallLibs: Boolean)

Attributes

Source
FrontEndInterface.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class CompilerException(message: String, val start: Int, val end: Int, val filename: String) extends RuntimeException

Exception thrown by various methods that accept NetLogo code as input and cause that code to be compiled; indicates the code was invalid. May be inspected to discover the location and nature of the error.

Exception thrown by various methods that accept NetLogo code as input and cause that code to be compiled; indicates the code was invalid. May be inspected to discover the location and nature of the error.

Attributes

Companion
object
Source
CompilerException.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Companion
class
Source
CompilerException.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source
CompilerUtilitiesInterface.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
trait
Source
ConstraintSpecification.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Attributes

Source
Widget.scala
Supertypes
trait NamedWidget
class Object
trait Matchable
class Any
Known subtypes
class Chooser
class InputBox
class Slider
class Switch
trait DeclaresGlobal extends NamedWidget

Attributes

Source
Widget.scala
Supertypes
trait NamedWidget
class Object
trait Matchable
class Any
Known subtypes
class Chooser
class InputBox
class Slider
class Switch

Attributes

Source
Widget.scala
Supertypes
trait NamedWidget
class Object
trait Matchable
class Any
Known subtypes
class Chooser
class InputBox
class Slider
class Switch
trait Dialect extends LowPriorityDialect

Attributes

Companion
object
Source
Dialect.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Dialect extends LowPriorityDialect

Attributes

Companion
trait
Source
Dialect.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Dialect.type
sealed trait Direction

Attributes

Source
Widget.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Horizontal
object Vertical

Attributes

Source
CompilationEnvironment.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
DummyExtensionManager.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
LibraryManager.scala
Supertypes
class Object
trait Matchable
class Any
case object DummyView extends ViewLike

Attributes

Source
Widget.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait ViewLike
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
DummyView.type
trait Dump

Attributes

Companion
object
Source
Dump.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Dump
object Dump
object Dump extends Dump

Attributes

Companion
trait
Source
Dump.scala
Supertypes
trait Dump
class Object
trait Matchable
class Any
Self type
Dump.type
class ErrorSource(token: Token)

Attributes

Source
ErrorSource.scala
Supertypes
class Object
trait Matchable
class Any
trait Expression extends AstNode

represents a NetLogo expression. An expression is either a block or a reporter application (variable references and constants (including lists), are turned into reporter applications).

represents a NetLogo expression. An expression is either a block or a reporter application (variable references and constants (including lists), are turned into reporter applications).

Attributes

Source
AstNode.scala
Supertypes
trait AstNode
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
ExtensionManager.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Interface which all NetLogo objects defined in Extensions must support

Interface which all NetLogo objects defined in Extensions must support

Attributes

Source
ExtensionObject.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
ExternalResource.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ExternalResource(name: String, extension: String, data: String)

Attributes

Companion
object
Source
ExternalResource.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Fail

Attributes

Source
Fail.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Fail.type
object Femto

Attributes

Source
Femto.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Femto.type
abstract class File

Attributes

Source
File.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class LocalFile
class RemoteFile
object FileMode

Attributes

Companion
trait
Source
FileMode.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
FileMode.type
sealed trait FileMode

Attributes

Companion
object
Source
FileMode.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Append
object None
object Read
object Write
object FileModeJ

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Attributes

Source
FileMode.scala
Supertypes
class Object
trait Matchable
class Any
Self type
FileModeJ.type

Attributes

Companion
trait
Source
FrontEndInterface.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Source
FrontEndInterface.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
FrontEndProcedure.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Procedure
class LiftedLambda
case object Horizontal extends Direction

Attributes

Source
Widget.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Direction
class Object
trait Matchable
class Any
Show all
Self type
Horizontal.type
object I18N

Attributes

Source
I18N.scala
Supertypes
class Object
trait Matchable
class Any
Self type
I18N.type
object InputBox

Attributes

Companion
class
Source
InputBox.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
InputBox.type
case class InputBox(variable: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, boxedValue: BoxedValue) extends Widget, DeclaresGlobal, DeclaresGlobalCommand, DeclaresConstraint

Attributes

Companion
object
Source
InputBox.scala
Supertypes
trait Product
trait Equals
trait NamedWidget
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
object Instantiator

Attributes

Source
Instantiator.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait Instruction extends TokenHolder

Attributes

Source
Instruction.scala
Supertypes
trait TokenHolder
class Object
trait Matchable
class Any
Known subtypes
trait Command
class _magicopen
trait Reporter
object Keywords

Attributes

Source
Keywords.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Keywords.type
case class Let(name: String, token: Token)

Attributes

Source
Let.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object LibraryInfo

Attributes

Companion
class
Source
LibraryManager.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class LibraryInfo(name: String, codeName: String, shortDescription: String, longDescription: String, version: String, homepage: URL, bundled: Boolean, installedVersionOpt: Option[String], minNetLogoVersion: Option[String], rootURL: URL)

Attributes

Companion
object
Source
LibraryManager.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
LibraryManager.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait LibraryStatus

Attributes

Companion
object
Source
LibraryManager.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object CanInstall
object CanUpdate
object UpToDate
object LibraryStatus

Attributes

Companion
trait
Source
LibraryManager.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
abstract class Listener[T]

Attributes

Source
Publisher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ActionBuffer[A]

Attributes

Companion
trait
Source
LiteralImportHandler.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

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

Attributes

Source
LiteralParser.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LogoList

Attributes

Companion
class
Source
LogoList.scala
Supertypes
class Object
trait Matchable
class Any
Self type
LogoList.type
class LogoList extends IndexedSeq[AnyRef], Serializable

Attributes

Companion
object
Source
LogoList.scala
Supertypes
trait Serializable
trait IndexedSeq[AnyRef]
trait IndexedSeqOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait IndexedSeq[AnyRef]
trait IndexedSeqOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait Seq[AnyRef]
trait SeqOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait Seq[AnyRef]
trait Equals
trait SeqOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait PartialFunction[Int, AnyRef]
trait Int => AnyRef
trait Iterable[AnyRef]
trait Iterable[AnyRef]
trait IterableOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait IterableOnceOps[AnyRef, IndexedSeq, IndexedSeq[AnyRef]]
trait IterableOnce[AnyRef]
class Object
trait Matchable
class Any
Show all

Attributes

Source
Dialect.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Model(code: String, widgets: Seq[Widget], info: String, version: String, turtleShapes: Seq[VectorShape], linkShapes: Seq[LinkShape], optionalSections: Seq[OptionalSection[_]], resources: Seq[ExternalResource], unknownSections: Seq[XMLElement])

Attributes

Companion
object
Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Model

Attributes

Companion
class
Source
Model.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Model.type
object ModelInfo

Attributes

Companion
class
Source
ModelInfo.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ModelInfo.type
case class ModelInfo(title: String, tags: Seq[String])

Attributes

Companion
object
Source
ModelInfo.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ModelSettings(snapToGrid: Boolean)

Attributes

Source
Model.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Monitor(source: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, display: Option[String], precision: Int, fontSize: Int, units: Option[String]) extends Widget

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
trait NamedWidget

Attributes

Source
Widget.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Chooser
class InputBox
class Slider
class Switch
Show all
case object NetLogoCore extends Dialect

Attributes

Source
Dialect.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Dialect
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Source
NetLogoPreferences.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Nobody

Attributes

Source
Nobody.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Nobody.type
object NumberParser

Attributes

Source
NumberParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object NumericInput

Attributes

Companion
class
Source
InputBox.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class NumericInput(value: Double, label: NumericKind) extends BoxedValue

Attributes

Companion
object
Source
InputBox.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait BoxedValue
class Object
trait Matchable
class Any
Show all
class OptionalSection[A <: AnyRef](val key: String, value: Option[A], val default: A)

Attributes

Source
Model.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Section[A]
case class Output(x: Int, y: Int, width: Int, height: Int, fontSize: Int) extends Widget

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
case class Pen(display: String, interval: Double, mode: Int, color: Int, inLegend: Boolean, setupCode: String, updateCode: String)

Attributes

Source
Plot.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Plot(display: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, xAxis: Option[String], yAxis: Option[String], xmin: Double, xmax: Double, ymin: Double, ymax: Double, autoPlotX: Boolean, autoPlotY: Boolean, legendOn: Boolean, setupCode: String, updateCode: String, pens: List[Pen]) extends Widget

Attributes

Source
Plot.scala
Supertypes
trait Product
trait Equals
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Source
PlotPenInterface.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class PlotPenState(x: Double, color: Int, interval: Double, mode: Int, isDown: Boolean, hidden: Boolean)

Attributes

Source
PlotPenState.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait Primitive

Top-level interface for primitives (commands or reporters). Not to be implemented directly; the Command or Reporter interface should be used instead.

Top-level interface for primitives (commands or reporters). Not to be implemented directly; the Command or Reporter interface should be used instead.

Attributes

See also

Command

Reporter

Source
Primitive.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait PrimitiveCommand extends Primitive

Attributes

Source
Primitive.scala
Supertypes
trait Primitive
class Object
trait Matchable
class Any
Known subtypes
trait Command

Attributes

Source
Primitive.scala
Supertypes
trait Primitive
class Object
trait Matchable
class Any
Known subtypes
trait Reporter
class ProcedureDefinition(val procedure: FrontEndProcedure, val statements: Statements, _end: Int) extends AstNode

represents a single procedure definition. really just a container for the procedure body, which is a Statements object.

represents a single procedure definition. really just a container for the procedure body, which is a Statements object.

Attributes

Source
AstNode.scala
Supertypes
trait AstNode
class Object
trait Matchable
class Any
case class ProcedureSyntax(declarationKeyword: Token, identifier: Token, endKeyword: Token)

Attributes

Source
FrontEndInterface.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Program

Attributes

Companion
class
Source
Program.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Program.type
case class Program(interfaceGlobals: Seq[String], userGlobals: Seq[String], turtleVars: ListMap[String, Int], patchVars: ListMap[String, Int], linkVars: ListMap[String, Int], breeds: ListMap[String, Breed], linkBreeds: ListMap[String, Breed], dialect: Dialect)

Attributes

Companion
object
Source
Program.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait Publisher[T]

Attributes

Source
Publisher.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Pure

Attributes

Source
Pure.scala
Supertypes
class Object
trait Matchable
class Any
case class Reference(kind: AgentKind, vn: Int, original: TokenHolder)

Attributes

Source
Reference.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
Referenceable.scala
Supertypes
class Object
trait Matchable
class Any
trait Reporter extends Instruction

Attributes

Source
Instruction.scala
Supertypes
trait Instruction
trait TokenHolder
class Object
trait Matchable
class Any
object ReporterApp

Attributes

Companion
class
Source
AstNode.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ReporterApp(var reporter: Reporter, val args: Seq[Expression], val sourceLocation: SourceLocation) extends Application, Expression

represents a reporter application. This is the typical kind of NetLogo expression, things like "round 5" and "3 + 4". However, this class also represents things like constants, which are converted into no-arg reporter applications as they're parsed.

represents a reporter application. This is the typical kind of NetLogo expression, things like "round 5" and "3 + 4". However, this class also represents things like constants, which are converted into no-arg reporter applications as they're parsed.

Attributes

Companion
object
Source
AstNode.scala
Supertypes
trait Expression
trait Application
trait AstNode
class Object
trait Matchable
class Any
Show all
object ReporterBlock

Attributes

Companion
class
Source
AstNode.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class ReporterBlock(val app: ReporterApp, val sourceLocation: SourceLocation) extends Expression

represents a block containing exactly one expression. Called a reporter block rather than an expression block for consistency with usual NetLogo jargon. Note that this is an Expression, and as such can be an argument to commands and reporters, etc. However, it is a different expression from the expression it contains... Its "blockness" is significant.

represents a block containing exactly one expression. Called a reporter block rather than an expression block for consistency with usual NetLogo jargon. Note that this is an Expression, and as such can be an argument to commands and reporters, etc. However, it is a different expression from the expression it contains... Its "blockness" is significant.

Attributes

Companion
object
Source
AstNode.scala
Supertypes
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all
object Resource

Attributes

Source
Resource.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Resource.type
class Section[A <: AnyRef](key: String, value: A) extends OptionalSection[A]

Attributes

Source
Model.scala
Supertypes
class OptionalSection[A]
class Object
trait Matchable
class Any
object Shape

Attributes

Companion
trait
Source
Shape.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Shape.type
sealed trait Shape

Attributes

Companion
object
Source
Shape.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait LinkShape
class LinkShape
class LinkShape
trait VectorShape
class VectorShape
class VectorShape
Show all
case class ShapeAdded(newShape: Shape, oldValue: Option[Shape], newShapeList: ShapeList) extends ShapeEvent

Attributes

Source
ShapeList.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ShapeEvent
class Object
trait Matchable
class Any
Show all
sealed trait ShapeEvent

Attributes

Source
ShapeList.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ShapeList

Attributes

Companion
class
Source
ShapeList.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ShapeList.type
case class ShapeList(kind: AgentKind, shapeMap: Map[String, Shape])

Attributes

Companion
object
Source
ShapeList.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class ShapeListTracker(var _shapeList: ShapeList) extends Publisher[ShapeEvent]

Attributes

Source
ShapeList.scala
Supertypes
class Object
trait Matchable
class Any
object ShapeParser

Attributes

Source
ShapeParser.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class ShapeRemoved(removedShape: Shape, newShapeList: ShapeList) extends ShapeEvent

Attributes

Source
ShapeList.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ShapeEvent
class Object
trait Matchable
class Any
Show all
case class ShapesAdded(addedShapes: Map[String, Shape], newShapeList: ShapeList) extends ShapeEvent

Attributes

Source
ShapeList.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait ShapeEvent
class Object
trait Matchable
class Any
Show all
case class Slider(variable: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, display: Option[String], min: String, max: String, default: Double, step: String, units: Option[String], direction: Direction) extends Widget, DeclaresGlobal, DeclaresGlobalCommand, DeclaresConstraint

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait NamedWidget
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Source
SourceLocation.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AstNode
trait Application
class ReporterApp
class Statement
trait Expression
class CommandBlock
class Statements
class Token
Show all
case class SourceLocation(start: Int, end: Int, filename: String)

Attributes

Source
SourceLocation.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
SourceLocation.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
SourceRewriter.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
SourceWrapping.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object Statement

Attributes

Companion
class
Source
AstNode.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Statement.type
class Statement(var command: Command, val args: Seq[Expression], val sourceLocation: SourceLocation) extends Application

represents a NetLogo statement. Statements only have one form: command application.

represents a NetLogo statement. Statements only have one form: command application.

Attributes

Companion
object
Source
AstNode.scala
Supertypes
trait Application
trait AstNode
class Object
trait Matchable
class Any
Show all
class Statements(file: String, val stmts: Seq[Statement], val nonLocalExit: Boolean) extends AstNode

represents a chunk of zero or more NetLogo statements. Note that this is not necessarily a "block" of statements, as block means something specific (enclosed in [], in particular). This class is used to represent other groups of statements as well, for instance procedure bodies. nonLocalExit identifies that the statements contain one or more commands (possibly nested) which may cause a non-local exit (like stop or report)

represents a chunk of zero or more NetLogo statements. Note that this is not necessarily a "block" of statements, as block means something specific (enclosed in [], in particular). This class is used to represent other groups of statements as well, for instance procedure bodies. nonLocalExit identifies that the statements contain one or more commands (possibly nested) which may cause a non-local exit (like stop or report)

Attributes

Source
AstNode.scala
Supertypes
trait AstNode
class Object
trait Matchable
class Any
object StringEscaper

Attributes

Source
StringEscaper.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object StringInput

Attributes

Companion
class
Source
InputBox.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class StringInput(value: String, label: StringKind, multiline: Boolean) extends BoxedValue

Attributes

Companion
object
Source
InputBox.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait BoxedValue
class Object
trait Matchable
class Any
Show all

Attributes

Source
StructureDeclarations.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class StructureResults(program: Program, procedures: ProceduresMap, procedureTokens: Map[String, Iterable[Token]], includes: Seq[Token], includedSources: Seq[String], extensions: Seq[Token], configurableExtensions: Seq[ExtensionDeclaration])

Attributes

Companion
object
Source
StructureResults.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
StructureResults.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class Switch(variable: Option[String], x: Int, y: Int, width: Int, height: Int, oldSize: Boolean, display: Option[String], on: Boolean) extends Widget, DeclaresGlobal, DeclaresGlobalCommand, DeclaresConstraint

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait NamedWidget
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
case class Syntax

Specifies the arguments accepted by a primitive. Used by the compiler for type-checking.

Specifies the arguments accepted by a primitive. Used by the compiler for type-checking.

You cannot instantiate this class directly. Instead, use the static construction methods Syntax.commandSyntax(...) or Syntax.reporterSyntax(...).

For example, in a Reporter that takes two number arguments and returns a boolean, implement Primitive.getSyntax() as follows:

public Syntax getSyntax() {
 return Syntax.reporterSyntax(
   new int[] { Syntax.NumberType(), Syntax.NumberType() },
   Syntax.BooleanType());
}

An input can be made variadic, meaning that it can be repeated any number of times when enclosed in parentheses, if you add the RepeatableType flag. When using variadic inputs you should also define the default number of inputs, that is, the number of inputs expect if the user does not use parentheses. For example:

public Syntax getSyntax() {
  return Syntax.reporterSyntax(
    new int[] { Syntax.WildcardType() | Syntax.RepeatableType() },
    Syntax.ListType(), 2);
}

Attributes

See also

Primitive#getSyntax()

Companion
object
Source
Syntax.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Syntax

Attributes

Companion
class
Source
Syntax.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Syntax.type
object SyntaxJ

Legacy convenience methods for constructing Syntax objects, for use by extensions written in Java.

Legacy convenience methods for constructing Syntax objects, for use by extensions written in Java.

Attributes

Source
SyntaxJ.scala
Supertypes
class Object
trait Matchable
class Any
Self type
SyntaxJ.type
case class TextBox(display: Option[String], x: Int, y: Int, width: Int, height: Int, fontSize: Int, markdown: Boolean, textColorLight: Option[Int], textColorDark: Option[Int], backgroundLight: Option[Int], backgroundDark: Option[Int]) extends Widget

Attributes

Source
Widget.scala
Supertypes
trait Product
trait Equals
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
object Token

Attributes

Companion
class
Source
Token.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Token.type
case class Token(text: String, tpe: TokenType, value: AnyRef)(sourceLocation: SourceLocation) extends SourceLocatable

Attributes

Companion
object
Source
Token.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Source
CompilerUtilitiesInterface.scala
Supertypes
class Object
trait Matchable
class Any
trait TokenHolder

Attributes

Source
TokenHolder.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Instruction
trait Command
class _magicopen
trait Reporter
class Instruction
class Reporter
Show all

Attributes

Source
TokenMapperInterface.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed abstract trait TokenType

Attributes

Companion
object
Source
TokenType.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Bad
object CloseBrace
object CloseBracket
object CloseParen
object Comma
object Command
object Comment
object Eof
object Extension
object Ident
object Keyword
object Literal
object OpenBrace
object OpenBracket
object OpenParen
object Reporter
object Whitespace
Show all
object TokenType

Attributes

Companion
trait
Source
TokenType.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
TokenType.type
object TokenTypeJ

Attributes

Source
TokenTypeJ.scala
Supertypes
class Object
trait Matchable
class Any
Self type
TokenTypeJ.type

Attributes

Source
TokenizerInterface.scala
Supertypes
class Object
trait Matchable
class Any
object TypeNames

Attributes

Source
TypeNames.scala
Supertypes
class Object
trait Matchable
class Any
Self type
TypeNames.type
sealed abstract class UpdateMode(val save: Int) extends Serializable

Attributes

Companion
object
Source
UpdateMode.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object Continuous
object TickBased
object UpdateMode

Attributes

Companion
class
Source
UpdateMode.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
UpdateMode.type
object UpdateModeJ

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.

Attributes

Source
UpdateMode.scala
Supertypes
class Object
trait Matchable
class Any
Self type
object VersionUtils

Attributes

Source
VersionUtils.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case object Vertical extends Direction

Attributes

Source
Widget.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Direction
class Object
trait Matchable
class Any
Show all
Self type
Vertical.type
case class View(x: Int, y: Int, width: Int, height: Int, dimensions: WorldDimensions, fontSize: Int, updateMode: UpdateMode, showTickCounter: Boolean, tickCounterLabel: Option[String], frameRate: Double) extends ViewLike

Attributes

Companion
object
Source
Widget.scala
Supertypes
trait Product
trait Equals
trait ViewLike
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Show all
object View

Attributes

Companion
class
Source
Widget.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
View.type
trait ViewLike extends Widget

Attributes

Source
Widget.scala
Supertypes
trait Widget
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object DummyView
class View
trait Widget extends Serializable

Attributes

Source
Widget.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
class Button
class Chooser
class InputBox
class Monitor
class Output
class Plot
class Slider
class Switch
class TextBox
trait ViewLike
object DummyView
class View
Show all
case class WorldDimensions(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, patchSize: Double, wrappingAllowedInX: Boolean, wrappingAllowedInY: Boolean)

Attributes

Source
WorldDimensions.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

for wrapping up dimensions to resize the world using WorldResizer This class is shared between NetLogo and NetLogo-Headless. That does not mean that it is available for use in Headless. Headless does not support 3D at this time (and may never support 3D).

for wrapping up dimensions to resize the world using WorldResizer This class is shared between NetLogo and NetLogo-Headless. That does not mean that it is available for use in Headless. Headless does not support 3D at this time (and may never support 3D).

Attributes

Companion
class
Source
WorldDimensions.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class WorldDimensions3D(minPxcor: Int, maxPxcor: Int, minPycor: Int, maxPycor: Int, var minPzcor: Int, var maxPzcor: Int, patchSize: Double, wrappingAllowedInX: Boolean, wrappingAllowedInY: Boolean, val wrappingAllowedInZ: Boolean) extends WorldDimensions

Attributes

Companion
object
Source
WorldDimensions.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object XMLElement

Attributes

Companion
class
Source
XMLElement.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
XMLElement.type
case class XMLElement(name: String, attributes: Map[String, String], text: String, children: Seq[XMLElement])

Attributes

Companion
object
Source
XMLElement.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all