XPUSP - Home

br.usp.ime.xpusp.om
Class Professor

java.lang.Object
  |
  +--org.apache.turbine.om.BaseObject
        |
        +--br.usp.ime.xpusp.om.BaseProfessor
              |
              +--br.usp.ime.xpusp.om.Professor
All Implemented Interfaces:
org.apache.turbine.om.Persistent, org.apache.turbine.om.Retrievable, java.io.Serializable

public class Professor
extends BaseProfessor
implements org.apache.turbine.om.Persistent

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

See Also:
Serialized Form

Field Summary
static int FREE_BOTH_SEMESTERS
          This is the constant value for getFreeSemester that represents a free first and second semester
static int FREE_FIRST_SEMESTER
          This is the constant value for getFreeSemester that represents a free first semester
static int FREE_SECOND_SEMESTER
          This is the constant value for getFreeSemester that represents a free second semester
static int NO_FREE_SEMESTER
          This is the constant value for getFreeSemester that represents no free semester
 
Fields inherited from class br.usp.ime.xpusp.om.BaseProfessor
aDepartment, alreadyInSave, collProfessorCapables, collProfessorChoices, collProfessorPeriods, collSchedules, collXpuspUsers, department_code, free_semester, lastProfessorCapablesCriteria, lastProfessorChoicesCriteria, lastProfessorPeriodsCriteria, lastSchedulesCriteria, lastXpuspUsersCriteria, professor_id
 
Fields inherited from class org.apache.turbine.om.BaseObject
errMsg, is_new, modified, NEW_ID, primaryKey
 
Constructor Summary
Professor()
           
 
Method Summary
 java.util.Vector getDesirableProfessorPeriods()
           
 java.util.Vector getImpossibleProfessorPeriods()
           
 java.util.Vector getProfessorChoicesByWeight()
           
 ProfessorPeriod getProfessorPeriod(Period p)
           
private  java.util.Vector getProfessorPeriodsByType(int type)
           
 java.util.Vector getUndesirableProfessorPeriods()
           
 java.lang.String getUserName()
           
 XpuspUser getXpuspUser()
           
 boolean isCapable(Discipline d)
           
 boolean isChosen(ProfessorCapable pc)
           
 boolean isDesirable(Period p)
           
 boolean isImpossible(Period p)
           
 boolean isIndiferent(Period p)
           
 boolean isUndesirable(Period p)
           
 
Methods inherited from class br.usp.ime.xpusp.om.BaseProfessor
addProfessorCapable, addProfessorChoice, addProfessorPeriod, addSchedule, addXpuspUser, copy, getDepartment, getDepartmentCode, getFreeSemester, getPrimaryKey, getProfessorCapables, getProfessorCapables, getProfessorCapablesJoinDiscipline, getProfessorChoices, getProfessorChoices, getProfessorChoicesJoinProfessorCapable, getProfessorId, getProfessorPeriods, getProfessorPeriods, getProfessorPeriodsJoinPeriod, getQueryKey, getSchedules, getSchedules, getSchedulesJoinDiscipline, getSchedulesJoinPeriod, getSchedulesJoinYear, getXpuspUsers, getXpuspUsers, getXpuspUsersJoinDepartment, initProfessorCapables, initProfessorChoices, initProfessorPeriods, initSchedules, initXpuspUsers, save, save, save, setDepartment, setDepartmentCode, setDepartmentCode, setDepartmentKey, setFreeSemester, setPrimaryKey, setPrimaryKey, setProfessorId, setProfessorId, setQueryKey
 
Methods inherited from class org.apache.turbine.om.BaseObject
, equals, equals, getByName, getByPeerName, getByPosition, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.om.Persistent
getPrimaryKey, isModified, isNew, save, setModified, setNew, setPrimaryKey, setPrimaryKey
 

Field Detail

NO_FREE_SEMESTER

public static final int NO_FREE_SEMESTER
This is the constant value for getFreeSemester that represents no free semester

FREE_FIRST_SEMESTER

public static final int FREE_FIRST_SEMESTER
This is the constant value for getFreeSemester that represents a free first semester

FREE_SECOND_SEMESTER

public static final int FREE_SECOND_SEMESTER
This is the constant value for getFreeSemester that represents a free second semester

FREE_BOTH_SEMESTERS

public static final int FREE_BOTH_SEMESTERS
This is the constant value for getFreeSemester that represents a free first and second semester
Constructor Detail

Professor

public Professor()
Method Detail

isCapable

public boolean isCapable(Discipline d)
                  throws java.lang.Exception
Returns:
true if there is a ProfessorCapable for this professor with Discipline d false otherwise

isChosen

public boolean isChosen(ProfessorCapable pc)
                 throws java.lang.Exception
Returns:
true if this ProfessorCapable is chosen by this professor

isImpossible

public boolean isImpossible(Period p)
                     throws java.lang.Exception
Returns:
true if this Period was marked as impossible by the professor

isIndiferent

public boolean isIndiferent(Period p)
                     throws java.lang.Exception
Returns:
true if this Period was marked as indiferent (or not marked) by the professor

isUndesirable

public boolean isUndesirable(Period p)
                      throws java.lang.Exception
Returns:
true if this Period was marked as undesirable by the professor

isDesirable

public boolean isDesirable(Period p)
                    throws java.lang.Exception
Returns:
true if this Period was marked as desirable by the professor

getProfessorPeriod

public ProfessorPeriod getProfessorPeriod(Period p)
                                   throws java.lang.Exception
Returns:
The ProfessorPeriod for this period or null if there is none

getProfessorPeriodsByType

private java.util.Vector getProfessorPeriodsByType(int type)
                                            throws java.lang.Exception

getImpossibleProfessorPeriods

public java.util.Vector getImpossibleProfessorPeriods()
                                               throws java.lang.Exception

getUndesirableProfessorPeriods

public java.util.Vector getUndesirableProfessorPeriods()
                                                throws java.lang.Exception

getDesirableProfessorPeriods

public java.util.Vector getDesirableProfessorPeriods()
                                              throws java.lang.Exception

getProfessorChoicesByWeight

public java.util.Vector getProfessorChoicesByWeight()
                                             throws java.lang.Exception
Returns:
A vector with all ProfessorChoices for this professor ordered by weight

getXpuspUser

public XpuspUser getXpuspUser()
                       throws java.lang.Exception

getUserName

public java.lang.String getUserName()
                             throws java.lang.Exception

XPUSP - Home