org.decisiondeck.jmcda.structure.coalitions
Class CoalitionsUtils

java.lang.Object
  extended by org.decisiondeck.jmcda.structure.coalitions.CoalitionsUtils

public class CoalitionsUtils
extends Object


Constructor Summary
CoalitionsUtils()
           
 
Method Summary
static boolean approxEqual(ICoalitions c1, ICoalitions c2, double tolerance)
           
static boolean equivalent(ICoalitions c1, ICoalitions c2)
           
static Equivalence<ICoalitions> getCoalitionsEquivalenceRelation()
           
static ICoalitions getCoalitionsView(ICoalitions delegate)
          Retrieves a read-only view of the given coalitions.
static ICoalitions getCoalitionsView(ICoalitions delegate, Predicate<Criterion> predicateCriteria)
          Retrieves a read-only view of the given coalitions, viewing only the criteria allowed by the given predicate.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoalitionsUtils

public CoalitionsUtils()
Method Detail

approxEqual

public static boolean approxEqual(ICoalitions c1,
                                  ICoalitions c2,
                                  double tolerance)

equivalent

public static boolean equivalent(ICoalitions c1,
                                 ICoalitions c2)

getCoalitionsEquivalenceRelation

public static Equivalence<ICoalitions> getCoalitionsEquivalenceRelation()

getCoalitionsView

public static ICoalitions getCoalitionsView(ICoalitions delegate)
Retrieves a read-only view of the given coalitions.

Parameters:
delegate - not null.
Returns:
not null.

getCoalitionsView

public static ICoalitions getCoalitionsView(ICoalitions delegate,
                                            Predicate<Criterion> predicateCriteria)
Retrieves a read-only view of the given coalitions, viewing only the criteria allowed by the given predicate.

Parameters:
delegate - not null.
predicateCriteria - not null.
Returns:
not null.


Copyright © 2011. All Rights Reserved.