org.eclipse.emf.emfstore.modelmutator
Class ESRoundRobinResourceSelectionStrategy

java.lang.Object
  extended by org.eclipse.emf.emfstore.modelmutator.ESRoundRobinResourceSelectionStrategy
All Implemented Interfaces:
ESResourceSelectionStrategy

public class ESRoundRobinResourceSelectionStrategy
extends Object
implements ESResourceSelectionStrategy

A ESResourceSelectionStrategy that selects each resource from the list of resources in a round-robin fashion.

Since:
2.0
Author:
emueller

Constructor Summary
ESRoundRobinResourceSelectionStrategy()
           
 
Method Summary
 org.eclipse.emf.ecore.resource.Resource selectResource(List<org.eclipse.emf.ecore.resource.Resource> resources)
          Selects a Resource from a list of given resources.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ESRoundRobinResourceSelectionStrategy

public ESRoundRobinResourceSelectionStrategy()
Method Detail

selectResource

public org.eclipse.emf.ecore.resource.Resource selectResource(List<org.eclipse.emf.ecore.resource.Resource> resources)
Selects a Resource from a list of given resources.

Specified by:
selectResource in interface ESResourceSelectionStrategy
Parameters:
resources - the resources to select a resource from
Returns:
the selected resource
See Also:
ESResourceSelectionStrategy.selectResource(java.util.List)


Copyright © 2015. All Rights Reserved.