org.decisiondeck.jmcda.structure.sorting.assignment.credibilities
Interface IOrderedAssignmentsWithCredibilitiesRead

All Superinterfaces:
IAssignmentsToMultipleRead, IAssignmentsWithCredibilitiesRead, IOrderedAssignmentsToMultipleRead
All Known Subinterfaces:
IOrderedAssignmentsWithCredibilities
All Known Implementing Classes:
CowOrderedAssignmentsWithCredibilities, OrderedAssignmentsWithCredibilities, OrderedAssignmentsWithCredibilitiesFiltering, OrderedAssignmentsWithCredibilitiesFilteringOnCredibilities, OrderedAssignmentsWithCredibilitiesForwarder, OrderedAssignmentsWithCredibilitiesFromRead, OrderedAssignmentsWithCredibilitiesViewFromMultiple

public interface IOrderedAssignmentsWithCredibilitiesRead
extends IAssignmentsWithCredibilitiesRead, IOrderedAssignmentsToMultipleRead

Equivalent to IAssignmentsWithCredibilitiesRead to use when the categories the alternatives are assigned to are provided with a total ordering, thus can be sorted from worst to best without ex-æquo.

An assignments to multiple categories with credibilities object equals an other one iff they contain the same alternatives assigned to the same categories with the same credibilities and contain the same set of overall categories in the same order.


Method Summary
 boolean equals(Object obj)
           Indicates whether the given object is equal to this one.
 NavigableMap<Category,Double> getCredibilities(Alternative alternative)
           Retrieves a (possibly read-only) copy of the categories an alternative is assigned to together with their associated credibility degrees, ordered from the worst category to the best category the given alternative is assigned to.
 
Methods inherited from interface org.decisiondeck.jmcda.structure.sorting.assignment.IOrderedAssignmentsToMultipleRead
getCategories, getCategories
 
Methods inherited from interface org.decisiondeck.jmcda.structure.sorting.assignment.IAssignmentsToMultipleRead
getAlternatives, getAlternatives
 

Method Detail

getCredibilities

NavigableMap<Category,Double> getCredibilities(Alternative alternative)

Retrieves a (possibly read-only) copy of the categories an alternative is assigned to together with their associated credibility degrees, ordered from the worst category to the best category the given alternative is assigned to. That ordering relates to the preference order on the categories and not to the degrees of credibilities, i.e. it is usually not ordered by degree of credibility. The order is compatible with the ordering given by IAssignmentsToMultipleRead.getCategories().

Specified by:
getCredibilities in interface IAssignmentsWithCredibilitiesRead
Parameters:
alternative - not null.
Returns:
null iff the given alternative is not assigned, otherwise, a map containing at least one entry.

equals

boolean equals(Object obj)

Indicates whether the given object is equal to this one. This is true iff the given object is a IOrderedAssignmentsWithCredibilitiesRead, contains the same alternatives assigned to the same categories with the same credibilities, and contains the same set of overall categories as this object in the same order.

Specified by:
equals in interface IAssignmentsToMultipleRead
Specified by:
equals in interface IAssignmentsWithCredibilitiesRead
Specified by:
equals in interface IOrderedAssignmentsToMultipleRead
Overrides:
equals in class Object
Parameters:
obj - may be null.
Returns:
true iff both objects are considered equal.


Copyright © 2011. All Rights Reserved.