ActionBuffer

org.nlogo.api.ActionBuffer
class ActionBuffer[A <: Action](broker: ActionBroker[A]) extends Listener[A]

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.

Attributes

Source
Action.scala
Graph
Supertypes
class Listener[A]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def activate(): Unit

Attributes

Source
Action.scala
def clear(): Unit

Removes all actions in the buffer

Removes all actions in the buffer

Attributes

Source
Action.scala
def grab(): Vector[A]

Returns a vector of actions in the buffer and clears the buffer

Returns a vector of actions in the buffer and clears the buffer

Attributes

Source
Action.scala
override def handle(action: A): Unit

Attributes

Definition Classes
Source
Action.scala
def list: Vector[A]

Returns a vector of actions contained in the buffer without clearing it

Returns a vector of actions contained in the buffer without clearing it

Attributes

Source
Action.scala
def suspend(): Unit

Attributes

Source
Action.scala