- 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.
- 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.
- 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
- 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
-
- 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.
- 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.