Changes between Version 1 and Version 2 of Migration1.6to2


Ignore:
Timestamp:
08/04/21 11:34:12 (3 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration1.6to2

    v1 v2  
    11= Migration from GeniusWeb 1.6 to 2.0
     2
     3If you want to migrate parties from GeniusWeb 1.6 to 2.0, Check [wiki:Migration1.6to2]
     4
     5=== Building GeniusWeb 1.X parties
     6If you want to compile older GeniusWeb 1.X code (parties or core code), Check the [wiki:Build1.6]
     7
     8There are a few small differences between GeniusWeb 1.6 and 2.0. These concern some json formatting changes, some maven dependencies.
     9
     10== json changes
     11
     12The change here involves the json serialization of a number of objects. Most parties only will need recompilation, as the serialization to java objects already is done by the GeniusWeb libraries.
     13All objects now serialize by there class name (so the exceptions were changed)
     14The following table gives the old label and the new replacement label
     15
     16||old ||new||
     17||accept||Accept||
     18||endnegotiation||EndNegotiation||
     19||offer||Offer||
     20||vote||Vote||
     21||votewithvalue||VoteWithValue||
     22||actionevent||ActionEvent||
     23||sessionstarted||SessionStarted||
     24||tournamentstarted||TournamentStarted||
     25||discreteset||DiscreteValueSet||
     26||numberset||NumberValueSet||
     27||discreteutils||DiscreteValueSetUtilities||
     28||numberutils||NumberValueSetUtilities||
     29||partsutils||PartsUtilities||
     30||rounds||ProgressRounds||
     31||time||ProgressTime||
     32
     33Finally, the Range object now serializes different:
     34||[2,3,0.22]||{{{ {"low":2,"high":3,"step":0.22} }}}||
     35
     36== Maven changes
     37The maven dependencies
     38
     39{{{
     40<dependency>
     41        <groupId>tudelft.utilities</groupId>
     42        <artifactId>files / listener / tree / repository</artifactId>
     43        <version>2.1.0</version>
     44</dependency>
     45}}}
     46
     47and
     48{{{
     49<dependency>
     50    <groupId>tudelft.utilities</groupId>
     51    <artifactId>immutablelist</artifactId>
     52    <version>....</version>
     53</dependency>
     54}}}
     55
     56have all been replaced with
     57{{{
     58<dependency>
     59        <groupId>tudelft.utilities</groupId>
     60        <artifactId>utilities</artifactId>
     61        <version>1.1.0</version>
     62</dependency>
     63}}}
     64
     65== BOA
     66There are a number of changes in the BOA system that may require you to change your BOA components.
     67
     68* BoaState does not contain AS and BS anymore. AS and BS therefore can not call each other anymore. This is crucial to avoid mutual dependencies and infinite loops.
     69* AccceptanceStrategy now accepts the proposed action (rather than the last received bid).
     70* AS now filters the actions that came from the BS.