pogona.BitstreamGenerator

class pogona.BitstreamGenerator[source]

Bases: pogona.component.Component

Attributes

ascii_sequence

If given, overrides bit_sequence with a bit sequence generated from the ASCII characters.

attached_modulation

bit_sequence

Which bit sequence to transmit.

component_name

Unique name of this component, unless it is "Generic component".

repetitions

Number of times the sequence is to be repeated.

start_time

At what simulated time in seconds to start the sequence transmission.

__init__()[source]

Methods

__init__()

finalize(simulation_kernel)

finished_stream_transmission(simulation_kernel)

initialize(simulation_kernel, init_stage)

Use InitStages to initialize this Component instance.

process_new_time_step(simulation_kernel, ...)

set_arguments(**kwargs)

Read arguments as key value pairs and set this component's member variables accordingly.

__init__()[source]
finalize(simulation_kernel: pogona.simulation_kernel.SimulationKernel)
finished_stream_transmission(simulation_kernel: pogona.simulation_kernel.SimulationKernel)[source]
initialize(simulation_kernel: pogona.simulation_kernel.SimulationKernel, init_stage: pogona.component.InitStages)[source]

Use InitStages to initialize this Component instance.

process_new_time_step(simulation_kernel: pogona.simulation_kernel.SimulationKernel, notification_stage: pogona.component.NotificationStages)[source]
set_arguments(**kwargs)[source]

Read arguments as key value pairs and set this component’s member variables accordingly. Validity of the argument values will be checked in initialize().

ascii_sequence = ''

If given, overrides bit_sequence with a bit sequence generated from the ASCII characters. A valid input would be b”HELLO_WORLD”, for example.

Overrides self.bit_sequence.

attached_modulation = ''
bit_sequence = '1'

Which bit sequence to transmit. A valid input would be “101010”, for example. Synchronization bits will not be inserted automatically!

Will be overridden if ascii_sequence is set.

component_name = 'Generic component'

Unique name of this component, unless it is “Generic component”.

id

Unique integer component ID

repetitions = 1

Number of times the sequence is to be repeated.

start_time = 0.0

At what simulated time in seconds to start the sequence transmission.