org.embl.ebi.escience.scufl
Class IterationStrategy

java.lang.Object
  extended by org.embl.ebi.escience.scufl.IterationStrategy

public class IterationStrategy
extends java.lang.Object

Defines the manner in which iterators should be constructed for a given processor instance.

Author:
Tom Oinn

Constructor Summary
IterationStrategy(org.jdom.Element strategyElement)
          Create a new IterationStrategy from the supplied JDOM Element object
IterationStrategy(Processor p)
          Create a new IterationStrategy with the default iteration strategy for the supplied processor
 
Method Summary
 ResumableIterator buildIterator(java.util.Map iteratorNodes)
          Construct a concrete instance of the iteration tree from this strategy object and the Map of port name -> BaclavaIteratorNode objects.
 org.jdom.Element getElement()
          Write out the current iteration strategy as an Element
 javax.swing.tree.TreeModel getTreeModel()
           
 void normalize()
          Normalize the strategy model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterationStrategy

public IterationStrategy(Processor p)
Create a new IterationStrategy with the default iteration strategy for the supplied processor


IterationStrategy

public IterationStrategy(org.jdom.Element strategyElement)
Create a new IterationStrategy from the supplied JDOM Element object

Method Detail

getTreeModel

public javax.swing.tree.TreeModel getTreeModel()

normalize

public void normalize()
Normalize the strategy model


getElement

public org.jdom.Element getElement()
Write out the current iteration strategy as an Element


buildIterator

public ResumableIterator buildIterator(java.util.Map iteratorNodes)
                                throws java.beans.IntrospectionException
Construct a concrete instance of the iteration tree from this strategy object and the Map of port name -> BaclavaIteratorNode objects.

Throws:
java.beans.IntrospectionException - if a leaf iterator is named in the strategy but doesn't occur in the map