esa / CCSDS_MO_StubGenerator

Generates technology bindings for CCSDS MAL service specifications
Other
4 stars 9 forks source link

Enumeration to UOctet #22

Closed CesarCoelho closed 6 years ago

CesarCoelho commented 7 years ago

Some fields in the M&C book, use the UOctet type to hold possible enumerations. So: validityState of the ParameterValue category of the AggregationDefinitionDetails category of the ActionDefinitionDetails

This was done to allow the use of custom states in those fields. (or mission-specific) The Enumerations at the moment do not support a direct AggregationCategory.toUOctet() method and so, this is what we currently do: aDef.setCategory(new UOctet((short) category.getOrdinal()));

Having a direct category.toUOctet() would avoid the above.

Please add on the Generator the possibility to get directly a UOctet type from Enumerations.

SamCooper commented 7 years ago

This is a Java API issue so can you add this in to the Java API issues and reference this issue please.