Hi Cesar,

could you possibly whip up some example code that shows how it's currently done 
and how you propose to do it?

Sebastian and I are currently greatly refactoring the code-generation, so now 
would be a perfect time for optimizing things.

Chris

-----Ursprüngliche Nachricht-----
Von: Cesar Garcia <cesar.gar...@ceos.com.ve> 
Gesendet: Montag, 8. November 2021 21:02
An: Apache PLC4X <dev@plc4x.apache.org>
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 uses "instanceof" for the differentiation of 
the message objects in the implementation of the S7 driver, this in conjunction 
with the field values.

With this pattern we could have a much more elegant driver in the 
implementation.

If you have observations it would be interesting to hear them,

Best regards,

--
*CEOS Automatización, C.A.*
*GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,* *PISO 1, OFICINA 2, AV. RAUL 
LEONI, SECTOR GUAMACHITO,*

*FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI* *Ing. César 
García*

*Cel: +58 414-760.98.95*

*Hotline Técnica SIEMENS: 0800 1005080*

*Email: support.aan.automat...@siemens.com
<support.aan.automat...@siemens.com>*

Reply via email to