LibMuse 6.0.2
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)
abstract

String connection state.

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

§ instance()

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

Returns the singleton instance.

Returns
the singleton instance.

§ packetType()

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

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.

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

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