From 5b2cba05ec7dcfc321861fb50c771fc9228d31e2 Mon Sep 17 00:00:00 2001 From: Tomas Date: Tue, 18 May 2021 12:21:10 -0300 Subject: [PATCH] feat(qmp): now allows to build Atuendo --- .../main/java/quemepongo/model/modista/Modista.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/01-lecture/quemepongo/src/main/java/quemepongo/model/modista/Modista.java b/01-lecture/quemepongo/src/main/java/quemepongo/model/modista/Modista.java index 96b231c..c8d6e93 100644 --- a/01-lecture/quemepongo/src/main/java/quemepongo/model/modista/Modista.java +++ b/01-lecture/quemepongo/src/main/java/quemepongo/model/modista/Modista.java @@ -1,5 +1,6 @@ package quemepongo.model.modista; +import quemepongo.model.atuendo.Atuendo; import quemepongo.model.atuendo.Conjunto; import quemepongo.model.atuendo.Uniforme; import quemepongo.model.prenda.Prenda; @@ -22,6 +23,16 @@ public Uniforme fabricarUniforme() { return new Uniforme(fabricarConjunto()); } + /** + * Fabrica un atuendo. + * + * @return un nuevo atuendo + * @since IteraciĆ³n IV + */ + public Atuendo fabricarAtuendo() { + return new Atuendo(fabricarConjunto()); + } + /** * Instancia un nuevo conjunto. *