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.
A representation of the currently executing procedure
NetLogo agents include turtles, patches, links and the observer.
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.
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.
Reporter#report(Argument[], Context)
Command#perform(Argument[], Context)
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.
Provides access to the current execution environment.
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.
Wrapper class for exceptions thrown by NetLogo extensions.
ExtensionManager
provides some methods that can be used in runOnce
ExtensionManager
provides some methods that can be used in runOnce
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.)
Interface provides access to NetLogo links.
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.
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.
Implements NetLogoListener with empty methods, which can be overriden in subclasses.
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.
Provides access to NetLogo patches.
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.
Ships extension primitives and associated names to NetLogo.
Interface for NetLogo reporters.
Interface for NetLogo reporters. Reporters are primitives that return a value. All new reporters must implement this interface.
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.)
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.
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.
Interface provides access to NetLogo turtles.
Interface for objects which provide constraints for values
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
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...
Java can't (I don't think) access Scala inner objects without reflection, so we provide these convenience vals for use from Java.
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).
Provides classes associated with the NetLogo Extensions API and Controlling API.
For discussion and sample code, please see the NetLogo User Manual.