LibMuse 6.0.3
com.choosemuse.libmuse.Stringify Class Referenceabstract

Public Member Functions

abstract String packetType (MuseDataPacketType type)
abstract String connectionState (ConnectionState state)

Static Public Member Functions

static native Stringify instance ()

Detailed Description

Converts some LibMuse constants to strings.

This is primarily used for LibMuse internal logging purposes. Don't use this to generate UI elements; the results are not guaranteed to be human-friendly, nor localized. You may, however, use this for your own logging or debugging purposes.

Member Function Documentation

§ connectionState()

abstract String com.choosemuse.libmuse.Stringify.connectionState ( ConnectionState  state)

String connection state.

stateThe connection state.
The string representation of the connection state.

§ instance()

static native Stringify com.choosemuse.libmuse.Stringify.instance ( )

Returns the singleton instance.

the singleton instance.

§ packetType()

abstract String com.choosemuse.libmuse.Stringify.packetType ( MuseDataPacketType  type)

String packet type.

Only the primitive packet types (eeg, accelerometer, gyro, battery, drl_ref) are human-readable. The rest show up as "type_<n>" where n is the integer corresponding to the constant.

typeThe packet type.
The string representation of the packet type.

The documentation for this class was generated from the following file: