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