choco.kernel.solver.variables.scheduling
Class TimePeriodList

java.lang.Object
  extended by choco.kernel.solver.variables.scheduling.TimePeriodList
All Implemented Interfaces:
ITimePeriodList

public final class TimePeriodList
extends Object
implements ITimePeriodList


Constructor Summary
TimePeriodList()
           
 
Method Summary
 void addTimeLength(int start, int length)
           
 void addTimePeriod(int start, int end)
           
 int getExpendedDuration()
           
 int getPeriodEnd(int i)
           
 int getPeriodFirst()
           
 int getPeriodLast()
           
 int getPeriodStart(int i)
           
 Point getTimePeriod(int i)
           
 int getTimePeriodCount()
           
 gnu.trove.TIntArrayList getTimePeriods()
           
 boolean isEmpty()
           
 void reset()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimePeriodList

public TimePeriodList()
Method Detail

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.