Changeset 9 for exampleparties/randompartypy/src
- Timestamp:
- 11/28/19 14:40:48 (5 years ago)
- Location:
- exampleparties/randompartypy/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.