wiiusej.wiiuseapirequest
Class FloatValueRequest

java.lang.Object
  extended by wiiusej.wiiuseapirequest.WiiUseApiRequest
      extended by wiiusej.wiiuseapirequest.FloatValueRequest

public class FloatValueRequest
extends WiiUseApiRequest

Represents a request with a float value to pass to wiiuse API.

Author:
guiguito

Field Summary
private  float floatValue
           
 
Fields inherited from class wiiusej.wiiuseapirequest.WiiUseApiRequest
WIIUSE_ACCEL_THRESHOLHD_REQUEST, WIIUSE_ACTIVATE_CONTINUOUS_REQUEST, WIIUSE_ACTIVATE_IR_TRACKING_REQUEST, WIIUSE_ACTIVATE_MOTION_SENSING_REQUEST, WIIUSE_ACTIVATE_RUMBLE_REQUEST, WIIUSE_ACTIVATE_SMOOTHING_REQUEST, WIIUSE_ALPHA_SMOOTHING_REQUEST, WIIUSE_ASPECT_RATIO_16_9, WIIUSE_ASPECT_RATIO_4_3, WIIUSE_CLOSE_CONNECTION_REQUEST, WIIUSE_DEACTIVATE_CONTINUOUS_REQUEST, WIIUSE_DEACTIVATE_IR_TRACKING_REQUEST, WIIUSE_DEACTIVATE_MOTION_SENSING_REQUEST, WIIUSE_DEACTIVATE_RUMBLE_REQUEST, WIIUSE_DEACTIVATE_SMOOTHING_REQUEST, WIIUSE_LEDS_REQUEST, WIIUSE_ORIENT_THRESHOLHD_REQUEST, WIIUSE_RESYNC, WIIUSE_SENSOR_BAR_ABOVE, WIIUSE_SENSOR_BAR_BELOW, WIIUSE_SET_VIRTUAL_RESOLUTION, WIIUSE_STATUS_REQUEST
 
Constructor Summary
FloatValueRequest(int id, int type)
          Constructor setting the id of the wiimote concerned.
FloatValueRequest(int id, int type, float th)
          Constructor setting the id of the wiimote concerned.
 
Method Summary
 float getFloatValue()
          Get the float value.
 void setFloatValue(float val)
          Set the float value.
 
Methods inherited from class wiiusej.wiiuseapirequest.WiiUseApiRequest
getId, getRequestType, setId, setRequestType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

floatValue

private float floatValue
Constructor Detail

FloatValueRequest

public FloatValueRequest(int id,
                         int type)
Constructor setting the id of the wiimote concerned.

Parameters:
id - the id of the wiimote concerned.

FloatValueRequest

public FloatValueRequest(int id,
                         int type,
                         float th)
Constructor setting the id of the wiimote concerned.

Parameters:
id - the id of the wiimote concerned.
type - type of the request
th - threshold in degrees
Method Detail

getFloatValue

public float getFloatValue()
Get the float value.

Returns:
the float value

setFloatValue

public void setFloatValue(float val)
Set the float value.

Parameters:
val - the value to set