Migration from GeniusWeb 1.6 to 2.0

There are a few small differences between GeniusWeb 1.6 and 2.0. These concern some json formatting changes, some maven dependencies.

json changes

The 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. All objects now serialize by there class name (so the exceptions were changed) The following table gives the old label and the new replacement label

old new
acceptAccept
endnegotiationEndNegotiation
offerOffer
voteVote
votewithvalueVoteWithValue
actioneventActionEvent
sessionstartedSessionStarted
tournamentstartedTournamentStarted
discretesetDiscreteValueSet
numbersetNumberValueSet
discreteutilsDiscreteValueSetUtilities
numberutilsNumberValueSetUtilities
partsutilsPartsUtilities
roundsProgressRounds
timeProgressTime
deadlineroundsDeadlineRounds
deadlinetimeDeadlineTime

Finally, the Range object now serializes different:

[2,3,0.22] {"low":2,"high":3,"step":0.22}

Maven changes

The maven dependencies

<dependency>
        <groupId>tudelft.utilities</groupId>
        <artifactId>files / listener / tree / repository</artifactId>
        <version>2.1.0</version>
</dependency>

and

<dependency>
    <groupId>tudelft.utilities</groupId>
    <artifactId>immutablelist</artifactId>
    <version>....</version>
</dependency>

have all been replaced with

<dependency>
        <groupId>tudelft.utilities</groupId>
        <artifactId>utilities</artifactId>
        <version>1.1.0</version>
</dependency>

For jackson, now use <jackson-2-version>2.12.3</jackson-2-version>

Java

old functionnew function
Finished.getAgreement() Finished.getAgreements()

BOA

There are a number of changes in the BOA system that may require you to change your BOA components.

  • 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.
  • AccceptanceStrategy now accepts the proposed action (rather than the last received bid).
  • AS now filters the actions that came from the BS.
Last modified 2 years ago Last modified on 11/29/21 15:30:46
Note: See TracWiki for help on using the wiki.