org.alfresco.filesys.repo.rules
Interface ScenarioInstance

All Known Implementing Classes:
ScenarioCreateShuffleInstance, ScenarioDoubleRenameShuffleInstance, ScenarioSimpleNonBufferedInstance

public interface ScenarioInstance

A scenario instance is an active scenario. It has a ranking, an evaluate method and knows whether it is complete.

The evaluate method is called repeatedly as operations are processed.


Nested Class Summary
static class ScenarioInstance.Ranking
           
 
Method Summary
 Command evaluate(Operation operation)
          evaluate the scenario against the current operation
 ScenarioInstance.Ranking getRanking()
          Get the Ranking
 boolean isComplete()
          Is the scenario complete?
 

Method Detail

getRanking

ScenarioInstance.Ranking getRanking()
Get the Ranking

Returns:

evaluate

Command evaluate(Operation operation)
evaluate the scenario against the current operation

Parameters:
operation -

isComplete

boolean isComplete()
Is the scenario complete?

Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.