Tools experience wear during usage. Machines using these tools need to have their NC (i.e. numerical control) programs corrected, after the wear is measured.
I've already created a XSD model and generated JAXB classes that manage these measures, now I want to automatically generate NC code that sets the measured differences on the machines.
The code to be generated basically has this format (plus possibly some static prefixing/suffixing code):
$TC_DP<x>[<t>, <D>] // 1 < x <= 25, 1 < D <= 12
with tbeing the ID of the tool, D being a cutting edge on this tool, and xbeing a parameter related to the cutting edge.
For different tools t, x and D have different meaning, e.g. $TC_DP1[10, 2] is length of edge 2 on tool 10. $TC_DP1[5, 2] could be width of edge 2 on tool 5.
I'm looking for a way to declaratively define the mapping between the $TC_DP<x>[<t>, <D>] format and the model I've created, in order to have the NC code generated for me.