XPUSP - Home

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.

SourceForge LogoSource Forge Info
CVS File :ScheduleHelper.java
User :krico
Version :1.3
Date :2002/06/08 22:24:21

Version:
$Id: ScheduleHelper.java,v 1.3 2002/06/08 22:24:21 krico Exp $
Author:
Christian Willy Asmussen, Alexandre Freire da Silva

Field Summary
private  java.util.Hashtable byPeriod
           
private  java.util.TreeMap dows
           
private  java.util.TreeMap hours
           
private  java.util.HashMap periodMatrix
           
private  java.util.Hashtable professorsById
           
private  Year year
           
 
Constructor Summary
ScheduleHelper(Year y)
           
 
Method Summary
 Period get(java.lang.Integer x, java.lang.Integer y)
           
 java.util.Iterator getColHeaders()
           
 java.util.Iterator getCols()
           
 java.util.Vector getDisciplines(java.lang.Integer x, java.lang.Integer y, Professor prof)
           
 java.util.Enumeration getProfessors()
           
 java.lang.String getRowHeader(java.lang.Integer hour)
           
 java.util.Iterator getRows()
           
 Year getYear()
           
 void init()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ScheduleHelper

public ScheduleHelper(Year y)
               throws java.lang.Exception
Method Detail

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()

XPUSP - Home