Algorithm
Interface Algorithm

All Known Implementing Classes:
AbstractAlgorithm, MyFirstSearchEngine

public interface Algorithm

Interface for Algorithms This simple interface defines three methods that an algorithm must implement init() - runs the initialisation pipline(s) of the algorithm. run(int iterations) steps the algorithms loop pipeline(s) a through specified number of iterations step() steps the algorithms loop pipeline through a single iteration

Author:
Blip

Method Summary
 void init()
          Initializing the algorithm
 void run(int steps)
          Run for the specified number of steps
 void step()
          Step the algorithm once
 

Method Detail

init

void init()
Initializing the algorithm


run

void run(int steps)
Run for the specified number of steps

Parameters:
steps - run for steps

step

void step()
Step the algorithm once