Class Context

java.lang.Object
es.urjc.etsii.grafo.util.Context

public class Context extends Object
  • Constructor Details

    • Context

      public Context()
  • Method Details

    • destroy

      public static void destroy()
      Destroy the solver context associated with the current thread. Does not affect the context of other threads.
    • reset

      public static void reset()
      Recreate the solver context associated with the current thread. Does not affect the context of other threads.
    • validate

      public static <S extends Solution<S, I>, I extends Instance> boolean validate(S solution)
    • getRandom

      public static RandomGenerator getRandom()
    • isExecutionQueueAvailable

      public static boolean isExecutionQueueAvailable()
    • submit

      public static <T> Future<T> submit(Callable<T> task)
    • submit

      public static <T> Future<T> submit(Runnable task, T value)
    • getMainObjective

      public static <M extends Move<S, I>, S extends Solution<S, I>, I extends Instance> Objective<M,S,I> getMainObjective()
    • getObjectives

      public static <S extends Solution<S, I>, I extends Instance> Map<String,Objective<?,S,I>> getObjectives()
    • getObjectivesW

      public static Map<String,Objective<?,?,?>> getObjectivesW()
    • evalSolution

      public static <S extends Solution<S, I>, I extends Instance> Map<String,Double> evalSolution(S solution)
    • evalDeltas

      public static <M extends Move<S, I>, S extends Solution<S, I>, I extends Instance> Map<String,Double> evalDeltas(M move)
    • addTimeEvent

      public static void addTimeEvent(boolean enter, long when, String clazz, String methodName)