Change name of class SupportsFlightConfiguration to FlightConfigurable.
This commit is contained in:
		
							parent
							
								
									2d6f3ba8a1
								
							
						
					
					
						commit
						d45b68a78e
					
				| @ -4,7 +4,7 @@ import java.util.HashMap; | ||||
| 
 | ||||
| import net.sf.openrocket.motor.Motor; | ||||
| 
 | ||||
| class BaseMotorMount implements SupportsFlightConfiguration<MotorConfiguration>, Cloneable { | ||||
| class BaseMotorMount implements FlightConfigurable<MotorConfiguration>, Cloneable { | ||||
| 
 | ||||
| 	private HashMap<String, MotorConfiguration > motors = new HashMap<String,MotorConfiguration>(); | ||||
| 	private MotorConfiguration defaultConfiguration = MotorConfiguration.makeDefaultMotorConfiguration(); | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| package net.sf.openrocket.rocketcomponent; | ||||
| 
 | ||||
| public interface SupportsFlightConfiguration<T> { | ||||
| public interface FlightConfigurable<T> { | ||||
| 
 | ||||
| 	public T getFlightConfiguration( String configId ); | ||||
| 	 | ||||
| @ -4,7 +4,7 @@ import net.sf.openrocket.motor.Motor; | ||||
| import net.sf.openrocket.util.ChangeSource; | ||||
| import net.sf.openrocket.util.Coordinate; | ||||
| 
 | ||||
| public interface MotorMount extends ChangeSource, SupportsFlightConfiguration<MotorConfiguration> { | ||||
| public interface MotorMount extends ChangeSource, FlightConfigurable<MotorConfiguration> { | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Is the component currently a motor mount. | ||||
|  | ||||
| @ -23,7 +23,7 @@ import net.sf.openrocket.util.MathUtil; | ||||
|  *  | ||||
|  * @author Sampo Niskanen <sampo.niskanen@iki.fi> | ||||
|  */ | ||||
| public abstract class RecoveryDevice extends MassObject implements SupportsFlightConfiguration<DeploymentConfiguration> { | ||||
| public abstract class RecoveryDevice extends MassObject implements FlightConfigurable<DeploymentConfiguration> { | ||||
| 	private static final Translator trans = Application.getTranslator(); | ||||
| 	 | ||||
| 	private Map<String,DeploymentConfiguration> deploymentConfigurations = new HashMap<String,DeploymentConfiguration>(); | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| package net.sf.openrocket.rocketvisitors; | ||||
| 
 | ||||
| import net.sf.openrocket.rocketcomponent.RocketComponent; | ||||
| import net.sf.openrocket.rocketcomponent.SupportsFlightConfiguration; | ||||
| import net.sf.openrocket.rocketcomponent.FlightConfigurable; | ||||
| 
 | ||||
| public class CopyFlightConfigurationVisitor extends DepthFirstRecusiveVisitor { | ||||
| 
 | ||||
| @ -17,8 +17,8 @@ public class CopyFlightConfigurationVisitor extends DepthFirstRecusiveVisitor { | ||||
| 	@Override | ||||
| 	public void doAction(RocketComponent visitable) { | ||||
| 		 | ||||
| 		if ( visitable instanceof SupportsFlightConfiguration ) { | ||||
| 			((SupportsFlightConfiguration)visitable).cloneFlightConfiguration(oldConfigId, newConfigId); | ||||
| 		if ( visitable instanceof FlightConfigurable ) { | ||||
| 			((FlightConfigurable)visitable).cloneFlightConfiguration(oldConfigId, newConfigId); | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user