AlgaProxySpace:
Filter:
AlgaLib/Classes (extension) | Alga

AlgaProxySpace
ExtensionExtension

Provides an Environment to work on Alga modules

Description

An AlgaProxySpace allows to create an Environment where all newly created variables are AlgaNodes or AlgaPatterns.

Class Methods

.boot

Boot a new Alga instance and push the AlgaProxySpace as the currentEnvironment.

Arguments:

onBoot

Execute a Function on boot.

server

The Server to boot Alga on.

algaServerOptions

An instance of AlgaServerOptions to boot the server with. If not specified, a default one will be created.

clock

The Clock for the internal AlgaScheduler. If not specified, a default TempoClock will be created.

.forceBoot

Same as boot, but using Alga's forceBoot.

.fBoot

Alias for forceBoot.

Instance Methods

.at

Retrieve the node at the specific key.

Arguments:

key

The Symbol key.

.put

Assign a node to a key.

Arguments:

key

The Symbol key.

def

This can be any def supported by an AlgaNode / AlgaPattern.

.push

Push the AlgaProxySpace as the new currentEnvironment.

.pop

Restore the previous Environment.

.quit

Quit Alga and restore the previous Environment.

.clear

Clear all nodes.

.stop

Stop all nodes.

.interpTime

Set all nodes' interpTime.

.interpShape

Set all nodes' interpShape.

.playTime

Set all nodes' playTime.

.replacePlayTime

Set all nodes' replacePlayTime.

.playSafety

Set all nodes' playSafety.

.sched

Set all nodes' sched.

Examples