public interface SequenceManager
| Modifier and Type | Method and Description |
|---|---|
int |
countMistakesByProblemId(int problemId)
Return the number of times that the problem is answered incorrectly
|
java.util.List<AnswerRow> |
findAllAnswersByProblemId(int problemId)
Return a list of all answer objects for a problem
|
java.util.List<java.lang.Integer> |
findAllAssistmentsIdsByHeadSectionId(int headSectionId)
Re turn a list of all the assistment under a head section
|
java.util.List<HintRow> |
findAllHintsByTutorStrategyId(int tutorStrategyId)
Return a list of hint objects for a tutor strategy
|
java.util.List<ProblemRow> |
findAllScaffoldingProblemsByScaffoldId(int scaffoldId)
Return a list of problem (problemdata in sdk) object that is linked under a scaffold
|
java.util.List<TutorStrategy> |
findAllTutorStrategiesByProblemId(int problemId)
Return a list of tutor strategy objects for a problem
|
Assistment |
findAssistmentByAssistmentId(int astId)
Return an assistment object for the given assistment id
|
int |
findAssistmentIdByProblemId(int problemId)
Return the assistment id for a problem id
|
AssistmentInfo |
findAssistmentInfoByAssistmentId(int astId)
Return an assistment info object for a given assistment id
|
Section |
findHeadSectionBySequenceId(int sequenceId)
Returns head section object for a sequence
|
ProblemRow |
findProblemByAssistmentId(int assistmentId)
Return a problem (problemdata in sdk) object for an assistment
|
Scaffold |
findScaffoldByTutorStrategyId(int tutorStrategyId)
Return a list of scaffold objects for a tutor strategy
|
Sequence |
findSequenceBySequenceId(int sequenceId)
Returns an sequence object for a given sequence id
|
void |
linkSequenceWithHeadSection(int sequenceId,
int headSectionId)
Link the head section with the sequence
|
Sequence findSequenceBySequenceId(int sequenceId) throws NotFoundException
sequenceId - the database Id of a sequenceNotFoundException - if the id doesn't existSection findHeadSectionBySequenceId(int sequenceId) throws NotFoundException
sequenceId - the database id of a sequenceNotFoundException - if the sequence id doesn't existjava.util.List<java.lang.Integer> findAllAssistmentsIdsByHeadSectionId(int headSectionId)
throws NotFoundException
headSectionId - the id of the head sectionNotFoundException - if the head section id doesn't existjava.util.List<AnswerRow> findAllAnswersByProblemId(int problemId) throws NotFoundException
problemId - the id of the problemNotFoundException - id the problem id doesn't existint countMistakesByProblemId(int problemId)
throws NotFoundException
problemId - the id of the problemNotFoundException - if the problem id doesn't existProblemRow findProblemByAssistmentId(int assistmentId) throws NotFoundException
assistmentId - the assistment idNotFoundException - if the problem doesn't existAssistment findAssistmentByAssistmentId(int astId) throws NotFoundException
astId - the assistment idNotFoundException - if the assistment doesn't existjava.util.List<TutorStrategy> findAllTutorStrategiesByProblemId(int problemId) throws NotFoundException
problemId - the problem idNotFoundException - if there is no tutor strategy for the problemjava.util.List<HintRow> findAllHintsByTutorStrategyId(int tutorStrategyId) throws NotFoundException
tutorStrategyId - the tutor strategy idNotFoundException - if there is no hint for the tutor strategyScaffold findScaffoldByTutorStrategyId(int tutorStrategyId) throws NotFoundException
tutorStrategyId - the tutor strategy idNotFoundException - if there is no scaffold for the tutor strategyint findAssistmentIdByProblemId(int problemId)
throws NotFoundException
problemId - the problem idNotFoundException - if the problem doesn't existAssistmentInfo findAssistmentInfoByAssistmentId(int astId) throws NotFoundException
astId - the assistment idNotFoundException - if the assistment info doesn't existjava.util.List<ProblemRow> findAllScaffoldingProblemsByScaffoldId(int scaffoldId) throws NotFoundException
scaffoldId - the scaffold idNotFoundException - if the scaffold doesn't exist or there is no problem linked to the scaffold (should not happen)void linkSequenceWithHeadSection(int sequenceId,
int headSectionId)
throws NotFoundException
sequenceId - the id of the sequenceheadSectionId - the id of the head sectionNotFoundException - if the sequence doesn't exist