RequestBundle

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph cluster_builtins { graph [label=builtins]; node [color=1]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } subgraph "cluster_supriya.commands" { graph [label="supriya.commands"]; node [color=2]; "supriya.commands.RequestBundle.RequestBundle" [URL="../api/supriya/commands/RequestBundle.html#supriya.commands.RequestBundle.RequestBundle", color=black, fontcolor=white, label="Request\nBundle", target=_top]; "supriya.commands.Requestable.Requestable" [URL="../api/supriya/commands/Requestable.html#supriya.commands.Requestable.Requestable", label=Requestable, target=_top]; "supriya.commands.Requestable.Requestable" -> "supriya.commands.RequestBundle.RequestBundle"; } subgraph "cluster_supriya.system" { graph [label="supriya.system"]; node [color=3]; "supriya.system.SupriyaObject.SupriyaObject" [URL="../api/supriya/commands/../system/SupriyaObject.html#supriya.system.SupriyaObject.SupriyaObject", label="Supriya\nObject", target=_top]; "supriya.system.SupriyaValueObject.SupriyaValueObject" [URL="../api/supriya/commands/../system/SupriyaValueObject.html#supriya.system.SupriyaValueObject.SupriyaValueObject", label="Supriya\nValue\nObject", target=_top]; "supriya.system.SupriyaObject.SupriyaObject" -> "supriya.system.SupriyaValueObject.SupriyaValueObject"; } "builtins.object" -> "supriya.system.SupriyaObject.SupriyaObject"; "supriya.system.SupriyaValueObject.SupriyaValueObject" -> "supriya.commands.Requestable.Requestable"; }

class supriya.commands.RequestBundle.RequestBundle(timestamp=None, contents=None)[source]

A Request bundle.

>>> request_one = supriya.commands.BufferAllocateRequest(
...     buffer_id=23,
...     frame_count=512,
...     channel_count=1,
...     )
>>> request_two = supriya.commands.BufferAllocateRequest(
...     buffer_id=24,
...     frame_count=512,
...     channel_count=1,
...     )
>>> request_bundle = supriya.commands.RequestBundle(
...     timestamp=10.5,
...     contents=[request_one, request_two],
...     )
>>> request_bundle.to_osc(True)
OscBundle(
    contents=(
        OscMessage('/b_alloc', 23, 512, 1),
        OscMessage('/b_alloc', 24, 512, 1),
        ),
    timestamp=10.5,
    )
>>> request_bundle.to_list(True)
[10.5, [['/b_alloc', 23, 512, 1], ['/b_alloc', 24, 512, 1]]]

Attributes Summary

condition
contents
timestamp
to_datagram
to_list
to_osc

Special methods

(SupriyaValueObject).__copy__(*args)
(SupriyaValueObject).__eq__(expr)

Return self==value.

(SupriyaValueObject).__hash__()

Return hash(self).

(SupriyaObject).__repr__()

Return repr(self).


Methods

(Requestable).communicate(server=None, sync=True, timeout=1.0, apply_local=True)
to_datagram()[source]
to_list(with_request_name=False)[source]
to_osc(with_request_name=False)[source]

Read-only properties

condition
contents
(Requestable).response
timestamp