Class DataDistributor
java.lang.Object
|
+----java.util.VectorIterator
|
+----ConnectorStoreIterator
|
+----DataDistributor
- class DataDistributor
- extends ConnectorStoreIterator
A ConnectorStoreIterator that distributes the Data in a specific
DataStore over the Connectors in a ConnectorStore. Each element of
the DataStore is given to the Connector in the ConnectorStore whose
index corresponds to the index of the DataStore element.
- Version:
- $Revision: 1.2 $
-
data
- the DataStore with the data that must be distributed.
-
dataIndex
- Index in the DataStore that indicates which Data object to distribute
next.
-
DataDistributor(DataStore)
-
-
action(Connector)
-
-
preAction()
-
dataIndex
private int dataIndex
- Index in the DataStore that indicates which Data object to distribute
next.
data
private DataStore data
- the DataStore with the data that must be distributed.
DataDistributor
public DataDistributor(DataStore data)
- Parameters:
- data - the DataStore with the data that must be distributed.
preAction
public void preAction()
- Overrides:
- preAction in class VectorIterator
action
public void action(Connector c)
- Overrides:
- action in class ConnectorStoreIterator