choco.kernel.common.util.tools
Class TaskUtils

java.lang.Object
  extended by choco.kernel.common.util.tools.TaskUtils

public final class TaskUtils
extends Object


Method Summary
static IResource<TaskVar> createFakeResource(Solver s, Constraint c)
           
static IResource<?>[] createFakeResources(Solver s, Constraint... c)
           
static long getA(IntDomainVar x, IntDomainVar y)
           
static long getB(IntDomainVar x, IntDomainVar y)
           
static long getCmax(IntDomainVar x, IntDomainVar y)
           
static long getCmin(IntDomainVar x, IntDomainVar y)
           
static int getDoubleCentroid(ITask t)
           
static int getMaxConsumption(IRTask t)
           
static int getMinConsumption(IRTask t)
           
static double getPreserved(IntDomainVar x, IntDomainVar y)
           
static double getPreserved(TaskVar t1, TaskVar t2)
           
static long getPreservedDividend(IntDomainVar x, IntDomainVar y)
           
static long getPreservedDividend(TaskVar t1, TaskVar t2)
           
static long getPreservedDivisor(IntDomainVar x, IntDomainVar y)
           
static long getPreservedDivisor(TaskVar t1, TaskVar t2)
           
static int getSlack(ITask t)
           
static double getTotalPreserved(TaskVar t1, TaskVar t2)
           
static int getTotalSlack(ITask t1, ITask t2)
           
static boolean hasCompulsoryPart(ITask t)
           
static boolean hasEnumeratedDomain(TaskVar task)
           
static boolean isEliminated(IntDomainVar usage)
           
static boolean isOptional(IntDomainVar usage)
           
static boolean isRegular(IntDomainVar usage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFakeResource

public static IResource<TaskVar> createFakeResource(Solver s,
                                                    Constraint c)

createFakeResources

public static IResource<?>[] createFakeResources(Solver s,
                                                 Constraint... c)

hasCompulsoryPart

public static boolean hasCompulsoryPart(ITask t)

hasEnumeratedDomain

public static boolean hasEnumeratedDomain(TaskVar task)

getMinConsumption

public static int getMinConsumption(IRTask t)

getMaxConsumption

public static int getMaxConsumption(IRTask t)

isRegular

public static boolean isRegular(IntDomainVar usage)

isOptional

public static boolean isOptional(IntDomainVar usage)

isEliminated

public static boolean isEliminated(IntDomainVar usage)

getDoubleCentroid

public static int getDoubleCentroid(ITask t)

getSlack

public static int getSlack(ITask t)

getTotalSlack

public static int getTotalSlack(ITask t1,
                                ITask t2)

getA

public static long getA(IntDomainVar x,
                        IntDomainVar y)

getB

public static long getB(IntDomainVar x,
                        IntDomainVar y)

getCmin

public static long getCmin(IntDomainVar x,
                           IntDomainVar y)

getCmax

public static long getCmax(IntDomainVar x,
                           IntDomainVar y)

getPreservedDividend

public static long getPreservedDividend(IntDomainVar x,
                                        IntDomainVar y)

getPreservedDivisor

public static long getPreservedDivisor(IntDomainVar x,
                                       IntDomainVar y)

getPreserved

public static final double getPreserved(IntDomainVar x,
                                        IntDomainVar y)

getPreserved

public static final double getPreserved(TaskVar t1,
                                        TaskVar t2)

getTotalPreserved

public static final double getTotalPreserved(TaskVar t1,
                                             TaskVar t2)

getPreservedDividend

public static long getPreservedDividend(TaskVar t1,
                                        TaskVar t2)

getPreservedDivisor

public static long getPreservedDivisor(TaskVar t1,
                                       TaskVar t2)


Copyright © 2012. All Rights Reserved.