Class IterationInfo


public class IterationInfo extends NodeInfo<FeatureInfo,AnnotatedElement>
Runtime information about an iteration of a feature method.
  • Constructor Details

    • IterationInfo

      public IterationInfo(FeatureInfo feature, Object[] dataValues, int estimatedNumIterations)
  • Method Details

    • getReflection

      public AnnotatedElement getReflection()
      Overrides:
      getReflection in class NodeInfo<FeatureInfo,AnnotatedElement>
    • getName

      public String getName()
      Returns the name of this iteration. No strong guarantees are provided for this name, except that it is non-null. For example, it may be the same as the feature name, and it may not be unique among iterations of the same feature execution. Nevertheless, this is generally the name that should be presented to the user (if any).
      Overrides:
      getName in class NodeInfo<FeatureInfo,AnnotatedElement>
      Returns:
      the name of this iteration
    • getDataValues

      public Object[] getDataValues()
      Return this iteration's data values for the ongoing execution of the owning feature method. The names of the data values (in the same order) are available through FeatureInfo.getDataVariables().
      Returns:
      this iteration's data values for the ongoing execution of the owning feature method
    • getEstimatedNumIterations

      public int getEstimatedNumIterations()
      Returns the estimated total number of iterations for the ongoing execution of the owning feature method. The value is obtained by calling size() on each data provider before the first iteration is run. It is only an estimate and won't change during feature execution (i.e. all FeatureInfos will return the same value).
      Returns:
      the estimated total number of iterations for the execution of the owning feature method
    • addCleanup

      public void addCleanup(Runnable cleanup)
    • getCleanups

      public List<Runnable> getCleanups()