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

All Superinterfaces:
IAssignmentsToMultipleRead, IAssignmentsWithCredibilitiesRead
All Known Implementing Classes:
AssignmentsWithCredibilities

public interface IAssignmentsWithCredibilities
extends IAssignmentsWithCredibilitiesRead

A set of assignments where one assignment is a mapping of an alternative to a set of categories with associated credibilities, meaning that each category to which an alternative is mapped has an associated degree of credibility, a real number greater than zero, generally indicating the strength of assignment of that alternative to that category. An alternative is said to be assigned if it is assigned to at least one category (i.e. the set of categories to which it is mapped may not be empty).


Method Summary
 boolean clear()
           
 boolean setCredibilities(Alternative alternative, Map<Category,Double> credibilities)
          Sets, replaces, or removes the assignment of an alternative and the associated degrees of credibility.
 
Methods inherited from interface org.decisiondeck.jmcda.structure.sorting.assignment.credibilities.IAssignmentsWithCredibilitiesRead
equals, getCredibilities
 
Methods inherited from interface org.decisiondeck.jmcda.structure.sorting.assignment.IAssignmentsToMultipleRead
getAlternatives, getAlternatives, getCategories, getCategories
 

Method Detail

setCredibilities

boolean setCredibilities(Alternative alternative,
                         Map<Category,Double> credibilities)
Sets, replaces, or removes the assignment of an alternative and the associated degrees of credibility. A zero value as a degree of credibility is considered as equivalent to a missing entry: it is interpreted as meaning that the given alternative is not assigned to the corresponding category.

Parameters:
alternative - not null.
credibilities - null or empty to assign the alternative to no category, i.e., to remove the assignment of the given alternative. The map entries may not contain a null key or value, the values must be positive or zero. If the map contains only zeroes, it is considered empty.
Returns:
true iff the call changed the assignments, i.e., iff the assignment existed and has been removed, or existed and has changed (be it a change in some credibility degrees or a change of category), or did not exist and has been added.

clear

boolean clear()


Copyright © 2011. All Rights Reserved.