{
System.out.println("CANCELLED");
return null;
}
CmpVertex tempVertex = temp.getVertex(question);
if(answer.firstElem == USER_ACCEPTED)
{
//sPlus.add(question);
topLearner.AugmentPTA(initialPTA, RestartLearningEnum.restartHARD, question, true,JUConstants.AMBER);
//initialPTA.paths.augmentPTA(question, true,JUConstants.AMBER);
++plusSize;
if (ans != null) System.out.println(howAnswerWasObtained+question.toString()+ " <yes>");
if(!tempVertex.isAccept())
{
restartLearning = true;break;
}
}
else
if(answer.firstElem >= 0)
{// The sequence has been rejected by a user
assert answer.firstElem < question.size();
LinkedList<String> subAnswer = new LinkedList<String>();subAnswer.addAll(question.subList(0, answer.firstElem+1));
//sMinus.add(subAnswer);
topLearner.AugmentPTA(initialPTA, RestartLearningEnum.restartHARD, subAnswer, false,JUConstants.AMBER);
//initialPTA.paths.augmentPTA(subAnswer, false,JUConstants.AMBER);
++minusSize;
// important: since vertex IDs are
// only unique for each instance of ComputeStateScores, only once
// instance should ever receive calls to augmentPTA
if (ans != null) System.out.println(howAnswerWasObtained+question.toString()+ " <no> at position "+answer.firstElem+", element "+question.get(answer.firstElem));
if( (answer.firstElem < question.size()-1) || tempVertex.isAccept())
{
assert accepted == true;
restartLearning = true;break;
}
}