Esempio n. 1
0
 @Override
 protected void loadAttributesFrom(Config cfg) {
   super.loadAttributesFrom(cfg);
   this.actorIdTab = cfg.getActorIDTab();
   this.actorStatusTab = (T[]) cfg.getActorStatusTab();
   this.actorAckTab = cfg.getActorAckTab();
   this.gid = cfg.getGid();
 }
Esempio n. 2
0
 /** Disconnects the currently connected device. */
 void disconnectUsbDevice() {
   if (this.device == null) throw new IllegalStateException("Port has no connected device");
   final AbstractDevice device = this.device;
   this.device = null;
   device.setParentUsbPort(null);
 }
Esempio n. 3
0
 /**
  * Connects the specified device to this port.
  *
  * @param device The device to connect.
  */
 void connectUsbDevice(final AbstractDevice device) {
   if (device == null) throw new IllegalArgumentException("device must not be null");
   if (this.device != null) throw new IllegalStateException("Port already has a connected device");
   this.device = device;
   device.setParentUsbPort(this);
 }