**A.1 SoSHyperFramework: model-based generated Java code skeleton**

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* Module: SoSHyperFramework.java \* Author: Branko \* Purpose: Defines the Class SoSHyperFramework \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/ import java.util.\*; /\*\* @pdOid 5199ec80-82c8-4224-adf4-6f79e037a32c \*/ public abstract class SoSHyperFramework { /\*\* @pdOid 29f37534-7bc3-46d9-9fa5-f8996a25eb8d \*/ private int domainkID; /\*\* @pdOid 3f9f6a74-0c4c-448d-878e-1e4d6b216519 \*/ private DomainType domainType; public java.util.Collection frameworkRelationsB; /\*\* @pdRoleInfo migr=no name=DomainContext assc=association3 coll=java. util.Collection impl=java.util.HashSet mult=\* \*/ public java.util.Collection<DomainContext> domainContext; /\*\* @pdRoleInfo migr=no name=SoSHFControler assc=association6 mult=0..1 \*/ public SoSHFControler soSHFControler; /\*\* @pdRoleInfo migr=no name=SoSHFView assc=association7 coll=java.util. Collection impl=java.util.HashSet mult=0..\* type=Aggregation \*/ public java.util.Collection<SoSHFView> soSHFView; /\*\* @pdRoleInfo migr=no name=SoSHFModel assc=association8 coll=java.util. Collection impl=java.util.HashSet mult=0..\* \*/ public java.util.Collection<SoSHFModel> soSHFModel; /\*\* @pdRoleInfo migr=no name=RepositoryManager assc=association9 mult=0..1 \*/ public RepositoryManager repositoryManager; /\*\* @pdRoleInfo migr=no name=ServiceControler assc=association10 mult=0..1 \*/ public ServiceControler serviceControler; public CooperatingDomains[] frameworkRelationsA; /\*\* @param source \* @param destination \* @param context \* @pdOid 744debe3-5548-4295-a6ea-328715b03caa \*/ public SoSHyperFramework establisheRelations(SoSHyperFramework source, SoSHyperFramework destination, DomainContext context) { // TODO: implement } /\*\* @pdOid 75f8bfff-a41b-47be-a366-c6b44131030d \*/ public void performAction() { // TODO: implement } /\*\* @pdGenerated default getter \*/ public java.util.Collection<DomainContext> getDomainContext() { if (domainContext == null) domainContext = new java.util.HashSet<DomainContext>();

```
return domainContext;
     }
     /** @pdGenerated default iterator getter */
     public java.util.Iterator getIteratorDomainContext() {
       if (domainContext == null)
         domainContext = new java.util.HashSet<DomainContext>();
       return domainContext.iterator();
     }
     /** @pdGenerated default setter
     * @param newDomainContext */
     public void setDomainContext(java.util.Collection<DomainContext>
newDomainContext) {
     removeAllDomainContext();
     for (java.util.Iterator iter = newDomainContext.iterator(); iter.hasNext();)
       addDomainContext((DomainContext)iter.next());
     }
     /** @pdGenerated default add
     * @param newDomainContext */
     public void addDomainContext(DomainContext newDomainContext) {
       if (newDomainContext == null)
         return;
       if (this.domainContext == null)
         this.domainContext = new java.util.HashSet<DomainContext>();
       if (!this.domainContext.contains(newDomainContext))
         this.domainContext.add(newDomainContext);
     }
     /** @pdGenerated default remove
     * @param oldDomainContext */
     public void removeDomainContext(DomainContext oldDomainContext) {
       if (oldDomainContext == null)
         return;
       if (this.domainContext != null)
       if (this.domainContext.contains(oldDomainContext))
         this.domainContext.remove(oldDomainContext);
     }
     /** @pdGenerated default removeAll */
     public void removeAllDomainContext() {
       if (domainContext != null)
         domainContext.clear();
     }
     /** @pdGenerated default getter */
     public java.util.Collection<SoSHFView> getSoSHFView() {
       if (soSHFView == null)
         soSHFView = new java.util.HashSet<SoSHFView>();
       return soSHFView;
     }
     /** @pdGenerated default iterator getter */
     public java.util.Iterator getIteratorSoSHFView() {
       if (soSHFView == null)
         soSHFView = new java.util.HashSet<SoSHFView>();
```
*The Foundation for Open Component Analysis: A System of Systems Hyper Framework Model DOI: http://dx.doi.org/10.5772/intechopen.103830*

```
return soSHFView.iterator();
     }
     /** @pdGenerated default setter
     * @param newSoSHFView */
     public void setSoSHFView(java.util.Collection<SoSHFView> newSoSHFView) {
       removeAllSoSHFView();
       for (java.util.Iterator iter = newSoSHFView.iterator(); iter.hasNext();)
         addSoSHFView((SoSHFView)iter.next());
     }
     /** @pdGenerated default add
     * @param newSoSHFView */
     public void addSoSHFView(SoSHFView newSoSHFView) {
       if (newSoSHFView == null)
         return;
       if (this.soSHFView == null)
         this.soSHFView = new java.util.HashSet<SoSHFView>();
       if (!this.soSHFView.contains(newSoSHFView))
         this.soSHFView.add(newSoSHFView);
     }
     /** @pdGenerated default remove
     * @param oldSoSHFView */
     public void removeSoSHFView(SoSHFView oldSoSHFView) {
       if (oldSoSHFView == null)
         return;
       if (this.soSHFView != null)
       if (this.soSHFView.contains(oldSoSHFView))
         this.soSHFView.remove(oldSoSHFView);
     }
     /** @pdGenerated default removeAll */
     public void removeAllSoSHFView() {
       if (soSHFView != null)
         soSHFView.clear();
     }
     /** @pdGenerated default getter */
     public java.util.Collection<SoSHFModel> getSoSHFModel() {
       if (soSHFModel == null)
         soSHFModel = new java.util.HashSet<SoSHFModel>();
       return soSHFModel;
     }
     /** @pdGenerated default iterator getter */
     public java.util.Iterator getIteratorSoSHFModel() {
       if (soSHFModel == null)
         soSHFModel = new java.util.HashSet<SoSHFModel>();
       return soSHFModel.iterator();
     }
     /** @pdGenerated default setter
     * @param newSoSHFModel */
     public void setSoSHFModel(java.util.Collection<SoSHFModel>
newSoSHFModel) {
       removeAllSoSHFModel();
```

```
for (java.util.Iterator iter = newSoSHFModel.iterator(); iter.hasNext();)
      addSoSHFModel((SoSHFModel)iter.next());
  }
  /** @pdGenerated default add
  * @param newSoSHFModel */
  public void addSoSHFModel(SoSHFModel newSoSHFModel) {
    if (newSoSHFModel == null)
      return;
    if (this.soSHFModel == null)
      this.soSHFModel = new java.util.HashSet<SoSHFModel>();
    if (!this.soSHFModel.contains(newSoSHFModel))
      this.soSHFModel.add(newSoSHFModel);
  }
  /** @pdGenerated default remove
  * @param oldSoSHFModel */
  public void removeSoSHFModel(SoSHFModel oldSoSHFModel) {
    if (oldSoSHFModel == null)
      return;
    if (this.soSHFModel != null)
    if (this.soSHFModel.contains(oldSoSHFModel))
      this.soSHFModel.remove(oldSoSHFModel);
  }
  /** @pdGenerated default removeAll */
  public void removeAllSoSHFModel() {
    if (soSHFModel != null)
      soSHFModel.clear();
  }
}
```