Changes between Version 219 and Version 220 of WikiStart
- Timestamp:
- 08/13/19 17:24:08 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v219 v220 127 127 The main class is Party, which defines the basic functionality required for every negotiation party. 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. 128 128 129 The Inform objects are all available inside the inform package inside the party module. 129 Please check the [source:party/src/main/java/geniusweb/party/inform source code of Inform objects] for all the details. 130 131 The Settings is usually the first inform that a party receives. It contains the profile, protocol, and progress information for the upcoming session. 132 130 133 131 134 == Timeline 132 The timeline contains a deadline and a progress object. 133 The deadline indicates how much time a negotiation session can take. 134 The progress indicates where currently running session is towards the deadline. 135 The timeline module describes the deadline and a progress objects. 136 The deadline indicates how much time a negotiation session can take and is used to specify the settings for a session or tournament. Two examples: 137 138 {{{ 139 {"deadlinerounds":{"rounds":100,"durationms":999}} 140 }}} 141 142 and 143 {{{ 144 {"deadlinetime":{"durationms":2000}} 145 }}} 146 147 * durationms indicates the maximum run time in milliseconds for the party. The clock starts ticking at the moment the party receives its SessionSettings object. 148 * rounds indicates the maximum number of rounds in the session. The session will end after this number of rounds, deal or no deal. 149 150 The progress indicates where currently running session is towards the deadline. Progress is contained in the settings object. Round based progress must be updated by the party after each round. 151 152 153 135 154 136 155 == References