Hi all,
I have this simple actor framework architecture where my root actor, called "controller", launches two different nested actors called respectively "reader" and "writer". Typically:
"reader" acquires data from a DAQ
"writer" writes the data to a TDMS file.
"controller" sends the different commands to "reader" and "writer" (like start/stop acquisition or start/stop recording) and routes the data acquired by "reader" to "writer"
"reader" and "writer" both send back their respective state to "controller" (like acquisition in progress, writing in progress,...)
In order to decouple "reader" and "writer" from "controller", I mimiced the LV2020 shipping example (Actors and Interfaces) and created an interface for "writer' and "reader" (one interface per actor). I then made "controller" inherit from both interfaces. Then, in each interfaces, I created a method called "UpdateStatus" and created the messages that will be sent by "reader" and "writer" to "controller"
The problem is that the "UpdateStatus" methods do not have the same connector panes in the two interfaces and hence LV tells me that I have an error.
One obvious fix would be to have different names for the methods of the interface ("UpdateReaderStatus" and "UpdateWriterStatus" for instance) but it is not always possible.
Am I missing something? Because it seems that AF modules programmed with the interface technique will be difficult to reuse if rmethods renaming is necessary.
Thanks in advance for your comments!
Regards,