1 package net.sf.openrocket.rocketcomponent;
3 public class Stage extends ComponentAssembly {
6 public String getComponentName() {
12 * Check whether the given type can be added to this component. A Stage allows
13 * only BodyComponents to be added.
15 * @param type The RocketComponent class type to add.
16 * @return Whether such a component can be added.
19 public boolean isCompatible(Class<? extends RocketComponent> type) {
20 return BodyComponent.class.isAssignableFrom(type);