Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package marsrover;
- public class MarsRoverDetachmentSystem implements AccelerometerObserver {
- private final Parachute parachute;
- public MarsRoverDetachmentSystem (Parachute parachute) {
- this.parachute = parachute;
- }
- public void handleAccelerationReport (double acceleration) {
- parachute.detach ();
- }
- }
Add Comment
Please, Sign In to add comment