def get_output_channel(self, output_channel_name):
        """
        get_output_channel will create a new channel object if necessary.
        """
        if not output_channel_name in self.output_channels.keys():
            self.output_channels[output_channel_name] = Channel()
        self.output_channels[output_channel_name].add_producer(self)
        return self.output_channels[output_channel_name]
def get_output_channel ( self , output_channel_name ) : if not output_channel_name in self . output_channels . keys ( ) : self . output_channels [ output_channel_name ] = Channel ( ) self . output_channels [ output_channel_name ] . add_producer ( self ) return self . output_channels [ output_channel_name ]
get_output_channel will create a new channel object if necessary.