jdcm
Class C_Store

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

public final class C_Store
extends DimseService

The C_Store class represents a C-STORE 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
C_Store(A_Associate associate)
          Constructs a new C-STORE 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.
 java.lang.String getMoveOriginatorAETitle()
          Retrieve the Move Originator attribute in the command set.
 int getMoveOriginatorMessageID()
          Retrieve the Move Originator Message ID attribute in the command set.
 DicomSet readRPS()
          Receive a DIMSE C-STORE-RSP message from the association partner.
 DicomSet readRQ()
          Receive a DIMSE C-STORE-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.
 void setMoveOriginatorAETitle(java.lang.String moveOriginatorAETitle)
          Sets the Move Originator attribute in the command set.
 void setMoveOriginatorMessageID(int moveOriginatorMessageID)
          Sets the Move Originator Message ID attribute in the command set.
 java.lang.String toString()
           
 void writeFile(java.lang.String path)
          Write a DICOM part 10 file.
 void writeRPS(DicomSet dicomSet)
          Send a DIMSE C-STORE-RSP message to the association partner.
 void writeRQ(DicomSet dicomSet)
          Send a DIMSE C-STORE-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

C_Store

public C_Store(A_Associate associate)
Constructs a new C-STORE 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.

Parameters:
affectedSOPInstanceUID -

getAffectedSOPInstanceUID

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


setMoveOriginatorAETitle

public void setMoveOriginatorAETitle(java.lang.String moveOriginatorAETitle)
Sets the Move Originator attribute in the command set.

Parameters:
moveOriginatorAETitle -

getMoveOriginatorAETitle

public java.lang.String getMoveOriginatorAETitle()
Retrieve the Move Originator attribute in the command set.


setMoveOriginatorMessageID

public void setMoveOriginatorMessageID(int moveOriginatorMessageID)
Sets the Move Originator Message ID attribute in the command set.

Parameters:
moveOriginatorMessageID -

getMoveOriginatorMessageID

public int getMoveOriginatorMessageID()
Retrieve the Move Originator Message ID attribute in the command set.


writeRQ

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

Parameters:
dicomSet -
Throws:
java.io.IOException

readRPS

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

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

readRQ

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

Returns:
contains a list of attributes to be matched.
Throws:
java.io.IOException

writeRPS

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

Parameters:
dicomSet - list of attributes.
Throws:
java.io.IOException

writeFile

public void writeFile(java.lang.String path)
               throws java.io.IOException
Write a DICOM part 10 file.

Parameters:
path - Path file to write
Throws:
java.io.IOException

toString

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