示例#1
0
 def __init__(self, sim_env, ecu_id=-1):
     ''' Constructor
         
         Input:    sim_env    simpy.Environment        environment of this component
                   ecu_id     string                   id of the corresponding AbstractECU
         Output:   -
     '''
     AbstractApplicationLayer.__init__(self, sim_env, ecu_id)
     
     self.sync = simpy.Store(self.sim_env, capacity=1)     
示例#2
0
 def __init__(self, sim_env, ecu_id=-1):
     ''' Constructor
         
         Input:    sim_env    simpy.Environment        environment of this component
                   ecu_id     string                   id of the corresponding AbstractECU
         Output:   -
     '''
     AbstractApplicationLayer.__init__(self, sim_env, ecu_id)
     
     # messages to send
     self.sending_messages = []
     
     # helper
     self._sync = simpy.Store(self.sim_env, capacity=1)             
     self._period_cnt = {}
     self._jitter = 1.0
     self.message_number = False