1 package cz.cuni.amis.pogamut.base.communication.command;
2
3 import cz.cuni.amis.pogamut.base.communication.connection.IWorldWriterProvider;
4 import cz.cuni.amis.pogamut.base.communication.messages.CommandMessage;
5 import cz.cuni.amis.pogamut.base.component.IComponent;
6 import cz.cuni.amis.pogamut.base.component.bus.exception.ComponentNotRunningException;
7 import cz.cuni.amis.pogamut.base.component.bus.exception.ComponentPausedException;
8
9
10
11
12
13
14
15 public interface IAct extends IComponent {
16
17
18
19
20
21
22
23
24
25
26 public void act(CommandMessage command) throws ComponentNotRunningException, ComponentPausedException;
27
28
29
30
31
32
33
34
35
36 public void addCommandListener(Class commandClass, ICommandListener listener);
37
38
39
40
41
42
43
44
45 public boolean isCommandListening(Class commandClass, ICommandListener listener);
46
47
48
49
50
51
52
53 public void removeCommandListener(Class commandClass, ICommandListener listener);
54
55 }