lio
Class LiOEnv

java.lang.Object
  extended by lio.LiOEnv

public abstract class LiOEnv
extends java.lang.Object


Field Summary
static LiOErrorLog errorLog
          This object is used to manage error and exception messages
static java.util.Random random
          A global pseudo random generator
static Statistics statistics
          Object that contains and computes statistics of the search.
static LiOTask task
          Task which is going to be solved
 
Constructor Summary
LiOEnv()
           
 
Method Summary
static int problemSize()
          Returns size of the problem.
static double random()
          Returns a double between 0.0 and 1.0 with (approximately) uniform distribution from that range.
static void setSeed(long seed)
          Set the seed of the global random generator
static void setTask(java.lang.String pTask)
          Creates a new instance of a LiOTask class to solve it whit this algorithm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorLog

public static LiOErrorLog errorLog
This object is used to manage error and exception messages


task

public static LiOTask task
Task which is going to be solved


statistics

public static Statistics statistics
Object that contains and computes statistics of the search.


random

public static java.util.Random random
A global pseudo random generator

Constructor Detail

LiOEnv

public LiOEnv()
Method Detail

random

public static double random()
Returns a double between 0.0 and 1.0 with (approximately) uniform distribution from that range.

Returns:
a pseudo-random double greater than or equal to 0.0 and less than 1.0.

setSeed

public static void setSeed(long seed)
Set the seed of the global random generator

Parameters:
seed - new seed for the random generator

problemSize

public static int problemSize()
Returns size of the problem.


setTask

public static void setTask(java.lang.String pTask)
Creates a new instance of a LiOTask class to solve it whit this algorithm

Parameters:
pTask - Full qualified class or path to a class file representing task to solve