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);
30 * Accept a visitor to this Stage in the component hierarchy.
32 * @param theVisitor the visitor that will be called back with a reference to this Stage
35 public void accept (final ComponentVisitor theVisitor) {
36 theVisitor.visit(this);