br.usp.ime.xpusp.util
Class ScheduleHelper
java.lang.Object
|
+--br.usp.ime.xpusp.util.ScheduleHelper
- public class ScheduleHelper
- extends java.lang.Object
This is a tool to help people work with Schedule
.
- Version:
- $Id: ScheduleHelper.java,v 1.3 2002/06/08 22:24:21 krico Exp $
- Author:
- Christian Willy Asmussen, Alexandre Freire da Silva
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
year
private Year year
periodMatrix
private java.util.HashMap periodMatrix
byPeriod
private java.util.Hashtable byPeriod
professorsById
private java.util.Hashtable professorsById
hours
private java.util.TreeMap hours
dows
private java.util.TreeMap dows
ScheduleHelper
public ScheduleHelper(Year y)
throws java.lang.Exception
getYear
public Year getYear()
getProfessors
public java.util.Enumeration getProfessors()
init
public void init()
throws java.lang.Exception
get
public Period get(java.lang.Integer x,
java.lang.Integer y)
getDisciplines
public java.util.Vector getDisciplines(java.lang.Integer x,
java.lang.Integer y,
Professor prof)
- Returns:
- A Vector of disciplines for the given professor at the given position or null if there is no discipline.
getRows
public java.util.Iterator getRows()
getRowHeader
public java.lang.String getRowHeader(java.lang.Integer hour)
getCols
public java.util.Iterator getCols()
getColHeaders
public java.util.Iterator getColHeaders()