Commit d5c1a0c2 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

new argument .available for operator - boolean that controls the availability...

new argument .available for operator - boolean that controls the availability of the operator at the start of the simulation
parent 2ee7a623
......@@ -37,7 +37,7 @@ from ObjectResource import ObjectResource
class Operator(ObjectResource):
family='Operator'
def __init__(self, id, name, capacity=1, schedulingRule='FIFO', skills=[]):
def __init__(self, id, name, capacity=1, schedulingRule='FIFO', skills=[], available=True):
ObjectResource.__init__(self)
self.id=id
self.objName=name
......@@ -76,6 +76,8 @@ class Operator(ObjectResource):
self.alias=self.id
# list attribute that describes the skills of the operator in terms of stations he can operate
self.skillsList=skills
# flag to show if the resource is available at the start of simulation
self.available=available
@staticmethod
def getSupportedSchedulingRules():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment