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