1 package cz.cuni.amis.pogamut.ut2004.analyzer;
2
3 import cz.cuni.amis.pogamut.base.agent.IAgentId;
4 import cz.cuni.amis.pogamut.base.agent.params.IAgentParameters;
5 import cz.cuni.amis.pogamut.base.communication.connection.IWorldConnectionAddress;
6 import cz.cuni.amis.pogamut.ut2004.agent.params.UT2004AgentParameters;
7
8 @Deprecated
9 public class UT2004AnalyzerObserverParameters extends UT2004AgentParameters {
10
11 private String observedAgentId;
12
13 private Boolean waitForMatchRestart = null;
14
15 private String outputPath = null;
16
17
18
19
20 private String fileName;
21
22 public UT2004AnalyzerObserverParameters() {
23 super();
24 }
25
26
27
28
29
30 public String getObservedAgentId() {
31 return observedAgentId;
32 }
33
34
35
36
37
38
39
40
41
42
43 public UT2004AnalyzerObserverParameters setObservedAgentId(String observedAgentId) {
44 this.observedAgentId = observedAgentId;
45 return this;
46 }
47
48 @Override
49 public UT2004AnalyzerObserverParameters setAgentId(IAgentId agentId) {
50 super.setAgentId(agentId);
51 return this;
52 }
53
54 @Override
55 public UT2004AnalyzerObserverParameters setWorldAddress(IWorldConnectionAddress address) {
56 super.setWorldAddress(address);
57 return this;
58 }
59
60
61
62
63
64 public String getOutputPath() {
65 return outputPath;
66 }
67
68
69
70
71
72 public UT2004AnalyzerObserverParameters setOutputPath(String outputPath) {
73 this.outputPath = outputPath;
74 return this;
75 }
76
77
78
79
80
81 public boolean isWaitForMatchRestart() {
82 return waitForMatchRestart == null ? false : waitForMatchRestart;
83 }
84
85
86
87
88
89 public UT2004AnalyzerObserverParameters setWaitForMatchRestart(boolean waitForMatchRestart) {
90 this.waitForMatchRestart = waitForMatchRestart;
91 return this;
92 }
93
94
95
96
97
98 public String getFileName() {
99 return fileName;
100 }
101
102
103
104
105
106 public UT2004AnalyzerObserverParameters setFileName(String fileName) {
107 this.fileName = fileName;
108 return this;
109 }
110
111 @Override
112 public void assignDefaults(IAgentParameters defaults) {
113 super.assignDefaults(defaults);
114 if (defaults instanceof UT2004AnalyzerObserverParameters) {
115 if (waitForMatchRestart == null && ((UT2004AnalyzerObserverParameters)defaults).waitForMatchRestart != null)
116 waitForMatchRestart = ((UT2004AnalyzerObserverParameters)defaults).waitForMatchRestart;
117 if (outputPath == null) outputPath = ((UT2004AnalyzerObserverParameters)defaults).getOutputPath();
118 if (fileName == null) fileName = ((UT2004AnalyzerObserverParameters)defaults).getFileName();
119 }
120 }
121
122
123
124
125
126 }