PreviewCommands

org.nlogo.api.PreviewCommands
See thePreviewCommands companion object
sealed trait PreviewCommands extends ModelSaveable

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.

Attributes

Companion
object
Source
PreviewCommands.scala
Graph
Supertypes
trait ModelSaveable
class Object
trait Matchable
class Any
Known subtypes
trait Compilable
class Custom
object Default
object Manual

Members list

Value members

Abstract methods

Attributes

Source
PreviewCommands.scala
def source: String

Attributes

Source
PreviewCommands.scala

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
PreviewCommands.scala
override def updateModel(m: Model): Model

Attributes

Definition Classes
ModelSaveable
Source
PreviewCommands.scala