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
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 |
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
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 devicedata
- string rep of the data for this device
addData
public void addData(DeviceData data)
dataAt
public DeviceData dataAt(int i)