Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
3c9e1ece
Commit
3c9e1ece
authored
Dec 03, 2020
by
GromeTT
Browse files
ENH: Added documentation for felly
parent
3399cab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ml/fml40/features/functionalities/fells.py
View file @
3c9e1ece
"""This module implements the class Fells."""
from
ml.ml40.features.functionalities.functionality
import
Functionality
from
ml.fml40.features.properties.values.tree_data
import
TreeData
from
ml.fml40.features.properties.values.documents.jobs.felling_job
import
FellingJob
class
Fells
(
Functionality
):
"""This functionality signalizes that FellingJobs can be processed and
offers the possibility to fell trees."""
def
__init__
(
self
,
name
=
""
,
identifier
=
""
):
"""Initializes the object.
:param name: Object name
:param identifier: Identifier
"""
super
().
__init__
(
name
=
name
,
identifier
=
identifier
)
def
executeFellingJob
(
self
,
job
:
FellingJob
):
"""Executes the given FellingJob.
:param FellingJob: Specification of the job
"""
print
(
"i am executing the felling job {}"
.
format
(
job
))
pass
def
fell
(
self
,
tree_data
:
TreeData
):
"""Fells the tree specified by tree_data
:param tree_data: Description of the tree.
"""
print
(
"i am felling the tree {}"
.
format
(
tree_data
))
pass
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment