public class NActionSCU extends SCU
| Constructor and Description |
|---|
NActionSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
NActionSCU(SCUSession objSCUSession)
Instantiates a new NAction SCU on the SCU session provided by user.
|
NActionSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
receiveMessage(ServiceMessageEvent objServiceMessageEvent)
It processes the received Dicom Message ,retrieved from event generated, according to it's Command Type.
|
void |
send(AssociateRQ objAssociateRQ,
java.lang.String strSOPClasUID,
java.lang.String strSOPInstanceUID,
EnumActionTypeID enumActionTypeID,
IDataSet objIDataSet)
Sends the available datasets to the SCP.
|
void |
send(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle,
java.lang.String strSOPClasUID,
java.lang.String strSOPInstanceUID,
EnumActionTypeID enumActionTypeID,
IDataSet objIDataSet)
This method creates association request according to the DataSet collection provided by the user and the Default association.
|
boolean |
sendMessage(DicomMessage objDicomMessage)
This method sends the NAction Request.
|
getDIMSEAssociation, getDIMSEResponse, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic NActionSCU(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 operation fails.public NActionSCU(java.net.InetSocketAddress addr)
throws java.io.IOException
addr - InetAddress to which user connects.java.io.IOException - Signals IO Exception if IO operation fails.public NActionSCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which NAction SCU is to be initiated.public void send(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle,
java.lang.String strSOPClasUID,
java.lang.String strSOPInstanceUID,
EnumActionTypeID enumActionTypeID,
IDataSet objIDataSet)
throws java.io.IOException
strcallingAETitle - value of Calling AE Title.strCalledAETitle - value of Called AE Title.strSOPClasUID - value of SOP Class UID.enumActionTypeID - Enum Represents Action Type.strSOPInstanceUID - SOP Instance UID.objIDataSet - Object of IDataSet.java.io.IOException - Signals IOException if IO operation fails.public void send(AssociateRQ objAssociateRQ, java.lang.String strSOPClasUID, java.lang.String strSOPInstanceUID, EnumActionTypeID enumActionTypeID, IDataSet objIDataSet) throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.enumActionTypeID - Enum Represents Action Type.strSOPInstanceUID - SOP Instance UID.objIDataSet - Object of IDataSet.java.io.IOException - Signals IOException if IO operation fails.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - The Dicom Message containing NAction request.java.io.IOException - Signals that an I/O exception has occurred.public void receiveMessage(ServiceMessageEvent objServiceMessageEvent) throws java.io.IOException
receiveMessage in interface IMessageListenerreceiveMessage in class SCUobjServiceMessageEvent - instance of ServiceMessageEvent.java.io.IOException - Signals that an I/O exception has occurred.