Changes between Version 326 and Version 327 of WikiStart
- Timestamp:
- 07/30/20 10:22:02 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v326 v327 528 528 So all parameters are forwarded to all components, these components will figure out themselves which of the provided ones are relevant for them. See the section [#WritingaBoaParty] below for more details on the components. 529 529 530 531 = Writing a party in Java 530 = Writing a Party 531 There are many ways to create a Party: in Java, in Python, extending a Party, extending a DefaultBoa party. The following sections go into more detail. 532 == Writing a party in Java 532 533 533 534 Example parties can be found [source:/exampleparties here]. You can easily clone a party with SVN using {{{svn co https://tracinsy.ewi.tudelft.nl/pub/svn/GeniusWeb/exampleparties/randomparty/}}} (this clones randomparty, use a different name to fetch another example). … … 602 603 The party must follow the behaviours that it promises. The example above folows the SAOP behaviour but other examples like comparebids and simpleshaop are available as example. 603 604 604 == Preparing the jar file605 === Preparing the jar file 605 606 In order to put your party on the [https://tracinsy.ewi.tudelft.nl/pubtrac/GeniusWebPartiesServer partiesserver] for running, you need a jar file of your party. 606 607 … … 616 617 617 618 618 = Writing a party in Python619 == Writing a party in Python 619 620 We provide a python-to-java adapter so that you can easily write your party in python instead of Java. You can check the full working example code [source:/exampleparties/randompartypy/src/main/resources/RandomParty.py here]. A python-based party looks like this: 620 621 {{{ … … 669 670 670 671 671 = Writing a Boa Party672 == Writing a Boa Party 672 673 THe BoaParty as mentioned in the exampleparties list is fully configurable to use BOA components. But this adds some hassle when setting up a negotiation as all the components must be explicitly added in the parameters. Also you can not load just a custom BOA component into the runserver, the runserver only supports ready-to-run Party's so custom BOA components have to be part of a custom party. 673 674 … … 715 716 716 717 717 == Bidding Strategy718 === Bidding Strategy 718 719 A Bidding Strategy determines what action to take in which state, through this interface function 719 720 {{{ … … 727 728 You can create a custom BiddingStrategy by just implementing the BiddingStrategy interface. 728 729 729 == Acceptance Strategy730 === Acceptance Strategy 730 731 A Acceptance Strategy determines what action to take in which state, through this interface function 731 732 {{{ … … 740 741 741 742 742 = Writing a party in other languages743 == Writing a party in other languages 743 744 If you want to use another language than java or python2 to write your parties, you have a number of options 744 745 * Make your own adapter that runs your language from Java. Check [source:pythonadapter/src/main/java/geniusweb/pythonadapter/PythonPartyAdapter.java our pythonadapter] for an example how this can be done.