accepts_log_transportaition_jobs.py 932 Bytes
Newer Older
1
2
"""This module implements the class AcceptsLogTransportationJobs."""

Jiahang Chen's avatar
Jiahang Chen committed
3
4
from ml.ml40.features.functionalities.accepts_jobs import AcceptsJobs
from ml.fml40.features.properties.values.documents.jobs.log_transportation_job import LogTransportationJob
C. Albrecht's avatar
WIP  
C. Albrecht committed
5
6
7


class AcceptsLogTransportationJobs(AcceptsJobs):
8
9
    """This functionality signalizes that LogTransportationJobs can be
    processed."""
Jiahang Chen's avatar
Jiahang Chen committed
10
    def __init__(self, name="", identifier=""):
11
12
13
14
15
16
        """Initializes the object.

        :param name:  Object name
        :param identifier: Identifier

        """
Jiahang Chen's avatar
Jiahang Chen committed
17
18
19
        super().__init__(
            name=name,
            identifier=identifier)
C. Albrecht's avatar
WIP  
C. Albrecht committed
20
21

    def acceptJob(self, job: LogTransportationJob) -> bool:
22
23
24
25
26
27
28
        """Accepts the given LogTransportationJob. Returns true if the job has
        been accepted, otherwise returns false.

        :param job: LogTransportationJob to be accepted
        :rtype: bool

        """
C. Albrecht's avatar
WIP  
C. Albrecht committed
29
        pass