Commit 38df6dc3 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

Operator has new input argument/ new attribute skillsList which describes the...

Operator has new input argument/ new attribute skillsList which describes the set of stations the resource can be attend to
parent 7f1f952b
......@@ -37,7 +37,7 @@ from ObjectResource import ObjectResource
class Operator(ObjectResource):
family='Operator'
def __init__(self, id, name, capacity=1, schedulingRule='FIFO'):
def __init__(self, id, name, capacity=1, schedulingRule='FIFO', skills=[]):
ObjectResource.__init__(self)
self.id=id
self.objName=name
......@@ -74,6 +74,8 @@ class Operator(ObjectResource):
self.schedule=[] # the working schedule of the resource, the objects the resource was occupied by and the corresponding times
# alias used by printRoute
self.alias=self.id
# list attribute that describes the skills of the operator in terms of stations he can operate
self.skillList=skills
@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