com.orchestranetworks.service.extensions
Interface AdaptationTreeOptimizerIterator


public interface AdaptationTreeOptimizerIterator

Iterator for optimization.


Method Summary
 Adaptation currentAdaptation()
          Returns the current adaptation.
 void executeAll()
          Optimizes all remaining adaptations in iterator.
 Adaptation executeCurrent()
          Optimizes current adaptation and set cursor to the next in place.
 boolean hasNext()
          Returns true if there is still some instance to optimize, false otherwise.
 boolean isForHandleDuplicates()
          Returns true if the optimizer is handling duplicates in adapations' tree
 boolean isForRefactor()
          Returns true if the optimizer is refactoring adapations' tree
 Adaptation nextAdaptation()
          Returns the next adaptation.
 

Method Detail

hasNext

public boolean hasNext()
Returns true if there is still some instance to optimize, false otherwise.


currentAdaptation

public Adaptation currentAdaptation()
Returns the current adaptation. The ones that will be optimize on next call of executeCurrent().


nextAdaptation

public Adaptation nextAdaptation()
Returns the next adaptation. The ones that will become current after next call of executeCurrent().


executeAll

public void executeAll()
                throws OperationException
Optimizes all remaining adaptations in iterator.

Throws:
OperationException

executeCurrent

public Adaptation executeCurrent()
                          throws OperationException
Optimizes current adaptation and set cursor to the next in place. Returns adaptation optimized or null if there is nothing more to optimize.

Throws:
OperationException

isForRefactor

public boolean isForRefactor()
Returns true if the optimizer is refactoring adapations' tree


isForHandleDuplicates

public boolean isForHandleDuplicates()
Returns true if the optimizer is handling duplicates in adapations' tree



(report a bug)
EBX.Platform 4.5.3 [0607:0001]
Copyright Orchestra Networks 2000-2008. All rights reserved.