public abstract class SCU extends java.lang.Object implements IMessageListener
| Constructor and Description |
|---|
SCU(java.net.InetSocketAddress addr)
Instantiates a new SCU.
|
SCU(SCUSession objSCUSession)
Instantiates a new SCU.
|
| Modifier and Type | Method and Description |
|---|---|
IDIMSEAssociation |
getDIMSEAssociation()
Retrieves DimseAssociation which also shows status of current association.
|
ISingleCollection<DicomMessage> |
getDIMSEResponse()
Retrieves Response Collection.
|
void |
receiveMessage(ServiceMessageEvent objServiceMessageEvent)
Receives response.
|
abstract boolean |
sendMessage(DicomMessage objDicomMessge)
Send response.
|
void |
setAssociationStatus(boolean status)
Sets the association status.
|
void |
setDIMSEAssociation(IDIMSEAssociation objIDIMSEAssociation)
Sets DimseAssociation which also shows status of current association.
|
void |
setDIMSEResponse(ISingleCollection<DicomMessage> objResponseList)
Sets Response Collection
|
public SCU(SCUSession objSCUSession)
objSCUSession - instance of SCU Session.public SCU(java.net.InetSocketAddress addr)
throws java.io.IOException
addr - INet Socket Address.java.io.IOException - Signals if an IO Exception occurred.public void setDIMSEResponse(ISingleCollection<DicomMessage> objResponseList)
objResponseList - collection of Dicom message containing response.public ISingleCollection<DicomMessage> getDIMSEResponse()
public void receiveMessage(ServiceMessageEvent objServiceMessageEvent) throws java.io.IOException
receiveMessage in interface IMessageListenerobjServiceMessageEvent - object of Service Message Event.
This Event is fired when the response is received from SCP.java.io.IOException - Signals that an I/O exception has occurred.public abstract boolean sendMessage(DicomMessage objDicomMessge) throws java.io.IOException
sendMessage in interface IMessageListenerobjDicomMessge - instance of Dicom Message.java.io.IOException - Signals that an I/O exception has occurred.public void setAssociationStatus(boolean status)
setAssociationStatus in interface IMessageListenerstatus - boolean variable representing status of association.
true - if association is alive.
false - if association does not exits.public void setDIMSEAssociation(IDIMSEAssociation objIDIMSEAssociation)
setDIMSEAssociation in interface IMessageListenerobjIDIMSEAssociation - instance of IDIMSEAssociationpublic IDIMSEAssociation getDIMSEAssociation()