예제 #1
0
  public DimseRQHandler getDimseRQHandler() {
    DimseRQHandler handler = dimseRQHandler;
    if (handler != null) return handler;

    Device device = this.device;
    return device != null ? device.getDimseRQHandler() : null;
  }
예제 #2
0
 /**
  * Set the AE title for this Network AE.
  *
  * @param aet A String containing the AE title.
  */
 public void setAETitle(String aet) {
   if (aet.isEmpty()) throw new IllegalArgumentException("AE title cannot be empty");
   Device device = this.device;
   if (device != null && this.AETitle != null) device.removeApplicationEntity(this.AETitle);
   this.AETitle = aet;
   if (device != null) device.addApplicationEntity(this);
 }
예제 #3
0
  public void addConnection(Connection conn) {
    if (conn.getProtocol() != Connection.Protocol.DICOM)
      throw new IllegalArgumentException("protocol != DICOM - " + conn.getProtocol());

    if (device != null && device != conn.getDevice())
      throw new IllegalStateException(conn + " not contained by Device: " + device.getDeviceName());
    connections.add(conn);
  }
예제 #4
0
 /**
  * Set the device that is identified by this application entity.
  *
  * @param device The owning <code>Device</code>.
  */
 public void setDevice(Device device) {
   if (device != null) {
     if (this.device != null && this.device != device)
       throw new IllegalStateException("already owned by " + this.device.getDeviceName());
     for (Connection conn : connections)
       if (conn.getDevice() != device)
         throw new IllegalStateException(conn + " not owned by " + device.getDeviceName());
   }
   this.device = device;
 }
예제 #5
0
 void reconfigure(ApplicationEntity src) {
   setApplicationEntityAttributes(src);
   device.reconfigureConnections(connections, src.connections);
   reconfigureTransferCapabilities(src);
   reconfigureAEExtensions(src);
 }
예제 #6
0
 /**
  * Determine whether or not this network AE is installed on a network.
  *
  * @return A Boolean value. True if the AE is installed on a network. If not present, information
  *     about the installed status of the AE is inherited from the device
  */
 public boolean isInstalled() {
   return device != null
       && device.isInstalled()
       && (aeInstalled == null || aeInstalled.booleanValue());
 }