Class RewardFactBuilderImpl
- java.lang.Object
-
- it.univaq.gamification.simulation.builders.impl.fact.RewardFactBuilderImpl
-
- All Implemented Interfaces:
GameFactBuilder<RewardFactBuilderImpl,eu.trentorise.game.model.Reward>
public class RewardFactBuilderImpl extends java.lang.Object implements GameFactBuilder<RewardFactBuilderImpl,eu.trentorise.game.model.Reward>
-
-
Constructor Summary
Constructors Constructor Description RewardFactBuilderImpl(double percentage, double threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description eu.trentorise.game.model.Reward
asOriginalPojo()
java.util.Map<java.lang.String,java.lang.Double>
getBonusScore()
double
getPercentage()
double
getThreshold()
void
setPercentage(double percentage)
void
setThreshold(double threshold)
-
-
-
Method Detail
-
asOriginalPojo
public eu.trentorise.game.model.Reward asOriginalPojo()
- Specified by:
asOriginalPojo
in interfaceGameFactBuilder<RewardFactBuilderImpl,eu.trentorise.game.model.Reward>
-
getPercentage
public double getPercentage()
-
setPercentage
public void setPercentage(double percentage)
-
getThreshold
public double getThreshold()
-
setThreshold
public void setThreshold(double threshold)
-
getBonusScore
public java.util.Map<java.lang.String,java.lang.Double> getBonusScore()
-
-