|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Sensor
The class Sensor
is used to preprocess incoming messages.
Here they are received and classified as see
,
hear
or other messages and forwarded to the respective
event classes
Field Summary | |
private Communication |
communication
|
Constructor Summary | |
Sensor(Communication communication)
Creates a new Sensor instance. |
Method Summary | |
Event |
receive()
Receives incoming messages from the server. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Communication communication
Constructor Detail |
public Sensor(Communication communication)
Sensor
instance.communication
- a Communication
value containing the
Communication class through wich the messages can be received from the serverMethod Detail |
public Event receive()
receive()
method is blocking because is uses the blocking
receive()
method of the Communication
class. Therefor
the thread will be interrupted until a new message arrives.Event
object containing the parsed information
of the read messageCommunication
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |