diff --git a/src/main/resources/1/1/diagram.svg b/src/main/resources/1/1/diagram.svg new file mode 100644 index 0000000..58d8190 --- /dev/null +++ b/src/main/resources/1/1/diagram.svg @@ -0,0 +1,210 @@ + + +fish: Animalname: "Fish"bear: Animalname: "Bear"zebra: Animalname: "Zebra"lion: Animalname: "Lion"berry: Plantname: "Berry"description: "is red"grass: Plantname: "Grass"description: "is green"Animal- name: String+ Animal(name:String)+ addFood(food: Plant)+ addFood(food: Animal)+ getPlantFoods(): Plant[0..10]+ getAnimalFoods(): Animal[0..10]+ eatsPlants(): boolean+ eatsAnimals(): boolean+ isCarnivore(): boolean+ isOmnivore(): boolean+ isHerbivore(): boolean+ getName(): String+ setName(name: String)Plant- name: String- description: String+ Plant(name: String, description: String)+ getName(): String+ setName(name: String)+ getDescription(): String+ setDescription(description: String)animalFoodsanimalFoodsplantFoodsplantFoods- animalFoods0..10- plantFoods0..10 diff --git a/src/main/resources/1/1/diagram.uxf b/src/main/resources/1/1/diagram.uxf new file mode 100644 index 0000000..5a32832 --- /dev/null +++ b/src/main/resources/1/1/diagram.uxf @@ -0,0 +1,205 @@ + + + 10 + + UMLClass + + 260 + 190 + 270 + 150 + + *Plant* +-- +- name: String +- description: String +-- ++ Plant(name: String, description: String) ++ getName(): String ++ setName(name: String) ++ getDescription(): String ++ setDescription(description: String) + + + + UMLClass + + 740 + 160 + 230 + 250 + + *Animal* +-- +- name: String +-- ++ Animal(name:String) ++ addFood(food: Plant) ++ addFood(food: Animal) ++ getPlantFoods(): Plant[0..10] ++ getAnimalFoods(): Animal[0..10] ++ eatsPlants(): boolean ++ eatsAnimals(): boolean ++ isCarnivore(): boolean ++ isOmnivore(): boolean ++ isHerbivore(): boolean ++ getName(): String ++ setName(name: String) + + + + Relation + + 520 + 220 + 240 + 50 + + lt=- +r2=- plantFoods +m2=0..10 + + 10.0;20.0;220.0;20.0 + + + Relation + + 610 + 100 + 220 + 120 + + lt=<- +r1=- animalFoods +m1=0..10 + 130.0;90.0;10.0;90.0;10.0;10.0;200.0;10.0;200.0;60.0 + + + UMLClass + + 670 + 470 + 210 + 70 + + _grass: Plant_ +-- +name: "Grass" +description: "is green" + + + + UMLClass + + 340 + 690 + 210 + 70 + + _berry: Plant_ +-- +name: "Berry" +description: "is red" + + + + UMLClass + + 10 + 470 + 210 + 50 + + _lion: Animal_ +-- +name: "Lion" + + + + UMLClass + + 340 + 470 + 210 + 50 + + _zebra: Animal_ +-- +name: "Zebra" + + + + UMLClass + + 10 + 580 + 210 + 50 + + _bear: Animal_ +-- +name: "Bear" + + + + UMLClass + + 340 + 580 + 210 + 50 + + _fish: Animal_ +-- +name: "Fish" + + + + Relation + + 210 + 610 + 150 + 130 + + lt=<- +plantFoods + 130.0;110.0;10.0;10.0 + + + Relation + + 540 + 480 + 150 + 40 + + lt=<- +plantFoods + 130.0;20.0;10.0;20.0 + + + Relation + + 210 + 480 + 150 + 40 + + lt=<- +animalFoods + 130.0;20.0;10.0;20.0 + + + Relation + + 210 + 590 + 150 + 40 + + lt=<- +animalFoods + 130.0;20.0;10.0;20.0 + +