private Class<? extends SimulationStepper> simulationStepperClass = RK4SimulationStepper.class;
private Class<? extends AerodynamicCalculator> aerodynamicCalculatorClass = BarrowmanCalculator.class;
private Class<? extends MassCalculator> massCalculatorClass = BasicMassCalculator.class;
-
-
/** Listeners for this object */
private List<EventListener> listeners = new ArrayList<EventListener>();
/**
- * Create a new simulation for the rocket. The initial motor configuration is
- * taken from the default rocket configuration.
+ * Create a new simulation for the rocket. Parent document should also be provided.
+ * The initial motor configuration is taken from the default rocket configuration.
*
* @param rocket the rocket associated with the simulation.
*/
}
-
/**
* Return the rocket associated with this simulation.
*
}
SimulationConditions simulationConditions = options.toSimulationConditions();
+ simulationConditions.setSimulation(this);
for (SimulationListener l : additionalListeners) {
simulationConditions.getSimulationListenerList().add(l);
}