Package: ErstelleAlternativetypKommandoMitResultat
ErstelleAlternativetypKommandoMitResultat
| name | instruction | branch | complexity | line | method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ErstelleAlternativetypKommandoMitResultat(Bedingung) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| accept(KommandoVisitor) | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
| doIt() | 
  | 
  | 
  | 
  | 
  | 
||||||||||||||||||||
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: }