Package jmri.jmrit.withrottle
Interface DeviceListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
FacelessServer
,UserInterface
public interface DeviceListener extends java.util.EventListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
notifyDeviceAddressChanged(DeviceServer device)
A device has changed its address.void
notifyDeviceConnected(DeviceServer device)
A new device has connected.void
notifyDeviceDisconnected(DeviceServer device)
A device has quit and needs to be removed.void
notifyDeviceInfoChanged(DeviceServer device)
Some info (name, UDID) about the device has changed.
-
-
-
Method Detail
-
notifyDeviceConnected
void notifyDeviceConnected(DeviceServer device)
A new device has connected.- Parameters:
device
- the device that has connected.
-
notifyDeviceDisconnected
void notifyDeviceDisconnected(DeviceServer device)
A device has quit and needs to be removed.- Parameters:
device
- the device that has quit.
-
notifyDeviceAddressChanged
void notifyDeviceAddressChanged(DeviceServer device)
A device has changed its address.- Parameters:
device
- the device with changed address.
-
notifyDeviceInfoChanged
void notifyDeviceInfoChanged(DeviceServer device)
Some info (name, UDID) about the device has changed. Also used to detect duplicate of same device.- Parameters:
device
- for which info has changed.
-
-