Finding All Objects of a Given Type
<< previous | Chapter 7. Interactions Between Agents | next >>

## Finding All Objects of a Given Type

You can find all instances of a given class using the "all" expression:

    # get a list of all mobile objects in the simulation

    myMobile = all Mobiles

<< previous | Up | next >>
Triggering Events Using Notifications | Table of Contents | Testing Whether an Object Responds to a Method Call