Documentation Set for Swarm 2.2
Prev | Reference IX. Analysis Library | Next

# EZSequence

## Name

EZSequence -- Protocol for an EZSequence

## Description

A sequence generated using an EZGraph instance returns an object of this type

## Protocols adopted by EZSequence

SwarmObject RETURNABLE

## Methods

### Phase: Using

- - (double)getCurrentValue
  Returns the current value of the sequence.

- - (void)setUnsignedArg: (unsigned)val
  After a sequence has been created and a selector is set, this method allows the user to specify a single unsigned integer argument that is required by the message that the selector implies.

  Example analysis/EZSequence/-setUnsignedArg:/1.

       For  example, suppose you have created an EZGraph called "heightGraph"
       If one has an object "dog" in which there is a method
       - getFriendHeight: (unsigned)h;

       And one wants to create a line to plot the 5th dog,
       then the EZsequence can be created with a command like:
       {
         id sequence = [heightGraph createSequence: "aName"
                                      withFeedFrom: dog
                                      andSelector: M(getFriendHeight:);

         [sequence setUnsignedArg: 4];
       }

Prev | Home | Next
EZGraph | Up | Entropy