Hi there,
I recently started using the actor framework and I am currently using it on a project. This project aims to develop a visual inspection machine for lenses. In the image below you will see the current actor messaging diagram.
I want to reach the following goal:
The Stream actor is used for acquisition of images from the camera. The Measurement Executioner, Snapshot Dialog, and more actors will request images from the Stream. They can do this by sending a 'Grab Image' to the Image Acquisitioner. The Stream actor will then create an image, wait for an event that the camera has acquired a new image and then send it back to the actor which requested the image.
What I have now:
I don't know if there is some kind of morphological polymorphic messaging that knows to which actor to send the reply depending on the enqueuer. So I made a work around, currently the requesting actor creates the image and sends the image reference to the Image Acquisitioner. Then the requesting actor keeps checking until the image has been updated and goes on one's way.
Is there a better solution to this?