Package gov.nih.mipav.model.dicomcomm
Class DICOM_AAssociateRQ
java.lang.Object
gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
gov.nih.mipav.model.dicomcomm.DICOM_PDUType
gov.nih.mipav.model.dicomcomm.DICOM_AAssociateRQ
- Direct Known Subclasses:
DICOM_AAssociateAC
DICOM Association Request PDU Type class.
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
Java Dicom Package (com.zmed.dicom) Copyright (c) 1996-1997 Z Medical Imaging Systems, Inc. This software is provided, as is, for non-commercial educational purposes only. Use or incorporation of this software or derivative works in commercial applications requires written consent from Z Medical Imaging Systems, Inc. Z MEDICAL IMAGING SYSTEMS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR CONFORMANCE TO ANY SPECIFICATION OR STANDARD. Z MEDICAL IMAGING SYSTEMS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING OR MODIFYING THIS SOFTWARE OR ITS DERIVATIVES. ============================================================================= This software package is implemented similarly to the UC Davis public domain C++ DICOM implementation which contains the following copyright notice: Copyright (C) 1995, University of California, Davis THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND THE UNIVERSITY OF CALIFORNIA DOES NOT MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH THE USER. Copyright of the software and supporting documentation is owned by the University of California, and free access is hereby granted as a license to use this software, copy this software and prepare derivative works based upon this software. However, any distribution of this software source code or supporting documentation or derivative works (source code and supporting documentation) must include this copyright notice. The UC Davis C++ source code is publicly available from the following anonymous ftp site: ftp://imrad.ucdmc.ucdavis.edu/pub/dicom/UCDMC/
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DICOM_PDUItemTypeApplication context PDU type.protected byte[]The called application entity name, must be 16 or less characters.protected byte[]The calling application entity name, must be 16 or less characters.protected Vector<DICOM_PresentationContext> A list of presentation context objects.protected intProtocol version identifier.protected byte[]Reserved by array.protected byte[]Reserved by array.protected DICOM_UserInformationUser information structure.Fields inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
itemType, length, PDUTYPE_AAbortRQ, PDUTYPE_AAssociateAC, PDUTYPE_AAssociateRJ, PDUTYPE_AAssociateRQ, PDUTYPE_AbstractSyntax, PDUTYPE_ApplicationContext, PDUTYPE_AReleaseRQ, PDUTYPE_AReleaseRSP, PDUTYPE_AsyncOpWindowSubItem, PDUTYPE_ImplementationClass, PDUTYPE_ImplementationVersion, PDUTYPE_MaximumSubLength, PDUTYPE_PDataTF, PDUTYPE_PresentationContext, PDUTYPE_PresentationContextAccept, PDUTYPE_SCPSCURoleSelect, PDUTYPE_TransferSyntax, PDUTYPE_UNKNOWN, PDUTYPE_UserInformation, RESERVED, reserved1, reserved4, UID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a presentation object to a vector list of presentation contexts.voidRemoves all elements from the presentation contexts vector list.Accessor to return the application context.byte[]Accessor to return the called application entity title.byte[]Accessor to return the calling application entity title.getPresentationContextFromID(int ID) Gets a presentation context ID for a given abstrax syntax.bytegetPresentationContextID(String absUID) Gets a presentation context ID for a given abstrax syntax.bytegetPresentationContextID(String transferSyntax, String absUID) Gets a presentation context ID for a given abstrax syntax.Accessor to return the presentation context.Accessor to return User Information.intlength()Calculates length of message.voidreadBody(DICOM_Comms connection) Reads the body of an association request.voidsetApplicationContext(DICOM_PDUItemType appContext) Sets the application context.voidSets the application context's UID.voidsetCalledAppTitle(byte[] calledApp) Sets the called application entity title.voidsetCallingAppTitle(byte[] callingApp) Sets the calling application entity title.voidsetUserInformation(DICOM_UserInformation userInformation) Sets the user information.voidwriteBody(DICOM_Comms connection) Writes the body of the association request.Methods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUType
calcSize, readHeader, writeHeaderMethods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
convertItemTypeToString, getUID, read, setUID, write
-
Field Details
-
appContext
Application context PDU type. -
calledAppTitle
protected byte[] calledAppTitleThe called application entity name, must be 16 or less characters. -
callingAppTitle
protected byte[] callingAppTitleThe calling application entity name, must be 16 or less characters. -
presContexts
A list of presentation context objects. -
protocolVersion
protected int protocolVersionProtocol version identifier. -
reserved2
protected byte[] reserved2Reserved by array. -
reserved3
protected byte[] reserved3Reserved by array. -
userInfo
User information structure.
-
-
Constructor Details
-
DICOM_AAssociateRQ
public DICOM_AAssociateRQ()Creates a new DICOM_AAssociateRQ object.
-
-
Method Details
-
addPresentationContext
Adds a presentation object to a vector list of presentation contexts.- Parameters:
pc- presentation context object to be added
-
clearPresentationContexts
public void clearPresentationContexts()Removes all elements from the presentation contexts vector list. -
getApplicationContext
Accessor to return the application context.- Returns:
- the application context
-
getCalledAppTitle
public byte[] getCalledAppTitle()Accessor to return the called application entity title.- Returns:
- the called application's entity title in an array of bytes (invalid input: '<'= 16)
-
getCallingAppTitle
public byte[] getCallingAppTitle()Accessor to return the calling application entity title.- Returns:
- the calling application's entity title in an array of bytes (invalid input: '<'= 16)
-
getPresentationContextFromID
Gets a presentation context ID for a given abstrax syntax.- Parameters:
ID- the abstract syntax UID- Returns:
- the presentation context ID
-
getPresentationContextID
Gets a presentation context ID for a given abstrax syntax.- Parameters:
absUID- the abstract syntax UID- Returns:
- the presentation context ID
- Throws:
DICOM_Exception- unknown presentation context ID
-
getPresentationContextID
Gets a presentation context ID for a given abstrax syntax.- Parameters:
absUID- the abstract syntax UID- Returns:
- the presentation context ID
- Throws:
DICOM_Exception- unknown presentation context ID
-
getPresentationContexts
Accessor to return the presentation context.- Returns:
- the application context
-
getUserInformation
Accessor to return User Information.- Returns:
- the user information for this PDU type
-
length
public int length()Calculates length of message.- Overrides:
lengthin classDICOM_PDUTypeBase- Returns:
- the length of the message including application context + presentation context(s) + userInfo
-
readBody
Reads the body of an association request.- Specified by:
readBodyin classDICOM_PDUTypeBase- Parameters:
connection- the I/O Buffer to read from- Throws:
DICOM_Exception- unknown PDUType
-
setApplicationContext
Sets the application context.- Parameters:
appContext- the application context
-
setApplicationContextUID
Sets the application context's UID.- Parameters:
UID- the application context's UID
-
setCalledAppTitle
public void setCalledAppTitle(byte[] calledApp) Sets the called application entity title.- Parameters:
calledApp- the called application entity title
-
setCallingAppTitle
public void setCallingAppTitle(byte[] callingApp) Sets the calling application entity title.- Parameters:
callingApp- the calling application entity title
-
setUserInformation
Sets the user information.- Parameters:
userInformation- the user information
-
writeBody
Writes the body of the association request.- Specified by:
writeBodyin classDICOM_PDUTypeBase- Parameters:
connection- the I/O Buffer to write to- Throws:
DICOM_Exception- problem with writing association request
-