def __init__(self, sim_env, test=None):
        ''' Constructor
            
            Input:    sim_env          simpy.Environment                environment of this component                      
            Output:   -
        '''
        AbstractTransportLayer.__init__(self, sim_env, test=test)

        # project parameter
        self.STDTL_SEND_PROCESS = time.STDTL_SEND_PROCESS
        self.STDTL_RECEIVE_PROCESS = time.STDTL_RECEIVE_PROCESS
Example #2
0
    def __init__(self, sim_env, test=None):
        ''' Constructor
            
            Input:    sim_env          simpy.Environment                environment of this component                      
            Output:   -
        '''
        AbstractTransportLayer.__init__(self, sim_env, test=test)

        # project parameter
        self.STDTL_SEND_PROCESS = time.STDTL_SEND_PROCESS
        self.STDTL_RECEIVE_PROCESS = time.STDTL_RECEIVE_PROCESS
 def __init__(self, sim_env, MessageClass):
     ''' Constructor
         
         Input:    sim_env          simpy.Environment                environment of this component       
                   MessageClass     MessageClass                     class of the message that is used to wrap the messages
         Output:   -
     '''
     AbstractTransportLayer.__init__(self, sim_env)
     
     # initialize
     self.receiving_buffer = []  # list of [msg_identifier, msg_sticked_together] ->consciously not using simpy queue, no blocking when using this implementation
     self.buffer_receiver = {}  # key = str([msg_identifier, msg_sticked_together]) / str([sender_id, message_id])
     self.rec_msgs_expected_size = {}  # key = str([sender_id, message_id]) / expected msg size 
     self.rec_msg = {}  # key = str([sender_id, message_id]) / msg sticked together
     self.set_settings()
     
     # project parameter
     self.SEGTL_SEND_PROCESS = time.SEGTL_SEND_PROCESS
     self.SEGTL_RECEIVE_PROCESS = time.SEGTL_RECEIVE_PROCESS
Example #4
0
    def __init__(self, sim_env, MessageClass):
        ''' Constructor
            
            Input:    sim_env          simpy.Environment                environment of this component       
                      MessageClass     MessageClass                     class of the message that is used to wrap the messages
            Output:   -
        '''
        AbstractTransportLayer.__init__(self, sim_env)

        # initialize
        self.receiving_buffer = [
        ]  # list of [msg_identifier, msg_sticked_together] ->consciously not using simpy queue, no blocking when using this implementation
        self.buffer_receiver = {
        }  # key = str([msg_identifier, msg_sticked_together]) / str([sender_id, message_id])
        self.rec_msgs_expected_size = {
        }  # key = str([sender_id, message_id]) / expected msg size
        self.rec_msg = {
        }  # key = str([sender_id, message_id]) / msg sticked together
        self.set_settings()

        # project parameter
        self.SEGTL_SEND_PROCESS = time.SEGTL_SEND_PROCESS
        self.SEGTL_RECEIVE_PROCESS = time.SEGTL_RECEIVE_PROCESS