Skip to content

Method: getTyp()

1: package ablaeufe.operation.konnektoren;
2:
3: import ablaeufe.meta.konnektortypen.Verteilungstyp;
4: import ablaeufe.operation.Port;
5:
6: /**
7: * Eine Verteilung ist ein Exemplar eines Verteilungstypen. Sie wird benötigt um von einer Aktivität auf <u>mehrere parallel laufende </u>Aktivitäten
8: * zu kommen.
9: *
10: */
11: public final class Verteilung extends Aufteilung {
12:
13: private final Verteilungstyp type;
14:
15:         private Verteilung(final Verteilungstyp type) {
16:                 super();
17: this.type = type;
18: }
19:
20:
21: /**
22: * @param type Typ der Verteilung auf der Metaebene
23: * @return erstellte Verteilung.
24: */
25: public static Verteilung create(final Verteilungstyp type) {
26: return new Verteilung(type);
27: }
28:
29: @Override
30: public Verteilungstyp getTyp() {
31: return this.type;
32: }
33:
34: /**
35: * @return den Inport der Verteilung.
36: */
37: public Port getInport() {
38: return this.getInports().get(0);
39: }
40: }