ch.aplu.nxt
Class MotorPort

java.lang.Object
  extended by ch.aplu.nxt.MotorPort

public class MotorPort
extends java.lang.Object

Useful declarations for port connections.


Field Summary
static MotorPort A
          Declaration used by a motor connected to port A.
static MotorPort B
          Declaration used by a motor connected to port B.
static MotorPort C
          Declaration used by a motor connected to port C.
 
Method Summary
 int getId()
          Returns the port identification as integer.
 java.lang.String getLabel()
          Returns the port identification as string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

A

public static final MotorPort A
Declaration used by a motor connected to port A.


B

public static final MotorPort B
Declaration used by a motor connected to port B.


C

public static final MotorPort C
Declaration used by a motor connected to port C.

Method Detail

getId

public int getId()
Returns the port identification as integer.

Returns:
port id (number 0..2)

getLabel

public java.lang.String getLabel()
Returns the port identification as string.

Returns:
port id (A, B, C)