Commit 6f930d36 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

ADD new fml40 values

parent 50cdcbd4
Pipeline #439137 passed with stages
in 55 seconds
......@@ -89,9 +89,13 @@
from ml.fml40.features.properties.values.abstract_inventory import AbstractInventory
from ml.fml40.features.properties.values.assortment import Assortment
from ml.fml40.features.properties.values.dbh import DBH
from ml.fml40.features.properties.values.fell_indicator import FellIndicator
from ml.fml40.features.properties.values.felling_period import FellingPeriod
from ml.fml40.features.properties.values.harvesting_parameter import HarvestingParameters
from ml.fml40.features.properties.values.harvested_volume import HarvestedVolume
from ml.fml40.features.properties.values.interfering_branches import InterferingBranches
from ml.fml40.features.properties.values.inventory_data import InventoryData
from ml.fml40.features.properties.values.overhang import Overhang
from ml.fml40.features.properties.values.stem_segment_properties import StemSegmentProperties
from ml.fml40.features.properties.values.thickness_class import ThicknessClass
from ml.fml40.features.properties.values.tilt import Tilt
......
from ml.ml40.features.properties.values.value import Value
class FellIndicator(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
self.__marked = None
self.__json_out = dict()
@property
def marked(self):
return self.__marked
@marked.setter
def marked(self, value):
self.__marked = value
def to_json(self):
self.__json_out = super().to_json()
if self.marked is not None:
self.__json_out["marked"] = self.__marked
return self.__json_out
\ No newline at end of file
from ml.ml40.features.properties.values.value import Value
class FellingPeriod(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
self.__from = None
self.__to = None
self.__json_out = dict()
@property
def _from(self):
return self.__from
@_from.setter
def _from(self, value):
self.__from = value
@property
def to(self):
return self.__to
@to.setter
def to(self, value):
self.__to = value
def to_json(self):
self.__json_out = super().to_json()
if self._from is not None:
self.__json_out["from"] = self.__from
if self.to is not None:
self.__json_out["to"] = self.__to
return self.__json_out
\ No newline at end of file
from ml.ml40.features.properties.values.value import Value
class InterferingBranches(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
self.__exist = None
self.__json_out = dict()
@property
def exist(self):
return self.__exist
@exist.setter
def exist(self, value):
self.__exist = value
def to_json(self):
self.__json_out = super().to_json()
if self.exist is not None:
self.__json_out["exist"] = self.__exist
return self.__json_out
\ No newline at end of file
from ml.ml40.features.properties.values.value import Value
class Overhang(Value):
def __init__(self, name="", identifier=""):
super().__init__(
name=name,
identifier=identifier)
self.__overhang = None
self.__json_out = dict()
@property
def overhang(self):
return self.__overhang
@overhang.setter
def overhang(self, value):
self.__overhang = value
def to_json(self):
self.__json_out = super().to_json()
if self.overhang is not None:
self.__json_out["overhang"] = self.__overhang
return self.__json_out
\ No newline at end of file
Markdown is supported
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