|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Parser
The Parser
class is used to divide the input-stream from
the communication-module into tokens. Those are being built up to
a Vector
containing VisualObject
objects,
a String
array or a double
array,
depending on what kind of information the parser module receives.
Field Summary | |
private Communication |
communication
The Communication object |
private int |
currentTime
current time |
private VisualObject |
visualObject
The VisualObject object |
Constructor Summary | |
Parser(Communication communication)
Creates a new Parser instance. |
Method Summary | |
java.util.Vector |
parse()
Parse is the main method of the parser. |
private double[] |
tokenizeBodyevent(java.lang.String bodymsg)
The tokenizeBodyevent method takes
only care of incoming body_sense messages (see Users Manual 4.2.2). |
private java.lang.String[] |
tokenizeHearevent(java.lang.String hearmsg)
The tokenizeHearevent method takes
only care of incoming hear messages (see Users Manual 4.2.2). |
private java.util.Vector |
tokenizeVisualevent(java.lang.String seemsg)
The tokenizeVisualevent method takes
only care of incoming see messages. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Communication communication
private VisualObject visualObject
private int currentTime
Constructor Detail |
public Parser(Communication communication)
Parser
instance.communication
- a Communication
value defining the
communication link to the server via which the commands can be
sent.Communication
Method Detail |
private java.lang.String[] tokenizeHearevent(java.lang.String hearmsg)
tokenizeHearevent
method takes
only care of incoming hear messages (see Users Manual 4.2.2).hearmsg
- a String
which contains the hear messageString
array with following content:
int
direction can be converted to double
Author: Patrick Ficher
private java.util.Vector tokenizeVisualevent(java.lang.String seemsg)
tokenizeVisualevent
method takes
only care of incoming see messages.hearmsg
- a String
which contains the see messageVector
containing the perceived and processed
VisualObject
objects.Author: Patrick Ficher
private double[] tokenizeBodyevent(java.lang.String bodymsg)
tokenizeBodyevent
method takes
only care of incoming body_sense messages (see Users Manual 4.2.2).bodymsg
- a String
which contains the body_sense messageAuthor: Patrick Ficher
public java.util.Vector parse()
Vector
with following content:
VisualObject
objects
double
array
String
array.
Author: Patrick Ficher
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |