Package gov.nih.mipav.model.dicomcomm
Class DICOM_Verification
- java.lang.Object
-
- gov.nih.mipav.model.dicomcomm.DICOM_Verification
-
public class DICOM_Verification extends java.lang.Object
This is the DICOM verification class that defines functions to perform Verification to a DICOM image file archive such as the Kodak PACS image file server located in NIH's Clinical Center. ("Pings" the server)
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/
- Author:
- Sunita Munjal, Matthew McAuliffe, Ph.D.
-
-
Field Summary
Fields Modifier and Type Field Description DICOM_CRequest
cEchoRQ
Echo request object.DICOM_CResponse
cEchoRSP
Echo response object.private ViewJFrameDICOMQuery
frame
GUI frame where all DICOM messages are displayed.private DICOM_PDUService
pdu
PDU service object.private java.lang.String
remoteAETitle
The remote servers AE title.java.lang.String
UID
Unique identifier.
-
Constructor Summary
Constructors Constructor Description DICOM_Verification(java.lang.String _remoteAETitle, ViewJFrameDICOMQuery _frame)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
displayError(java.lang.String error)
Displays an error in a frame.void
read(DICOM_PDUService pdu, DICOM_Object dco)
Reads the verification request and responds with (write) a ECHO_SUCESS.void
verify()
Initiate verification of connection between client and server (i.e. ping).private void
verifySOPClass(DICOM_Object dco)
Verifies the SOP class UID.void
write(DICOM_PDUService pdu)
Writes the UID_Verification via the PDU service.
-
-
-
Field Detail
-
cEchoRQ
public DICOM_CRequest cEchoRQ
Echo request object.
-
cEchoRSP
public DICOM_CResponse cEchoRSP
Echo response object.
-
UID
public java.lang.String UID
Unique identifier.
-
frame
private final ViewJFrameDICOMQuery frame
GUI frame where all DICOM messages are displayed.
-
pdu
private DICOM_PDUService pdu
PDU service object.
-
remoteAETitle
private final java.lang.String remoteAETitle
The remote servers AE title.
-
-
Constructor Detail
-
DICOM_Verification
public DICOM_Verification(java.lang.String _remoteAETitle, ViewJFrameDICOMQuery _frame)
Constructor.- Parameters:
_remoteAETitle
- remote(i.e. server) application entity title_frame
- the frame where the update messages will be displayed
-
-
Method Detail
-
read
public void read(DICOM_PDUService pdu, DICOM_Object dco) throws DICOM_Exception
Reads the verification request and responds with (write) a ECHO_SUCESS.- Parameters:
pdu
- PDU service classdco
- DICOM command object- Throws:
DICOM_Exception
- DOCUMENT ME!
-
verify
public void verify()
Initiate verification of connection between client and server (i.e. ping).
-
write
public void write(DICOM_PDUService pdu) throws DICOM_Exception
Writes the UID_Verification via the PDU service.- Parameters:
pdu
- PUD service class- Throws:
DICOM_Exception
- DOCUMENT ME!
-
displayError
private void displayError(java.lang.String error)
Displays an error in a frame.- Parameters:
error
- string that is displayed
-
verifySOPClass
private void verifySOPClass(DICOM_Object dco) throws DICOM_Exception
Verifies the SOP class UID.- Parameters:
dco
- DICOM data object- Throws:
DICOM_Exception
- DOCUMENT ME!
-
-