public void disconnectFromLink ( Link link ) { boolean disconnected = this . linksList . remove ( link ) ; if ( disconnected ) { link . disconnectDevice ( this ) ; logger . fine ( "Device " + this . getID ( ) + " is now disconnected from Link " + link . getID ( ) ) ; } else { logger . warning ( "Device " + this . getID ( ) + " could not be disconnected from Link " + link . getID ( ) + ", because it was not connected." ) ; } }
Disconnect the device From a link