pynetdicom.pdu_primitives.AsynchronousOperationsWindowNegotiation¶
- class pynetdicom.pdu_primitives.AsynchronousOperationsWindowNegotiation[source]¶
Representation of the Asynchronous Operations Window Negotiation primitive.
Allows peer AEs to negotiate the maximum number of outstanding operation or sub-operation requests. This negotiation is optional.
The Asynchronous Operations Window is optional and there may only be a single
AsynchronousOperationsWindowNegotiation
itemIdentical for both A-ASSOCIATE-RQ and A-ASSOCIATE-AC.
Examples
>>> from pynetdicom.pdu_primitives import ( ... AsynchronousOperationsWindowNegotiation ... ) >>> item = AsynchronousOperationsWindowNegotiation() >>> item.maximum_number_operations_invoked = 2 >>> item.maximum_number_operations_performed = 1
References
DICOM Standard, Part 7, Annex D.3.3.3
Methods
__init__
()Convert the primitive to a PDU item ready to be encoded.
Attributes
Get or set the Maximum Number Operations Invoked.
Get or set the Maximum Number Operations Performed.
- from_primitive() AsynchronousOperationsWindowSubItem [source]¶
Convert the primitive to a PDU item ready to be encoded.
- Returns:
item
- Return type:
- property maximum_number_operations_invoked: int¶
Get or set the Maximum Number Operations Invoked.
- Parameters:
value (int) – The maximum number of operations invoked
- Raises:
TypeError – If value is not an int
ValueError – If value is less than 0
- property maximum_number_operations_performed: int¶
Get or set the Maximum Number Operations Performed.
- Parameters:
value (int) – The maximum number of operations performed
- Raises:
TypeError – If value is not an int
ValueError – If value is less than 0