| 302 | |
| 303 | === Events |
| 304 | The events module inside the events package is ment for internal communication. Protocols can generate such events to inform protocol users about the state of the negotiation. |
| 305 | |
| 306 | == Voting |
| 307 | The voting package contains utility functions supporting the voting mechanisms. |
| 308 | The CollectedVotes object is a utility class, to search potential deals hidden in sets of votes. |
| 309 | |
| 310 | The votingevaluator is a function that can, given a set of votes, determine the exact deal(s) from a set of votes. There are different ways to do this. Currently we have |
| 311 | |
| 312 | ||= VotingEvaluator =||= Behaviour =|| |
| 313 | ||LargestAgreement||Take the first possible agreement, and take the largest possible agreement. Stop after first agreement.|| |
| 314 | ||LargestAgerementsLoop||collects all possible {@link Agreements}. We're finished only when {@link #getAgreements()} covers all except possibly 1 party.|| |