|
Ideation Project DA Ruwe
This program provides us with an agent based simulation of an ideation game.
|
Allows objects of the class Idea to be compared by quality.
More...


Public Member Functions | |
| int | compare (Idea idea1, Idea idea2) |
A classic compare function according to Comparator. | |
This class creates a comparator for ideas. It is based on the double quality attribute of ideas. Its most important use is that with Collections we can now sort a Vector<Idea> using Merge Sort (optimal) by invoking the code
Collections.sort(vec);
This saves a lot of manual iterating!
| int ideation.IdeaQualityComparator.compare | ( | Idea | idea1, |
| Idea | idea2 | ||
| ) |
-1 First idea better 0 No idea is better 1 Second idea is better
1.7.6.1