source: pythonadapter/src/test/resources/TestParty.py@ 52

Last change on this file since 52 was 52, checked in by ruud, 14 months ago

Fixed small issues in domaineditor.

File size: 908 bytes
Line 
1import time
2import traceback
3
4
5
6import java.math.BigInteger as BigInteger
7import java.net.URI as URI
8import java.util.Arrays as Arrays
9import java.util.HashSet as HashSet
10import java.util.Random as Random
11import java.util.Collections as Collections
12import java.util.logging.Level as Level
13
14import geniusweb.party.Capabilities as Capabilities
15import geniusweb.party.DefaultParty as DefaultParty
16
17
18import com.fasterxml.jackson.databind.ObjectMapper as ObjectMapper
19
20class TestParty (DefaultParty):
21 """
22 A simple party that places random bids and accepts when it receives an offer
23 with sufficient utility.
24 """
25
26 # Override
27 def notifyChange(self, info):
28 pass
29
30 # Override
31 def getCapabilities(self): # -> Capabilities
32 pass
33
34 # Override
35 def getDescription(self):
36 return "places random bids until it can accept an offer with utility >0.6. Python version"
37
38 # Override
39 def terminate(self):
40 pass
41
Note: See TracBrowser for help on using the repository browser.