Enum Class RewardDistribution
- All Implemented Interfaces:
Serializable,Comparable<RewardDistribution>,Constable
Strategy for distributing rewards among coalition members.
RewardDistribution determines how the coalition value (total reward) is divided among participating agents.
Distribution Methods
- EQUAL - Same share for all members
- PROPORTIONAL - Based on contribution ratio
- SHAPLEY - Fair division based on marginal contribution
- NUCLEOLUS - Minimizes maximum dissatisfaction
- CUSTOM - User-defined distribution
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEqual distribution.Nucleolus distribution.Performance-based distribution.Proportional distribution.Seniority-based distribution.Shapley value distribution.Winner-take-all distribution. -
Method Summary
Modifier and TypeMethodDescriptionCalculates reward distribution.Gets distribution description.static RewardDistributionReturns the enum constant of this class with the specified name.static RewardDistribution[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
EQUAL
Equal distribution.All members receive the same share regardless of contribution. Simple and perceived as fair.
-
PROPORTIONAL
Proportional distribution.Rewards proportional to recorded contributions. More contribution = more reward.
-
SHAPLEY
Shapley value distribution.Fair division based on marginal contribution to all possible sub-coalitions. Mathematically optimal but computationally expensive.
-
NUCLEOLUS
Nucleolus distribution.Minimizes the maximum dissatisfaction among coalition members.
-
PERFORMANCE_BASED
Performance-based distribution.Rewards based on individual task performance quality rather than just participation.
-
SENIORITY_BASED
Seniority-based distribution.Earlier joiners or more experienced members get higher share.
-
WINNER_TAKE_ALL
Winner-take-all distribution.Best performer gets all or majority of reward. Creates strong competition.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getDescription
Gets distribution description.- Returns:
- description
-
calculate
Calculates reward distribution.- Parameters:
totalValue- total value to distributecontributions- agent contributions- Returns:
- map of agent IDs to rewards
-