1 package net.sf.openrocket.simulation.listeners.system;
3 import net.sf.openrocket.rocketcomponent.RecoveryDevice;
4 import net.sf.openrocket.simulation.FlightEvent;
5 import net.sf.openrocket.simulation.SimulationStatus;
6 import net.sf.openrocket.simulation.exception.SimulationException;
7 import net.sf.openrocket.simulation.listeners.AbstractSimulationListener;
11 * A simulation listeners that ends the simulation when apogee is reached.
13 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
15 public class RecoveryDeviceDeploymentEndListener extends AbstractSimulationListener {
17 public static final RecoveryDeviceDeploymentEndListener INSTANCE = new RecoveryDeviceDeploymentEndListener();
20 public boolean recoveryDeviceDeployment(SimulationStatus status, RecoveryDevice recoveryDevice) throws SimulationException {
21 status.getEventQueue().add(new FlightEvent(FlightEvent.Type.SIMULATION_END, status.getSimulationTime()));
26 public boolean isSystemListener() {