Visitor pattern

2021-11-08 Thread Cesar Garcia
Hi everyone, I have a query for you. In the case of mspec for Java, would it be possible to include the VSD (Visitor Design Pattern) in the generated classes? This is because most of the code uses "instanceof" for the differentiation of the message objects in the implementation of the S7 driver,

AW: Visitor pattern

2021-11-09 Thread Christofer Dutz
- Von: Cesar Garcia Gesendet: Montag, 8. November 2021 21:02 An: Apache PLC4X Betreff: Visitor pattern Hi everyone, I have a query for you. In the case of mspec for Java, would it be possible to include the VSD (Visitor Design Pattern) in the generated classes? This is because most of the code

Re: Visitor pattern

2021-11-10 Thread Cesar Garcia
unless the protocol is changed, which in itself is another protocol. 2. The objects generated by the mspec only have properties and not associated logic. 3. The logic associated with each object can be implemented by the Visitor pattern, which from my point of view generates more organized code,