Пример #1
0
 def __init__ (self):
     SequentialScheduler.__init__(self)
 def __init__(self):
     SequentialScheduler.__init__(self)
Пример #3
0
 def __init__(self):
     ChimeraObject.__init__(self)
     self.machine = Machine(SequentialScheduler(), self)
     self.proxies = {}
     self.hostPort = ''
Пример #4
0
from chimera.core.event import event

from chimera.controllers.scheduler.machine import Machine
from chimera.controllers.scheduler.sequential import SequentialScheduler
from chimera.controllers.scheduler.circular import CircularScheduler
from chimera.controllers.scheduler.executor import ProgramExecutor
from chimera.controllers.scheduler.states import State
from chimera.controllers.scheduler.model import Session

from chimera.util.enum import Enum

print "controller"
SchedulingAlgorithm = Enum("SEQUENTIAL", "CIRCULAR")

SchedulingAlgorithms = {
    SchedulingAlgorithm.SEQUENTIAL: SequentialScheduler(),
    SchedulingAlgorithm.CIRCULAR: CircularScheduler()
}


class Scheduler(ChimeraObject):

    __config__ = {
        "telescope": "/Telescope/0",
        "camera": "/Camera/0",
        "filterwheel": "/FilterWheel/0",
        "focuser": "******",
        "dome": "/Dome/0",
        "autofocus": "/Autofocus/0",
        "point_verify": "/PointVerify/0",
        'site': '/Site/0',