Skip to contentMethod: getOutport()
      1: package ablaeufe.operation.konnektoren;
2: 
3: import ablaeufe.meta.konnektortypen.Synchronisationstyp;
4: import ablaeufe.operation.Port;
5: 
6: /**
7:  * Die Synchronisation ist ein Exemplar eines Synchronisationstypen. Sie bildet das Gegenstück zur Verteilung, also wartet auf parallel laufende
8:  * Aktivitäten und startet eine weitere, sobald diese fertig sind
9:  *
10:  */
11: public final class Synchronisation extends Zusammenfuehrung {
12: 
13:     private final Synchronisationstyp type;
14: 
15:         private Synchronisation(final Synchronisationstyp type) {
16:                 super();
17:         this.type = type;
18:     }
19: 
20:     /**
21:      * @param type Typ der Synchronisation auf der Metaebene
22:      * @return neu erstellte {@link Synchronisation}.
23:      */
24:     public static Synchronisation create(final Synchronisationstyp type) {
25:             return new Synchronisation(type);
26:     }
27: 
28:     @Override
29:     public Synchronisationstyp getTyp() {
30:         return this.type;
31:     }
32: 
33:     /**
34:      * @return den Outport der Verteilung.
35:      */
36:     public Port getOutport() {
37:         return this.getOutports().get(0);
38:     }
39: }