JOpt.SDK
Interface IDailyBreak

All Known Implementing Classes:
DailyBreak

public interface IDailyBreak


Method Summary
 boolean checkBreakOpportunity(java.util.GregorianCalendar tripStart, java.util.GregorianCalendar tripEnd)
          Check if we can make a break in the given trip interval
 int getBreakCondition()
          Get the break condition 1 = break can only be conducted when the resource actually has no load (e.g. human transportation)
 int getBreakTime()
          Get the break time in seconds
 java.util.GregorianCalendar getBreakTimeWindowBegin()
           
 java.util.GregorianCalendar getBreakTimeWindowEnd()
           
 void setBreakCondition(int condition)
          Set the break condition 1 = break can only be conducted when the resource actually has no load (e.g. human transportation)
 void setBreakTime(int breakTimeInSeconds)
          Set the break time in seconds
 void setBreakTimeWindowBegin(java.util.GregorianCalendar breakTimeWindowBegin)
          Set the break timewindow begin
 void setBreakTimeWindowEnd(java.util.GregorianCalendar breakTimeWindowEnd)
          Set the break timewindow end
 

Method Detail

setBreakTime

public void setBreakTime(int breakTimeInSeconds)
Set the break time in seconds

Parameters:
breakTimeInSeconds -

getBreakTime

public int getBreakTime()
Get the break time in seconds

Returns:
breakTimeInSeconds

setBreakTimeWindowBegin

public void setBreakTimeWindowBegin(java.util.GregorianCalendar breakTimeWindowBegin)
Set the break timewindow begin

Parameters:
breakTimeWindowBegin -

getBreakTimeWindowBegin

public java.util.GregorianCalendar getBreakTimeWindowBegin()
Returns:
the break timewindow begin

setBreakTimeWindowEnd

public void setBreakTimeWindowEnd(java.util.GregorianCalendar breakTimeWindowEnd)
Set the break timewindow end

Parameters:
breakTimeWindowEnd -

setBreakCondition

public void setBreakCondition(int condition)
Set the break condition 1 = break can only be conducted when the resource actually has no load (e.g. human transportation)

Parameters:
condition -

getBreakCondition

public int getBreakCondition()
Get the break condition 1 = break can only be conducted when the resource actually has no load (e.g. human transportation)

Returns:
condition

getBreakTimeWindowEnd

public java.util.GregorianCalendar getBreakTimeWindowEnd()
Returns:
the break timewindow end

checkBreakOpportunity

public boolean checkBreakOpportunity(java.util.GregorianCalendar tripStart,
                                     java.util.GregorianCalendar tripEnd)
Check if we can make a break in the given trip interval

Returns:
true if there is a break opportunity within the given trip interval