usnistgov / ucef-meta

WebGME Federate and Experiment Designer
MIT License
3 stars 3 forks source link

Assignment of byte or char type to an attribute causes compile error for generated code #16

Open MartyBurns opened 6 years ago

MartyBurns commented 6 years ago

Version information

https://github.com/usnistgov/ucef-meta/commit/000d2f94c4da5dbe3aeb32afe8f06928d2162ec6

Observed behavior

if data type char or byte is selected for an attribute or parameter, an exception is thrown by compiler when building the -rti project.

    /**
    * Returns the current timestamp of the "timeReference" attribute of this object.
    *
    * @return the current timestamp of the "timeReference" attribute
    */
    public double get_timeReference_time() {
        return _timeReference.getTime();
    }

    protected Attribute< Character > _type =
            new Attribute< Character >(  new Character( \000 )  );

Expected behavior

not sure what correct data expressions

Steps to reproduce issue

create a federation with a char or byte attribute export federate compile