wiiusej.wiiuseapirequest
Class LedsRequest

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

public class LedsRequest
extends WiiUseApiRequest

Represents a request to set leds of the wiimote with WiiUse API.

Author:
guiguito

Field Summary
private  boolean led1
           
private  boolean led2
           
private  boolean led3
           
private  boolean led4
           
 
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
LedsRequest(int id, int type)
          Constructor setting the id of the wiimote concerned.
LedsRequest(int id, int type, boolean l1, boolean l2, boolean l3, boolean l4)
          Constructor setting the id of the wiimote concerned.
 
Method Summary
 boolean isLed1()
           
 boolean isLed2()
           
 boolean isLed3()
           
 boolean isLed4()
           
 void setLed1(boolean led1)
           
 void setLed2(boolean led2)
           
 void setLed3(boolean led3)
           
 void setLed4(boolean led4)
           
 
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

led1

private boolean led1

led2

private boolean led2

led3

private boolean led3

led4

private boolean led4
Constructor Detail

LedsRequest

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

Parameters:
id - id of the wiimote concerned
type - type of the request

LedsRequest

public LedsRequest(int id,
                   int type,
                   boolean l1,
                   boolean l2,
                   boolean l3,
                   boolean l4)
Constructor setting the id of the wiimote concerned.

Parameters:
id - id of the wiimote concerned
type - type of the request
l1 - led1 status. True=ON, False=OFF
l2 - led2 status. True=ON, False=OFF
l3 - led3 status. True=ON, False=OFF
l4 - led4 status. True=ON, False=OFF
Method Detail

isLed1

public boolean isLed1()
Returns:
the led1

setLed1

public void setLed1(boolean led1)
Parameters:
led1 - the led1 to set

isLed2

public boolean isLed2()
Returns:
the led2

setLed2

public void setLed2(boolean led2)
Parameters:
led2 - the led2 to set

isLed3

public boolean isLed3()
Returns:
the led3

setLed3

public void setLed3(boolean led3)
Parameters:
led3 - the led3 to set

isLed4

public boolean isLed4()
Returns:
the led4

setLed4

public void setLed4(boolean led4)
Parameters:
led4 - the led4 to set