org.dcm4che.net
Interface AAssociateRQAC

All Superinterfaces:
PDU
All Known Subinterfaces:
AAssociateAC, AAssociateRQ

public interface AAssociateRQAC
extends PDU

Version:
1.0.0
Author:
gunter.zeilinger@tiani.com

Field Summary
 
Fields inherited from interface org.dcm4che.net.PDU
A_ABORT, A_ASSOCIATE_AC, A_ASSOCIATE_RJ, A_ASSOCIATE_RQ, A_RELEASE_RP, A_RELEASE_RQ, P_DATA_TF
 
Method Summary
 ExtNegotiation addExtNegotiation(ExtNegotiation extNeg)
          Adds specified Extended Negotiation Sub-item to this AssociateRQ.
 PresContext addPresContext(PresContext pc)
          Adds specified Presentation Context to this Associate RQ/AC.
 RoleSelection addRoleSelection(RoleSelection roleSelection)
          Adds specified SCP/SCU Role Selection Sub-Item to this AssociateRQ.
 void clearExtNegotiations()
          Removes all Extended Negotiation Sub-Items from this AssociateRQ.
 void clearPresContext()
          Removes all Presentation Context Items from this Associate RQ/AC.
 void clearRoleSelections()
          Removes all SCP/SCU Role Selection Sub-Items from this AssociateRQ.
 java.lang.String getApplicationContext()
          Returns Application-context-name.
 AsyncOpsWindow getAsyncOpsWindow()
          Returns Asynchronous Operations Window or null if no Asynchronous Operations Windo shall be negotiated.
 java.lang.String getCalledAET()
          Returns Destination DICOM Application Name.
 java.lang.String getCallingAET()
          Returns Source DICOM Application Name.
 ExtNegotiation getExtNegotiation(java.lang.String sopClass)
          Returns the Extended Negotiation Sub-Item, associated which the specified SOP Class.
 java.lang.String getImplClassUID()
          Returns Implementation Class UID in this AssociateRQ.
 java.lang.String getImplVersionName()
          Returns Implementation Version Name in this AssociateRQ or null if no Implementation Version Name shall be negotiated.
 int getMaxPDULength()
          Returns maximum size for received PDUs.
 PresContext getPresContext(int id)
          Returns the Presentation Context which the specified id.
 int getProtocolVersion()
          Returns Protocol-Version.
 RoleSelection getRoleSelection(java.lang.String sopClass)
          Returns the SCP/SCU Role Selection Sub-Item, associated which the specified SOP Class.
 java.util.Collection listExtNegotiations()
          Returns list of contained Extended Negotiation Sub-Items.
 java.util.Collection listPresContext()
          Returns an list of contained Presentation Context Items.
 java.util.Collection listRoleSelections()
          Returns list of the contained SCP/SCU Role Selection Sub-Items.
 int nextPCID()
          Returns next free valid Presentation-context-ID.
 ExtNegotiation removeExtNegotiation(java.lang.String sopClass)
          Removes the Extended Negotiation Sub-Item, associated which the specified SOP Class (if present).
 PresContext removePresContext(int id)
          Removes the Presentation Context which the specified id (if present).
 RoleSelection removeRoleSelection(java.lang.String sopClass)
          Removes the SCP/SCU Role Selection Sub-Item, associated which the specified SOP Class (if present).
 void setApplicationContext(java.lang.String uid)
          Sets Application-context-name.
 void setAsyncOpsWindow(AsyncOpsWindow aow)
          Sets Asynchronous Operations Window.
 void setCalledAET(java.lang.String calledAET)
          Sets Destination DICOM Application Name.
 void setCallingAET(java.lang.String callingAET)
          Sets Source DICOM Application Name.
 void setImplClassUID(java.lang.String uid)
          Sets Implementation Class UID in this AssociateRQ.
 void setImplVersionName(java.lang.String name)
          Sets Implementation Version Name in this AssociateRQ.
 void setMaxPDULength(int maxLength)
          Sets maximum size for received PDUs.
 void setProtocolVersion(int version)
          Sets Protocol-Version.
 
Methods inherited from interface org.dcm4che.net.PDU
toString, writeTo
 

Method Detail

getProtocolVersion

int getProtocolVersion()
Returns Protocol-Version.

Returns:
Protocol-Version.

setProtocolVersion

void setProtocolVersion(int version)
Sets Protocol-Version.

Parameters:
version - Protocol-Version.

getApplicationContext

java.lang.String getApplicationContext()
Returns Application-context-name. Default = { @link org.dcm4che.dict.UIDs#DICOMApplicationContextName }.

Returns:
Application-context-name.
See Also:
setApplicationContext(java.lang.String)

getCallingAET

java.lang.String getCallingAET()
Returns Source DICOM Application Name. Default = "ANONYMOUS".

Returns:
Source DICOM Application Name.
See Also:
getCalledAET(), setCallingAET(java.lang.String)

getCalledAET

java.lang.String getCalledAET()
Returns Destination DICOM Application Name. Default = "ANONYMOUS".

Returns:
Destination DICOM Application Name.
See Also:
getCallingAET(), setCalledAET(java.lang.String)

setApplicationContext

void setApplicationContext(java.lang.String uid)
Sets Application-context-name.

Parameters:
uid - Application-context-name
See Also:
getApplicationContext()

setCallingAET

void setCallingAET(java.lang.String callingAET)
Sets Source DICOM Application Name.

Parameters:
callingAET - Source DICOM Application Name.
See Also:
setCalledAET(java.lang.String), getCallingAET()

setCalledAET

void setCalledAET(java.lang.String calledAET)
Sets Destination DICOM Application Name.

Parameters:
calledAET - Destination DICOM Application Name.
See Also:
setCallingAET(java.lang.String), getCalledAET()

nextPCID

int nextPCID()
Returns next free valid Presentation-context-ID. Starting with 1,3,5,...

Returns:
next free Presentation-context-ID or -1, if maximum number of Presentation Context (128) is reached.

addPresContext

PresContext addPresContext(PresContext pc)
Adds specified Presentation Context to this Associate RQ/AC. If this AssociateRQ previously contained a Presentation Context with an equal Presentation-context-ID, the old will be replaced.

Parameters:
pc - Presentation Context to add.
Returns:
previous Presentation Context which was replaced or null if there was no previous Presentation Context with an equal Presentation-context-ID

removePresContext

PresContext removePresContext(int id)
Removes the Presentation Context which the specified id (if present).

Parameters:
id - Presentation-context-ID
Returns:
previous Presentation Context which was removed or null if there was no previous Presentation Context with this id

clearPresContext

void clearPresContext()
Removes all Presentation Context Items from this Associate RQ/AC.


getPresContext

PresContext getPresContext(int id)
Returns the Presentation Context which the specified id.

Parameters:
id - Presentation-context-ID
Returns:
Presentation Context which the specified id or null if this AssociateRQ contains no Presentation Context with this id.

listPresContext

java.util.Collection listPresContext()
Returns an list of contained Presentation Context Items. The sequence shall be equal to the order, in which the Presentation Context Items where added by addPresContext(org.dcm4che.net.PresContext).

Returns:
list of contained Presentation Context Items.

getImplClassUID

java.lang.String getImplClassUID()
Returns Implementation Class UID in this AssociateRQ.

Returns:
Implementation Class UID
See Also:
setImplClassUID(java.lang.String)

getImplVersionName

java.lang.String getImplVersionName()
Returns Implementation Version Name in this AssociateRQ or null if no Implementation Version Name shall be negotiated.

Returns:
Implementation Version Name or null if no Implementation Version Name shall be negotiated
See Also:
setImplVersionName(java.lang.String)

setImplClassUID

void setImplClassUID(java.lang.String uid)
Sets Implementation Class UID in this AssociateRQ.

Parameters:
uid - Implementation Class UID
See Also:
getImplClassUID()

setImplVersionName

void setImplVersionName(java.lang.String name)
Sets Implementation Version Name in this AssociateRQ.

Parameters:
name - Implementation Version Name
See Also:
Implementation Version Name or null if no Implementation Version Name shall be negotiated.

getMaxPDULength

int getMaxPDULength()
Returns maximum size for received PDUs. Default = 16352.

Returns:
maximum size for received PDUs
See Also:
setMaxPDULength(int)

setMaxPDULength

void setMaxPDULength(int maxLength)
Sets maximum size for received PDUs.

Parameters:
maxLength - maximum size for received PDUs
See Also:
getMaxPDULength()

getAsyncOpsWindow

AsyncOpsWindow getAsyncOpsWindow()
Returns Asynchronous Operations Window or null if no Asynchronous Operations Windo shall be negotiated. Default = null.

Returns:
Asynchronous Operations Window null if no Asynchronous Operations Windo shall be negotiated.
See Also:
setAsyncOpsWindow(org.dcm4che.net.AsyncOpsWindow)

setAsyncOpsWindow

void setAsyncOpsWindow(AsyncOpsWindow aow)
Sets Asynchronous Operations Window.

Parameters:
aow - Asynchronous Operations Window or null if no Asynchronous Operations Windo shall be negotiated.
See Also:
getAsyncOpsWindow()

addRoleSelection

RoleSelection addRoleSelection(RoleSelection roleSelection)
Adds specified SCP/SCU Role Selection Sub-Item to this AssociateRQ. If this AssociateRQ previously contained a SCP/SCU Role Selection Sub-Item associated with the same SOP Class, the old will be replaced.

Parameters:
roleSelection - SCP/SCU Role Selection Sub-Item to add.
Returns:
previous SCP/SCU Role Selection Sub-Item which was replaced or null if there was no previous SCP/SCU Role Selection Sub-Item associated with the same SOP Class

removeRoleSelection

RoleSelection removeRoleSelection(java.lang.String sopClass)
Removes the SCP/SCU Role Selection Sub-Item, associated which the specified SOP Class (if present).

Parameters:
sopClass - SOP Class UID
Returns:
previous SCP/SCU Role Selection Sub-Item which was removed or null if there was no previous SCP/SCU Role Selection Sub-Item associated with this SOP Class

clearRoleSelections

void clearRoleSelections()
Removes all SCP/SCU Role Selection Sub-Items from this AssociateRQ.


getRoleSelection

RoleSelection getRoleSelection(java.lang.String sopClass)
Returns the SCP/SCU Role Selection Sub-Item, associated which the specified SOP Class.

Parameters:
sopClass - SOP Class UID
Returns:
SCP/SCU Role Selection Sub-Item, or null if no SCP/SCU Role Selection Sub-Item is associated which the specified SOP Class UID.

listRoleSelections

java.util.Collection listRoleSelections()
Returns list of the contained SCP/SCU Role Selection Sub-Items. The sequence shall be equal to the order, in which the SCP/SCU Role Selection Sub-Items where added by addRoleSelection(org.dcm4che.net.RoleSelection).

Returns:
list of contained SCP/SCU Role Selection Sub-Items

addExtNegotiation

ExtNegotiation addExtNegotiation(ExtNegotiation extNeg)
Adds specified Extended Negotiation Sub-item to this AssociateRQ. If this AssociateRQ previously contained a Extended Negotiation Sub-Item associated with the same SOP Class, the old will be replaced.

Parameters:
extNeg - Extended Negotiation Sub-Item to add.
Returns:
previous Extended Negotiation Sub-Item which was replaced or null if there was no previous Extended Negotiation Sub-Item associated with the same SOP Class

removeExtNegotiation

ExtNegotiation removeExtNegotiation(java.lang.String sopClass)
Removes the Extended Negotiation Sub-Item, associated which the specified SOP Class (if present).

Parameters:
sopClass - SOP Class UID
Returns:
previous Extended Negotiation Sub-Item which was removed or null if there was no previous Extended Negotiation Sub-Item associated with this SOP Class

clearExtNegotiations

void clearExtNegotiations()
Removes all Extended Negotiation Sub-Items from this AssociateRQ.


getExtNegotiation

ExtNegotiation getExtNegotiation(java.lang.String sopClass)
Returns the Extended Negotiation Sub-Item, associated which the specified SOP Class.

Parameters:
sopClass - SOP Class UID
Returns:
Extended Negotiation Sub-Item, or null if no Extended Negotiation Sub-Item is associated which the specified SOP Class UID.

listExtNegotiations

java.util.Collection listExtNegotiations()
Returns list of contained Extended Negotiation Sub-Items. The sequence shall be equal to the order, in which the Extended Negotiation Sub-Items where added by addRoleSelection(org.dcm4che.net.RoleSelection).

Returns:
list the contained Extended Negotiation Sub-Items