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

                            undefined,
                            undefined,
                            null,
                            tangojs.tango.AttributeDataType.ATT_STRING)
    sine_trend: (->
      name = 'sine_trend'
      format = 'scientific,setprecision(3)'

                              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
