Job¶
-
class
scml.scml2019.
Job
(profile, time, line, action, contract, override)[source]¶ Bases:
object
Describes a job to be run on one production line of a
Factory
.Attributes Summary
The command type.
The sell contract associated with the command
Index of the line on which the job is to be scheduled.
Whether to override existing commands when the job is to be executed.
The process for run commands
The time the command is to be executed
Methods Summary
is_cancelling
(job)Determines if the given jobs cancels this one
Attributes Documentation
-
action
¶ The command type. For the current implementation it can be run/pause/resume/stop/cancel with
cancel
cancelling any other command type.
-
contract
¶ The sell contract associated with the command
-
line
¶ Index of the line on which the job is to be scheduled. Notice that it will be ignored for
run
actions.
-
override
¶ Whether to override existing commands when the job is to be executed.
-
profile
¶ The process for run commands
-
time
¶ The time the command is to be executed
Methods Documentation
-