Skip to content

Package: ErstelleAlternativetypKommandoMitResultat

ErstelleAlternativetypKommandoMitResultat

nameinstructionbranchcomplexitylinemethod
ErstelleAlternativetypKommandoMitResultat(Bedingung)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
accept(KommandoVisitor)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
doIt()
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: package schnittstelle.ablaeufeKommandos.ErstelleKommandos;
2:
3: import ablaeufe.meta.konnektortypen.Alternativetyp;
4: import ablaeufe.meta.strategies.alternative.Bedingung;
5: import schnittstelle.kommandoArchitektur.KommandoOhneExceptionMitResultat;
6: import schnittstelle.kommandoArchitektur.KommandoVisitor;
7:
8: /**
9: * Ein Kommando nach dem Command-Pattern für das erstellen eines Alternativetypen des Metamodells der Abläufe.
10: *
11: */
12: public class ErstelleAlternativetypKommandoMitResultat extends KommandoOhneExceptionMitResultat<Alternativetyp> {
13:         
14:         private final Bedingung bedingung;
15:
16:         /**
17:          *
18:          * @param bedingung
19:          * Bedingung des Alternativetyp.
20:          */
21:         public ErstelleAlternativetypKommandoMitResultat(final Bedingung bedingung) {
22:                 this.bedingung = bedingung;
23:         }
24:         
25:         @Override
26:         protected Alternativetyp doIt() {
27:                 return Alternativetyp.create(this.bedingung);
28:         }
29:         
30:         @Override
31:         public void accept(final KommandoVisitor v) {
32:                 v.handle(this);
33:         }
34:         
35: }