I have to create a simulator for an automation robot whose communication module (a translator from an RF network to RS232 or Ethernet) is supplied by my business.
How can this be implemented in the best way? Do the GUI object representation (position in the "factory" grid, transmit/receive status, etc.) and the controller simulation (when does it move, where does it go, and what does it transmit/acknowledge) belong to separate classes or are they combined into one object?
Which of two objects should include a reference to the other? Should a "GUI representation" be included in the "business logic" component or the other way around? Exist any recognised patterns for this kind of issue?
How can this be implemented in the best way? Do the GUI object representation (position in the "factory" grid, transmit/receive status, etc.) and the controller simulation (when does it move, where does it go, and what does it transmit/acknowledge) belong to separate classes or are they combined into one object?
Which of two objects should include a reference to the other? Should a "GUI representation" be included in the "business logic" component or the other way around? Exist any recognised patterns for this kind of issue?