From: Hiroo H. <hir...@co...> - 2004-08-25 04:13:27
|
Rib, I still don't understand. Sorry for my poor English. Rib> > Rib> Also, I was thinking it might be better to have Rib> > Rib> IPatchDriver.supportsMessage so that each message can be checked Rib> > Rib> instead of just whatever's at the beginning. Then it would probably Rib> > Rib> > Sorry, I don't understand the purpose of this method. Does this check Rib> > if IPatch.getDriver() returned correct value? (I guess this is wrong.) Rib> Rib> I was thinking of using this instead of supportsPatch(String, byte[]) Rib> in the patch factory method. If there are multiple messages it can Rib> check if there is a single driver that supports all the messages. If Rib> so, it will use that driver; otherwise it can send messages Rib> individually to drivers that support them. I understand you mean multiple patch (IPatch) by multiple message instead of multiple sysex message (SysexMessage). Am I correct? If I'm correct, this is the only job of Converter. Converter's createPatch() divides the input message into multiple patch and assigns a proper driver onto each patch by using IDriver.supportsPatch(). The process does not care if all of the patch are supported by a single driver or not. And now a converter can override createPatch() method directly instead of Converter.extractPatch(). Converter has more flexibility than before. Am I on the same page with you? -- Hiroo Hayashi |