diff --git a/doc/ClassDiagramDraft.uxf b/doc/ClassDiagramDraft.uxf index 914684a..5ddaf9a 100644 --- a/doc/ClassDiagramDraft.uxf +++ b/doc/ClassDiagramDraft.uxf @@ -1,19 +1,62 @@ -10UMLClass63012010030MainUMLClass980310240140<<Interface>> +10UMLClass57017510030MainUMLClass920365300140<<Interface>> PlantDatabase -- -+ getPlantList: List<Plant>UMLClass82059022050TaskListControllerUMLClass1020100210140<<Record>> ++ getPlantList(zone: HardinessZone): List<Plant>UMLClass76064522050TaskListControllerUMLClass97085210130<<Record>> Plant -- -+ name (readonly) -+ description (readonly) -+ spacing (readonly)UMLClass106059016050TaskListModelUMLClass51057018070PlantListModelUMLClass29057018080PlantListControllerUMLClass30017010030TaskUMLClass300360240140<<Interface>> ++ id: long ++ name: String ++ description: String ++ spacing: ? ++ lifecycle: Lifecycle +UMLClass102064516050TaskListModelUMLClass45062518070PlantListModelUMLClass23062518080PlantListControllerUMLClass1300825380230Task +-- ++ id: long ++ name: String {readOnly} ++ description: String {readOnly} ++ startDate: Date {readOnly} +- interval: int +- endDate: Date +-- ++ Task(name: String, description: String, startDate: String): Task ++ withInterval(interval: int): Task ++ withEndDate(endDate: Date): Task ++ withId(id: long): Task +-- ++ getInterval(): Optional<int> ++ getEndDate(): Optional<Date>UMLClass960825280140<<Interface>> TaskDatabase -- -+ getTaskList: List<Task> ++ getTaskList(start: Date, end: Date): List<Task> + saveTask(Task task): void -+ removeTask(Task task): booleanUMLClass560210100100MainWindowUMLClass690230180130MainWindowControllerUMLClass60042021070NotificationServiceUMLClass990680240140<<Interface>> ++ removeTask(Task task): booleanUMLClass500265100100MainWindowUMLClass630285180130MainWindowControllerUMLClass54047521070NotificationServiceUMLClass1690565240140<<Interface>> WeatherService -- -+ getWeatherForecast: WeatherForecastUMLClass700680230100WeatherForecast ++ getWeatherForecast: WeatherForecastUMLClass1410445230100WeatherForecast -- -- updateTasks \ No newline at end of file +- updateTasksUMLClass138045260240Lifecycle +-- +- sowStart: Date {final} +- sowEnd: Date {final} +- plantStart: Date {final} +- plantEnd: Date {final} +- harvestStart: Date {final} +- harvestEnd: Date {final} +-- ++ Lifecylcle(sowStart: Date, sowEnd: Date, plantStart: Date, plantEnd: Date, harvestStart: ) ++ getSowStart(): Optional<Date> ++ getSowEnd(): Optional<Date> ++ getPlantStart(): Optional<Date> ++ getPlantEnd(): Optional<Date> ++ getHarvestStart(): Optional<Date> ++ getHarvestEnd(): Optional<Date> +Relation117011523060lt=<->>>>>210;10;10;40Text2306519070Note: +-- +{final, readOnly} omitted on public data fields in <<Record>> Entities for clarity +style=wordwrapRelation12308859030lt=<.70;10;10;10Relation109068530160lt=<.10;140;10;10UMLClass410785210120<<Record>> +UserPlanting +-- ++ plantId: long ++ isSown: boolean ++ startDate: Date ++ area: int \ No newline at end of file diff --git a/doc/plant_db-erm.uxf b/doc/plant_db-erm.uxf new file mode 100644 index 0000000..9983ebf --- /dev/null +++ b/doc/plant_db-erm.uxf @@ -0,0 +1,11 @@ +10UMLClass45018016060Plant +valign=centerUMLClass90014016060HardinessZone +valign=centerUMLClass29045016060Lifecycle +valign=centerUMLUseCase3201209040_plant_id_UMLUseCase1404109040_lc_id_UMLUseCase1090709040_zone_id_UMLUseCase430807040nameUMLUseCase5206010040descriptionUMLUseCase28019010040spacingUMLUseCase111015010040nameUMLUseCase24036010040sow_startUMLUseCase36036010040sow_endUMLUseCase49047010040plant_startUMLUseCase46054010040plant_endUMLUseCase36058010040harvest_startUMLUseCase22057010040harvest_endRelation37020010030lt=-10;10;80;10Relation3901308070lt=-13;18;60;50UMLUseCase31011011060layer=0UMLUseCase10806011060layer=0UMLUseCase13040011060layer=0Relation46010060100lt=-13;18;40;80Relation5608040120lt=-13;18;10;100Relation10509010070lt=-73;18;10;50Relation10501509040lt=-63;18;10;20Relation21043011060lt=-83;38;10;10Relation3003907080lt=-43;58;10;10Relation3803904080lt=-13;58;20;10Relation4404607050lt=-13;18;50;30Relation4404806080lt=-13;18;40;60Relation38049040110lt=-13;18;20;90Relation27049090100lt=-63;18;10;80UMLSpecialState72034022090PlantLifecycle +type=decisionRelation88029018090lt=-160;10;10;70UMLUseCase10402809040zone_idUMLUseCase10403309040plant_idUMLUseCase10404009040lc_idUMLUseCase1020270130110layer=0Relation92034014060lt=-120;10;10;40Relation90039016050lt=-140;30;10;10Relation44039034090lt=- +m1=m +m2=m10;60;320;10Relation590230220140lt=- +m1= 1 +m2=m10;10;200;120Relation850190140180lt=- +m1=1 +m2=m120;10;10;160 \ No newline at end of file