Changeset 9 for exampleparties/randompartypy
- Timestamp:
- 11/28/19 14:40:48 (5 years ago)
- Location:
- exampleparties/randompartypy
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randompartypy/pom.xml
r6 r9 6 6 <groupId>geniusweb.exampleparties</groupId> 7 7 <artifactId>randompyparty</artifactId> 8 <version>1. 0.0</version>8 <version>1.1.0</version> 9 9 <packaging>jar</packaging> 10 10 … … 16 16 <basedir>.</basedir> 17 17 <passwd>${env.ARTIFACTORY_PASS}</passwd> 18 <jackson-2-version>2.9. 6</jackson-2-version>18 <jackson-2-version>2.9.10</jackson-2-version> 19 19 </properties> 20 20 … … 31 31 <groupId>geniusweb</groupId> 32 32 <artifactId>pythonadapter</artifactId> 33 <version>1. 0.0</version>33 <version>1.1.0</version> 34 34 </dependency> 35 35 … … 37 37 <groupId>geniusweb</groupId> 38 38 <artifactId>bidspace</artifactId> 39 <version>1. 0.0</version>39 <version>1.1.0</version> 40 40 </dependency> 41 41 <dependency> 42 42 <groupId>geniusweb</groupId> 43 43 <artifactId>profileconnection</artifactId> 44 <version>1. 0.0</version>44 <version>1.1.0</version> 45 45 </dependency> 46 46 <dependency> -
exampleparties/randompartypy/src/main/resources/RandomParty.py
r2 r9 24 24 import geniusweb.profile.Profile as Profile 25 25 import geniusweb.profile.PartialOrdering as PartialOrdering 26 import geniusweb.profile.utilityspace. LinearAdditiveUtilitySpace as LinearAdditiveUtilitySpace26 import geniusweb.profile.utilityspace.UtilitySpace as UtilitySpace 27 27 import geniusweb.references.ProfileRef as ProfileRef 28 28 import geniusweb.references.ProtocolRef as ProtocolRef … … 97 97 return false 98 98 profile = self.profile.getProfile() 99 if isinstance(profile, LinearAdditiveUtilitySpace):99 if isinstance(profile, UtilitySpace): 100 100 return profile.getUtility(bid).doubleValue() > 0.6; 101 101 if isinstance(profile, PartialOrdering): -
exampleparties/randompartypy/src/test/java/geniusweb/exampleparties/randompartypy/RandomPartyTest.java
r8 r9 31 31 import geniusweb.actions.PartyId; 32 32 import geniusweb.bidspace.AllBidsList; 33 import geniusweb.connection.Connection ;33 import geniusweb.connection.ConnectionEnd; 34 34 import geniusweb.issuevalue.Bid; 35 35 import geniusweb.party.Capabilities; … … 111 111 public void testInformSettings() { 112 112 party.connect(connection); 113 connection.notify Change(settings);113 connection.notifyListeners(settings); 114 114 assertEquals(0, connection.getActions().size()); 115 115 } … … 190 190 */ 191 191 class TestConnection extends DefaultListenable<Inform> 192 implements Connection <Inform, Action> {192 implements ConnectionEnd<Inform, Action> { 193 193 private List<Action> actions = new LinkedList<>(); 194 194
Note:
See TracChangeset
for help on using the changeset viewer.