|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.knowgate.addrbook.DayPlan
public class DayPlan
A bidimensional array with daily scheduled meeting in quarters of an hour.
| Constructor Summary | |
|---|---|
DayPlan()
|
|
| Method Summary | |
|---|---|
int |
concurrentMeetings(int slice)
Get count of concurrent meetings at a given slice |
Meeting |
getMeeting(int slice,
int slot)
Get meeting information Each meeting is asoociated with one or more day slices by having a list at the slice that point to every meeting taking place on the slice. |
void |
load(JDCConnection oConn,
java.lang.String sFellowId,
java.util.Date dtToday)
A shortcut for load scheduled meetings for a given Fellow. |
void |
loadMeetingsForAddress(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sAddressId,
java.util.Date dtToday)
Load scheduled meetings for a given Address. |
void |
loadMeetingsForFellow(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sFellowId,
java.util.Date dtToday)
Load scheduled meetings for a given Fellow. |
void |
loadMeetingsForRoom(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sNmRoom,
java.util.Date dtToday)
Load scheduled meetings for a given Room. |
Meeting |
seekMeeting(java.lang.String sMeeting)
Lookup a meeting given its unique identifier |
int |
sliceCount()
Slice count per day. |
int |
slotsPerSlice()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DayPlan()
| Method Detail |
|---|
public void loadMeetingsForFellow(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sFellowId,
java.util.Date dtToday)
throws java.sql.SQLException
Load scheduled meetings for a given Fellow.
oConn - Database ConnectioniDomainId - Domain Unique IdentifiersWorkAreaId - WorkArea Global Unique IdentifiersFellowId - Fellow Unique IdentifierdtToday - Date for witch meeting are to be retrieved
java.sql.SQLExceptionFellow}
public void loadMeetingsForRoom(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sNmRoom,
java.util.Date dtToday)
throws java.sql.SQLException
Load scheduled meetings for a given Room.
oConn - Database ConnectioniDomainId - Domain Unique IdentifiersWorkAreaId - WorkArea Global Unique IdentifiersNmRoom - Room NamedtToday - Date for witch meeting are to be retrieved
java.sql.SQLExceptionFellow}
public void loadMeetingsForAddress(JDCConnection oConn,
int iDomainId,
java.lang.String sWorkAreaId,
java.lang.String sAddressId,
java.util.Date dtToday)
throws java.sql.SQLException
Load scheduled meetings for a given Address.
oConn - Database ConnectioniDomainId - Domain Unique IdentifiersWorkAreaId - WorkArea Global Unique IdentifiersAddressId - Address Global Unique IdentifierdtToday - Date for witch meeting are to be retrieved
java.sql.SQLExceptionFellow}
public void load(JDCConnection oConn,
java.lang.String sFellowId,
java.util.Date dtToday)
throws java.sql.SQLException
A shortcut for load scheduled meetings for a given Fellow.
oConn - Database ConnectionsFellowId - Fellow Unique IdentifierdtToday - Date for witch meeting are to be retrieved
java.sql.SQLExceptionFellow}public int sliceCount()
Slice count per day.
96 is the default and equals a day divided in 15 minutes slices
public int slotsPerSlice()
public int concurrentMeetings(int slice)
throws java.lang.ArrayIndexOutOfBoundsException
Get count of concurrent meetings at a given slice
slice - [0...sliceCount()-1]
java.lang.ArrayIndexOutOfBoundsException - If slice<0 or slice>=sliceCount()
public Meeting getMeeting(int slice,
int slot)
throws java.lang.ArrayIndexOutOfBoundsException
Get meeting information
Each meeting is asoociated with one or more day slices by having a list at the slice that point to every meeting taking place on the slice.
Thus for retriving a meeting both the slice number and the relative ordinal position of the meeting at the slice are needed.
slice - [0...sliceCount()-1]slot - [0...slotsPerSlice()-1]
Meeting or null if no meeting was found at the given (slice,slot) pair.
java.lang.ArrayIndexOutOfBoundsException - If slice<0 or slice>=sliceCount() or slot<0 or slot>=slotsPerSlice()public Meeting seekMeeting(java.lang.String sMeeting)
Lookup a meeting given its unique identifier
sMeeting - Meeting Unique Identifier
Meeting or null if no meeting was found with given identifier.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||