Package org.powertac.factoredcustomer
Class ProfileRecommendation
- java.lang.Object
-
- org.powertac.factoredcustomer.ProfileRecommendation
-
public class ProfileRecommendation extends Object
Contains maps of opinions, scores, utilities, and choice probabilities for each CapacityProfile.- Author:
- Prashant Reddy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProfileRecommendation.Listener
class
ProfileRecommendation.Opinion
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
computeProbabilities(double rationality)
void
computeScores(double profileChangeWeight, double bundleValueWeight)
void
computeScores(Map<org.powertac.factoredcustomer.ProfileRecommendation.ScoringFactor,Double> weights)
void
computeUtilities()
double
getNonScaledScore(CapacityProfile chosenProfile)
Map<CapacityProfile,ProfileRecommendation.Opinion>
getOpinions()
Map<CapacityProfile,Double>
getProbabilities()
Map<CapacityProfile,Double>
getScores()
Map<CapacityProfile,Double>
getUtilities()
boolean
isEmpty()
void
normalizeOpinions()
void
setOpinion(CapacityProfile profile, ProfileRecommendation.Opinion opinion)
void
setScore(CapacityProfile profile, Double score)
-
-
-
Method Detail
-
setOpinion
public void setOpinion(CapacityProfile profile, ProfileRecommendation.Opinion opinion)
-
getOpinions
public Map<CapacityProfile,ProfileRecommendation.Opinion> getOpinions()
-
setScore
public void setScore(CapacityProfile profile, Double score)
-
getScores
public Map<CapacityProfile,Double> getScores()
-
getUtilities
public Map<CapacityProfile,Double> getUtilities()
-
getProbabilities
public Map<CapacityProfile,Double> getProbabilities()
-
isEmpty
public boolean isEmpty()
-
normalizeOpinions
public void normalizeOpinions()
-
computeScores
public void computeScores(Map<org.powertac.factoredcustomer.ProfileRecommendation.ScoringFactor,Double> weights)
-
computeScores
public void computeScores(double profileChangeWeight, double bundleValueWeight)
-
computeUtilities
public void computeUtilities()
-
computeProbabilities
public void computeProbabilities(double rationality)
-
getNonScaledScore
public double getNonScaledScore(CapacityProfile chosenProfile)
-
-