import java.util.TreeMap;
import java.util.TreeSet;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import org.dom4j.DocumentFactory;
import org.dom4j.Element;
import org.wamblee.crawler.kiss.guide.Program;
* in what order and makes decisions in case of conflicts.
*/
public class ProgramActionExecutor {
+
+ private static final Log LOG = LogFactory.getLog(ProgramActionExecutor.class);
/**
* A map of category name to a set of program. Useful for displaying the
* Program to record.
*/
public void recordProgram(int aPriority, Program aProgram) {
+ LOG.info("priority = " + aPriority + ", program: " + aProgram);
_showsToRecord.add(aProgram);
}
* Program.
*/
public void interestingProgram(String aCategory, Program aProgram) {
+ LOG.info("category = '" + aCategory + "', program: " + aProgram);
Set<Program> programs = _interestingShows.get(aCategory);
if (programs == null) {
programs = new TreeSet<Program>(new Program.TimeSorter());