orbotix.robot.base
Class RGBLEDOutputCommand

java.lang.Object
  extended by orbotix.robot.base.DeviceMessage
      extended by orbotix.robot.base.DeviceCommand
          extended by orbotix.robot.base.RGBLEDOutputCommand
All Implemented Interfaces:
android.os.Parcelable

public final class RGBLEDOutputCommand
extends DeviceCommand


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.Creator
 
Field Summary
static android.os.Parcelable.Creator CREATOR
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
RGBLEDOutputCommand(int r, int g, int b)
           
 
Method Summary
 int describeContents()
           
 int getBlue()
           
static int getCurrentBlue()
           
static int getCurrentGreen()
           
static int getCurrentRed()
           
 int getGreen()
           
 int getRed()
           
static void sendCommand(Robot robot, int red, int green, int blue)
           
 void writeToParcel(android.os.Parcel dest, int flags)
           
 
Methods inherited from class orbotix.robot.base.DeviceMessage
getTimeStamp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATOR

public static final android.os.Parcelable.Creator CREATOR
Constructor Detail

RGBLEDOutputCommand

public RGBLEDOutputCommand(int r,
                           int g,
                           int b)
Method Detail

sendCommand

public static void sendCommand(Robot robot,
                               int red,
                               int green,
                               int blue)

getCurrentRed

public static int getCurrentRed()

getCurrentGreen

public static int getCurrentGreen()

getCurrentBlue

public static int getCurrentBlue()

getRed

public int getRed()

getGreen

public int getGreen()

getBlue

public int getBlue()

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface android.os.Parcelable
Overrides:
writeToParcel in class DeviceMessage