|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectExamplesJaCoP.Example
ExamplesJaCoP.WolfGoatCabbage
public class WolfGoatCabbage
A simple logic problem of transporting wolf, goat, and cabbage over the river.
| Field Summary | |
|---|---|
int |
numberInnerMoves
It specifies number of moves allowed (one move is from one river bank to the other) |
| Fields inherited from class ExamplesJaCoP.Example |
|---|
cost, search, store, vars |
| Constructor Summary | |
|---|---|
WolfGoatCabbage()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
It executes a program which finds the optimal trip and load of the boat between the river banks so all parties survive. |
void |
model()
It specifies a standard way of modeling the problem. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int numberInnerMoves
| Constructor Detail |
|---|
public WolfGoatCabbage()
| Method Detail |
|---|
public void model()
Example
model in class Examplepublic static void main(java.lang.String[] args)
args - no argument is used.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||