Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fml40-reference-implementation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KWH40
fml40-reference-implementation
Merge requests
!23
Add parent relationship between thing and features
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add parent relationship between thing and features
parenting
into
master
Overview
0
Commits
5
Pipelines
0
Changes
181
Merged
GromeTT
requested to merge
parenting
into
master
3 years ago
Overview
0
Commits
5
Pipelines
0
Changes
181
Expand
0
0
Merge request reports
Compare
master
version 2
562820a4
3 years ago
version 1
8a141b18
3 years ago
master (base)
and
latest version
latest version
a6c062f1
5 commits,
3 years ago
version 2
562820a4
4 commits,
3 years ago
version 1
8a141b18
3 commits,
3 years ago
181 files
+
687
−
576
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
181
Search (e.g. *.vue) (Ctrl+P)
ml/fml40/features/functionalities/accepts_felling_jobs.py
+
6
−
6
Options
"""
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