Last change
on this file since 346 was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
459 bytes
|
Rev | Line | |
---|
[1] | 1 | package agents.nastyagent;
|
---|
| 2 |
|
---|
| 3 | import java.util.HashMap;
|
---|
| 4 |
|
---|
| 5 | import genius.core.Bid;
|
---|
| 6 |
|
---|
| 7 | /**
|
---|
| 8 | * sleeps when negotiationEnded is called.
|
---|
| 9 | *
|
---|
| 10 | */
|
---|
| 11 | public class SleepInNegoEnd extends NastyAgent {
|
---|
| 12 | @Override
|
---|
| 13 | public HashMap<String, String> negotiationEnded(Bid acceptedBid) {
|
---|
| 14 | // we actually got here. Report it.
|
---|
| 15 | super.negotiationEnded(acceptedBid);
|
---|
| 16 | try {
|
---|
| 17 | Thread.sleep(99999999);
|
---|
| 18 | } catch (InterruptedException e) {
|
---|
| 19 | e.printStackTrace();
|
---|
| 20 | }
|
---|
| 21 | return null;
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.