byteblowerll.byteblower.Stream

class byteblowerll.byteblower.Stream(*args, **kwargs)

A ByteBlower stream is an object representing a stream of ByteBlower frames (Frame) used for transmission on a ByteBlower port.

A ByteBlower stream contains the following data:

Frames
A list of Frame objects
NumberOfFrames
The number of frames the stream should transmit
InterFrameGap
The inter frame gap between 2 transmitted frames
InitialTimeToWait
An initial time to wait, if needed
TimingModifier
A timing modifier

Example

A typical stream usage flow
stream = port.TxStreamAdd()
stream.NumberOfFramesSet(1000)
stream.InterFrameGapSet(1000000)

frame = stream.FrameAdd()
# Configure the frame ...

stream.Start()
__init__(*args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

DescriptionGet(*args) Gets a textual description for the current object
FrameAdd() Adds a frame to the stream.
FrameDestroy(inFrame) Removes a frame from the stream
FrameGet() Returns list of frames on this stream.
GrowingSizeModifierAdd() Adds a Growing Size modifier to the stream
InitialTimeToWaitGet() Returns the time to wait before the first frame will be sent.
InitialTimeToWaitSet(initTimeToWait) Sets a delay before sending the first frame.
InterFrameGapGet() Returns the inter-frame gap for the stream.
InterFrameGapSet(interFrameGap) Sets the inter-frame gap for the stream.
ModifierFrameDestroy() Destroys a frame modifier (e.g.
ModifierFrameGet() Gets the configured frame modifiers
ModifierTimingDestroy() Removes a timing modifier
ModifierTimingGet() Gets the configured timing modifier
MultipleBurstModifierAdd() Sets a burst modifier on the stream.
NormalDistributionTimingModifierAdd() Sets a normal distribution modifier on the stream.
NumberOfFramesGet() Gets the configured number of frames the stream needs to transmit
NumberOfFramesSet(nof) Sets the number of frames the stream needs to transmit.
ParentGet() Returns the parent object.
PortGet() Returns the parent ByteBlower Port on which the stream was created
RandomSizeModifierAdd() Adds a Random Size modifier to the stream
Refresh() Retrieves the latest data from the server for this object.
ResultClear() Resets the current result counters to zero and empties the ResultHistory.
ResultGet() Returns the current result counters.
ResultHistoryGet() Returns the current History counters.
Start() Starts the stream.
StatusGet() Returns status information.
Stop() Stops the stream.
__init__(*args, **kwargs) Initialize self.

Attributes

thisown The membership flag