|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmadem.DecisionData
public class DecisionData
Data structure holding all the information related to a specific decision problem.
| Field Summary | |
|---|---|
private java.util.List<Atom> |
agents
Agents involved in the decision-making. |
private java.util.List<Term> |
allocations
Allocations being considered as solutions for the decision problem. |
private boolean |
decisionClosed
Flag indicating that the winner determination problem as already started for this decision. |
private int |
id
Decision id |
private static int |
id_generator
Decision id generator |
private Multimodality |
multimodality
Type of multimodality used in the Winner Determination Problem |
private boolean |
multipleSolution
Flag indicating whether the winner determination problem returns all possible winners for the decision or just one randomly chosen. |
private java.util.Map<Atom,java.lang.Float> |
personalWeights
Personal weights representing the internal attitude of the agent towards other individuals. |
private boolean |
returnWelfare
Flag indicating whether the winner determination problem returns the social welfare of winner allocations. |
private java.util.concurrent.ScheduledFuture<?> |
timeoutTask
Task object that can be used to cancel or check execution of the timeout. |
private java.util.List<Atom> |
utilityFunctions
Names of the utility functions being considered. |
private java.util.concurrent.ConcurrentMap<Atom,java.util.List<java.lang.Float>> |
utilityValues
Utility values received from the agents involved in the decision. |
private java.util.Map<Atom,java.lang.Float> |
utilityWeights
Utility weights representing the importance given to each point of view in the multi-modal agent decision making. |
private Cuf |
welfare
Social welfare considered by the agent |
| Constructor Summary | |
|---|---|
DecisionData(java.util.List<Atom> ags,
java.util.List<Term> allocs,
java.util.List<Atom> uFuncs,
java.util.concurrent.ConcurrentMap<Atom,java.lang.Float> pW,
java.util.concurrent.ConcurrentMap<Atom,java.lang.Float> uW,
Cuf sw,
Multimodality m,
boolean multipleSolutions,
boolean returnWelfare)
DecisionData constructor. |
|
| Method Summary | |
|---|---|
void |
addBid(java.lang.String bidder,
java.util.List<Term> uValues)
Adds a bid to the MADeM decision data. |
boolean |
areAllBidsReceived()
Checks whether all agents have already bid and their bids have been received. |
java.util.List<Atom> |
getAgents()
Returns the name of the agents involved in the decision. |
java.util.List<Term> |
getAllocations()
Returns the allocations considered as solutions for the decision problem. |
int |
getId()
Returns the identifier of the decision making. |
Multimodality |
getMultimodality()
Gets the type of multimodality used in the Winner Determination Problem. |
java.util.Map<Atom,java.lang.Float> |
getPersonalWeights()
Returns the personal weights for the agents involved in the decision. |
boolean |
getReturnWelfare()
Returns whether the winner determination problem (WDP) returns the social welfare of winner allocations. |
java.util.concurrent.ScheduledFuture<?> |
getTimeoutTask()
Returns the task object that can be used to cancel or check execution of the timeout.. |
java.util.List<Atom> |
getUtilityFunctions()
Returns the name of the utility functions used to express preference. |
java.util.concurrent.ConcurrentMap<Atom,java.util.List<java.lang.Float>> |
getUtilityValues()
Returns the utility values received from the agents involved in the decision. |
java.util.Map<Atom,java.lang.Float> |
getUtilityWeights()
Returns the utility weights for the utility functions being used. |
Cuf |
getWelfare()
Returns the social welfare applied to solve the decision problem. |
boolean |
isDecisionClosed()
Returns whether the winner determination problem (WDP) has already started for this decision. |
boolean |
isMultipleSolution()
Returns whether the winner determination problem (WDP) returns all possible winners for the decision or just one randomly chosen. |
void |
setDecisionClosed(boolean decisionClosed)
Sets the value of the flag indicating whether the winner determination problem (WDP) has already started for this decision. |
void |
setMultimodality(Multimodality new_multimodality)
Changes the type of multimodality used in the Winner Determination Problem. |
void |
setMultipleSolution(boolean multipleSolution)
Sets the value of the flag indicating whether the winner determination problem (WDP) returns all possible winners for the decision or just one randomly chosen. |
void |
setReturnWelfare(boolean returnWelfare)
Sets the value of the flag indicating whether the winner determination problem (WDP) returns the social welfare of winner allocations. |
void |
setTimeoutTask(java.util.concurrent.ScheduledFuture<?> timeoutTask)
Sets the task object that can be used to cancel or check execution of the timeout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static int id_generator
private int id
private java.util.List<Atom> agents
private java.util.List<Term> allocations
private java.util.List<Atom> utilityFunctions
private java.util.Map<Atom,java.lang.Float> utilityWeights
private java.util.Map<Atom,java.lang.Float> personalWeights
private Cuf welfare
private Multimodality multimodality
private java.util.concurrent.ConcurrentMap<Atom,java.util.List<java.lang.Float>> utilityValues
private boolean decisionClosed
private boolean multipleSolution
private boolean returnWelfare
private java.util.concurrent.ScheduledFuture<?> timeoutTask
| Constructor Detail |
|---|
DecisionData(java.util.List<Atom> ags,
java.util.List<Term> allocs,
java.util.List<Atom> uFuncs,
java.util.concurrent.ConcurrentMap<Atom,java.lang.Float> pW,
java.util.concurrent.ConcurrentMap<Atom,java.lang.Float> uW,
Cuf sw,
Multimodality m,
boolean multipleSolutions,
boolean returnWelfare)
ags - names of the agents involved in the decisionallocs - allocations being considered as solutions for the decision problemuFuncs - names of the different utility functions to pay attention topW - personal weights to be applied over external preferencesuW - utility weights in the multi-modal decisionsw - type of social welfare being consideredm - type of multimodality used in the Winner Determination ProblemmultipleSolutions - ask for all possible winners or just one randomly chosenreturnWelfare - whether to return the social welfare of winner allocations| Method Detail |
|---|
public void setTimeoutTask(java.util.concurrent.ScheduledFuture<?> timeoutTask)
timeoutTask - the timeout task objectpublic java.util.concurrent.ScheduledFuture<?> getTimeoutTask()
public int getId()
public boolean isDecisionClosed()
public void setDecisionClosed(boolean decisionClosed)
decisionClosed - new value for the flagpublic void setMultipleSolution(boolean multipleSolution)
multipleSolution - new value for the flagpublic boolean isMultipleSolution()
public void setReturnWelfare(boolean returnWelfare)
returnWelfare - new value for the flagpublic boolean getReturnWelfare()
public void addBid(java.lang.String bidder,
java.util.List<Term> uValues)
bidder - name of the bidder agentuValues - utility values obtained by the set utility functions
being considered for the different allocationspublic boolean areAllBidsReceived()
public java.util.List<Atom> getAgents()
public java.util.Map<Atom,java.lang.Float> getPersonalWeights()
public java.util.List<Term> getAllocations()
public java.util.List<Atom> getUtilityFunctions()
public java.util.Map<Atom,java.lang.Float> getUtilityWeights()
public Cuf getWelfare()
public java.util.concurrent.ConcurrentMap<Atom,java.util.List<java.lang.Float>> getUtilityValues()
public void setMultimodality(Multimodality new_multimodality)
new_multimodality - new type of multimodalitypublic Multimodality getMultimodality()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||