예제 #1
0
파일: __init__.py 프로젝트: shenely/PyGS
 def __init__(self,application,name):
     BaseObject.__init__(self)
     
     self.application = application
     self.name = name
     
     self.context = zmq.Context(1)
예제 #2
0
파일: __init__.py 프로젝트: shenely/PyGS
 def __init__(self,segment,name):
     BaseObject.__init__(self)
     
     self.segment = segment
     self.name = name
     
     self.application = segment.application
     self.context = segment.context
예제 #3
0
파일: base.py 프로젝트: dcvan24/cachalot
 def __init__(self, id, env, network):
     BaseObject.__init__(self, id)
     Runnable.__init__(self, env)
     Loggable.__init__(self)
     self._network = network
     self._id = id
     self._neighbors = {}
     self._data = simpy.Store(env)
     self._msg = simpy.Store(env)
예제 #4
0
파일: __init__.py 프로젝트: shenely/PyGS
 def __init__(self,epoch,*args,**kwargs):
     BaseObject.__init__(self,*args,**kwargs)
     
     assert isinstance(epoch,datetime)
     
     self.epoch = epoch