com.carlosbcruz.bruteforce
Class BruteForce

java.lang.Object
  extended by com.carlosbcruz.bruteforce.BruteForce
All Implemented Interfaces:
java.lang.Runnable

public class BruteForce
extends java.lang.Object
implements java.lang.Runnable

Implement the brute force algorithm

Author:
Carlos Fernando Bella Cruz - pessoal@carlosbcruz.com

Constructor Summary
BruteForce(Problem problem)
          Brute Force algorith solves a problem
 
Method Summary
 void execute()
          Start solving the problem
 java.util.Vector getSolution()
           
 boolean isReadyToExecuteCall()
          Is the command ready to be executed ?
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BruteForce

public BruteForce(Problem problem)
Brute Force algorith solves a problem

Parameters:
problem -
Method Detail

isReadyToExecuteCall

public boolean isReadyToExecuteCall()
Is the command ready to be executed ?

Returns:

run

public void run()
Specified by:
run in interface java.lang.Runnable

execute

public void execute()
Start solving the problem


stop

public void stop()

getSolution

public java.util.Vector getSolution()