pt.citar.diablu.nxt.protocol
Class NXTCommandGetInputValues

java.lang.Object
  extended by pt.citar.diablu.nxt.protocol.NXTCommand
      extended by pt.citar.diablu.nxt.protocol.NXTCommandGetInputValues

public class NXTCommandGetInputValues
extends NXTCommand

Represents the GETINPUTVALUES Command. The response to this command (if required) is a NXTResponseInputValues.

Author:
Jorge Cardoso
See Also:
NXTResponseInputValues

Constructor Summary
NXTCommandGetInputValues()
          Constructs a new NXTCommandGetInputValues object which will read values from input port 0.
NXTCommandGetInputValues(byte inputPort)
          Constructs a new NXTCommandGetInputValues object with a given input port.
 
Method Summary
 byte getInputPort()
          Returns the input port on which we want to read values.
 void setInputPort(byte inputPort)
          Sets the input port on which we want to read values.
 
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTCommand
getPacketLength, isResponseRequired, sendCommand, setResponseRequired, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NXTCommandGetInputValues

public NXTCommandGetInputValues()
Constructs a new NXTCommandGetInputValues object which will read values from input port 0.


NXTCommandGetInputValues

public NXTCommandGetInputValues(byte inputPort)
Constructs a new NXTCommandGetInputValues object with a given input port.

Parameters:
inputPort - The input port to read values from. Range: (0 - 3).
Method Detail

getInputPort

public byte getInputPort()
Returns the input port on which we want to read values.

Returns:
The input port.

setInputPort

public void setInputPort(byte inputPort)
Sets the input port on which we want to read values.

Parameters:
inputPort - The input port.


Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014