JOpt.SDK
Interface IOpeningHours

All Known Implementing Classes:
OpeningHours

public interface IOpeningHours

IOpeningHours defines an interface to the nodes' opening hours. Each node can take multiple OpeningHours. Each OpeningHours object determines one time period when a node may be visited and accepts exactly one begin/end pair.


Method Summary
 java.util.GregorianCalendar getOpeningHoursBegin()
           
 long getOpeningHoursBeginInSecs()
           
 java.util.GregorianCalendar getOpeningHoursEnd()
           
 long getOpeningHoursEndInSecs()
           
 void setOpeningHoursBegin(java.util.GregorianCalendar begin)
           
 void setOpeningHoursEnd(java.util.GregorianCalendar end)
           
 

Method Detail

setOpeningHoursBegin

public void setOpeningHoursBegin(java.util.GregorianCalendar begin)
Parameters:
begin - set the desired time window begin date and time. In order to achieve the best optimization results time windows shall not be chosen too restrictively/tight

getOpeningHoursBegin

public java.util.GregorianCalendar getOpeningHoursBegin()
Returns:
the desired time window begin by means of date and time

getOpeningHoursBeginInSecs

public long getOpeningHoursBeginInSecs()
Returns:
the desired time window begin in seconds

setOpeningHoursEnd

public void setOpeningHoursEnd(java.util.GregorianCalendar end)
Parameters:
end - set the desired time window end date and time. In order to achieve the best optimization results time windows shall not be chosen too restrictively

getOpeningHoursEnd

public java.util.GregorianCalendar getOpeningHoursEnd()
Returns:
the desired time window end by means of date and time

getOpeningHoursEndInSecs

public long getOpeningHoursEndInSecs()
Returns:
the desired time window end in seconds