Documentation Set for Swarm 2.2
Prev | Reference VII. Simtoolsgui Library | Next

# ActionCache

## Name

ActionCache -- A class to manage threads and Swarms.

## Description

A class that provides a smart bag into which actions can be thrown by other threads and Swarms intended for insertion on it's Swarm's schedule.

## Protocols adopted by ActionCache

CompositeWindowGeometryRecordName SwarmObject RETURNABLE

## Methods

### Phase: Creating

- - createProcCtrl

- - setControlPanel: (id <ControlPanel>)cp

### Phase: Using

- - waitForControlEvent

- - doTkEvents
  A message that processes any input or output events of the Tk toolkit. Scheduling -doTkEvents ensures Tk keeps the user interface up-to-date. Without scheduling it as part of the GUI code, the Tk events would just queue up and never get processed, resulting in a static, unresponsive user interface.

- - getPanel

- - verifyActions

- - sendQuitAction

- - sendNextAction

- - sendStepAction

- - sendStopAction

- - sendStartAction

- - sendActionOfType: (id <Symbol>)type toExecute: (const char *)cmd

- - deliverActions

- - insertAction: actionHolder

- - setScheduleContext: (id <Swarm>)context

Prev | Home | Next
Simtoolsgui Library | Up | CommonProbeDisplay