Skip to content

Package: ErstelleProduktionsrolleKommandoMitResultat

ErstelleProduktionsrolleKommandoMitResultat

nameinstructionbranchcomplexitylinemethod
ErstelleProduktionsrolleKommandoMitResultat(String, String)
M: 9 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%
accept(KommandoVisitor)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
doIt()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package schnittstelle.mitarbeiterKommandos;
2:
3: import mensch.Produktionsrolle;
4: import schnittstelle.kommandoArchitektur.KommandoOhneExceptionMitResultat;
5: import schnittstelle.kommandoArchitektur.KommandoVisitor;
6:
7: /**
8: * Kommando zum Erstellen einer Produktionsrolle.
9: */
10: public class ErstelleProduktionsrolleKommandoMitResultat extends KommandoOhneExceptionMitResultat<Produktionsrolle> {
11:         
12:         private final String name;
13:         private final String beschreibung;
14:         
15:         /**
16:          * @param name
17:          * Name der zu erstellenden Produktionsrolle
18:          * @param beschreibung
19:          * Beschreibung der zu erstellenden Produktionsrolle.
20:          */
21:         public ErstelleProduktionsrolleKommandoMitResultat(final String name, final String beschreibung) {
22:                 super();
23:                 this.name = name;
24:                 this.beschreibung = beschreibung;
25:         }
26:         
27:         @Override
28:         protected Produktionsrolle doIt() {
29:                 return Produktionsrolle.createProduktionsrolle(this.name, this.beschreibung);
30:                 
31:         }
32:         
33:         @Override
34:         public void accept(final KommandoVisitor v) {
35:                 v.handle(this);
36:         }
37:         
38: }