コード例 #1
0
 def initialize(self):
     Machine.initialize(self)
     # initiate the Broker responsible to control the request/release
     # initialize the operator pool if any
     if self.operatorPool != "None":
         self.operatorPool.initialize()
         self.broker = Broker(self)
         activate(self.broker, self.broker.run())
         for operator in self.operatorPool.operators:
             operator.coreObjectIds.append(self.id)
             operator.coreObjects.append(self)
     # the time that the machine started/ended its wait for the operator
     self.timeWaitForOperatorStarted = 0
     self.timeWaitForOperatorEnded = 0
     self.totalTimeWaitingForOperator = 0
     # the time that the machine started/ended its wait for the operator
     self.timeWaitForLoadOperatorStarted = 0
     self.timeWaitForLoadOperatorEnded = 0
     self.totalTimeWaitingForLoadOperator = 0
     # the time that the operator started/ended loading the machine
     self.timeLoadStarted = 0
     self.timeLoadEnded = 0
     self.totalLoadTime = 0
     # the time that the operator started/ended setting-up the machine
     self.timeSetupStarted = 0
     self.timeSetupEnded = 0
     self.totalSetupTime = 0
     # Current entity load/setup/loadOperatorwait/operatorWait related times
     self.operatorWaitTimeCurrentEntity = 0  # holds the time that the machine was waiting for the operator
     self.loadOperatorWaitTimeCurrentEntity = 0  # holds the time that the machine waits for operator to load the it
     self.loadTimeCurrentEntity = 0  # holds the time to load the current entity
     self.setupTimeCurrentEntity = 0  # holds the time to setup the machine before processing the current entity
コード例 #2
0
 def initialize(self):
     Machine.initialize(self)
     # initiate the Broker responsible to control the request/release
     # initialize the operator pool if any
     if (self.operatorPool != "None"):
         self.operatorPool.initialize()
         self.broker = Broker(self)
         activate(self.broker, self.broker.run())
         for operator in self.operatorPool.operators:
             operator.coreObjectIds.append(self.id)
             operator.coreObjects.append(self)
     # the time that the machine started/ended its wait for the operator
     self.timeWaitForOperatorStarted = 0
     self.timeWaitForOperatorEnded = 0
     self.totalTimeWaitingForOperator = 0
     # the time that the machine started/ended its wait for the operator
     self.timeWaitForLoadOperatorStarted = 0
     self.timeWaitForLoadOperatorEnded = 0
     self.totalTimeWaitingForLoadOperator = 0
     # the time that the operator started/ended loading the machine
     self.timeLoadStarted = 0
     self.timeLoadEnded = 0
     self.totalLoadTime = 0
     # the time that the operator started/ended setting-up the machine
     self.timeSetupStarted = 0
     self.timeSetupEnded = 0
     self.totalSetupTime = 0
     # Current entity load/setup/loadOperatorwait/operatorWait related times
     self.operatorWaitTimeCurrentEntity = 0  # holds the time that the machine was waiting for the operator
     self.loadOperatorWaitTimeCurrentEntity = 0  # holds the time that the machine waits for operator to load the it
     self.loadTimeCurrentEntity = 0  # holds the time to load the current entity
     self.setupTimeCurrentEntity = 0  # holds the time to setup the machine before processing the current entity
コード例 #3
0
ファイル: main.py プロジェクト: MPalonek/app-builder
def test(machine_info, constants, branch):
    machine = Machine(machine_info, constants)
    machine.initialize()
    initial_branch = machine.get_active_branch()
    branch_created_flag = False
    if not machine.switch_branch(branch):
        branch_created_flag = machine.create_branch(branch)
        machine.switch_branch(branch)
    machine.pull_changes_from_remote_branch(branch)
    machine.build_application()
    machine.copy_log_to_log_dir()
    machine.switch_branch(initial_branch)
    if branch_created_flag:
        machine.remove_branch(branch)
    machine.power_down_virtual_machine()
    return True
コード例 #4
0
ファイル: MachineJobShop.py プロジェクト: PanosBarlas/dream
 def initialize(self):
     from Globals import G
     self.previous=G.ObjList
     self.next=[]
     Machine.initialize(self)    #run default behaviour
コード例 #5
0
 def initialize(self):
     from Globals import G
     self.previous=G.ObjList
     self.next=[]
     Machine.initialize(self)    #run default behaviour