|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Search | +--Jugs_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 |
public Jugs_Search(int c1, int c2, int tar)
c1
- capacity of jug1c2
- capacity of jug2tar
- target amount to be measuredMethod Detail |
public int get_cap1()
public int get_cap2()
public int get_Target()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |