jitas.core
Class DefaultSelectionAlgorithm

java.lang.Object
  extended by jitas.core.DefaultSelectionAlgorithm
All Implemented Interfaces:
ProblemSelectionAlgorithm

public class DefaultSelectionAlgorithm
extends java.lang.Object
implements ProblemSelectionAlgorithm

Compute a Problem object by the JITAS system default algorithm.

Version:
08 October 2007
Author:
DeathMarch (c314g2)

Constructor Summary
DefaultSelectionAlgorithm()
           
 
Method Summary
 Problem getNextProblem(Student student, Domain domain, java.util.SortedMap<java.lang.Integer,Problem> problems, java.lang.String subdomainName)
          Return a Problem object that has been calculated by the default algorithm
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSelectionAlgorithm

public DefaultSelectionAlgorithm()
Method Detail

getNextProblem

public Problem getNextProblem(Student student,
                              Domain domain,
                              java.util.SortedMap<java.lang.Integer,Problem> problems,
                              java.lang.String subdomainName)
Return a Problem object that has been calculated by the default algorithm

Specified by:
getNextProblem in interface ProblemSelectionAlgorithm
Parameters:
student - The student
domain - The Domain
problems - The problems to choose from
subdomainName - The name of the subdomain
Returns:
The Problem selected by the system