Initial commit
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / Stage.java
1 package net.sf.openrocket.rocketcomponent;
2
3 public class Stage extends ComponentAssembly {
4
5         @Override
6         public String getComponentName() {
7                 return "Stage";
8         }
9
10         
11         /**
12          * Check whether the given type can be added to this component.  A Stage allows 
13          * only BodyComponents to be added.
14          * 
15          * @param type  The RocketComponent class type to add.
16          * @return      Whether such a component can be added.
17          */
18         @Override
19         public boolean isCompatible(Class<? extends RocketComponent> type) {
20                 return BodyComponent.class.isAssignableFrom(type);
21         }
22
23 }