this.device = device;
for (int i = 0; i < devices.length; i++) { if (devices[i] == null) { this.devices[i] = device; return; } } assert false : "Trying to add too many devices to port " + this;
    public void addDevice(IODevice device) {        this.device = device;    }