Elevators | BRITNeY Suite |
Examples |
The first query loads the stub functors required to use the Elevator Java class.
The second and third querien create two contexts, and the fourth and fifth query initialises the contexts; elevator1
is able to visualise two elavators in a 6 story building, and elevator2
is able to visualise 4 elevators in a 15 story building.
The last (3-line) query moves two elevators in the first context and one elevator in the second. Notice how the query returns immdiately. For fun try evaluating elevator1.setPosition(1, 1); elevator1.setPosition(1, 6);
a couple times immediately after each other.
Also, try resizing the main window while the elevators are moving.