Changes between Version 219 and Version 220 of WikiStart


Ignore:
Timestamp:
08/13/19 17:24:08 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v219 v220  
    127127The 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.
    128128
    129 The Inform objects are all available inside the inform package inside the party module.
     129Please check the [source:party/src/main/java/geniusweb/party/inform source code of Inform objects] for all the details.
     130
     131The Settings is usually the first inform that a party receives. It contains the profile, protocol, and progress information for the upcoming session.
     132
    130133
    131134== 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.
     135The timeline module describes the deadline and a progress objects.
     136The 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
     142and
     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
     150The 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
    135154
    136155== References