See: Description
Interface | Description |
---|---|
IDisplay |
• The interface IDisplay 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 the 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
and provides 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 universal interfaces, enumerations and implementation classes for controlling simple robots based on different robot hardware. Currently LEGO-NXT and -EV3 robots are being supported. The implementation of the adapters for LEGO robots is based on the corresponding leJOS class libraries and robot firmware. Alternatively, robot programs build with this class library can be executed within a robot simulation tool. The Jabotics class library is typically shipped together with the simulation tool and an integration into the BlueJ development environment.
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.
Dependencies of public interfaces / enumerations / implementation classes: