Hi mm'ers,
I am working on an application that uses connected devices that provide information to the application. A Gps and an Rfid reader are examples. I have created objects that represent these items and manage the connection and communication to the devices. The question I have is about interfacing these with my mm application.
The application needs the info from these to log data to the database, but also uses it to display current data on the screen such as current latitude & longitude. I am having trouble deciding where the gps classes should be used. I think this should all be in the business objects as this is not really a UI thing. However the UI does need to get the updated info from them.
If I set up a listener in the biz object to receive the data as needed are there methods to allow the biz object to notify the form of the new information.
If I set up the listener in the form (seems wrong) then the form can update it's display but then the biz obj would have to get it's info from the form. (seems backwards).
Basically the logic is like this. The gps provides ongoing updates that keep the display current with position data. The Rfid reader provides tag information and it is put on the screen. The reader also provides information when a certain proximity has been reached that signals the appliation to save a record of combined information to the database. This all seems like business logic and should be in the biz obj.
Anybody have any words of wisdom on this?
Thanks
Tim
Timothy Bryan