I've been working on a program that automates a test sequence for testing a product before it is sent to the user. The program controls 12 test stations. There is an object that controls the interactions with each station (12 instances total). One of the challenges of the design was how to keep the state machines of each station synchronised.
This has been achieved by passing a record from the creating object to each station instance. This record contains flags that describe the state of each object.
I was wondering, is there a better way for multiple instances of the same object to interact with each other? Any thoughts would be appreciated.