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 $

Variable Index

 o data
the DataStore with the data that must be distributed.
 o dataIndex
Index in the DataStore that indicates which Data object to distribute next.

Constructor Index

 o DataDistributor(DataStore)

Method Index

 o action(Connector)
 o preAction()

Variables

 o dataIndex
 private int dataIndex
Index in the DataStore that indicates which Data object to distribute next.

 o data
 private DataStore data
the DataStore with the data that must be distributed.

Constructors

 o DataDistributor
 public DataDistributor(DataStore data)
Parameters:
data - the DataStore with the data that must be distributed.

Methods

 o preAction
 public void preAction()
Overrides:
preAction in class VectorIterator
 o action
 public void action(Connector c)
Overrides:
action in class ConnectorStoreIterator