public class PrintSCU extends SCU
| Constructor and Description |
|---|
PrintSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
PrintSCU(SCUSession objSCUSession)
Instantiates a new Print_SCU on the SCU session provided by user.
|
PrintSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
send(AssociateRQ objAssociateRQ,
EnumCommandField objEnumCommandField,
EnumSOPClassUIDs enumSOPClassUIDs,
java.lang.String strSOPInstanceUID,
IDataSet objIDataSet,
ISingleCollection<ITag> objITagCollection)
Sends the available datasets to the SCP.
|
void |
send(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle,
EnumMetaSOPClassUID enumMetaSOPClassUID,
EnumSOPClassUIDs[] enumOptionalPrintSOPClassUIDs,
EnumCommandField objEnumCommandField,
EnumSOPClassUIDs enumSOPClassUIDs,
java.lang.String strSOPInstanceUID,
IDataSet objIDataSet,
ISingleCollection<ITag> objITagCollection)
This method creates associaition request according to the DataSet collection provided by the user and the Default association.
|
boolean |
sendMessage(DicomMessage objDicomMessage)
This method sends the Request for Print Service Mangement Service.
|
boolean |
validateNActionRQ(EnumSOPClassUIDs enumSOPClassUIDs,
IDataSet objIDataSet,
NActionRQ objNActionRQ)
This function validates the N-Action Data Set of the SOP Class UID specified.
|
boolean |
validateNCreateRQ(EnumSOPClassUIDs enumSOPClassUIDs,
IDataSet objIDataSet)
This function validates the N-Create Data Set of the SOP Class UID specified.
|
boolean |
validateNGetRQ(EnumSOPClassUIDs enumSOPClassUIDs,
IDataSet objIDataSet)
This function validates the N-Get Data Set of the SOP Class UID specified.
|
boolean |
validateNSetRQ(EnumSOPClassUIDs enumSOPClassUIDs,
IDataSet objIDataSet)
This function validates the N-Set Data Set of the SOP Class UID specified.
|
getDIMSEAssociation, getDIMSEResponse, receiveMessage, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic PrintSCU(java.lang.String strIP,
int port)
throws java.io.IOException
strIP - String value of IP to which user connects.port - Port to which user connects.java.io.IOException - Signals IO Exception if IO opeation fails.public PrintSCU(java.net.InetSocketAddress addr)
throws java.io.IOException
addr - InetAddress to which user connects.java.io.IOException - Signals IO Exception if IO opeation fails.public PrintSCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which Print_SCU is to be initiated.public void send(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle,
EnumMetaSOPClassUID enumMetaSOPClassUID,
EnumSOPClassUIDs[] enumOptionalPrintSOPClassUIDs,
EnumCommandField objEnumCommandField,
EnumSOPClassUIDs enumSOPClassUIDs,
java.lang.String strSOPInstanceUID,
IDataSet objIDataSet,
ISingleCollection<ITag> objITagCollection)
throws java.io.IOException
strcallingAETitle - value of Calling AE TitlestrCalledAETitle - value of Called AE TitleenumMetaSOPClassUID - Meta Sop Class UID for which association for print mangement service is to be loaded.enumOptionalPrintSOPClassUIDs - Option SOP Class UID s for which association is to be established with the Meta SOP Class provided.objEnumCommandField - Enum Represents Element Command Field i.e. the type of service.enumSOPClassUIDs - Affected SOP Class UID in the Command Set.strSOPInstanceUID - Affected SOP Instance UID in the command Set.objIDataSet - instance of dataset which is to be sent.objITagCollection - list of requested attributesjava.io.IOException - Signals that an I/O exception has occurred.public void send(AssociateRQ objAssociateRQ, EnumCommandField objEnumCommandField, EnumSOPClassUIDs enumSOPClassUIDs, java.lang.String strSOPInstanceUID, IDataSet objIDataSet, ISingleCollection<ITag> objITagCollection) throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.objEnumCommandField - Enum Represents Element Command Field i.e. the type of service.enumSOPClassUIDs - Affected SOP Class UID in the Command Set.strSOPInstanceUID - Affected SOP Instance UID in the command Set.objIDataSet - instance of dataset which is to be sent.objITagCollection - list of requested attributesjava.io.IOException - Signals that an I/O exception has occurred.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - instance of Dicom Message containing Request for Print Management Service..java.io.IOException - Signals that an I/O exception has occurred.public boolean validateNCreateRQ(EnumSOPClassUIDs enumSOPClassUIDs, IDataSet objIDataSet) throws InvalidDataSetException
enumSOPClassUIDs - SOP class UID for which DataSet needs to be validated for N-Create RQ.objIDataSet - instance of dataset which is to be validated.InvalidDataSetException - Signals if dataset validation fails.public boolean validateNSetRQ(EnumSOPClassUIDs enumSOPClassUIDs, IDataSet objIDataSet) throws InvalidDataSetException
enumSOPClassUIDs - SOP class UID for which DataSet needs to be validated for N-Set RQ.objIDataSet - instance of dataset which is to be validated.InvalidDataSetException - Signals if dataset validation fails.public boolean validateNActionRQ(EnumSOPClassUIDs enumSOPClassUIDs, IDataSet objIDataSet, NActionRQ objNActionRQ) throws InvalidDataSetException
enumSOPClassUIDs - SOP class UID for which DataSet needs to be validated for N-Action RQ.objIDataSet - instance of dataset which is to be validated.InvalidDataSetException - Signals if dataset validation fails.public boolean validateNGetRQ(EnumSOPClassUIDs enumSOPClassUIDs, IDataSet objIDataSet) throws InvalidDataSetException
enumSOPClassUIDs - SOP class UID for which DataSet needs to be validated for N-Get RQ.objIDataSet - instance of dataset which is to be validated.InvalidDataSetException - Signals if dataset validation fails.