Commit a2b09c3a authored by Jiahang Chen's avatar Jiahang Chen
Browse files

add some fml40 reports

parent b5fec4df
Pipeline #362446 passed with stages
in 51 seconds
......@@ -71,6 +71,7 @@
from ml.ml40.features.properties.values.documents.jobs.job_list import JobList
from ml.ml40.features.properties.values.documents.jobs.job_status import JobStatus
from ml.ml40.features.properties.values.documents.reports.report import Report
from ml.ml40.features.properties.values.documents.reports.production_data import ProductionData
from ml.fml40.features.properties.values.abstract_inventory import AbstractInventory
from ml.fml40.features.properties.values.assortment import Assortment
......@@ -89,20 +90,15 @@
from ml.fml40.features.properties.values.documents.jobs.fellung_support_job import FellingSupportJob
from ml.fml40.features.properties.values.documents.jobs.forwarding_job import ForwardingJob
from ml.fml40.features.properties.values.documents.jobs.log_transportation_job import LogTransportationJob
from ml.fml40.features.properties.values.documents.jobs.safety_felling_job import SafetyFellingJob
from ml.fml40.features.properties.values.documents.jobs.single_tree_felling_job import SingleTreeFellingJob
from ml.fml40.features.properties.values.documents.jobs.transportation_job import TransportationJob
from ml.fml40.features.properties.values.documents.reports.afforestation_suggestion import AfforestationSuggestion
from ml.fml40.features.properties.values.documents.reports.felling_method_suggestion import FellingMethodSuggestion
from ml.fml40.features.properties.values.documents.reports.felling_support_suggestion import FellingSupportSuggestion
from ml.fml40.features.properties.values.documents.reports.felling_tool import FellingTool
from ml.fml40.features.properties.values.documents.reports.log_measurement import LogMeasurement
from ml.fml40.features.properties.values.documents.reports.log_transportation_report import LogTransportationReport
from ml.fml40.features.properties.values.documents.reports.map_data import MapData
from ml.fml40.features.properties.values.documents.reports.moisture_prediction_report import MoisturePredictionReport
from ml.fml40.features.properties.values.documents.reports.passability_report import PassabilityReport
from ml.fml40.features.properties.values.documents.reports.production_data import ProductionData
from ml.fml40.features.properties.values.documents.reports.soil_moisture_measurement import SoilMoistureMeasurement
from ml.ml40.features.functionalities.accepts_jobs import AcceptsJobs
......
from ml.ml40.features.functionalities.functionality import Functionality
from ml.identifier import ID
from ml.fml40.features.properties.values.documents.reports.felling_support_suggestion import FellingSupportSuggestion
class GeneratesFellingSuggestions(Functionality):
......@@ -9,5 +8,5 @@ def __init__(self, name="", identifier=""):
name=name,
identifier=identifier)
def generateFellingSuggestion(self, tree_Id: ID) -> FellingSupportSuggestion:
def generateFellingSuggestion(self, tree_Id: ID):
pass
\ No newline at end of file
from ml.ml40.features.functionalities.functionality import Functionality
from ml.fml40.features.properties.values.documents.reports.production_data import ProductionData
from ml.ml40.features.properties.values.documents.reports.production_data import ProductionData
class ProvidesProductionData(Functionality):
......
from ml.ml40.features.functionalities.functionality import Functionality
from ml.fml40.features.properties.values.documents.jobs.felling_job import FellingJob
from ml.fml40.features.properties.values.documents.reports.felling_support_suggestion import FellingSupportSuggestion
class SupportsFelling(Functionality):
......@@ -9,5 +8,5 @@ def __init__(self, name="", identifier=""):
name=name,
identifier=identifier)
def supportFelling(self, job:FellingJob, suggestion: FellingSupportSuggestion):
def supportFelling(self, job:FellingJob, suggestion):
pass
......@@ -2,7 +2,7 @@
class FellingSupportJob(Job):
def __init__(self, name, ref_managing_actor):
super(FellingSupportJob, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor)
identifier=identifier)
\ No newline at end of file
......@@ -2,6 +2,7 @@
class ForwardingJob(Job):
def __init__(self, name, ref_managing_actor):
super(ForwardingJob, self).__init__(name=name,
ref_managing_actor=ref_managing_actor)
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
......@@ -2,11 +2,11 @@
class LogTransportationJob(Job):
def __init__(self, name, ref_managing_actor, woodPiles: list):
super(LogTransportationJob, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor)
self.__woodPiles = woodPiles
identifier=identifier)
self.__woodPiles = []
@property
def woodPiles(self):
......@@ -15,3 +15,4 @@ def woodPiles(self):
@woodPiles.setter
def woodPiles(self, value):
self.__woodPiles.append(value)
from ml.ml40.features.properties.values.documents.jobs.job import Job
class SafetyFellingJob(Job):
def __init__(self, name, ref_managing_actor):
super(SafetyFellingJob, self).__init__(
name=name,
ref_managing_actor=ref_managing_actor)
from ml.ml40.features.properties.values.documents.jobs.job import Job
from ml.identifier import ID
class SingleTreeFellingJob(Job):
def __init__(self, name, ref_managing_actor, tree: ID):
super(SingleTreeFellingJob, self).__init__(
name=name,
ref_managing_actor=ref_managing_actor)
self.tree = tree
from ml.ml40.features.properties.values.documents.jobs.job import Job
class TransportationJob(Job):
def __init__(self, name, ref_managing_actor):
super(TransportationJob, self).__init__(
name=name,
ref_managing_actor=ref_managing_actor)
......@@ -2,8 +2,7 @@
class AfforestationSuggestion(Report):
def __init__(self, name, ref_managing_actor):
super(AfforestationSuggestion, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
from ml.ml40.features.properties.values.documents.reports.report import Report
from ml.fml40.features.properties.values.documents.reports.felling_tool import (
FellingTool,
)
from ml.identifier import ID
class FellingMethodSuggestion(Report):
def __init__(
self,
name,
ref_managing_actor,
liftHeight: int,
tool: FellingTool,
torque: float,
tree: ID,
):
self.liftHeight = liftHeight
self.tool = tool
self.torque = torque
self.tree = tree
from ml.ml40.features.properties.values.documents.reports.report import Report
class FellingSupportSuggestion(Report):
def __init__(self, name, ref_managing_actor):
super(FellingSupportSuggestion, self).__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
......@@ -2,8 +2,7 @@
class LogMeasurement(Report):
def __init__(self, name, ref_managing_actor):
super(LogMeasurement, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
......@@ -2,8 +2,7 @@
class LogTransportationReport(Report):
def __init__(self, name, ref_managing_actor):
super(LogTransportationReport, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
from ml.ml40.features.properties.values.documents.reports.report import Report
class MapData(Report):
def __init__(self, name, ref_managing_actor):
super(MapData, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
......@@ -2,12 +2,8 @@
class MoisturePredictionReport(Report):
def __init__(self, name, ref_managing_actor):
super(MoisturePredictionReport, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
def to_json(self):
pass
......@@ -2,8 +2,7 @@
class PassabilityReport(Report):
def __init__(self, name, ref_managing_actor):
super(PassabilityReport, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
......@@ -2,8 +2,7 @@
class SoilMoistureMeasurement(Report):
def __init__(self, name, ref_managing_actor):
super(SoilMoistureMeasurement, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
......@@ -2,8 +2,7 @@
class ProductionData(Report):
def __init__(self, name, ref_managing_actor):
super(ProductionData, self).__init__(
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
ref_managing_actor=ref_managing_actor
)
identifier=identifier)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment