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

A

addButtonListener(ButtonListener) - Method in class ch.aplu.raspisim.Robot
Registers a button listener that simulates the events when one of the brick buttons is hit.
addCollisionListener(CollisionListener) - Method in class ch.aplu.raspisim.Robot
Registers a robot-obtacle collision listener that fires the collide callback when the circumcircle of the robot overlaps with an obstacle.
addInfraredListener(InfraredListener) - Method in class ch.aplu.raspisim.InfraredSensor
Register the given InfraredListener to detect bright and dark events.
addLightListener(LightListener, int) - Method in class ch.aplu.raspisim.LightSensor
Registers the given LightListener to detect crossing the given trigger triggerLevel.
addLightListener(LightListener) - Method in class ch.aplu.raspisim.LightSensor
Registers the given LightListener with default trigger triggerLevel 500.
addMouseListener(GGMouseListener) - Static method in class ch.aplu.raspisim.RobotContext
Registers a mouse listener to get left mouse button press, release and drag events
addObstacle(Obstacle, int, int) - Method in class ch.aplu.raspisim.Robot
Adds the given obstacle in the obstacle list and shows it at the given location.
addTarget(Target, int, int) - Method in class ch.aplu.raspisim.Robot
Adds the given target in the target list and shows it at the given location.
addUltrasonicListener(UltrasonicListener, int) - Method in class ch.aplu.raspisim.UltrasonicSensor
Registers the given UltrasonicListener to detect crossing the given trigger triggerLevel.
addUltrasonicListener(UltrasonicListener) - Method in class ch.aplu.raspisim.UltrasonicSensor
Registers the given UltrasonicListener with default trigger triggerLevel 100.

B

backward() - Method in class ch.aplu.raspisim.Gear
Starts the backward movement.
backward(int) - Method in class ch.aplu.raspisim.Gear
Starts the backward movement for the given duration (in ms) and stops.
backward() - Method in class ch.aplu.raspisim.Motor
Starts the backward rotation.
backward(int) - Method in class ch.aplu.raspisim.TurtleRobot
Moves the turtle backward the given number of steps.
backward() - Method in class ch.aplu.raspisim.TurtleRobot
Starts moving backward and returns immediately.
box - Static variable in class ch.aplu.raspisim.RobotContext
Box obstacle.
BrickButton - Interface in ch.aplu.raspisim
Interface to define constants for the brick buttons.
bright(int) - Method in class ch.aplu.raspisim.InfraredAdapter
Empty method called when the light becomes brighter than the trigger level.
bright(int) - Method in interface ch.aplu.raspisim.InfraredListener
Called when the light becomes brighter than the trigger level.
bright(int, int) - Method in class ch.aplu.raspisim.LightAdapter
Empty method called when the light becomes brighter than the trigger level.
bright(int, int) - Method in interface ch.aplu.raspisim.LightListener
Called when the light becomes brighter than the trigger level.
buttonHit(int) - Method in interface ch.aplu.raspisim.ButtonListener
Called when one of the buttons is hit.
ButtonListener - Interface in ch.aplu.raspisim
Interface with declarations of a callback method to detect button press events.

C

ch.aplu.raspisim - package ch.aplu.raspisim
 
channel - Static variable in class ch.aplu.raspisim.RobotContext
Channel obstacle.
checkRobot() - Static method in class ch.aplu.raspisim.RobotInstance
 
clearAll() - Static method in class ch.aplu.raspisim.Led
Turns off all 4 LED pairs.
collide() - Method in interface ch.aplu.raspisim.CollisionListener
Called in a new thread when the circumcircle of the robot overlaps with an obstacle.
collisionCenter - Static variable in class ch.aplu.raspisim.Robot
Center of a circle to detect robot-obstacle collisions (pixel coordinates relative to center of robot image, default: (-13, 0)).
CollisionListener - Interface in ch.aplu.raspisim
Interface with declarations of a callback method to detect robot-obstacle collisions.
collisionRadius - Static variable in class ch.aplu.raspisim.Robot
Radius of a circle to detect robot-obstacle collisions (in pixels, default: 20).

D

dark(int) - Method in class ch.aplu.raspisim.InfraredAdapter
Empty method called when the light becomes darker than the trigger level.
dark(int) - Method in interface ch.aplu.raspisim.InfraredListener
Called when the light becomes darker than the trigger level.
dark(int, int) - Method in class ch.aplu.raspisim.LightAdapter
Empty method called when the light becomes darker than the trigger level.
dark(int, int) - Method in interface ch.aplu.raspisim.LightListener
Called when the light becomes darker than the trigger level.
debug(String) - Static method in class ch.aplu.raspisim.Robot
 
delay(int) - Static method in class ch.aplu.raspisim.Tools
Suspends execution of the current thread for the given amount of time (unless the game grid window is disposed).

E

eraseBeamArea() - Method in class ch.aplu.raspisim.UltrasonicSensor
Erases the beam area (if it is currently shown).
exit() - Method in class ch.aplu.raspisim.Robot
Stops any motion and performs a cleanup of all parts.

F

far(int) - Method in class ch.aplu.raspisim.UltrasonicAdapter
Empty method called when the distance exceeds the trigger level.
far(int) - Method in interface ch.aplu.raspisim.UltrasonicListener
Called when the distance exceeds the trigger level.
forward() - Method in class ch.aplu.raspisim.Gear
Starts the forward movement.
forward(int) - Method in class ch.aplu.raspisim.Gear
Starts the forward movement for the given duration (in ms) and stops.
forward() - Method in class ch.aplu.raspisim.Motor
Starts the forward rotation.
forward() - Method in class ch.aplu.raspisim.TurtleRobot
Starts moving forward and returns immediately.
forward(int) - Method in class ch.aplu.raspisim.TurtleRobot
Moves the turtle forward the given number of steps.

G

Gear - Class in ch.aplu.raspisim
Combines two motors on an axis to perform a car-like movement.
Gear() - Constructor for class ch.aplu.raspisim.Gear
Creates a gear instance with right motor plugged into port A, left motor plugged into port B.
getCenter() - Method in class ch.aplu.raspisim.Shadow
Returns the center of the rectangular area
getDistance() - Method in class ch.aplu.raspisim.UltrasonicSensor
Returns the distance to the nearest target object.
getGameGrid() - Static method in class ch.aplu.raspisim.Robot
Returns the instance reference of the GameGrid.
getGear() - Method in class ch.aplu.raspisim.TurtleRobot
Returns the gear used for the turtle robot.
getHitButtonID() - Method in class ch.aplu.raspisim.Robot
Returns the button ID of the button previously hit.
getId() - Method in class ch.aplu.raspisim.LightSensor
Returns the if of the sensor.
getId() - Method in class ch.aplu.raspisim.Motor
Returns the port of the motor.
getInitialLoc() - Method in class ch.aplu.raspisim.Torch
Returns the initial location of the torch actor.
getIntensity(Location) - Method in class ch.aplu.raspisim.Torch
Returns the light intensity at given location using the 1 / r^2 law.
getLocation() - Method in class ch.aplu.raspisim.Gear
Returns the current location.
getRobot() - Static method in class ch.aplu.raspisim.Robot
Returns the instance reference of the MyRobot actor.
getRobot() - Static method in class ch.aplu.raspisim.RobotInstance
 
getSpeed() - Method in class ch.aplu.raspisim.Gear
Returns the current speed (arbitrary units).
getSpeed() - Method in class ch.aplu.raspisim.Motor
Returns the current speed (arbitrary units).
getTime() - Static method in class ch.aplu.raspisim.Tools
Gets the timer's time.
getTurtleSpeed() - Method in class ch.aplu.raspisim.TurtleRobot
Returns the current turtle speed.
getValue() - Method in class ch.aplu.raspisim.InfraredSensor
Checks, if infrared light ist detected.
getValue() - Method in class ch.aplu.raspisim.LightSensor
Returns the brightness of all torches at the current location; 0, if the sensor is inside a shadow region.
getVersion() - Static method in class ch.aplu.raspisim.Robot
Returns the current library version.
getX() - Method in class ch.aplu.raspisim.Gear
Returns the x-coordinate of the current location.
getY() - Method in class ch.aplu.raspisim.Gear
Returns the y-coordinate of the current location.

I

ID_DOWN - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the DOWN button.
ID_ENTER - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the ENTER button.
ID_ESCAPE - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the ESCAPE button.
ID_LEFT - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the LEFT button.
ID_RIGHT - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the RIGHT button.
ID_UP - Static variable in interface ch.aplu.raspisim.BrickButton
Constant for the UP button.
InfraredAdapter - Class in ch.aplu.raspisim
Class with empty callback methods for the infrared sensor.
InfraredAdapter() - Constructor for class ch.aplu.raspisim.InfraredAdapter
 
InfraredListener - Interface in ch.aplu.raspisim
Interface with declarations of callback methods for the light sensor.
InfraredSensor - Class in ch.aplu.raspisim
Class that represents a touch sensor.
InfraredSensor(int) - Constructor for class ch.aplu.raspisim.InfraredSensor
Creates a sensor with given id.
init() - Method in class ch.aplu.raspisim.RobotContext
Initializes the static context.
inShadow(Location) - Method in class ch.aplu.raspisim.Shadow
Tests if the given target location is in the shadow area.
IR_CENTER - Static variable in class ch.aplu.raspisim.InfraredSensor
Constant for id of front sensor
IR_LEFT - Static variable in class ch.aplu.raspisim.InfraredSensor
Constant for id of left sensor
IR_LINE_LEFT - Static variable in class ch.aplu.raspisim.InfraredSensor
Constant for id of line left sensor (points to floor)
IR_LINE_RIGHT - Static variable in class ch.aplu.raspisim.InfraredSensor
Constant for id of line right sensor (points to floor)
IR_RIGHT - Static variable in class ch.aplu.raspisim.InfraredSensor
Constant for id of right sensor
isAutonomous() - Method in class ch.aplu.raspisim.Robot
Returns always false.
isButtonHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if any of the buttons was hit.
isConnected() - Method in class ch.aplu.raspisim.Robot
Returns the current state of the underlying GameGrid window.
isDownHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the DOWN button was the last button hit since the last call of this method.
isEnterHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the ENTER button was the last button hit since the last call of this method.
isEscapeHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the ESCAPE button was the last button hit since the last call of this method.
isLeftHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the LEFT button was the last button hit since the last call of this method.
isMoving() - Method in class ch.aplu.raspisim.Gear
Checks if one or both motors are rotating Calls Thread.sleep(1) to prevent CPU overload in close polling loops.
isMoving() - Method in class ch.aplu.raspisim.Motor
Checks if motor is rotating.
isRightHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the RIGHT button was the last button hit since the last call of this method.
isUpHit() - Method in class ch.aplu.raspisim.Robot
Returns true, if the UP button was the last button hit since the last call of this method.

L

Led - Class in ch.aplu.raspisim
Class that represents a LED pair.
Led(int) - Constructor for class ch.aplu.raspisim.Led
Creates a Led instance with given ID.
LED_FRONT - Static variable in class ch.aplu.raspisim.Led
Constant for id of front LED pair
LED_LEFT - Static variable in class ch.aplu.raspisim.Led
Constant for id of left LED pair
LED_REAR - Static variable in class ch.aplu.raspisim.Led
Constant for id of rear LED pair
LED_RIGHT - Static variable in class ch.aplu.raspisim.Led
Constant for id of right LED pair
left() - Method in class ch.aplu.raspisim.Gear
Starts to rotate left (center of rotation at middle of the wheel axes).
left(int) - Method in class ch.aplu.raspisim.Gear
Starts to rotate left (center of rotation at middle of the wheel axes) for the given duration (in ms) and stops.
LEFT - Static variable in class ch.aplu.raspisim.Motor
Motor id for left motor.
left(double) - Method in class ch.aplu.raspisim.TurtleRobot
Turns the left to the right for the given angle.
left() - Method in class ch.aplu.raspisim.TurtleRobot
Starts turning left and returns immediately.
leftArc(double) - Method in class ch.aplu.raspisim.Gear
Starts to move to the left on an arc with given radius.
leftArc(double, int) - Method in class ch.aplu.raspisim.Gear
Starts to move left on an arc with given radius for the given duration (in ms) and stops.
LightAdapter - Class in ch.aplu.raspisim
Class with empty callback methods for the light sensor.
LightAdapter() - Constructor for class ch.aplu.raspisim.LightAdapter
 
LightListener - Interface in ch.aplu.raspisim
Interface with declarations of callback methods for the light sensor.
LightSensor - Class in ch.aplu.raspisim
Class that represents a light sensor.
LightSensor(int) - Constructor for class ch.aplu.raspisim.LightSensor
Creates a motor instance with given id.
LS_FRONT_LEFT - Static variable in class ch.aplu.raspisim.LightSensor
Constant for id of front left sensor
LS_FRONT_RIGHT - Static variable in class ch.aplu.raspisim.LightSensor
Constant for id of front right sensor
LS_REAR_LEFT - Static variable in class ch.aplu.raspisim.LightSensor
Constant for id of front left sensor
LS_REAR_RIGHT - Static variable in class ch.aplu.raspisim.LightSensor
Constant for id of front right sensor

M

Motor - Class in ch.aplu.raspisim
Class that represents one of the motors.
Motor(int) - Constructor for class ch.aplu.raspisim.Motor
Creates a motor instance with given id.
mouseDragged(GameGrid, int, int) - Method in interface ch.aplu.raspisim.MouseListener
Called when the left mouse is dragged .
MouseListener - Interface in ch.aplu.raspisim
Interface with declarations of a callback method to detect robot-obstacle collisions.
mousePressed(GameGrid, int, int) - Method in interface ch.aplu.raspisim.MouseListener
Called when the left mouse button is pressed.
mouseReleased(GameGrid, int, int) - Method in interface ch.aplu.raspisim.MouseListener
Called when the left mouse button is released.

N

near(int) - Method in class ch.aplu.raspisim.UltrasonicAdapter
Empty method called when the distance falls below the trigger level.
near(int) - Method in interface ch.aplu.raspisim.UltrasonicListener
Called when the distance falls below the trigger level.

O

Obstacle - Class in ch.aplu.raspisim
Class to represent an obstacle detected by a touch sensor.
Obstacle(String) - Constructor for class ch.aplu.raspisim.Obstacle
Creates an obstacle from given image file.
Obstacle(BufferedImage) - Constructor for class ch.aplu.raspisim.Obstacle
Creates an obstacle from given buffered image.

P

PackageInfo - Class in ch.aplu.raspisim
Class to provide the current package version.
PackageInfo() - Constructor for class ch.aplu.raspisim.PackageInfo
 
Part - Class in ch.aplu.raspisim
Abstract class as ancestor of all parts.
playTone(double, double) - Method in class ch.aplu.raspisim.Robot
Plays a sine tone with given frequency and duration and maximum volume.
playTone(double, double, double, boolean) - Method in class ch.aplu.raspisim.Robot
Plays a sine tone with given frequency and duration.

R

removeObstacle(Obstacle) - Method in class ch.aplu.raspisim.Robot
Removes the given obstacle from the obstacle list and hides it.
removeTarget(Target) - Method in class ch.aplu.raspisim.Robot
Removes the given target from the target list and hides it.
reset() - Method in class ch.aplu.raspisim.Robot
Resets MyRobot to start location/direction.
right() - Method in class ch.aplu.raspisim.Gear
Starts to rotate right (center of rotation at middle of the wheel axes).
right(int) - Method in class ch.aplu.raspisim.Gear
Starts to rotate right (center of rotation at middle of the wheel axes) for the given duration (in ms) and stops.
RIGHT - Static variable in class ch.aplu.raspisim.Motor
Motor id for right motor.
right(double) - Method in class ch.aplu.raspisim.TurtleRobot
Turns the turtle to the right for the given angle.
right() - Method in class ch.aplu.raspisim.TurtleRobot
Starts turning right and returns immediately.
rightArc(double) - Method in class ch.aplu.raspisim.Gear
Starts to move to the right on an arc with given radius.
rightArc(double, int) - Method in class ch.aplu.raspisim.Gear
Starts to move right on an arc with given radius for the given duration (in ms) and stops.
Robot - Class in ch.aplu.raspisim
Class that represents a simulated Raspi brick.
Robot() - Constructor for class ch.aplu.raspisim.Robot
Creates a robot with its playground using defaults from RobotContext.
RobotContext - Class in ch.aplu.raspisim
Class to select user defined initial conditions of the playground and the Nxt or EV3 robot.
RobotContext() - Constructor for class ch.aplu.raspisim.RobotContext
Creates a RobotContext instance.
RobotInstance - Class in ch.aplu.raspisim
Holder of global Robot instance
RobotInstance() - Constructor for class ch.aplu.raspisim.RobotInstance
 

S

setBeamAreaColor(Color) - Method in class ch.aplu.raspisim.UltrasonicSensor
Sets the color of the beam area (two sector border lines and axis).
setColor(int, int, int) - Method in class ch.aplu.raspisim.Led
Sets the RGB color value of the two LEDs with current ID.
setColor(Color) - Method in class ch.aplu.raspisim.Led
Sets the RGB color value of the two LEDs with current ID.
setColorAll(int, int, int) - Static method in class ch.aplu.raspisim.Led
Sets the RGB color value of all LEDs.
setColorAll(Color) - Static method in class ch.aplu.raspisim.Led
Sets the RGB color value of all LEDs.
setHeight(int) - Method in class ch.aplu.raspisim.Torch
Sets the height of the torch (z-coordinate).
setLocation(int, int) - Static method in class ch.aplu.raspisim.RobotContext
Sets the location of the playground (pixel coordinates of the upper left vertex).
setMeshTriangleColor(Color) - Method in class ch.aplu.raspisim.UltrasonicSensor
Sets the color of the triangle mesh lines.
setPixelLocation(int, int) - Method in class ch.aplu.raspisim.Torch
Sets the torch to given pixel location.
setProximityCircleColor(Color) - Method in class ch.aplu.raspisim.UltrasonicSensor
Sets the color of the circle with center at sensor location and radius equals to the current distance value.
setRobot(Robot) - Static method in class ch.aplu.raspisim.RobotInstance
 
setSpeed(int) - Method in class ch.aplu.raspisim.Gear
Sets the speed to the given value (arbitrary units).
setSpeed(int) - Method in class ch.aplu.raspisim.Motor
Sets the speed to the given value (arbitrary units).
setStartDirection(double) - Static method in class ch.aplu.raspisim.RobotContext
Sets the Nxt starting direction (zero to EAST).
setStartPosition(int, int) - Static method in class ch.aplu.raspisim.RobotContext
Sets the Nxt starting position (x-y-coordinates 0..500, origin at upper left).
setStatusText(String) - Static method in class ch.aplu.raspisim.RobotContext
Displays the given text in the status bar (if available).
setTriggerLevel(int) - Method in class ch.aplu.raspisim.LightSensor
Sets a new triggerLevel and returns the previous one.
setTriggerLevel(int) - Method in class ch.aplu.raspisim.UltrasonicSensor
Sets a new trigger level and returns the previous one.
setTurtleSpeed(int) - Method in class ch.aplu.raspisim.TurtleRobot
Sets the turtle speed to the given value.
Shadow - Class in ch.aplu.raspisim
Class to represent a rectangle shadow area where light from torches is absorbed.
Shadow(Location, Location) - Constructor for class ch.aplu.raspisim.Shadow
Creates a rectangular shadow area.
showNavigationBar(boolean) - Static method in class ch.aplu.raspisim.RobotContext
Shows the navigation bar of the GameGrid.
showNavigationBar() - Static method in class ch.aplu.raspisim.RobotContext
Shows the navigation bar of the GameGrid and runs the simulation immediately.
showStatusBar(int) - Static method in class ch.aplu.raspisim.RobotContext
Shows a status bar with given height.
startTimer() - Static method in class ch.aplu.raspisim.Tools
Starts a timer or restart it by setting its time to zero.
stop() - Method in class ch.aplu.raspisim.Gear
Stops the movement.
stop() - Method in class ch.aplu.raspisim.Motor
Stops the rotation.

T

Target - Class in ch.aplu.raspisim
Class to represent a target detectable by the ultrasonic sensor.
Target(String, Point[]) - Constructor for class ch.aplu.raspisim.Target
Creates a target from given image file using the given mesh points.
Target(BufferedImage, Point[]) - Constructor for class ch.aplu.raspisim.Target
Creates a target from given buffered image.
Tools - Class in ch.aplu.raspisim
Some useful helper methods.
Tools() - Constructor for class ch.aplu.raspisim.Tools
 
Torch - Class in ch.aplu.raspisim
Class to represent a torch (spot light source) detectable by the light sensors.
Torch(double, Location, int) - Constructor for class ch.aplu.raspisim.Torch
Creates a spot light source of given intensity above the given location.
TurtleRobot - Class in ch.aplu.raspisim
Implementation of the basic Logo turtle movements.
TurtleRobot() - Constructor for class ch.aplu.raspisim.TurtleRobot
Creates a turtle robot instance.

U

UltrasonicAdapter - Class in ch.aplu.raspisim
Class with empty callback methods for the ultrasonic sensor.
UltrasonicAdapter() - Constructor for class ch.aplu.raspisim.UltrasonicAdapter
 
UltrasonicListener - Interface in ch.aplu.raspisim
Class with declarations of callback methods for the ultrasonic sensor.
UltrasonicSensor - Class in ch.aplu.raspisim
Class that represents a ultrasonic sensor.
UltrasonicSensor() - Constructor for class ch.aplu.raspisim.UltrasonicSensor
The port selection determines the position of the sensor and the direction of the beam axis.
useBackground(String) - Static method in class ch.aplu.raspisim.RobotContext
Use the given image as background (playground size 501 x 501).
useObstacle(String, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines the given sprite image to be used as touch obstacle.
useObstacle(BufferedImage, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines the given buffered image to be used as touch obstacle.
useObstacle(Obstacle, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines the given obstacle to be used as touch obstacle.
useObstacle(Obstacle) - Static method in class ch.aplu.raspisim.RobotContext
Defines the given obstacle to be used as touch obstacle.
useObstacle(GGBitmap, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines the given GGBitmap to be used as touch obstacle.
useShadow(int, int, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines a shadow with given size and position.
useTarget(String, int[][], int, int) - Static method in class ch.aplu.raspisim.RobotContext
Creates a target for the ultrasonic sensor using the given sprite image.
useTarget(String, Point[], int, int) - Static method in class ch.aplu.raspisim.RobotContext
Creates a target for the ultrasonic sensor using the given sprite image.
useTarget(BufferedImage, Point[], int, int) - Static method in class ch.aplu.raspisim.RobotContext
Creates a target for the ultrasonic sensor using the given buffered image.
useTarget(GGBitmap, Point[], int, int) - Static method in class ch.aplu.raspisim.RobotContext
Creates a target for the ultrasonic sensor using the given GGBitmap.
useTarget(Target, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines a clone of the given target to be used as target.
useTorch(double, int, int, int) - Static method in class ch.aplu.raspisim.RobotContext
Defines a light source (torch) with given power at given position.

V

VERSION - Static variable in class ch.aplu.raspisim.PackageInfo
Current version of package.
A B C D E F G I L M N O P R S T U V