create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / file / rocksim / export / AttachableParts.java
1 package net.sf.openrocket.file.rocksim.export;
2
3 /**
4  * An interface that defines methods for attaching and detaching child components.  Rocksim has a special
5  * XML element that acts as a container, called <pre><AttachedParts></AttachedParts></pre>.  Implementors of
6  * this interface are those Rocksim DTO classes that support the attached parts element.
7  */
8 public interface AttachableParts {
9     /**
10      * Remove a previously attached part from this component.
11      *
12      * @param part  the instance to remove
13      */
14     void removeAttachedPart(BasePartDTO part);
15
16     /**
17      * Attach (associate) a DTO with this component.
18      * @param part
19      */
20     void addAttachedPart(BasePartDTO part);
21 }