org.decisiondeck.xmcda_oo.utils
Class FeasibleSpaceExplorer
java.lang.Object
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.
FeasibleSpaceExplorer
public FeasibleSpaceExplorer(org.apache.commons.collections15.OrderedMap<Criterion,IntegerStepScaleToDel> scales)
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.