01: package tools.tracesviewer;
02:
03: import java.util.*;
04: import java.io.*;
05:
06: public class TracesSession extends Vector implements Serializable {
07:
08: protected String logDescription = null;
09: protected String name = null;
10: protected String info = null;
11:
12: public TracesSession() {
13: super ();
14: }
15:
16: public TracesSession(String name, String info) {
17: this ();
18: this .name = name;
19: this .info = info;
20: }
21:
22: public void setName(String name) {
23: this .name = name;
24: }
25:
26: public String getName() {
27: return name;
28: }
29:
30: public void setInfo(String info) {
31: this .info = info;
32: }
33:
34: public String getInfo() {
35: return info;
36: }
37:
38: public void setLogDescription(String logDescription) {
39: this .logDescription = logDescription;
40: }
41:
42: public String getLogDescription() {
43: return logDescription;
44: }
45:
46: public TracesSession(MessageLogList messageLogList) {
47: super ();
48: this .logDescription = messageLogList.description;
49: Iterator it = messageLogList.iterator();
50: while (it.hasNext()) {
51: TracesMessage tracesMessage = (TracesMessage) it.next();
52: super.add(tracesMessage);
53: }
54: }
55: }
|