public interface IDutyHours extends Serializable, Comparable<IDutyHours>
IOpeningHours
and IWorkingHours
for all the different INode
and IResource
.
While both above mentioned Interfaces extend this Interface, IWorkingHours
is used for
IResource
and IOpeningHours
is used for INode
.
Modifier and Type | Interface and Description |
---|---|
static class |
IDutyHours.DutyHoursFlavour
This enables to clearly distinguish between several instances of
IDutyHours , since
WorkingHours and OpeningHours have their own flavour . |
Modifier and Type | Method and Description |
---|---|
IDutyHours |
copy()
Returns the hours as
WorkingHours(this.getBegin(), this.getEnd(), this.getZoneId()) or
OpeningHours(this.getBegin(), this.getEnd(), this.getZoneId()) . |
IDutyHours.DutyHoursFlavour |
getFlavour()
Gets the
IDutyHours.DutyHoursFlavour.WOH_FLAVOUR , the default value is enum constant
ordinal: 0 . |
TimeWindow |
getTimeWindow()
Gets the time window.
|
boolean |
isPrefferedHour()
Checks if it is a preffered hour.
|
void |
setIsPrefferedHour(boolean isPreffered)
Sets the checks if is preffered hour.
|
compareTo
IDutyHours.DutyHoursFlavour getFlavour()
IDutyHours.DutyHoursFlavour.WOH_FLAVOUR
, the default value is enum constant
ordinal: 0
.IDutyHours copy()
WorkingHours(this.getBegin(), this.getEnd(), this.getZoneId())
or
OpeningHours(this.getBegin(), this.getEnd(), this.getZoneId())
. Further, properties are copied.void setIsPrefferedHour(boolean isPreffered)
isPreffered
- the new checks if is prefferd hourboolean isPrefferedHour()
TimeWindow getTimeWindow()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.