Packages

c

org.nlogo.api

ActionBuffer

class ActionBuffer[A <: Action] extends Subscriber[A, Publisher[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.

Source
Action.scala
Linear Supertypes
Subscriber[A, Publisher[A]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ActionBuffer
  2. Subscriber
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ActionBuffer(broker: ActionBroker[A])

Value Members

  1. def activate(): Unit
  2. def clear(): Unit

    Removes all actions in the buffer

  3. def grab(): Vector[A]

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

  4. def list: Vector[A]

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

  5. def notify(pub: Publisher[A], action: A): Unit
    Definition Classes
    ActionBuffer → Subscriber
  6. def suspend(): Unit