E
- the timeslot objectF
- the schedule dependency objectpublic class Schedule<E extends DataObject<E> & UniqueidentifiedInterface<E> & TimeslotInterface<E> & ScheduleInterface<E,F>,F extends DataObject<F> & AutolinkobjectInterface<F,E> & ScheduledependencyInterface<F,E>> extends DataObjectProperty<E>
updatedfieldingui
definition, field, parentpayload
Constructor and Description |
---|
Schedule(ScheduleDefinition<E,F> definition,
DataObjectPayload parentpayload,
DataObjectDefinition<F> dependencylinkobjectdefinition)
creates a new schedule property
|
Modifier and Type | Method and Description |
---|---|
void |
changeMeetingsAfter(E originslot,
WorkCalendarHelper calendarhelper,
int breaker)
change all meetings according to dependencies after the original slot.
|
java.lang.Integer |
getcalendarendhour(E object)
gets the calendar end hour (latest slot in the week)
|
java.lang.Integer |
getcalendarstarthour(E object)
gets the calendar start hour (earliest slot in the week)
|
java.util.Date |
getnextstarthour(E object)
gets the next start date in the calendar after the end of the current slot
|
WorkCalendarHelper.CalendarTimeSlot[] |
getSessionsForTimeSlot(E object)
get all the valid timeslots (time only, not the data object) for the given
data object start time and end time
|
Timeslot<E> |
getTimeslot()
get the related Timeslot property of this schedule element
|
void |
insertafter(E previousobject,
E nextobject)
inserts this task between two tasks.
|
void |
postprocTimeslotRepairschedule(E object)
repairs the schedule after the current schedule element
|
void |
postprocTimeslotReschedule(E object,
java.util.Date starttime,
java.util.Date endtime)
post treatment after the schedule element has been rescheduled
|
void |
rescheduleafter(E object)
reschedules all objects after the specified object
|
void |
setDependentPropertyTimeslot(Timeslot<E> timeslot)
sets the dependent timeslot property.
|
generateSimpleDataEltFromObject, getDisplayDataElt, getDynamicDataElt, getFieldBufferForGUI
getAllTriggersForRefresh, getFieldFromName, getFieldNumber, getStoredField, getTriggersForThisUpdate, initFromDB, postTreatmentAfterInitFromDB
changeName, cleanName, equals, getName
public Schedule(ScheduleDefinition<E,F> definition, DataObjectPayload parentpayload, DataObjectDefinition<F> dependencylinkobjectdefinition)
definition
- definition of the schedule propertyparentpayload
- parent payload of the data objectdependencylinkobjectdefinition
- dependent object definition of the link
representing the schedule dependenciespublic Timeslot<E> getTimeslot()
public WorkCalendarHelper.CalendarTimeSlot[] getSessionsForTimeSlot(E object)
object
- public void rescheduleafter(E object)
object
- public void postprocTimeslotRepairschedule(E object)
object
- current schedule elementpublic void postprocTimeslotReschedule(E object, java.util.Date starttime, java.util.Date endtime)
object
- current schedule elementstarttime
- new start timeendtime
- new end timepublic void setDependentPropertyTimeslot(Timeslot<E> timeslot)
timeslot
- dependent timeslot propertypublic java.lang.Integer getcalendarstarthour(E object)
object
- (current object - not used)public java.lang.Integer getcalendarendhour(E object)
object
- (current object - not used)public java.util.Date getnextstarthour(E object)
object
- current slotpublic void insertafter(E previousobject, E nextobject)
previousobject
- task to insert afternextobject
- task to insert beforepublic void changeMeetingsAfter(E originslot, WorkCalendarHelper calendarhelper, int breaker)
originslot
- origin slot to perform the rescheduling afftercalendarhelper
- calendarbreaker
- recursive breaker