pt.citar.diablu.nxt.protocol
Class NXTCommandGetOutputState

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

public class NXTCommandGetOutputState
extends NXTCommand

Author:
Jorge Cardoso

Constructor Summary
NXTCommandGetOutputState()
          Constructs a new NXTCommandGetOutputState object which will read values from input port 0.
NXTCommandGetOutputState(byte inputPort)
          Constructs a new NXTCommandGetOutputState 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

NXTCommandGetOutputState

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


NXTCommandGetOutputState

public NXTCommandGetOutputState(byte inputPort)
Constructs a new NXTCommandGetOutputState 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