Package gov.nih.mipav.model.dicomcomm
Class DICOM_AAssociateAC
- java.lang.Object
-
- gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
-
- gov.nih.mipav.model.dicomcomm.DICOM_PDUType
-
- gov.nih.mipav.model.dicomcomm.DICOM_AAssociateRQ
-
- gov.nih.mipav.model.dicomcomm.DICOM_AAssociateAC
-
public class DICOM_AAssociateAC extends DICOM_AAssociateRQ
Implements a DICOM Association Acceptance PDU Type.
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
Fields Modifier and Type Field Description private java.util.Vector<DICOM_PresentationContextAccept>
presContexts
DOCUMENT ME!-
Fields inherited from class gov.nih.mipav.model.dicomcomm.DICOM_AAssociateRQ
appContext, calledAppTitle, callingAppTitle, protocolVersion, reserved2, reserved3, userInfo
-
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 Constructor Description DICOM_AAssociateAC()
Creates a new DICOM_AAssociateAC object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPresentationContextAccept(DICOM_PresentationContextAccept pca)
Adds the presentation context to the accepted context list.java.util.Vector<DICOM_PresentationContextAccept>
getPresentationContextes()
Returns the list of presentation contexts.int
length()
Calculates length of message.void
readBody(DICOM_Comms connection)
Reads the body of an association accept.void
resetPresentationContext()
Removes all presentation contextes from the list (vector).void
writeBody(DICOM_Comms connection)
Writes the body of the association accept.-
Methods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_AAssociateRQ
addPresentationContext, clearPresentationContexts, getApplicationContext, getCalledAppTitle, getCallingAppTitle, getPresentationContextFromID, getPresentationContextID, getPresentationContextID, getPresentationContexts, getUserInformation, setApplicationContext, setApplicationContextUID, setCalledAppTitle, setCallingAppTitle, setUserInformation
-
Methods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUType
calcSize, readHeader, writeHeader
-
Methods inherited from class gov.nih.mipav.model.dicomcomm.DICOM_PDUTypeBase
convertItemTypeToString, getUID, read, setUID, write
-
-
-
-
Field Detail
-
presContexts
private final java.util.Vector<DICOM_PresentationContextAccept> presContexts
DOCUMENT ME!
-
-
Method Detail
-
addPresentationContextAccept
public void addPresentationContextAccept(DICOM_PresentationContextAccept pca)
Adds the presentation context to the accepted context list.- Parameters:
pca
- accepted presentation context to be added the list (vector)
-
getPresentationContextes
public java.util.Vector<DICOM_PresentationContextAccept> getPresentationContextes()
Returns the list of presentation contexts.- Returns:
- the list (vector) of accepted presentation contextes.
-
length
public int length()
Calculates length of message.- Overrides:
length
in classDICOM_AAssociateRQ
- Returns:
- the length of the message including application context + presentation context(s) + userInfo
-
readBody
public void readBody(DICOM_Comms connection) throws DICOM_Exception
Reads the body of an association accept.- Overrides:
readBody
in classDICOM_AAssociateRQ
- Parameters:
connection
- the I/O Buffer to read from- Throws:
DICOM_Exception
- unknown PDUType
-
resetPresentationContext
public void resetPresentationContext()
Removes all presentation contextes from the list (vector).
-
writeBody
public void writeBody(DICOM_Comms connection) throws DICOM_Exception
Writes the body of the association accept.- Overrides:
writeBody
in classDICOM_AAssociateRQ
- Parameters:
connection
- the I/O Buffer to write to- Throws:
DICOM_Exception
- problem with writing association request
-
-