choco.kernel.solver.variables.scheduling
Class TimePeriodList
java.lang.Object
choco.kernel.solver.variables.scheduling.TimePeriodList
- All Implemented Interfaces:
- ITimePeriodList
public final class TimePeriodList
- extends Object
- implements ITimePeriodList
TimePeriodList
public TimePeriodList()
reset
public final void reset()
- Specified by:
reset
in interface ITimePeriodList
addTimeLength
public void addTimeLength(int start,
int length)
addTimePeriod
public void addTimePeriod(int start,
int end)
getTimePeriods
public final gnu.trove.TIntArrayList getTimePeriods()
getExpendedDuration
public final int getExpendedDuration()
- Specified by:
getExpendedDuration
in interface ITimePeriodList
isEmpty
public final boolean isEmpty()
- Specified by:
isEmpty
in interface ITimePeriodList
getTimePeriodCount
public final int getTimePeriodCount()
- Specified by:
getTimePeriodCount
in interface ITimePeriodList
getTimePeriod
public final Point getTimePeriod(int i)
- Specified by:
getTimePeriod
in interface ITimePeriodList
getPeriodFirst
public final int getPeriodFirst()
- Specified by:
getPeriodFirst
in interface ITimePeriodList
getPeriodLast
public final int getPeriodLast()
- Specified by:
getPeriodLast
in interface ITimePeriodList
getPeriodStart
public final int getPeriodStart(int i)
- Specified by:
getPeriodStart
in interface ITimePeriodList
getPeriodEnd
public final int getPeriodEnd(int i)
- Specified by:
getPeriodEnd
in interface ITimePeriodList
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.