Package lejos.remote.nxt
Class RemoteNXTPort
- java.lang.Object
-
- lejos.remote.nxt.RemoteNXTPort
-
-
Field Summary
Fields Modifier and Type Field Description static intMOTOR_PORTprotected java.lang.Stringnameprotected NXTCommandnxtCommandprotected intportNumstatic intSENSOR_PORTprotected inttyp
-
Constructor Summary
Constructors Constructor Description RemoteNXTPort(java.lang.String name, int typ, int portNum, NXTCommand nxtCommand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()return the string name used to reference this physical port<T extends IOPort>
Topen(java.lang.Class<T> portclass)Obtain access to a class that can be used to talk to the port hardware
-
-
-
Field Detail
-
SENSOR_PORT
public static final int SENSOR_PORT
- See Also:
- Constant Field Values
-
MOTOR_PORT
public static final int MOTOR_PORT
- See Also:
- Constant Field Values
-
name
protected java.lang.String name
-
typ
protected int typ
-
portNum
protected int portNum
-
nxtCommand
protected NXTCommand nxtCommand
-
-
Constructor Detail
-
RemoteNXTPort
public RemoteNXTPort(java.lang.String name, int typ, int portNum, NXTCommand nxtCommand)
-
-