|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.taglibs.rdc.sampleapps.musicstore.ProactiveHelp
public class ProactiveHelp
Implements a simple proactive help (user hints) java bean
| Field Summary | |
|---|---|
protected java.util.ResourceBundle |
hints
|
protected int |
threshold
The probability the proactive help component will trigger <0..100> inclusive. |
protected boolean |
usageWeighted
Adjust probabilities based on play count for each particular hint. |
| Constructor Summary | |
|---|---|
ProactiveHelp()
|
|
| Method Summary | |
|---|---|
java.util.ResourceBundle |
getHints()
Access method for the hints property. |
java.util.Map |
getStats()
|
int |
getThreshold()
Access method for the threshold property. |
boolean |
getUsageWeighted()
Determines if the usageWeighted property is true. |
java.lang.String |
nextHint()
|
void |
setHints(java.util.ResourceBundle aHints)
Sets the value of the hints property. |
void |
setStats(java.util.Map sts)
|
void |
setThreshold(int aThreshold)
Sets the value of the threshold property. |
void |
setUsageWeighted(boolean aUsageWeighted)
Sets the value of the usageWeighted property. |
boolean |
strike()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int threshold
protected boolean usageWeighted
protected java.util.ResourceBundle hints
| Constructor Detail |
|---|
public ProactiveHelp()
| Method Detail |
|---|
public int getThreshold()
public void setThreshold(int aThreshold)
aThreshold - the new value of the threshold propertypublic boolean getUsageWeighted()
true if the usageWeighted property is truepublic void setUsageWeighted(boolean aUsageWeighted)
aUsageWeighted - the new value of the usageWeighted propertypublic boolean strike()
public java.lang.String nextHint()
public java.util.Map getStats()
public java.util.ResourceBundle getHints()
public void setHints(java.util.ResourceBundle aHints)
aHints - the new value of the hints propertypublic void setStats(java.util.Map sts)
sts - a map of (hintKey, playCount) where playCount can be
either Integer or String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||