From 7d1ac383ead4f27455ad6e4b92fa9f30d12f5d04 Mon Sep 17 00:00:00 2001 From: matze Date: Tue, 12 Nov 2024 16:49:05 +0100 Subject: [PATCH] klassendiagramm --- .gitignore | 3 +- neofarm/klassendiagramm/classes_neofarm.svg | 920 +++++++++++++++++++ neofarm/klassendiagramm/generate.sh | 2 + neofarm/klassendiagramm/packages_neofarm.svg | 67 ++ 4 files changed, 990 insertions(+), 2 deletions(-) create mode 100644 neofarm/klassendiagramm/classes_neofarm.svg create mode 100755 neofarm/klassendiagramm/generate.sh create mode 100644 neofarm/klassendiagramm/packages_neofarm.svg diff --git a/.gitignore b/.gitignore index c4b9d06..ed76d61 100644 --- a/.gitignore +++ b/.gitignore @@ -177,5 +177,4 @@ profile_default/ ipython_config.py # Remove previous ipynb_checkpoints -# git rm -r .ipynb_checkpoints/ - +# git rm -r .ipynb_checkpoints/ \ No newline at end of file diff --git a/neofarm/klassendiagramm/classes_neofarm.svg b/neofarm/klassendiagramm/classes_neofarm.svg new file mode 100644 index 0000000..8c3e44a --- /dev/null +++ b/neofarm/klassendiagramm/classes_neofarm.svg @@ -0,0 +1,920 @@ + + + + + + +classes_neofarm + + + +log.Activity + +Activity + + + + + + +log.Log + +Log + +assets : RelationField +equipment : RelationField +isMovement : AttributeField +location : RelationField +name : AttributeField +plant +quantities : RelationField +timestamp : AttributeField + + + + + +log.Activity->log.Log + + + + + +asset.Asset + +Asset + +location : RelationField +name : AttributeField +timestamp : AttributeField + +get_logs_of_type(type) + + + +taxonomy.Crop + +Crop + + + + + + +taxonomy.Taxonomy + +Taxonomy + +name : AttributeField + + + + + +taxonomy.Crop->taxonomy.Taxonomy + + + + + +asset.Equipment + +Equipment + + + + + + +asset.Equipment->asset.Asset + + + + + +log.Harvest + +Harvest + + + + + + +log.Harvest->log.Log + + + + + +log.Input + +Input + + + + + + +log.Input->log.Log + + + + + +asset.Land + +Land + +json_geometry : AttributeField + + + + + +asset.Land->asset.Asset + + + + + +taxonomy.LogCategory + +LogCategory + + + + + + +taxonomy.LogCategory->taxonomy.Taxonomy + + + + + +log.Maintenance + +Maintenance + + + + + + +log.Maintenance->log.Log + + + + + +asset.Material + +Material + +crop : RelationField + + + + + +asset.Material->asset.Asset + + + + + +quantity.Material + +Material + + + + + + +quantity.Quantity + +Quantity + +inventory_adjustment : AttributeField +inventory_asset : RelationField +json_value : AttributeField +measure : AttributeField +units : RelationField +value + + + + + +quantity.Material->quantity.Quantity + + + + + +taxonomy.MaterialType + +MaterialType + + + + + + +taxonomy.MaterialType->taxonomy.Taxonomy + + + + + +log.Medical + +Medical + + + + + + +log.Medical->log.Log + + + + + +asset.Asset.Meta + +Meta + +type : str + + + + + +asset.Land.Meta + +Meta + +name : str +path +type + + + + + +asset.Land.Meta->asset.Asset.Meta + + + + + +asset.Plant.Meta + +Meta + +name : str +path +type + + + + + +asset.Plant.Meta->asset.Asset.Meta + + + + + +asset.Equipment.Meta + +Meta + +name : str +path +type + + + + + +asset.Equipment.Meta->asset.Asset.Meta + + + + + +asset.Material.Meta + +Meta + +name : str +path +type + + + + + +asset.Material.Meta->asset.Asset.Meta + + + + + +asset.Seed.Meta + +Meta + +name : str +path +type + + + + + +asset.Seed.Meta->asset.Asset.Meta + + + + + +asset.Product.Meta + +Meta + +name : str +path +type + + + + + +asset.Product.Meta->asset.Asset.Meta + + + + + +log.Log.Meta + +Meta + +type : str + + + + + +log.Activity.Meta + +Meta + +name : str +path +type + + + + + +log.Activity.Meta->log.Log.Meta + + + + + +log.Maintenance.Meta + +Meta + +name : str +path +type + + + + + +log.Maintenance.Meta->log.Log.Meta + + + + + +log.Purchase.Meta + +Meta + +name : str +path +type + + + + + +log.Purchase.Meta->log.Log.Meta + + + + + +log.Seeding.Meta + +Meta + +name : str +path +type + + + + + +log.Seeding.Meta->log.Log.Meta + + + + + +log.Input.Meta + +Meta + +name : str +path +type + + + + + +log.Input.Meta->log.Log.Meta + + + + + +log.Medical.Meta + +Meta + +name : str +path +type + + + + + +log.Medical.Meta->log.Log.Meta + + + + + +log.Harvest.Meta + +Meta + +name : str +path +type + + + + + +log.Harvest.Meta->log.Log.Meta + + + + + +log.Sale.Meta + +Meta + +name : str +path +type + + + + + +log.Sale.Meta->log.Log.Meta + + + + + +quantity.Quantity.Meta + +Meta + +type : str + + + + + +quantity.Standard.Meta + +Meta + +name : str +path +type + + + + + +quantity.Standard.Meta->quantity.Quantity.Meta + + + + + +quantity.Price.Meta + +Meta + +name : str +path +type + + + + + +quantity.Price.Meta->quantity.Quantity.Meta + + + + + +quantity.Material.Meta + +Meta + +name : str +path +type + + + + + +quantity.Material.Meta->quantity.Quantity.Meta + + + + + +taxonomy.Taxonomy.Meta + +Meta + +type : str + + + + + +taxonomy.Crop.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.Crop.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.LogCategory.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.LogCategory.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.MaterialType.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.MaterialType.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.PlantType.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.PlantType.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.ProductType.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.ProductType.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.Season.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.Season.Meta->taxonomy.Taxonomy.Meta + + + + + +taxonomy.Unit.Meta + +Meta + +name : str +path +type + + + + + +taxonomy.Unit.Meta->taxonomy.Taxonomy.Meta + + + + + +my_meta.MyMeta + +MyMeta + + +get_type_and_path(name) +set_api(api) + + + +asset.Plant + +Plant + +crop : RelationField +season : RelationField + + + + + +asset.Plant->asset.Asset + + + + + +taxonomy.PlantType + +PlantType + + + + + + +taxonomy.PlantType->taxonomy.Taxonomy + + + + + +quantity.Price + +Price + +json_total_price : AttributeField +json_unit_price : AttributeField +total_price +unit_price + + + + + +quantity.Price->quantity.Quantity + + + + + +asset.Product + +Product + +product_type : RelationField + + + + + +asset.Product->asset.Asset + + + + + +taxonomy.ProductType + +ProductType + + + + + + +taxonomy.ProductType->taxonomy.Taxonomy + + + + + +log.Purchase + +Purchase + + + + + + +log.Purchase->log.Log + + + + + +log.Sale + +Sale + + + + + + +log.Sale->log.Log + + + + + +taxonomy.Season + +Season + + + + + + +taxonomy.Season->taxonomy.Taxonomy + + + + + +asset.Seed + +Seed + +crop : RelationField +season : RelationField + + + + + +asset.Seed->asset.Asset + + + + + +log.Seeding + +Seeding + + + + + + +log.Seeding->log.Log + + + + + +quantity.Standard + +Standard + + + + + + +quantity.Standard->quantity.Quantity + + + + + +taxonomy.Unit + +Unit + + + + + + +taxonomy.Unit->taxonomy.Taxonomy + + + + + diff --git a/neofarm/klassendiagramm/generate.sh b/neofarm/klassendiagramm/generate.sh new file mode 100755 index 0000000..6fd722c --- /dev/null +++ b/neofarm/klassendiagramm/generate.sh @@ -0,0 +1,2 @@ +#/bin/sh +pyreverse -o svg -p neofarm ../orm/*.py \ No newline at end of file diff --git a/neofarm/klassendiagramm/packages_neofarm.svg b/neofarm/klassendiagramm/packages_neofarm.svg new file mode 100644 index 0000000..6412492 --- /dev/null +++ b/neofarm/klassendiagramm/packages_neofarm.svg @@ -0,0 +1,67 @@ + + + + + + +packages_neofarm + + + +asset + +asset + + + +my_meta + +my_meta + + + +asset->my_meta + + + + + +log + +log + + + +log->my_meta + + + + + +quantity + +quantity + + + +quantity->my_meta + + + + + +taxonomy + +taxonomy + + + +taxonomy->my_meta + + + + +