import net.sf.openrocket.rocketcomponent.Configuration;
import net.sf.openrocket.rocketcomponent.Rocket;
import net.sf.openrocket.simulation.BasicEventSimulationEngine;
-import net.sf.openrocket.simulation.CustomExpression;
import net.sf.openrocket.simulation.FlightData;
import net.sf.openrocket.simulation.RK4SimulationStepper;
import net.sf.openrocket.simulation.SimulationConditions;
private SimulationOptions options;
private ArrayList<String> simulationListeners = new ArrayList<String>();
- private ArrayList<CustomExpression> customExpressions = new ArrayList<CustomExpression>();
private final Class<? extends SimulationEngine> simulationEngineClass = BasicEventSimulationEngine.class;
private Class<? extends SimulationStepper> simulationStepperClass = RK4SimulationStepper.class;
/**
- * 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.
*/
}
- public void addCustomExpression(CustomExpression expression){
- this.status = Simulation.Status.OUTDATED;
- log.debug("Simulation must be run again to update custom expression.");
- customExpressions.add(expression);
- }
-
- public void removeCustomExpression(CustomExpression expression){
- customExpressions.remove(expression);
- }
-
- public ArrayList<CustomExpression> getCustomExpressions(){
- return customExpressions;
- }
-
-
/**
* Return the rocket associated with this simulation.
*