Skip to content

Package: AtomarerProzesstyp

AtomarerProzesstyp

nameinstructionbranchcomplexitylinemethod
AtomarerProzesstyp()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
connectTo(AtomarerProzesstyp)
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%

Coverage

1: package ablaeufe.meta;
2:
3: import ablaeufe.meta.visitor.AtomarerProzesstypVisitor;
4:
5: /**
6: * Ein atomarer Prozess ermöglicht den Zusammenbau eines Prozesses.
7: */
8: public abstract class AtomarerProzesstyp extends Prozesstyp {
9:
10: /**
11: * @param atomarerProzesstyp Prozesstyp welcher verbunden werden soll.
12: * Verbindet den this Prozesstyp über seine Outporttypen mit dem gegebenen atomaren Prozesstyp über seine Inporttypen.
13: */
14: public void connectTo(final AtomarerProzesstyp atomarerProzesstyp) {
15: final Porttyp verbindungsPorttyp = Porttyp.create();
16: this.setOrAddOutporttyp(verbindungsPorttyp);
17: atomarerProzesstyp.setOrAddInporttyp(verbindungsPorttyp);
18: }
19:
20: /**
21: * @param porttyp Porttyp, welcher als Inporttyp gesetzt oder als Inporttyp hinzugefügt wird.
22: * Aktivitätstypen und Aufteilungstypen überschreiben ihren einen Inporttypen und Zusammenfuehrungstypen fügen diesen hinzu.
23: */
24: protected abstract void setOrAddInporttyp(Porttyp porttyp);
25:
26: /**
27: * @param porttyp Porttyp, welcher als Outporttyp gesetzt oder als Outporttyp hinzugefügt wird.
28: * Aktivitätstypen und Zusammenfuehrungstypen überschreiben ihren einen Outporttyp und Aufteilungstypen fügen diesen hinzu.
29: */
30: protected abstract void setOrAddOutporttyp(Porttyp porttyp);
31:
32:
33: /**
34: * Accept Operation für das Visitor Pattern.
35: *
36: * @param visitor der Visitor
37: */
38: public abstract void accept(AtomarerProzesstypVisitor visitor);
39:
40: }