jdcm
Class N_Action

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

public final class N_Action
extends DimseService

The N_Action class represents a N-ACTION 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_Action(A_Associate associate)
          Constructs a new N-Action object for a specified association.
 
Method Summary
 int getActionTypeID()
          Retrieve the Action Type ID attribute in the command set.
 java.lang.String getAffectedSOPInstanceUID()
          Retrieve the Affected SOP Instance UID in the command set.
 java.lang.String getRequestedSOPClassUID()
          Retrieve the value of the Requested SOP Class UID attribute from the message's command request set.
 java.lang.String getRequestedSOPInstanceUID()
          Retrieve the value of the Requested SOP Instance UID attribute in the message's command set.
 DicomSet readRPS()
          Receive a DIMSE N-ACTION-RSP message from the association partner.
 DicomSet readRQ()
          Receive a DIMSE N-ACTION-RQ message from the association partner.
 void setActionTypeID(int actionTypeID)
          Sets the Action Type ID attribute in the command set.
 void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
          Sets the Affected SOP Instance UID in the command set.
 void setRequestedSOPClassUID(java.lang.String requestedSOPClassUID)
          Sets the value of the Requested SOP Class UID attribute in the message's command request set.
 void setRequestedSOPInstanceUID(java.lang.String requestedSOPInstanceUID)
          Sets the value of the Requested SOP Instance UID attribute in the message's command set.
 java.lang.String toString()
           
 void writeRPS(DicomSet dicomSet)
          Send a DIMSE N-ACTION-RSP message to the association partner.
 void writeRQ(DicomSet dicomSet)
          Send a DIMSE C-ACTION-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_Action

public N_Action(A_Associate associate)
Constructs a new N-Action 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

setRequestedSOPClassUID

public void setRequestedSOPClassUID(java.lang.String requestedSOPClassUID)
Sets the value of the Requested SOP Class UID attribute in the message's command request set. This parameter is uded in N-ACTION-RQ message's command set.


getRequestedSOPClassUID

public java.lang.String getRequestedSOPClassUID()
Retrieve the value of the Requested SOP Class UID attribute from the message's command request set. This parameter is uded in N-ACTION-RQ message's command set.


setRequestedSOPInstanceUID

public void setRequestedSOPInstanceUID(java.lang.String requestedSOPInstanceUID)
Sets the value of the Requested SOP Instance UID attribute in the message's command set. This parameter is uded in N-ACTION-RQ message's command set.


getRequestedSOPInstanceUID

public java.lang.String getRequestedSOPInstanceUID()
Retrieve the value of the Requested SOP Instance UID attribute in the message's command set. This parameter is uded in N-ACTION-RQ message's command set.


setAffectedSOPInstanceUID

public void setAffectedSOPInstanceUID(java.lang.String affectedSOPInstanceUID)
Sets the Affected SOP Instance UID in the command set. This parameter is uded in N-ACTION-RSP message's command set.


getAffectedSOPInstanceUID

public java.lang.String getAffectedSOPInstanceUID()
Retrieve the Affected SOP Instance UID in the command set. This parameter is uded in N-ACTION-RSP message's command set.


setActionTypeID

public void setActionTypeID(int actionTypeID)
Sets the Action Type ID attribute in the command set.

Parameters:
actionTypeID -

getActionTypeID

public int getActionTypeID()
Retrieve the Action Type ID attribute in the command set. This parameter is uded in N-ACTION-RQ and N-ACTION-RSP message's command set.


readRQ

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

Returns:
additional information related to the operation.
Throws:
java.io.IOException

writeRPS

public void writeRPS(DicomSet dicomSet)
              throws java.io.IOException
Send a DIMSE N-ACTION-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-ACTION-RQ message to the association partner.

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

readRPS

public DicomSet readRPS()
                 throws java.io.IOException
Receive a DIMSE N-ACTION-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