Class Jugs_Search

java.lang.Object
  |
  +--Search
        |
        +--Jugs_Search

public class Jugs_Search
extends Search


Fields inherited from class Search
closed, current_node, init_node, open, scr, successor_nodes
 
Constructor Summary
Jugs_Search(int c1, int c2, int tar)
          constructor takes jug capacities and target
 
Method Summary
 int get_cap1()
          accessor for jug1 capacity
 int get_cap2()
          accessor for jug2 capacity
 int get_Target()
          accessor for target
 
Methods inherited from class Search
run_Search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jugs_Search

public Jugs_Search(int c1,
                   int c2,
                   int tar)
constructor takes jug capacities and target
Parameters:
c1 - capacity of jug1
c2 - capacity of jug2
tar - target amount to be measured
Method Detail

get_cap1

public int get_cap1()
accessor for jug1 capacity

get_cap2

public int get_cap2()
accessor for jug2 capacity

get_Target

public int get_Target()
accessor for target