agentland.device
Class MultiDeviceData

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--agentland.device.MultiDeviceData
All Implemented Interfaces:
Cloneable, Collection, List, Serializable

public abstract class MultiDeviceData
extends Vector

Extension of DeviceData -- contains some tools for creating collections of device data

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MultiDeviceData()
           
MultiDeviceData(Properties props)
          Creates a vector of DeviceData from a properies object.
 
Method Summary
 void addData(DeviceData data)
           
 DeviceData dataAt(int i)
           
abstract  DeviceData dataFromStrings(String name, String data)
          Given a name and a string representing the data for this device, this method should return a DeviceData object (of appropriate sub type)
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

MultiDeviceData

public MultiDeviceData()

MultiDeviceData

public MultiDeviceData(Properties props)
Creates a vector of DeviceData from a properies object. You can get the properties object by calling getProperties in AgentAgent. This method calls an abstract fromStrings method in this object.
Parameters:
props - properties object where the property fields can be converted into the data for the device
Method Detail

dataFromStrings

public abstract DeviceData dataFromStrings(String name,
                                           String data)
Given a name and a string representing the data for this device, this method should return a DeviceData object (of appropriate sub type)
Parameters:
name - name for this device
data - string rep of the data for this device

addData

public void addData(DeviceData data)

dataAt

public DeviceData dataAt(int i)