1
2
3
4
5
6
7
8
9
10
11
12 package cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands;import java.util.*;import javax.vecmath.*;import cz.cuni.amis.pogamut.base.communication.messages.*;import cz.cuni.amis.pogamut.base.communication.worldview.*;import cz.cuni.amis.pogamut.base.communication.worldview.event.*;import cz.cuni.amis.pogamut.base.communication.worldview.object.*;import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;import cz.cuni.amis.pogamut.base.communication.translator.event.*;import cz.cuni.amis.pogamut.multi.communication.translator.event.*;import cz.cuni.amis.pogamut.base3d.worldview.object.*;import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.*;import cz.cuni.amis.pogamut.ut2004.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.objects.*;import cz.cuni.amis.pogamut.ut2004.communication.translator.itemdescriptor.*;import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category;import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;import cz.cuni.amis.utils.exception.*;import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;import cz.cuni.amis.utils.SafeEquals;import cz.cuni.amis.pogamut.base.agent.*;import cz.cuni.amis.pogamut.multi.agent.*;import cz.cuni.amis.pogamut.multi.communication.worldview.property.*;import cz.cuni.amis.pogamut.ut2004multi.communication.worldview.property.*;import cz.cuni.amis.utils.token.*;import cz.cuni.amis.utils.*;
13
14
15
16
17
18
19
20 public class Console
21 extends CommandMessage
22 {
23
24
25
26 public static final String PROTOTYPE =
27 " {Command text} ";
28
29
30
31
32
33
34
35
36
37
38
39
40 public Console(
41 String Command
42 ) {
43
44 this.Command = Command;
45
46 }
47
48
49
50
51
52
53
54
55
56
57
58
59 public Console() {
60 }
61
62
63
64
65
66
67
68 public Console(Console original) {
69
70 this.Command = original.Command;
71
72 }
73
74
75
76
77 protected
78 String Command =
79
80 null
81 ;
82
83
84
85
86
87
88 public String getCommand()
89
90 {
91 return
92 Command;
93 }
94
95
96
97
98
99
100
101 public Console
102 setCommand(String Command)
103
104 {
105 this.Command = Command;
106 return this;
107 }
108
109 public String toString() {
110 return toMessage();
111 }
112
113 public String toHtmlString() {
114 return super.toString() + "[<br/>" +
115
116 "<b>Command</b> = " +
117 String.valueOf(getCommand()
118 ) +
119 " <br/> " +
120
121 "<br/>]"
122 ;
123 }
124
125 public String toMessage() {
126 StringBuffer buf = new StringBuffer();
127 buf.append("CONSOLE");
128
129 if (Command != null) {
130 buf.append(" {Command " + Command + "}");
131 }
132
133 return buf.toString();
134 }
135
136
137
138
139
140 }
141