Changes between Version 262 and Version 263 of WikiStart
- Timestamp:
- 12/18/19 10:15:49 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v262 v263 273 273 The party module also contains basic interfaces for implementing your negotiation party. These interfaces are only relevant to create a party compatible with our reference implementation of the [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPartiesServer partiesserver]. The main class is Party, which defines the basic functionality required for a negotiation party on our server. The heart of the party is that your Party implements Connectable<Inform,Action>. Connectable contains 2 main functions: connect and disconnect. When connect is called, your party receives a Connection over which it receives Inform objects and can send Action objects. What exactly is sent and received is determined by the protocol (see the protocol section below). For example if the SAOP protocol is used, your party will receive a YourTurn message, after which it decides on its action and sends it into the Connection. See also the example party discussed below. 274 274 275 === Capabilities 276 The party specifies its capabilities. 277 278 Currently this is a list of protocols that the party can handle. 279 280 275 281 276 282 == Timeline … … 391 397 392 398 sessionsettings contains basically all the normal run-sessionsettings. This is used as a "template" for all sessions of the tournament. You can put any use any session setting here, and each session will be run according to the protocol you select here. In the example we use the SAOP protocol which takes participants and deadline as arguments, as discussed above. The participants list this time is empty, the AllPermutationsProtocol adds the the required parties to this list. So if you provide a non-empty list here, then these parties would be present in every session in the tournament. 399 393 400 394 401 = Writing a party in Java