|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.pavlov.user.AbstractStrategy
public abstract class AbstractStrategy
AbstractStrategy is the base class for a
question selection strategy.
| Field Summary | |
|---|---|
protected Collection<QuestionData> |
questions
List of questions to choose from. |
protected ResourceBroker |
rb
|
| Constructor Summary | |
|---|---|
AbstractStrategy()
Creates a new AbstractStrategy instance with
no QuestionData to work on. |
|
AbstractStrategy(Collection<QuestionData> questions)
Creates a new AbstractStrategy instance to
draw from the given Questions. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Describe actionPerformed method here. |
String |
getName()
Returns a short descriptive name for this strategy. |
abstract QuestionData |
getQuestion(Vector<QuestionData> exclusion)
Returns the next question using the implemented strategy. |
void |
setQuestions(Collection<QuestionData> questions)
Set the collection of questions to draw from. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.pavlov.pluglets.Pluglet |
|---|
getDescription |
| Field Detail |
|---|
protected Collection<QuestionData> questions
protected ResourceBroker rb
| Constructor Detail |
|---|
public AbstractStrategy()
AbstractStrategy instance with
no QuestionData to work on.
public AbstractStrategy(Collection<QuestionData> questions)
AbstractStrategy instance to
draw from the given Questions.
| Method Detail |
|---|
public void setQuestions(Collection<QuestionData> questions)
public String getName()
getName in interface PlugletString valuepublic abstract QuestionData getQuestion(Vector<QuestionData> exclusion)
QuestionData valuepublic void actionPerformed(ActionEvent e)
actionPerformed method here.
actionPerformed in interface ActionListenere - an ActionEvent value
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||