Skip to content
Snippets Groups Projects

Add parent relationship between thing and features

Merged GromeTT requested to merge parenting into master
181 files
+ 687
576
Compare changes
  • Side-by-side
  • Inline
Files
181
"""This module implements the class AcceptsFellingJobs."""
from ml.fml40.features.properties.values.documents.jobs.felling_job import \
FellingJob
from ml.fml40.features.properties.values.documents.jobs.felling_job import FellingJob
from ml.ml40.features.functionalities.accepts_jobs import AcceptsJobs
from ml.ml40.features.properties.values.documents.jobs.job_status import \
JobStatus
from ml.ml40.features.properties.values.documents.jobs.job_status import JobStatus
class AcceptsFellingJobs(AcceptsJobs):
"""This functionality signalizes that FellingJobs can be processed and
offers the possibility to remove and query it."""
def __init__(self, namespace="fml40", name="", identifier=""):
def __init__(self, namespace="fml40", name="", identifier="", parent=None):
"""Initializes the object.
:param name: Object name
:param identifier: Identifier
"""
super().__init__(namespace=namespace, name=name, identifier=identifier)
super().__init__(
namespace=namespace, name=name, identifier=identifier, parent=parent
)
def acceptJob(self, job: FellingJob) -> bool:
"""Accepts the given FellingJob job. Returns true if the job has been
Loading