See: Description
Interface | Description |
---|---|
IDisplay |
• The interface IMonitor provides methods
for outputs to the LCD display of the robot brick.
|
ILightSensor |
• The interface ILightSensor extends the interface
ISensor
by methods for controlling the LED of the light sensor. |
IMotor |
• The interface IMotor provides methods for controlling a motor.
|
IObjectFactory |
• The interface IObjectFactory allows to create
all object instances necessary to control the robot (like sensor and motor objects).
|
IPCConsole |
• The interface IPCConsole provides access to a console window on a connected PC.
|
IPilot |
• The interface IPilot provides methods for controlling robot motions.
|
ISensor |
• The interface ISensor provides methods for configuration and readout of sensors.
|
ISensorListener |
• Objects supporting the interface ISensorListener
can be registered at a sensor to receive change event notifications of the sensor.
|
ISpeaker |
• The interface ISpeaker provides methods for playing signals and tones
on the speaker of the robot brick.
|
ITimer |
• The interface ITimer provides methods related to the system time.
|
ITouchSensor |
• The interface ITouchSensor extends the interface
ISensor by
providing simplified access methods for touch sensors. |
Class | Description |
---|---|
XRobot |
The class XRobot provides some class variables including an instance of the object factory
that is necessary to instantiate all further objects for controlling a robot.
|
Enum | Description |
---|---|
EButton |
• The enumeration class EButton defines constants representing
the buttons of the robot brick.
|
EDirection |
• The enumeration class EDirection
defines the possible directions for motor rotations and robot motions.
|
EMotorPort |
• The enumeration class EMotorPort defines constants representing
the motor ports of the robot brick.
|
ESensorPort |
• The enumeration class ESensorPort defines constants representing
the sensor ports of the robot brick.
|
ESound |
• The enumeration class ESound defines constants representing
the possible sound options for the method
ISpeaker.playNote(ESound sound, int frequency, int period) . |
EWaitingMode |
• The enumeration class EWaitingMode defines constants representing
the two possible execution modes for methods that can either be startet and executed in a parallel thread
(EWaitingMode.START) while the calling thread continues its work or that can be completed before the calling thread
resumes its execution (EWaitingMode.WAIT).
|
This class library provides interfaces, enumerations and implementation classes for controlling LEGO-NXT and -EV3 robots. The implementation is based on the leJOS class library and the corresponding robot firmware. Aim of this class library is to provide a coherent definition of interfaces for all major robot components that is suitable for teaching purposes. The class library can be used for absolute beginners as well as for intermediate learners. For better orientation within this documentation, classes and methods are marked with a color code according to their degree of difficulty or profoundness (• beginners, • advanced beginners, • experts).
Except for the class XRobot, implementation classes of this library are not public. Instances will be created via the object factory in XRobot (XRobot.objectFactory) and accessed via the provided interfaces.
On the one hand this class library does not cover the complete functionality of the underlying leJOS class library. On the other hand the limited and standardized definition of interfaces allowed to provide a simulation application for robot programs based on this library. This class library is typically shipped together with the simulation application and an integration into the BlueJ development environment.
Dependencies of public interfaces / enumerations / implementation classes: