jdcm
Class A_Abort

java.lang.Object
  extended by jdcm.A_Abort

public final class A_Abort
extends java.lang.Object

The class A_Abort represents a Association Abort. The two relevant parameters are the source and the reason of the abort.

See Also:
A_Associate, A_Release

Constructor Summary
A_Abort(A_Associate associate)
          Constructs a Abort message in association.
 
Method Summary
 int getReason()
          Retrieve the reason field
 int getSource()
          Retrieve the source abort.
 void readRQ()
          Recive a Abort message.
 void setReason(int reason)
          Set the reason field.
 void setSource(int source)
          Set the source field.
 java.lang.String toString()
           
 void writeRQ()
          Send a Abort message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

A_Abort

public A_Abort(A_Associate associate)
        throws java.io.IOException
Constructs a Abort message in association.

Parameters:
associate - the association
Throws:
java.io.IOException
Method Detail

readRQ

public void readRQ()
            throws java.io.IOException
Recive a Abort message.

Throws:
java.io.IOException

writeRQ

public void writeRQ()
             throws java.io.IOException
Send a Abort message

Throws:
java.io.IOException

getSource

public int getSource()
Retrieve the source abort.


setSource

public void setSource(int source)
Set the source field.

Parameters:
source -

  • 0 - DICOM UL service-user
  • 1 - DICOM UL service-provider

setReason

public void setReason(int reason)
Set the reason field.

Parameters:
reason -

If the Source field has the value 2 DICOM UL service provider reason shall take one of the following.

  • 0 - reason-not-specified
  • 1 - unrecognized-PDU
  • 2 - unexpected-PDU
  • 3 - reserved
  • 4 - unrecognized-PDU parameter
  • 5 - unexpected-PDU parameter
  • 6 - invalid-PDU-parameter value

getReason

public int getReason()
Retrieve the reason field


toString

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