IOStrategy ioStrategy = (IOStrategy)strategy;
switch (context)
{
case INPUT_DECLARATION:
{
ProcessingElementInputDescriptor descriptor =
new ProcessingElementInputDescriptor(ioStrategy.getConnectionID());
descriptor.setSType(ioStrategy.getSType());
descriptor.setDType(ioStrategy.getDType());
descriptor.setArray(ioStrategy.isArray());
mInputDesc.add(descriptor);
Map<Integer,Connection> map;
if (ioStrategy.isArray())
{
map = ioStrategy.getConnectionArray();
}
else
{
map = mInputs.get(ioStrategy.getConnectionID());
if (map == null) map = new HashMap<Integer, Connection>();
map.put(ioStrategy.getConnectionIndex(), ioStrategy.getConnection());
}
mInputs.put(ioStrategy.getConnectionID(), map);
}
break;
case OUTPUT_DECLARATION:
{
ProcessingElementOutputDescriptor descriptor =
new ProcessingElementOutputDescriptor(ioStrategy.getConnectionID());
descriptor.setSType(ioStrategy.getSType());
descriptor.setDType(ioStrategy.getDType());
descriptor.setArray(ioStrategy.isArray());
mOutputDesc.add(descriptor);
Map<Integer, Connection> map;
if (ioStrategy.isArray())
{