A Simple Example
We will use the same example used to describe the moore package. You may wish to first look at the oomoore manual documentation for the oomoore package or you can just follow along here and review the manual later.
Washing machineThe subject of this example is simple washing machine. Washing machines exhibit a circular pattern in that they proceed to perform their operations one step after another, eventually returning to the original state.
Our washing machine consists of several components that we need to control:
- A water valve that we can open and close.
- A washing tub where the clothes and water are washed. The tub has a sensor that can tell us when the tub is full of water and when it is empty.
- A pump to remove water from the tub.
- A motor that can be used to agitate the clothes and spin the water out of them.