PLbindefParEnvironment Environment made by PLbindefPar to set its sources


Part of: miSCellaneous


Inherits from: PLbindefEnvironment


Instances of this class are made as side effect of PLbindefPar creation, assigned to PLbindefPar's name in an Environment of choice (by default the current one) and used to set PLbindefPar's sources in condensed syntax. They are not thought to be created, cleaned up and removed explicitely, this is all done by the interface of PLbindefPar. A PLbindefParEnvironment stores the sources passed with keys as well as the "unfolded" sources of single PLbindef streams. This is done by assigning PLbindefEnvironments to every Integer index of the PLbindefPar and updating them additionally. See PLbindefPar for examples.


See also: PLx suite, PLbindefPar, PLbindef, PLbindefEnvironment


Creation / Class Methods


*new (n, proto, parent, know, name, num)

Creates a new PLbindefParEnvironment object with arguments of IdentityDictionary. In contrast to the latter know defaults to true, which allows setting sources of the PLbindefPar in object prototyping style. name is used for the corresponding key of the PLbindefPar. num is the number of parallel patterns in the PLbindefPar. 

Instance Methods


put (key, obj)

Associates obj with Symbol key and updates PLbindefPar's source as well as the stored PLbindefEnvironments depending on the class of obj. For a SequenceableCollection items are assigned in the PLbindefEnvironments of corresponding indices (method 'wrapAt' is used for handling cases of smaller collections). Other passed objects are assigned in all PLbindefEnvironments. 

plbindefParInit 

Initializes the Environment, which includes using all integers up to num - 1 as keys.

value (...args)

Expects key/value pairs and applies put. Optionally the first arg can be an Integer or a collection of Integers, specifying the PLbindefs to be set.

num

Getter for PLbindefPar's size.