コード例 #1
0
    def __init__(self, name="FadingModel", component=None):
        """
        CTOR

        @param name Block name.
        @param component The decorator component.
        """

        AbstractChannel.__init__(self, name=name, component=component)
コード例 #2
0
ファイル: awgn.py プロジェクト: ComputerNetworks-UFRGS/OpERA
    def __init__(self, name="AWGNChannel", bits_per_symbol = 2, component=None, ebn0=10):
        """
        CTOR
        @param name Block name.
        @param component The decorator component.
        @param ebn0
        """

        # ::TRICKY:: Initialization must be AFTER declaring _ch_effect.
        AbstractChannel.__init__(self, name=name, component=component)

	self.bits_per_symbol = bits_per_symbol
        self.set_ebn0(ebn0)