An example using concurrency Summary An example using concurrency A nice little demonstration of concurrency in Object REXX is the following example. It declares a cloud class representing cloud objects that can be used in an interactive simulation. Each cloud has certain attributes such as size and temperature that determine its behaviour.
Public methods are available to change the state of a cloud from the outside.
The class is not described in detail in this tutorial - it's an exercise to you, the reader, to understand how it works. With the knowledge you gained in the two Object REXX tutorials you should be able to understand the behaviour of the cloud class by looking at the code and comments. A listing of a sample session with the cloud class will show you the reaction to user input. If the class is declared public as in this example it is then available and can be used to create objects. The following output was captured in a sample session with the cloud class.