Package jmri.jmrix.loconet.uhlenbrock
Class LncvDevices
java.lang.Object
jmri.jmrix.loconet.uhlenbrock.LncvDevices
Manage an array of LncvDevice items. See
LncvDevicesManager
Based on Lnsvf2Devices by B. Milhaupt-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a device that responded to a PROG_START request to the list of LNCV Devices.booleangetDevice(int index) intisDeviceExistant(LncvDevice deviceToBeFound) Get index in deviceList of the first device matching Mfg, ProdID, Num and Device Address.voidintsize()
-
Constructor Details
-
LncvDevices
public LncvDevices()
-
-
Method Details
-
addDevice
Add a device that responded to a PROG_START request to the list of LNCV Devices.- Parameters:
d- the device object, containing its properties- Returns:
- true if device was added, false if not eg it was already in the list
-
removeAllDevices
-
isDeviceExistant
Get index in deviceList of the first device matching Mfg, ProdID, Num and Device Address. Where a deviceToBeFound parameter is -1, that parameter is not compared.- Parameters:
deviceToBeFound- Device we try to find in known LNCV devices list- Returns:
- index of found device, else -1 if matching device not found
-
deviceExists
-
getDevice
-
getDevices
-
size
-