org.decisiondeck.xmcda_oo.utils
Class FeasibleSpaceExplorer

java.lang.Object
  extended by org.decisiondeck.xmcda_oo.utils.FeasibleSpaceExplorer
All Implemented Interfaces:
Iterator<AlternativeEvaluations>, AlternativeSpaceExplorer

public class FeasibleSpaceExplorer
extends Object
implements AlternativeSpaceExplorer

This object allows to explore a space of alternatives. It will iterate through all alternatives that are not better than those the user has marked as maximal. This object will return every alternative possible in the given space, except those that would dominate one marked as maximal.


Constructor Summary
FeasibleSpaceExplorer(org.apache.commons.collections15.OrderedMap<Criterion,IntegerStepScaleToDel> scales)
           
 
Method Summary
 boolean hasNext()
           
 AlternativeEvaluations next()
           
 boolean overMaximal(Map<Criterion,Double> alternative)
          The given alternative must be evaluated on the criteria bound to this object.
 void remove()
          Throws UnsupportedOperationException.
 void setMaximal(AlternativeEvaluations maximalAlternative)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeasibleSpaceExplorer

public FeasibleSpaceExplorer(org.apache.commons.collections15.OrderedMap<Criterion,IntegerStepScaleToDel> scales)
Method Detail

setMaximal

public void setMaximal(AlternativeEvaluations maximalAlternative)

next

public AlternativeEvaluations next()
Specified by:
next in interface Iterator<AlternativeEvaluations>

overMaximal

public boolean overMaximal(Map<Criterion,Double> alternative)
The given alternative must be evaluated on the criteria bound to this object.

Parameters:
alternative - not null.
Returns:
true iff the given alternative dominates at least one maximal alternative.

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<AlternativeEvaluations>

remove

public void remove()
Throws UnsupportedOperationException.

Specified by:
remove in interface Iterator<AlternativeEvaluations>


Copyright © 2011. All Rights Reserved.