lio.search.local.hillclimbing
Class MRHillClimbing

java.lang.Object
  extended by lio.search.LiOSearch
      extended by lio.search.local.hillclimbing.MRHillClimbing
All Implemented Interfaces:
java.lang.Runnable, LiOResource

public class MRHillClimbing
extends LiOSearch

This class implements a multiple restart hill climbing. It is important to point that the number of starting points must be lower than the maximum number of iterations allowed by the stopping condition.


Field Summary
 
Fields inherited from class lio.search.LiOSearch
listenerList, searchOutput, stopCondition, stopFlag
 
Constructor Summary
MRHillClimbing()
          Creates a new instance of HillClimbing
 
Method Summary
 LiOResourceDefinition getDefinition()
          Return a LiOResDescription object which holds the name and all parameters that describe the resource.
 Generator getGenerator()
          Getter for property generator.
 HillClimbing getHillClimbing()
          Getter for property hillClimbing.
 int getStartingPoints()
          Getter for property startingPoints.
static void main(java.lang.String[] args)
           
 void run()
           
 void setGenerator(Generator generator)
          Setter for property generator.
 void setHillClimbing(HillClimbing hillClimbing)
          Setter for property hillClimbing.
 void setStartingPoints(int startingPoints)
          Setter for property startingPoints.
protected  boolean stopCondition()
          This method tells whether the algorithm's execution is due to end.
 boolean worksWith(LiOTask kindOfTask)
          Allows knowing if the specified algorithm is able to process the task.
 
Methods inherited from class lio.search.LiOSearch
addLiOEventListener, build, cleanExecution, execute, fireFinishEvent, getSearchOutput, getStopCondition, initialize, initialize, loadSearchOutput, loadStatistics, loadStopCondition, removeLiOEventListener, setOptions, setSearchOutput, setStopCondition, setTask, showOptions, stopSearching, updateTaskDependentResources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRHillClimbing

public MRHillClimbing()
Creates a new instance of HillClimbing

Method Detail

run

public void run()

stopCondition

protected boolean stopCondition()
Description copied from class: LiOSearch
This method tells whether the algorithm's execution is due to end.
Every algorithm can override this method to do all action related with this issue.

Overrides:
stopCondition in class LiOSearch
Returns:
true if search progress must be halted.

worksWith

public boolean worksWith(LiOTask kindOfTask)
Description copied from class: LiOSearch
Allows knowing if the specified algorithm is able to process the task.

Specified by:
worksWith in class LiOSearch
Returns:
true if the search algorithm can deal with this kind of task and the corresponding data-type

getDefinition

public LiOResourceDefinition getDefinition()
Description copied from interface: LiOResource
Return a LiOResDescription object which holds the name and all parameters that describe the resource.

Returns:
A definition of the resource.

main

public static void main(java.lang.String[] args)

getStartingPoints

public int getStartingPoints()
Getter for property startingPoints.

Returns:
Value of property startingPoints.

setStartingPoints

public void setStartingPoints(int startingPoints)
Setter for property startingPoints.

Parameters:
startingPoints - New value of property startingPoints.

getGenerator

public Generator getGenerator()
Getter for property generator.

Returns:
Value of property generator.

setGenerator

public void setGenerator(Generator generator)
Setter for property generator.

Parameters:
generator - New value of property generator.

getHillClimbing

public HillClimbing getHillClimbing()
Getter for property hillClimbing.

Returns:
Value of property hillClimbing.

setHillClimbing

public void setHillClimbing(HillClimbing hillClimbing)
Setter for property hillClimbing.

Parameters:
hillClimbing - New value of property hillClimbing.