WatcherManagement

org.nlogo.agent.WatcherManagement

Attributes

Source
WatcherManagement.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CoreWorld
class World2D
class World3D
class World

Members list

Value members

Concrete methods

def addWatcher(variableName: String, watcher: VariableWatcher): Unit

A watcher to be notified every time the given variable changes for any agent.

A watcher to be notified every time the given variable changes for any agent.

Value parameters

variableName

The variable name to watch as an upper case string; e.g. "XCOR"

watcher

The watcher to notify when the variable changes

Attributes

Source
WatcherManagement.scala
def deleteWatcher(variableName: String, watcher: VariableWatcher): Unit

Deletes a variable watcher.

Deletes a variable watcher.

Value parameters

variableName

The watched variable name as an upper case string; e.g. "XCOR"

watcher

The watcher to delete

Attributes

Source
WatcherManagement.scala
def notifyWatchers(agent: Agent, vn: Int, value: Object): Unit

Attributes

Source
WatcherManagement.scala