Package jmri.jmrix.loconet.uhlenbrock
Class LncvDevices
- java.lang.Object
- 
- jmri.jmrix.loconet.uhlenbrock.LncvDevices
 
- 
 public class LncvDevices extends java.lang.Object Manage an array of LncvDevice items. SeeLncvDevicesManagerBased on Lnsvf2Devices by B. Milhaupt
- 
- 
Constructor SummaryConstructors Constructor Description LncvDevices()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddDevice(LncvDevice d)Add a device that responded to a PROG_START request to the list of LNCV Devices.booleandeviceExists(LncvDevice d)LncvDevicegetDevice(int index)LncvDevice[]getDevices()intisDeviceExistant(LncvDevice deviceToBeFound)Get index in deviceList of the first device matching Mfg, ProdID, Num and Device Address.voidremoveAllDevices()intsize()
 
- 
- 
- 
Constructor Detail- 
LncvDevicespublic LncvDevices() 
 
- 
 - 
Method Detail- 
addDevicepublic boolean addDevice(LncvDevice d) 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
 
 - 
removeAllDevicespublic void removeAllDevices() 
 - 
isDeviceExistantpublic int isDeviceExistant(LncvDevice deviceToBeFound) 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
 
 - 
deviceExistspublic boolean deviceExists(LncvDevice d) 
 - 
getDevicepublic LncvDevice getDevice(int index) 
 - 
getDevicespublic LncvDevice[] getDevices() 
 - 
sizepublic int size() 
 
- 
 
-