A B C D E F G H I L M O P R S T U

A

AbstractRobot - interface interfaces.AbstractRobot.
Interface class for both real and simulated robots.
accept(File) - Method in class util.FileChooserFilter
This implements javax.swing.filechooser.FileFilter functionality.
actionPerformed(ActionEvent) - Method in class main.InitRobotDialog
Action event handler - creates a robot according to user input, having check that the input is valid.
addController(Controller) - Method in class main.SimUI
Adds a controller to this simulation
addMessage(String) - Method in class util.IntellegoLog
Adds a message string to the log file
addObject(SimObject) - Method in interface interfaces.SimWorld
Adds an object to this SimWorld
addObject(SimObject) - Method in class simworldobjects.BasicSimWorld
Adds an object to this SimWorld
addRobot() - Method in class main.SimUI
Allows the user to pick a robot class, and loads it into this simulation
addToLog(String) - Static method in class intellego.Intellego
Adds a message to the log
append(String) - Method in class main.ExternalMessager
Appends a message to the message pane of the main window

B

backward() - Method in class hybrid.HybridRCX
Sets the robot moving backwards, this will continue until some other method is called to stop it.
backward() - Method in interface interfaces.AbstractRobot
Sets the robot moving backwards, this will continue until some other method is called to stop it.
backward() - Method in class real.RealRCX
Sets the robot moving backwards, this will continue until some other method is called to stop it.
backward() - Method in class simworldobjects.SimRCX
Sets the robot moving backwards, this will continue until some other method is called to stop it.
backward(int) - Method in class hybrid.HybridRCX
Makes the robot move backwards for the given amount of time
backward(int) - Method in interface interfaces.AbstractRobot
Makes the robot move backwards for the given amount of time
backward(int) - Method in class real.RealRCX
Makes the robot move backwards for the given amount of time
backward(int) - Method in class simworldobjects.SimRCX
Makes the robot move backwards for the given amount of time
BasicSimObject - class simworldobjects.BasicSimObject.
Abstract class for SimObjects, provides a base implementation of the SimObject interface which more complex objects can extend.
BasicSimObject(double, double, double, String, double, double, double, double, double) - Constructor for class simworldobjects.BasicSimObject
 
BasicSimWorld - class simworldobjects.BasicSimWorld.
Abstract class for SimWorlds, provides a base implementation of the SimWorld interface which more complex worlds can extend.
BasicSimWorld(long, long, long) - Constructor for class simworldobjects.BasicSimWorld
Sets up the basic sim world
BEEP - Static variable in interface hybrid.HybridCommandConstants
 
beep() - Method in class hybrid.HybridRCX
Makes the robot beep
beep() - Method in interface interfaces.AbstractRobot
Makes the robot beep
beep() - Method in class real.RealRCX
Makes the robot beep
beep() - Method in class simworldobjects.SimRCX
Makes the robot beep

C

CodeEditor - class main.CodeEditor.
Provides a simple textual code editor
CodeEditor() - Constructor for class main.CodeEditor
 
colliding(SimObject, SimObject) - Method in class simworldobjects.BasicSimWorld
Checks if SimObject o is colliding with SimObject p.
Controller - class interfaces.Controller.
Interface class for all controllers.
Controller() - Constructor for class interfaces.Controller
 
ControllerDL - class real.ControllerDL.
This class provides the functionality necessary to download an Intellego Controller to the real RCX robot.
ControllerDL(File, File) - Constructor for class real.ControllerDL
Constructor: attempts to download the controller file passed to it.
controllers - package controllers
 
createCodeEditorFrame() - Static method in class main.MainInterface
Creates a new code editor window
createController(String) - Method in class main.SimUI
Dynamically loads a controller class
createExternalMessagerFrame() - Static method in class main.MainInterface
Creates a new window to display messages from external processes
createFile(String) - Method in class real.ControllerDL
Creates a Java file with a main method to allow the controller to be run in the real RCX.
createNewFile() - Method in class main.CodeEditor
Creates a new editor pane
createRobot(SimWorld, Controller, SimDisplay) - Method in class main.InitRobotDialog
Displays a dialog box to get initial robot parameters, and creates and creates a new SimRCX wth these values.
createSimulatorFrame() - Static method in class main.MainInterface
Creates a new simulator window
createSimulatorFrame(String) - Static method in class main.MainInterface
Creates a new simulator window with the specified controller preloaded
createSimWorld(String) - Method in class main.SimUI
Dynamically loads a simworld class

D

displayMessage(String) - Static method in class main.MainInterface
Displays messages to the user in a dialog box

E

ExternalMessager - class main.ExternalMessager.
Provide a window which displays messages from external processes to the user, within the main interface.
ExternalMessager() - Constructor for class main.ExternalMessager
Sets up the message display window

F

FileChooserFilter - class util.FileChooserFilter.
This class provides a simple javax.swing.filechooser.FileFilter implementation that accepts files based on their extension, or if they are a directory (to allow traversal of the filesystem).
FileChooserFilter(Object[], String) - Constructor for class util.FileChooserFilter
This method instantiates a new FileChooser filter.
FileChooserFilter(String[], String) - Constructor for class util.FileChooserFilter
This method instantiates a new FileChooser filter.
forward() - Method in class hybrid.HybridRCX
Sets the robot moving forwards, this will continue until some other method is called to stop it.
forward() - Method in interface interfaces.AbstractRobot
Sets the robot moving forwards, this will continue until some other method is called to stop it.
forward() - Method in class real.RealRCX
Sets the robot moving forwards, this will continue until some other method is called to stop it.
forward() - Method in class simworldobjects.SimRCX
Sets the robot moving forwards, this will continue until some other method is called to stop it.
forward(int) - Method in class hybrid.HybridRCX
Makes the robot move forwards for the given amount of time
forward(int) - Method in interface interfaces.AbstractRobot
Makes the robot move forwards for the given amount of time
forward(int) - Method in class real.RealRCX
Makes the robot move forwards for the given amount of time
forward(int) - Method in class simworldobjects.SimRCX
Makes the robot move forwards for the given amount of time

G

GET_S1 - Static variable in interface hybrid.HybridCommandConstants
 
GET_S2 - Static variable in interface hybrid.HybridCommandConstants
 
GET_S3 - Static variable in interface hybrid.HybridCommandConstants
 
getActualBearingVelocityXY() - Method in interface interfaces.SimObject
Returns this objects actual bearing velocity in the XY plane
getActualBearingVelocityXY() - Method in class simworldobjects.SimSensor
 
getActualBearingVelocityXY() - Method in class simworldobjects.BasicSimObject
 
getActualBearingVelocityXZ() - Method in interface interfaces.SimObject
Returns this objects actual bearing velocity in the XZ plane
getActualBearingVelocityXZ() - Method in class simworldobjects.SimSensor
 
getActualBearingVelocityXZ() - Method in class simworldobjects.BasicSimObject
 
getActualBearingXY() - Method in interface interfaces.SimObject
Returns this objects actual bearing in the XY plane
getActualBearingXY() - Method in class simworldobjects.SimSensor
 
getActualBearingXY() - Method in class simworldobjects.BasicSimObject
 
getActualBearingXZ() - Method in interface interfaces.SimObject
Returns this objects actual bearing in the XZ plane
getActualBearingXZ() - Method in class simworldobjects.SimSensor
Returns this sensor's XZ bearing (the same as the owning SimObject's bearing)
getActualBearingXZ() - Method in class simworldobjects.BasicSimObject
 
getActualVelocity() - Method in interface interfaces.SimObject
Returns this objects actual velocity.
getActualVelocity() - Method in class simworldobjects.SimSensor
 
getActualVelocity() - Method in class simworldobjects.BasicSimObject
 
getBrightness() - Method in class simworldobjects.SimLight
Returns the brightness of this light, this will always be a value between 0 and 100
getBrightness(double, double, double) - Method in interface interfaces.SimWorld
Returns the light level at the specified co-ordinate.
getBrightness(double, double, double) - Method in class simworldobjects.BasicSimWorld
Returns the light level at the specified co-ordinate.
getClassName(String, String) - Method in class main.SimUI
Gets the class name of the required class from the user using a JFileChooser
getDescription() - Method in class util.FileChooserFilter
This is used to provide the JFileChooser with information on what the accept mapping represents.
getDesiredBearingVelocityXY() - Method in interface interfaces.SimObject
Returns this objects desired bearing velocity in the XY plane
getDesiredBearingVelocityXY() - Method in class simworldobjects.SimSensor
 
getDesiredBearingVelocityXY() - Method in class simworldobjects.BasicSimObject
 
getDesiredBearingVelocityXZ() - Method in interface interfaces.SimObject
Returns this objects desired bearing velocity in the XZ plane
getDesiredBearingVelocityXZ() - Method in class simworldobjects.SimSensor
 
getDesiredBearingVelocityXZ() - Method in class simworldobjects.BasicSimObject
 
getDesiredVelocity() - Method in interface interfaces.SimObject
Returns this objects desired velocity.
getDesiredVelocity() - Method in class simworldobjects.SimSensor
 
getDesiredVelocity() - Method in class simworldobjects.BasicSimObject
 
getHeight() - Method in interface interfaces.SimObject
Returns this object's height
getHeight() - Method in class simworldobjects.SimSensor
 
getHeight() - Method in class simworldobjects.BasicSimObject
 
getLength() - Method in interface interfaces.SimObject
Returns this object's length
getLength() - Method in class simworldobjects.SimSensor
 
getLength() - Method in class simworldobjects.BasicSimObject
 
getObjectList() - Method in interface interfaces.SimWorld
Returns this SimWorld's object list
getObjectList() - Method in class simworldobjects.BasicSimWorld
Returns this SimWorld's object list
getRobot() - Method in class interfaces.Controller
Returns the AbstractRobot associated with this controller
getSensor1() - Method in class hybrid.HybridRCX
Get the current reading of this sensor
getSensor1() - Method in interface interfaces.AbstractRobot
Get the current reading of this sensor
getSensor1() - Method in class real.RealRCX
Get the current reading of this sensor
getSensor1() - Method in class simworldobjects.SimRCX
Get the current reading of this sensor
getSensor2() - Method in class hybrid.HybridRCX
Get the current reading of this sensor
getSensor2() - Method in interface interfaces.AbstractRobot
Get the current reading of this sensor
getSensor2() - Method in class real.RealRCX
Get the current reading of this sensor
getSensor2() - Method in class simworldobjects.SimRCX
Get the current reading of this sensor
getSensor3() - Method in class hybrid.HybridRCX
Get the current reading of this sensor
getSensor3() - Method in interface interfaces.AbstractRobot
Get the current reading of this sensor
getSensor3() - Method in class real.RealRCX
Get the current reading of this sensor
getSensor3() - Method in class simworldobjects.SimRCX
Get the current reading of this sensor
getSensors() - Method in class interfaces.Controller
Returns an array of the sensors used by this controller, and the type of sensor required.
getTime() - Method in interface interfaces.SimWorld
Returns the number of 'ticks' since this world was started
getTime() - Method in class simworldobjects.BasicSimWorld
Returns the number of 'ticks' since this world was started
getType() - Method in interface interfaces.SimObject
Returns a string describing this object's type
getType() - Method in class simworldobjects.SimSensor
 
getType() - Method in class simworldobjects.BasicSimObject
 
getValue() - Method in class simworldobjects.SimSensor
Returns this sensor's current value
getValue() - Method in class simworldobjects.SimTouchSensor
Returns the current value of this sensor, a 1 if it is touching something or 0 if it is not.
getValue() - Method in class simworldobjects.SimLightSensor
Returns the current brightness of the world at this sensor's position
getWidth() - Method in interface interfaces.SimObject
Returns this object's width
getWidth() - Method in class simworldobjects.SimSensor
 
getWidth() - Method in class simworldobjects.BasicSimObject
 
getWorld() - Method in class simworldobjects.SimRCX
 
getXCoord() - Method in interface interfaces.SimObject
Returns this objects X coordinate
getXCoord() - Method in class simworldobjects.SimSensor
Returns this sensor's X coordinate - derived from its owning SimObject
getXCoord() - Method in class simworldobjects.BasicSimObject
 
getXOffset() - Method in class simworldobjects.SimTouchSensor
 
getXOffset() - Method in class simworldobjects.SimLightSensor
Returns the offset from the owning SimRCX's x coordinate
getYCoord() - Method in interface interfaces.SimObject
Returns this objects Y coordinate
getYCoord() - Method in class simworldobjects.SimSensor
Returns this sensor's X coordinate
getYCoord() - Method in class simworldobjects.BasicSimObject
 
getZCoord() - Method in interface interfaces.SimObject
Returns this objects Z coordinate
getZCoord() - Method in class simworldobjects.SimSensor
Returns this sensor's Z coordinate - derived from its owning SimObject
getZCoord() - Method in class simworldobjects.BasicSimObject
 
getZOffset() - Method in class simworldobjects.SimTouchSensor
 
getZOffset() - Method in class simworldobjects.SimLightSensor
Returns the offset from the owning SimRCX's y coordinate

H

halt() - Method in class interfaces.Controller
Stops this controller's thread running, i.e.
hasObstacle(double, double, double) - Method in interface interfaces.SimWorld
Checks whether there is an obstacle in the specified co-ordinate
hasObstacle(double, double, double) - Method in class simworldobjects.BasicSimWorld
Checks whether there is an obstacle in the specified co-ordinate
hybrid - package hybrid
 
HybridCommandConstants - interface hybrid.HybridCommandConstants.
Provides command constants for the HybridRCX, and the HybridOnBoard classes
HybridOnBoard - class hybrid.HybridOnBoard.
Runs onboard the RCX listening for controller commands from the PC.
HybridOnBoard() - Constructor for class hybrid.HybridOnBoard
 
HybridRCX - class hybrid.HybridRCX.
Acts as an interface between the PC and an RCX running the HybridOnBoard class.
HybridRCX(Controller) - Constructor for class hybrid.HybridRCX
Constructor: sets up the data ports

I

initController(AbstractRobot) - Method in class interfaces.Controller
Initialises controller.
InitRobotDialog - class main.InitRobotDialog.
Provides a dialog box to get intial robot parameters from the user
InitRobotDialog() - Constructor for class main.InitRobotDialog
 
initSimSensor(SimObject, double, double, double, double, double, String) - Method in class simworldobjects.SimSensor
Initialises this SimSensor
intellego - package intellego
 
Intellego - class intellego.Intellego.
Startup class - starts the whole system
Intellego() - Constructor for class intellego.Intellego
 
IntellegoLog - class util.IntellegoLog.
Creates a log file and provides methods to add messages to it
IntellegoLog() - Constructor for class util.IntellegoLog
Creates the log file and writes a header message
interfaces - package interfaces
 

L

left() - Method in class hybrid.HybridRCX
Sets the robot spinning left, this will continue until some other method is called to stop it.
left() - Method in interface interfaces.AbstractRobot
Sets the robot spinning left, this will continue until some other method is called to stop it.
left() - Method in class real.RealRCX
Sets the robot spinning left, this will continue until some other method is called to stop it.
left() - Method in class simworldobjects.SimRCX
Sets the robot spinning left, this will continue until some other method is called to stop it.
left(int) - Method in class hybrid.HybridRCX
Spins the robot left for the given amount of time
left(int) - Method in interface interfaces.AbstractRobot
Spins the robot left for the given amount of time
left(int) - Method in class real.RealRCX
Spins the robot left for the given amount of time
left(int) - Method in class simworldobjects.SimRCX
Spins the robot left for the given amount of time

M

main - package main
 
main(String[]) - Static method in class intellego.Intellego
Fires up the whole system
main(String[]) - Static method in class hybrid.HybridOnBoard
 
MainInterface - class main.MainInterface.
The main GUI.
MainInterface() - Constructor for class main.MainInterface
Sets up the JDesktopPane
MOTOR_POWER - Static variable in class real.RealRCX
 
MOVE_BACKWARD - Static variable in interface hybrid.HybridCommandConstants
 
MOVE_FORWARD - Static variable in interface hybrid.HybridCommandConstants
 
MOVE_LEFT - Static variable in interface hybrid.HybridCommandConstants
 
MOVE_RIGHT - Static variable in interface hybrid.HybridCommandConstants
 

O

openFileInSim() - Method in class main.CodeEditor
 

P

paintComponent(Graphics) - Method in class interfaces.SimDisplay
Main repaint method.
printUsage() - Static method in class intellego.Intellego
Prints usage instructions to stdout

R

real - package real
 
RealRCX - class real.RealRCX.
This class implements the simple commands provided by AbstractRobot with real lejos commands, allowing the simple commands to be run on the real RCX.
RealRCX(Controller) - Constructor for class real.RealRCX
Initialises necessary variables, and sets up sensors, currently fixed to:
right() - Method in class hybrid.HybridRCX
Sets the robot spinning right, this will continue until some other method is called to stop it.
right() - Method in interface interfaces.AbstractRobot
Sets the robot spinning right, this will continue until some other method is called to stop it.
right() - Method in class real.RealRCX
Sets the robot spinning right, this will continue until some other method is called to stop it.
right() - Method in class simworldobjects.SimRCX
Sets the robot spinning right, this will continue until some other method is called to stop it.
right(int) - Method in class hybrid.HybridRCX
Spins the robot right for the given amount of time
right(int) - Method in interface interfaces.AbstractRobot
Spins the robot right for the given amount of time
right(int) - Method in class real.RealRCX
Spins the robot right for the given amount of time
right(int) - Method in class simworldobjects.SimRCX
Spins the robot right for the given amount of time
run() - Method in class hybrid.HybridRCX
 
run() - Method in class interfaces.Controller
Starts this controller's thread running.
run() - Method in class main.SimUI
Main loop: updates the world and repaints the screen
run() - Method in class real.RealRCX
 

S

selectWorld() - Method in class main.SimUI
Allows the user to pick a simworld for their simulation, and loads it
SENSOR_TYPE_LIGHT - Static variable in class interfaces.Controller
Sensor type constants (see getSensors() for explanation)
SENSOR_TYPE_TOUCH - Static variable in class interfaces.Controller
 
setActualBearingVelocityXY(double) - Method in interface interfaces.SimObject
Sets the actual 'bearing velocity' of this object in the XY plane.
setActualBearingVelocityXY(double) - Method in class simworldobjects.SimSensor
 
setActualBearingVelocityXY(double) - Method in class simworldobjects.BasicSimObject
 
setActualBearingVelocityXZ(double) - Method in interface interfaces.SimObject
Sets the actual 'bearing velocity' of this object in the XZ plane.
setActualBearingVelocityXZ(double) - Method in class simworldobjects.SimSensor
 
setActualBearingVelocityXZ(double) - Method in class simworldobjects.BasicSimObject
 
setActualBearingXY(double) - Method in interface interfaces.SimObject
Sets the actual bearing of this object in the XY plane
setActualBearingXY(double) - Method in class simworldobjects.SimSensor
 
setActualBearingXY(double) - Method in class simworldobjects.BasicSimObject
 
setActualBearingXZ(double) - Method in interface interfaces.SimObject
Sets the actual bearing of this object in the XZ plane
setActualBearingXZ(double) - Method in class simworldobjects.SimSensor
 
setActualBearingXZ(double) - Method in class simworldobjects.BasicSimObject
 
setActualVelocity(double) - Method in interface interfaces.SimObject
Sets the actual velocity of this object.
setActualVelocity(double) - Method in class simworldobjects.SimSensor
 
setActualVelocity(double) - Method in class simworldobjects.BasicSimObject
 
setDesiredBearingVelocityXY(double) - Method in interface interfaces.SimObject
Sets the desired 'bearing velocity' of this object in the XY plane.
setDesiredBearingVelocityXY(double) - Method in class simworldobjects.SimSensor
 
setDesiredBearingVelocityXY(double) - Method in class simworldobjects.BasicSimObject
 
setDesiredBearingVelocityXZ(double) - Method in interface interfaces.SimObject
Sets the desired 'bearing velocity' of this object in the XZ plane - a bearing velocity is the rate at which the object wants to turn.
setDesiredBearingVelocityXZ(double) - Method in class simworldobjects.SimSensor
 
setDesiredBearingVelocityXZ(double) - Method in class simworldobjects.BasicSimObject
 
setDesiredVelocity(double) - Method in interface interfaces.SimObject
Sets the desired velocity of this object - the SimWorld will then set its actual velocity accordingly (depending on wheher the object is colliding with another object etc.) Positive values mean the objet wants to move forward, and negative values mean the object wants to move backward.
setDesiredVelocity(double) - Method in class simworldobjects.SimSensor
 
setDesiredVelocity(double) - Method in class simworldobjects.BasicSimObject
 
setupWindow() - Method in class main.SimUI
Sets up the main window
setXCoord(double) - Method in interface interfaces.SimObject
Sets this objects X coordinate
setXCoord(double) - Method in class simworldobjects.SimSensor
 
setXCoord(double) - Method in class simworldobjects.BasicSimObject
 
setYCoord(double) - Method in interface interfaces.SimObject
Sets this objects Y coordinate
setYCoord(double) - Method in class simworldobjects.SimSensor
 
setYCoord(double) - Method in class simworldobjects.BasicSimObject
 
setZCoord(double) - Method in interface interfaces.SimObject
Sets this objects Z coordinate
setZCoord(double) - Method in class simworldobjects.SimSensor
 
setZCoord(double) - Method in class simworldobjects.BasicSimObject
 
SimDisplay - class interfaces.SimDisplay.
Interface class for all SimDisplays
SimDisplay() - Constructor for class interfaces.SimDisplay
 
SimLight - class simworldobjects.SimLight.
Models a simple light source
SimLight(int, double, double, double) - Constructor for class simworldobjects.SimLight
Sets up this light
SimLightSensor - class simworldobjects.SimLightSensor.
Simulates a light sensor
SimLightSensor(SimRCX, double, double) - Constructor for class simworldobjects.SimLightSensor
Sets up a light sensor on the given SimRCX, and positions it at the the appropriate offset from the robot's position.
SimObject - interface interfaces.SimObject.
Interface class for all objects in a SimWorld
SimRCX - class simworldobjects.SimRCX.
Simulates an RCX for use in SimWorld
SimRCX(SimWorld, Controller) - Constructor for class simworldobjects.SimRCX
Constructor: sets up the robot with some predefined parameters
SimRCX(SimWorld, Controller, double, double, double, String, double, double, double, double, double) - Constructor for class simworldobjects.SimRCX
Constructor: sets up the robot according to the parameters
SimSensor - class simworldobjects.SimSensor.
Abstract class for SimSensors.
SimSensor() - Constructor for class simworldobjects.SimSensor
 
SimTouchSensor - class simworldobjects.SimTouchSensor.
Simulates a light sensor
SimTouchSensor(SimRCX, double, double) - Constructor for class simworldobjects.SimTouchSensor
Sets up a light sensor on the given SimRCX, and positions it at the the appropriate offset from the robot's position.
SimUI - class main.SimUI.
Provides a user interface for a simulation
SimUI() - Constructor for class main.SimUI
Sets up the main window for an empty simulation
SimUI(String) - Constructor for class main.SimUI
Loads a new simulation with the specified controller preloaded
SimWall - class simworldobjects.SimWall.
Models a simple wall object
SimWall(double, double, double, double, double, double) - Constructor for class simworldobjects.SimWall
Sets up this wall
SimWorld - interface interfaces.SimWorld.
Interface class for all SimWorlds.
simworldobjects - package simworldobjects
 
simworlds - package simworlds
 
startSimulation() - Method in class main.SimUI
Starts this simulation (by starting a new thread for this instance)
STATE_BACKWARD - Static variable in class simworldobjects.SimRCX
 
STATE_FORWARD - Static variable in class simworldobjects.SimRCX
 
STATE_LEFT - Static variable in class simworldobjects.SimRCX
 
STATE_RIGHT - Static variable in class simworldobjects.SimRCX
 
STATE_STOPPED - Static variable in class simworldobjects.SimRCX
 
STOP_MOVING - Static variable in interface hybrid.HybridCommandConstants
 
stopMoving() - Method in class hybrid.HybridRCX
Stops all motors immediately
stopMoving() - Method in interface interfaces.AbstractRobot
Stops all motors immediately
stopMoving() - Method in class real.RealRCX
Stops all motors immediately
stopMoving() - Method in class simworldobjects.SimRCX
Stops all motors immediately
stopSimulation() - Method in class main.SimUI
Stops this simulation

T

tick() - Method in interface interfaces.SimWorld
Performs one update loop
tick() - Method in class simworldobjects.BasicSimWorld
Performs one update loop

U

updateObjects() - Method in class simworldobjects.BasicSimWorld
Updates all the SimObjects in this world by one step
util - package util
 

A B C D E F G H I L M O P R S T U