Package jmri.jmrix.loconet.lnsvf1
Class Lnsv1Devices
java.lang.Object
jmri.jmrix.loconet.lnsvf1.Lnsv1Devices
Manage an array of Lnsv1Device items. See
Lnsv1DevicesManager
Based on Lnsvf2Devices by B. Milhaupt-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a device that responded to a PROBE_ALL request (or simply sent a READ_ONE reply) to the list of LNSV1 Devices.booleangetDevice(int index) intisDeviceExistant(Lnsv1Device deviceToBeFound) Get index in deviceList of the first device matching (only) the Device Address.voidintsize()
-
Constructor Details
-
Lnsv1Devices
public Lnsv1Devices()
-
-
Method Details
-
addDevice
Add a device that responded to a PROBE_ALL request (or simply sent a READ_ONE reply) to the list of LNSV1 Devices.- Parameters:
d- the device object, containing its properties- Returns:
- true if device was added, false if not e.g. it was already in the list
-
removeAllDevices
-
isDeviceExistant
Get index in deviceList of the first device matching (only) the Device Address. Where a deviceToBeFound parameter is -1, that parameter is not compared.- Parameters:
deviceToBeFound- Device we try to find in known LNSV1 devices list- Returns:
- index of found device, -1 if matching device not found
-
deviceExists
-
getDevice
-
getDevices
-
size
-