Changeset 9 for exampleparties/randompartypy/src/main
- Timestamp:
- 11/28/19 14:40:48 (5 years ago)
- File:
-
- 1 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):
Note:
See TracChangeset
for help on using the changeset viewer.