jdcm
Class N_Create

java.lang.Object
  extended by jdcm.DimseService
      extended by jdcm.N_Create

public final class N_Create
extends DimseService

The N_Create class represents a N-CREATE DIMSE service.

See Also:
DimseService

Field Summary
 
Fields inherited from class jdcm.DimseService
PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_MEDIUM, STATUS_FAILED, STATUS_PENDING, STATUS_SUCCESS
 
Constructor Summary
N_Create(A_Associate associate)
          Constructs a new C-Create object for a specified association.
 
Method Summary
 java.lang.String getAffectedSOPInstanceUID()
          Retrieve the value of the Affected SOP Instance UID attribute in the message's command set.
 DicomSet readRPS()
          Receive a DIMSE C-CREATE-RSP message from the association partner.
 DicomSet readRQ()
          Receive a DIMSE C-CREATE-RQ message from the association partner.
 void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
          Sets the value of the Affected SOP Instance UID attribute in the message's command set.
 java.lang.String toString()
           
 void writeRPS(DicomSet dicomSet)
          Send a DIMSE C-CREATE-RSP message to the association partner.
 void writeRQ(DicomSet dicomSet)
          Send a DIMSE C-CREATE-RQ message to the association partner.
 
Methods inherited from class jdcm.DimseService
getAffectedSOPClassUID, getCommandField, getCommandRPS, getCommandRQ, getDicomSet, getMessageID, getMessageIDBeingRespondedTo, getPresContextID, getPriority, getStatus, getTransferSyntaxUID, setAffectedSOPClassUID, setMessageID, setMessageIDBeingRespondedTo, setPresContextID, setPriority, setStatus, setTransferSyntaxUID, writeCancelRQ
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

N_Create

public N_Create(A_Associate associate)
Constructs a new C-Create object for a specified association.

Parameters:
associate - A not null A_Associate reference that represents an active association with a remote DICOM application entity.
Method Detail

setAffectedSOPInstanceUID

public void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
Sets the value of the Affected SOP Instance UID attribute in the message's command set. This parameter is uded in C-CREATE-RQ and C-CREATE-RPS message's command set.

Parameters:
affectedSOPInstanceUID -

getAffectedSOPInstanceUID

public java.lang.String getAffectedSOPInstanceUID()
Retrieve the value of the Affected SOP Instance UID attribute in the message's command set.


readRQ

public DicomSet readRQ()
                throws java.io.IOException
Receive a DIMSE C-CREATE-RQ message from the association partner.

Returns:
data set the DIMSE message received
Throws:
java.io.IOException

writeRPS

public void writeRPS(DicomSet dicomSet)
              throws java.io.IOException
Send a DIMSE C-CREATE-RSP message to the association partner.

Parameters:
dicomSet -
Throws:
java.io.IOException

writeRQ

public void writeRQ(DicomSet dicomSet)
             throws java.io.IOException
Send a DIMSE C-CREATE-RQ message to the association partner.

Parameters:
dicomSet - data set in the DIMSE message request
Throws:
java.io.IOException

readRPS

public DicomSet readRPS()
                 throws java.io.IOException
Receive a DIMSE C-CREATE-RSP message from the association partner.

Returns:
dicomSet data set in received DIMSE message
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class DimseService