databeans
Class DeviceList

java.lang.Object
  extended bydatabeans.DeviceList

public class DeviceList
extends java.lang.Object

Bean holding a list of devices.

Version:
0.1
Author:
gswalters

Constructor Summary
DeviceList()
          Construct a default DeviceList with an empty array.
DeviceList(java.util.Vector devices)
          Construct a DeviceList from a Vector array.
 
Method Summary
 void addDevice(Device device)
          Add a device to the list of devices
 Device getDevice(int index)
          Retrieve a device from the list of devices.
 java.util.ArrayList getDevices()
           
 int getNumDevices()
           
 void setDevices(java.util.ArrayList devices)
           
 void setNumDevices(int numDevices)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceList

public DeviceList()
Construct a default DeviceList with an empty array.


DeviceList

public DeviceList(java.util.Vector devices)
Construct a DeviceList from a Vector array.

Parameters:
devices - Vector holding a set of Device objects
Method Detail

getNumDevices

public int getNumDevices()

setNumDevices

public void setNumDevices(int numDevices)

getDevices

public java.util.ArrayList getDevices()

setDevices

public void setDevices(java.util.ArrayList devices)

addDevice

public void addDevice(Device device)
Add a device to the list of devices

Parameters:
device - to add to the list of devices

getDevice

public Device getDevice(int index)
Retrieve a device from the list of devices.

Parameters:
index - int position of the device to retrieve
Returns:
Device at the index

toString

public java.lang.String toString()