Package

org.nlogo

api

Permalink

package api

Provides classes associated with the NetLogo Extensions API and Controlling API.

For discussion and sample code, please see the NetLogo User Manual.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. api
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Action extends AnyRef

    Permalink
  2. trait ActionBroker[A <: Action] extends Publisher[A]

    Permalink
  3. class ActionBuffer[A <: Action] extends Subscriber[A, Publisher[A]]

    Permalink

    An ActionBuffer logs all actions generated by the supplied ActionBroker.

    An ActionBuffer logs all actions generated by the supplied ActionBroker. Actions can be grabbed (which clears the buffer) and the buffer can be cleared independently. NP 2013-01-25.

  4. trait ActionRunner[A <: Action] extends AnyRef

    Permalink
  5. trait Activation extends AnyRef

    Permalink

    A representation of the currently executing procedure

  6. trait Agent extends AnyRef

    Permalink

    NetLogo agents include turtles, patches, links and the observer.

  7. class AgentException extends Exception

    Permalink
  8. trait AgentFollowingPerspective extends AnyRef

    Permalink
  9. trait AgentSet extends AnyRef

    Permalink

    Interface provides access to NetLogo agentsets.

    Interface provides access to NetLogo agentsets. NetLogo agentsets may be composed of turtles, patches, or links (but an agentset may not contain a mix of different agent types.)

    In order to perform some functions on AgentSets you may need to cast to org.nlogo.agent.AgentSet.

  10. final class AgentVariableNumbers extends AnyRef

    Permalink
  11. trait AggregateManagerInterface extends SourceOwner with ModelSaveable

    Permalink
  12. trait AnonymousCommand extends AnonymousProcedure

    Permalink
  13. sealed trait AnonymousProcedure extends AnyRef

    Permalink
  14. trait AnonymousReporter extends AnonymousProcedure

    Permalink
  15. trait Argument extends AnyRef

    Permalink

    Interface provides access to arguments passed to the perform or report methods of a primitive at run-time.

    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.

    See also

    Reporter#report(Argument[], Context)

    Command#perform(Argument[], Context)

  16. trait AutoConvertable extends AnyRef

    Permalink
  17. trait AutoConverter extends AnyRef

    Permalink
  18. class CSV extends AnyRef

    Permalink
  19. trait ClassManager extends AnyRef

    Permalink
  20. trait Command extends PrimitiveCommand

    Permalink

    Interface for NetLogo extension commands.

    Interface for NetLogo extension commands. Commands are primitives that do not return a value. All new commands must implement this interface.

  21. trait CommandLogoThunk extends AnyRef

    Permalink
  22. trait CommandRunnable extends AnyRef

    Permalink
  23. trait CompilerServices extends LiteralParser

    Permalink
  24. trait ComponentSerialization[A, B <: ModelFormat[A, _]] extends AutoConvertable

    Permalink
  25. class ConfigurableModelLoader extends ModelLoader

    Permalink
  26. trait Context extends AnyRef

    Permalink

    Provides access to the current execution environment.

  27. trait Controllable extends AnyRef

    Permalink

    Interface provides access to the NetLogo controlling API's report and command methods found in methods independent of App.app and headless.HeadlessWorkspace.

    Interface provides access to the NetLogo controlling API's report and command methods found in methods independent of App.app and headless.HeadlessWorkspace. This is useful for making java software that can run NetLogo in both GUI and Headless mode.

  28. abstract class DefaultClassManager extends ClassManager

    Permalink
  29. trait DelegatingMapper extends TokenMapperInterface

    Permalink
  30. trait Drawing3D extends AnyRef

    Permalink
  31. trait DrawingInterface extends AnyRef

    Permalink
  32. trait DrawingLine3D extends AnyRef

    Permalink
  33. class DummyCompilerServices extends CompilerServices

    Permalink
  34. trait DummyEditable extends Editable with DummyErrorHandler

    Permalink
  35. trait DummyErrorHandler extends AnyRef

    Permalink
  36. class DummyExtensionManager extends core.DummyExtensionManager with ExtensionManager

    Permalink
  37. class DummyLogoThunkFactory extends LogoThunkFactory

    Permalink
  38. trait Editable extends AnyRef

    Permalink
  39. trait EditorAreaInterface extends AnyRef

    Permalink
  40. case class EnumeratedValueSet(variableName: String, values: List[Any]) extends ValueSet with Product with Serializable

    Permalink
  41. class ExtensionException extends Exception

    Permalink

    Wrapper class for exceptions thrown by NetLogo extensions.

  42. trait ExtensionManager extends core.ExtensionManager

    Permalink

    ExtensionManager provides some methods that can be used in runOnce

    ExtensionManager provides some methods that can be used in runOnce

  43. class FormatterPair[A, B <: ModelFormat[A, B]] extends AnyRef

    Permalink
  44. class Graphics2DWrapper extends GraphicsInterface

    Permalink
  45. trait GraphicsInterface extends AnyRef

    Permalink
  46. trait HubNetInterface extends ViewInterface with ModelSaveable

    Permalink
  47. trait HubNetWorkspaceInterface extends CompilerServices

    Permalink
  48. trait I18NJava extends AnyRef

    Permalink
  49. trait ImportErrorHandler extends AnyRef

    Permalink
  50. trait ImporterUser extends WorldResizer

    Permalink
  51. trait JobOwner extends SourceOwner

    Permalink

    Like source owners, job owners are usually parts of the UI.

    Like source owners, job owners are usually parts of the UI. Jobs are initiated by by buttons, by monitors, by the Command Center, and so on.

    The (assorted, disparate) methods here in JobOwner have mainly to do with runtime behavior and/or runtime error handling. (SourceOwner is more about compilation and compile-time errors.)

  52. case class LabProtocol(name: String, setupCommands: String, goCommands: String, finalCommands: String, repetitions: Int, runMetricsEveryStep: Boolean, timeLimit: Int, exitCondition: String, metrics: List[String], valueSets: List[ValueSet]) extends Product with Serializable

    Permalink
  53. trait Link extends Agent

    Permalink

    Interface provides access to NetLogo links.

  54. trait Link3D extends Link

    Permalink
  55. trait LinkStamp3D extends Link3D

    Permalink
  56. class LocalFile extends File

    Permalink
  57. trait Logger extends AnyRef

    Permalink
  58. abstract class LogoException extends RuntimeException

    Permalink

    A runtime error that has occurred in NetLogo code.

    A runtime error that has occurred in NetLogo code.

    As with any Exception, use the getMessage() method to get the error message. A LogoExceptions is expected to have a nice end-user-understandable message.

    LogoException is abstract because engine code is supposed to throw a concrete subclass like EngineException.

  59. class LogoHashObject extends AnyRef

    Permalink
  60. class LogoListBuilder extends AnyRef

    Permalink
  61. trait LogoThunkFactory extends AnyRef

    Permalink
  62. class Matrix3D extends AnyRef

    Permalink
  63. final class MersenneTwisterFast extends Random with Serializable with Cloneable

    Permalink
  64. trait ModelFormat[Section, Format <: ModelFormat[Section, _]] extends AnyRef

    Permalink
  65. trait ModelLoader extends AnyRef

    Permalink
  66. trait ModelRun extends AnyRef

    Permalink
  67. sealed trait ModelSection extends AnyRef

    Permalink
  68. trait ModelSections extends AnyRef

    Permalink
  69. case class ModelSettings(snapToGrid: Boolean) extends Product with Serializable

    Permalink
  70. sealed trait ModelType extends AnyRef

    Permalink

    how a model was loaded.

    how a model was loaded. NEW is type for new models, NORMAL is a model opened normally (e.g. via Open on the File menu), LIBRARY a models library model.

  71. trait ModelingCommonsInterface extends AnyRef

    Permalink
  72. trait MultiErrorHandler extends AnyRef

    Permalink
  73. trait NetLogoAdapter extends NetLogoListener

    Permalink

    Implements NetLogoListener with empty methods, which can be overriden in subclasses.

  74. trait NetLogoListener extends EventListener

    Permalink

    A host application should implement this interface in order to be notified of events occurring within NetLogo.

    A host application should implement this interface in order to be notified of events occurring within NetLogo. Its methods are called by NetLogoListenerManager when these events occur. The events are typically user actions, but may also be triggered programmatically by the model.

  75. trait Observer extends Agent

    Permalink
  76. trait ObserverOrientation extends AnyRef

    Permalink
  77. class Options[T] extends AnyRef

    Permalink
  78. sealed trait OutputDestination extends AnyRef

    Permalink
  79. trait Patch extends Agent

    Permalink

    Provides access to NetLogo patches.

  80. trait Patch3D extends Patch

    Permalink
  81. sealed abstract class Perspective extends AnyRef

    Permalink
  82. class PerspectiveJ extends AnyRef

    Permalink
  83. sealed trait PlotAction extends Action

    Permalink
  84. trait PlotInterface extends AnyRef

    Permalink
  85. trait PlotManagerInterface extends AnyRef

    Permalink
  86. case class PlotState(autoPlotOn: Boolean = true, xMin: Double = 0, xMax: Double = 10, yMin: Double = 0, yMax: Double = 10) extends Product with Serializable

    Permalink
  87. sealed trait PreviewCommands extends ModelSaveable

    Permalink

    A model's "preview commands" are the commands that are used to generate the preview that appears in the Models Library dialog, the NetLogo website (http://ccl.northwestern.edu/netlogo/models/), the Modeling Commons (http://www.modelingcommons.org/) and potentially other places.

    A model's "preview commands" are the commands that are used to generate the preview that appears in the Models Library dialog, the NetLogo website (http://ccl.northwestern.edu/netlogo/models/), the Modeling Commons (http://www.modelingcommons.org/) and potentially other places. By default, they're just setup repeat 75 [ go ] but they can be customized. Some models require manually generated previews.

    Preview commands are always run in a fresh headless workspace with random-seed 0 called before opening the model. The startup procedure, if present, runs before the preview commands.

  88. trait PrimitiveManager extends AnyRef

    Permalink

    Ships extension primitives and associated names to NetLogo.

  89. case class Property(accessString: String, tpe: Type, name: String, notes: String = "", gridWidth: Int = GridBagConstraints.REMAINDER, focus: Boolean = false, setLive: Boolean = false, enabled: Boolean = true, collapsible: Boolean = false, collapseByDefault: Boolean = false) extends Product with Serializable

    Permalink
  90. trait Protractor extends AnyRef

    Permalink
  91. trait Protractor3D extends Protractor

    Permalink
  92. trait RandomServices extends AnyRef

    Permalink
  93. class RemoteFile extends File

    Permalink
  94. trait RendererInterface extends AnyRef

    Permalink
  95. trait Reporter extends PrimitiveReporter

    Permalink

    Interface for NetLogo reporters.

    Interface for NetLogo reporters. Reporters are primitives that return a value. All new reporters must implement this interface.

  96. trait ReporterLogoThunk extends AnyRef

    Permalink

    This is used by SliderConstraint.

    This is used by SliderConstraint. Sliders have snippets of Logo code associated with them, which need be to be evaluated to produce numbers for the min, max, and increment. But here in the org.nlogo.agent package we don't know anything about Logo code and how to run it. This interface lets other code keep us in the dark by giving us a black box that magically produces an object whenever we ask for one. (In the case of SliderConstraint the object should be a boxed double.)

  97. trait ReporterRunnable[T] extends AnyRef

    Permalink
  98. class SimpleChangeEventPublisher extends Publisher[SimpleChangeEvent.type]

    Permalink

    A most basic event publisher only warning subscribers that "something has changed" Currently used by TreeAgentSet to allow the nw extension to listen for changes and update its graph context accordingly.

    A most basic event publisher only warning subscribers that "something has changed" Currently used by TreeAgentSet to allow the nw extension to listen for changes and update its graph context accordingly. NP 2013-05-14.

  99. class SimpleJobOwner extends JobOwner

    Permalink
  100. trait SingleErrorHandler extends AnyRef

    Permalink
  101. trait SourceOwner extends AnyRef

    Permalink

    Source owners are usually parts of the UI.

    Source owners are usually parts of the UI. Code comes from buttons, from monitors, from the Code tab, from the Command Center, and so on.

    SourceOwner has mainly to do with compilation and with what to do if an error occurs during compilation.

    "Header source" is distinguished from "inner source" because the latter is the code the user actually wrote, while header and footer source is extra code we wrapped around it. This matters when showing code and showing positions of errors in the UI; we never want to show the user header/footer source, but error locations need to take the length of the header source into account.

    See also JobOwner, which extends SourceOwner and adds methods having to do with runtime behavior and runtime error-handling.

  102. case class SteppedValueSet(variableName: String, firstValue: BigDecimal, step: BigDecimal, lastValue: BigDecimal) extends ValueSet with Product with Serializable

    Permalink
  103. class Timer extends AnyRef

    Permalink
  104. trait TokenHolder extends AnyRef

    Permalink
  105. trait TokenizerInterface extends AnyRef

    Permalink
  106. trait TrailDrawerInterface extends DrawingInterface

    Permalink
  107. trait Turtle extends Agent

    Permalink

    Interface provides access to NetLogo turtles.

  108. trait Turtle3D extends Turtle

    Permalink
  109. trait TurtleStamp3D extends Turtle3D

    Permalink
  110. trait ValueConstraint extends AnyRef

    Permalink

    Interface for objects which provide constraints for values

  111. sealed trait ValueSet extends Iterable[Any]

    Permalink
  112. case class Vect(x: Double, y: Double, z: Double) extends Product with Serializable

    Permalink
  113. trait Version extends AnyRef

    Permalink
  114. trait ViewInterface extends AnyRef

    Permalink
  115. trait ViewSettings extends AnyRef

    Permalink
  116. trait Workspace extends ImporterUser with LiteralParser with RandomServices with ViewSettings with Controllable

    Permalink
  117. trait World extends AnyRef

    Permalink
  118. trait World3D extends World

    Permalink
  119. class WorldDimensionException extends Exception

    Permalink
  120. class WorldDimensions3D extends WorldDimensions

    Permalink
  121. trait WorldPropertiesInterface extends AnyRef

    Permalink
  122. trait WorldRenderable extends AnyRef

    Permalink
  123. trait WorldResizer extends AnyRef

    Permalink

    used by Importer for resizing the world during an import.

    used by Importer for resizing the world during an import. also used by BehaviorSpace when the experiment varies the world size

  124. trait WorldWithWorldRenderable extends World with WorldRenderable

    Permalink

Value Members

  1. object APIVersion

    Permalink
  2. object AgentVariables

    Permalink
  3. object Approximate

    Permalink
  4. object Color extends core.Color

    Permalink
  5. object Constants

    Permalink
  6. object Dump extends core.Dump

    Permalink
  7. object Equality

    Permalink
  8. object Exceptions

    Permalink
  9. object FileIO

    Permalink
  10. object HexString

    Permalink
  11. object HubNetInterface

    Permalink
  12. object JavaLibraryPath

    Permalink

    This code came from http://forum.java.sun.com/thread.jspa?threadID=627890&start=15

    This code came from http://forum.java.sun.com/thread.jspa?threadID=627890&start=15

    The Terms of Use for the website, in the "Content Submitted to Sun" section states: You (the author) grant Sun and all other users of the Website an irrevocable, worldwide, royalty-free, nonexclusive license to use, reproduce, modify, distribute, transmit, display, perform, adapt, resell and publish such Content (including in digital form).

    http://www.sun.com/termsofuse.jsp

    The username of the original post has no name or email associated with it.

    Adds a path to the java.library.path System property and updates the ClassLoader. Uses reflection to allow update to private system members. Will not work if JVM security policy gets in the way (like in an applet). Will not work if Sun changes the private members. This really shouldn't be used at all...

  13. object LogoHashObject

    Permalink
  14. object ModelLoader

    Permalink
  15. object ModelReader

    Permalink
  16. object ModelSection

    Permalink
  17. object ModelSectionJ

    Permalink
  18. object ModelSections

    Permalink
  19. object ModelType

    Permalink
  20. object ModelTypeJ

    Permalink
  21. object NetLogoLegacyDialect extends Dialect

    Permalink
  22. object NetLogoLegacyDialectTokenMapper extends DelegatingMapper

    Permalink
  23. object NetLogoThreeDDialect extends Dialect

    Permalink
  24. object NumberParser

    Permalink
  25. object Numbers

    Permalink
  26. object OutputDestination

    Permalink
  27. object OutputDestinationJ

    Permalink

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

  28. object PeriodicUpdateDelay

    Permalink
  29. object Perspective

    Permalink
  30. object PlotAction

    Permalink
  31. object PreviewCommands

    Permalink
  32. object Property extends Serializable

    Permalink
  33. object RandomSeedGenerator

    Permalink
  34. object RemoteFile

    Permalink
  35. object ScalaConversions

    Permalink
  36. object SimpleChangeEvent

    Permalink
  37. object StringUtils

    Permalink
  38. object ThreeDTokenMapper extends DelegatingMapper

    Permalink
  39. object TypeNames

    Permalink
  40. object ValueConstraint

    Permalink
  41. object Vect extends Serializable

    Permalink
  42. object Version extends Version

    Permalink
  43. object VersionHistory

    Permalink
  44. object WorldDimensions3D extends Serializable

    Permalink

    for wrapping up dimensions to resize the world using WorldResizer This class is shared between NetLogo and NetLogo-Headless.

    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).

Inherited from AnyRef

Inherited from Any

Ungrouped