The all Expression

You can find all instances of a given class using the all expression. all is given the name of a class, and returns a list containing all objects of that type.

# get a list of all mobile objects in the simulation

myMobile = all Mobiles.