source: src/main/java/genius/core/events/AgentLogEvent.java

Last change on this file was 1, checked in by Wouter Pasman, 7 years ago

Initial import : Genius 9.0.0

File size: 901 bytes
Line 
1package genius.core.events;
2
3import java.util.Map;
4
5import genius.core.parties.NegotiationParty;
6
7/**
8 * Reports special log info returned by an agent. This is information that the
9 * agent asked to log. See
10 * {@link NegotiationParty#negotiationEnded(genius.core.Bid)}. Immutable
11 */
12public class AgentLogEvent implements NegotiationEvent {
13
14 private Map<String, String> log;
15 private String id;
16
17 /**
18 * Contains log info from the agent, as received from the
19 * {@link NegotiationParty#negotiationEnded(genius.core.Bid)} call,
20 *
21 * @param agent
22 * the agent that returned the info
23 * @param logresult
24 * see {@link NegotiationParty#negotiationEnded(genius.core.Bid)}
25 */
26 public AgentLogEvent(String agent, Map<String, String> logresult) {
27 log = logresult;
28 }
29
30 public Map<String, String> getLog() {
31 return log;
32 }
33
34 public String getAgent() {
35 return id;
36 }
37
38}
Note: See TracBrowser for help on using the repository browser.