                              undefined,
                              undefined,
                              null,
-                             tangojs.tango.AttributeDataType.ATT_DOUBLE)
+                             tangojs.tango.AttributeDataType.ATT_DOUBLE.value)
       attr.get_value = ->
         value = Math.sin((new Date()).getTime()/1000.0)
         createDeviceAttributeStruct(name, format, value)

                             undefined,
                             undefined,
                             null,
                             tangojs.tango.AttributeDataType.ATT_BOOL)
    spectrum: createAttribute(([1..10].map (_i) -> Math.random()),
                              'spectrum'
                              undefined,

                              undefined,
                              undefined,
                              null,
                              tangojs.tango.AttributeDataType.ATT_DOUBLE.value)

  commands:
    double_arg: createCommand(((x) -> 2*x),
                              'double',
                              tangojs.tango.DispLevel.OPERATOR,
                              tangojs.tango.AttributeDataType.ATT_DOUBLE.value,
                              tangojs.tango.AttributeDataType.ATT_DOUBLE.value)
    to_upper: createCommand(((x) -> x.toUpperCase()),
                            'to_upper',
                            tangojs.tango.DispLevel.OPERATOR,
                            tangojs.tango.AttributeDataType.ATT_NO_DATA.value,
                            tangojs.tango.AttributeDataType.ATT_NO_DATA.value)
    goto_on: createCommand((-> _state = tangojs.tango.DevState.ON),
                           'goto_on',
                           tangojs.tango.DispLevel.OPERATOR,
                           tangojs.tango.AttributeDataType.ATT_NO_DATA.value,
                           tangojs.tango.AttributeDataType.ATT_NO_DATA.value)
    goto_off: createCommand((-> _state = tangojs.tango.DevState.OFF),
                            'goto_off',
                            tangojs.tango.DispLevel.OPERATOR,
                            tangojs.tango.AttributeDataType.ATT_NO_DATA.value,
                            tangojs.tango.AttributeDataType.ATT_NO_DATA.value)
    goto_fault: createCommand((-> _state = tangojs.tango.DevState.FAULT),
                              'goto_fault',
                              tangojs.tango.DispLevel.OPERATOR,
                              tangojs.tango.AttributeDataType.ATT_NO_DATA.value,
                              tangojs.tango.AttributeDataType.ATT_NO_DATA.value)
    goto_alarm: createCommand((-> _state = tangojs.tango.DevState.ALARM),
                              'goto_off',
                              tangojs.tango.DispLevel.OPERATOR,
                              tangojs.tango.AttributeDataType.ATT_NO_DATA.value,
                              tangojs.tango.AttributeDataType.ATT_NO_DATA.value)

###*
 * @private
