|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.user.AbstractStrategy net.sourceforge.pavlov.user.BasicStrategy
public class BasicStrategy
A non-plug-in default strategy so that Pavlov can operate if the strategy directory is empty or damaged. Returns the question with the fewest number of answers.
Field Summary |
---|
Fields inherited from class net.sourceforge.pavlov.user.AbstractStrategy |
---|
questions, rb |
Constructor Summary | |
---|---|
BasicStrategy()
Creates a new BasicStrategy instance. |
|
BasicStrategy(Collection<QuestionData> questionList)
Creates a new BasicStrategy instance. |
Method Summary | |
---|---|
String |
getDescription()
Returns a short descriptive name for this strategy. |
String |
getName()
Returns a short descriptive name for this strategy. |
QuestionData |
getQuestion(Vector<QuestionData> exclusion)
Returns the next question using the abovementioned strategy. |
Methods inherited from class net.sourceforge.pavlov.user.AbstractStrategy |
---|
actionPerformed, setQuestions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicStrategy()
BasicStrategy
instance.
public BasicStrategy(Collection<QuestionData> questionList)
BasicStrategy
instance.
Method Detail |
---|
public String getName()
getName
in interface Pluglet
getName
in class AbstractStrategy
String
valuepublic String getDescription()
String
valuepublic QuestionData getQuestion(Vector<QuestionData> exclusion)
getQuestion
in class AbstractStrategy
QuestionData
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |