org.dicom4j.network.protocoldataunit
Class AssociateACPDU

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.support.AssociateRQACPDU
          extended by org.dicom4j.network.protocoldataunit.AssociateACPDU
All Implemented Interfaces:
ProtocolDataUnit

public class AssociateACPDU
extends AssociateRQACPDU

ASSOCIATE-AC

Since:
Alpha 0.0.0
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Constructor Summary
AssociateACPDU()
          Creates a new ASSOCIATE-AC PDU
AssociateACPDU(String calledAETitle, String callingAETitle)
          Create a new Associate-AC PDU
 
Method Summary
 void addPresentationContext(byte aID, byte aReason, String aTransferSyntax)
          Add a new PresentationContext
 void addPresentationContext(byte aID, byte aReason, TransferSyntax aTransferSyntax)
          Add a new PresentationContext
 PresentationContextItemAC addPresentationContextItem(PresentationContextItemAC item)
          Add a new Presentation Context AC Item
 String getName()
          Return the name of the Protocol Data Unit
 LinkedList getPresentationContextItemAC()
          Retur the Presentation Context Items
 ProtocolDataUnitType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 void read(BinaryInputStream aStream, int aLength)
          Read the Protocol Data Unit from a stream
 void write(BinaryOutputStream aStream)
          Write the Protocol Data Unit to a stream
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.AssociateRQACPDU
getApplicationContextItem, getCalledAETitle, getCallingAETitle, getLength, getPresentationIterator, getProtocolVersion, getUserInformationItem, setApplicationContext, setCalledAET, setCallingAET, setUserInformations, toString
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
checkStream, getSopClassRegistry, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociateACPDU

public AssociateACPDU()
Creates a new ASSOCIATE-AC PDU


AssociateACPDU

public AssociateACPDU(String calledAETitle,
                      String callingAETitle)
Create a new Associate-AC PDU

Parameters:
calledAETitle - The called AET
callingAETitle - The Calling AET
Method Detail

addPresentationContext

public void addPresentationContext(byte aID,
                                   byte aReason,
                                   String aTransferSyntax)
Add a new PresentationContext

Parameters:
aID - the ID
aReason - the Reason
aTransferSyntax - the TransferSyntax UID

addPresentationContext

public void addPresentationContext(byte aID,
                                   byte aReason,
                                   TransferSyntax aTransferSyntax)
Add a new PresentationContext

Parameters:
aID - the ID
aReason - the Reason
aTransferSyntax - the TransferSyntax

addPresentationContextItem

public PresentationContextItemAC addPresentationContextItem(PresentationContextItemAC item)
Add a new Presentation Context AC Item

Parameters:
aItem - the item
Returns:
the added item

getName

public String getName()
Description copied from class: ProtocolDataUnit
Return the name of the Protocol Data Unit

Specified by:
getName in interface ProtocolDataUnit
Overrides:
getName in class ProtocolDataUnit
Returns:
the name

getPresentationContextItemAC

public LinkedList getPresentationContextItemAC()
Retur the Presentation Context Items

Returns:
the Presentation Context Items

getType

public ProtocolDataUnitType getType()
Description copied from class: ProtocolDataUnit

return the type of the Protocol Data Unit

TODO change to ProtocolType

Specified by:
getType in interface ProtocolDataUnit
Specified by:
getType in class ProtocolDataUnit
Returns:
the type

read

public void read(BinaryInputStream aStream,
                 int aLength)
          throws DicomException,
                 IOException
Description copied from class: ProtocolDataUnit
Read the Protocol Data Unit from a stream

Overrides:
read in class AssociateRQACPDU
Throws:
DicomException
IOException

write

public void write(BinaryOutputStream aStream)
           throws DicomException,
                  IOException
Description copied from class: ProtocolDataUnit
Write the Protocol Data Unit to a stream

Overrides:
write in class AssociateRQACPDU
Throws:
DicomException
IOException


Copyright © 2009 dicom4j. All Rights Reserved.