I'm not a specialist of Arduino, but as far as I know, very often an Arduino sketch is very simple an only composed of : list of variables, "setup" function and "loop" function. Which is too simple to justify code generation. But, if you have a class diagram I suppose that you plan to use an Object Oriented approach (that seems possible as the Arduino Language is a variant of C++). According to you diagram, each class ( "Sensores", "Actuadores") can be assimilated to a "Telosys Entity". Thus you can create a Telosys DSL model with 2 ".entity" files ( "Sensores", "Actuadores") and use them to generate your code (class attributes, constructor, common methods, etc). But if a large part of the code is specific to each class then there is no real gain in using code generation
Thank you very much for your response. Sorry for the delay in replying. I am trying to understand how telosys works, is there any initial tutorial or documentation to read about the tool. Also, I have another question. I can represent "sensors" and "actuators" through .entity files, now is there any way to also create the implementations of these classes, for example, some command line menu or other way that appears and asks the user, how many implementations of the sensors class he wants to create, and I generated in code?
If you want to generate implementations you need a template for this. For example you can define 2 templates, one template to generate an "abstact class" (or "interface") and another template to generate the implementation (or concrete class)