|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.usar2004.communication.messages.usarinfomessages.Yylex
public class Yylex
This class is a scanner generated by JFlex 1.4.3 on 17.2.15 12:07 from the specification file D:/W/PogRel/trunk/project/Main/PogamutUSAR2004/src/main/jflex/usar2004Parser.jflex
Field Summary | |
---|---|
protected Object |
actObj
|
static String |
DELIMITERS_EXTENDED
|
static String |
DELIMITERS_STANDARD
|
static int |
DUMMY
|
protected Map<Integer,Double> |
mapIntDouble
Map for list of String, Double |
protected Map<Integer,Double> |
mapIntIDDouble
Map for list of String, Double |
static int |
MSG_CONF
|
static int |
MSG_DIE
|
static int |
MSG_GEO
|
static int |
MSG_MISSTA
lexical states |
static int |
MSG_NFO
|
static int |
MSG_RES
|
static int |
MSG_SEN
|
static int |
MSG_STA
|
protected cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver |
observer
observer for the yylex for reporting exceptions |
protected UnrealIdTranslator |
translator
parser reference, this parser will be used for translation of UnrealID to IntID |
protected double |
udkTime
time in the udk |
static int |
YYEOF
This character denotes the end of file |
static int |
YYINITIAL
|
Constructor Summary | |
---|---|
Yylex()
|
|
Yylex(InputStream in)
Creates a new scanner. |
|
Yylex(Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor. |
Method Summary | |
---|---|
protected void |
addConfPair(String txt)
Add pair of values starting from num token(tokens are separated by space) in 'txt' |
protected void |
addGeometry(String txt)
Add four values of sensor/effecter geometry starting from num token(tokens are separated by space) in 'txt' |
protected void |
addRangeRange(String txt)
Add a couple to RangeRanges starting from num token(tokens are separated by space) in 'txt' |
protected void |
addRanges(String txt)
Add range of Double values starting from num token(tokens are separated by space) in 'txt' |
protected void |
addStaPair(String txt)
Add pair of values starting from num token(tokens are separated by space) in 'txt' |
protected void |
addStartPose(String txt)
Add range of Start Positions starting from num token(tokens are separated by space) in 'txt' |
protected void |
addTick(String txt)
Add a couple to EncoderTicks starting from num token(tokens are separated by space) in 'txt' |
protected void |
addTouch(String txt)
Add a couple to Touches starting from num token(tokens are separated by space) in 'txt' |
protected boolean |
booleanValue(String txt)
Return a boolean from boolean token in txt. |
void |
close()
|
protected double |
doubleValue(String txt)
Return a double from num token in txt. |
protected void |
exceptionOccured(Exception e,
String info)
Logs the exception if observer present, or print it to System.out. |
protected double[] |
getDoubleDouble(String txt)
Return a double (double[]{x,y}) starting from num token(tokens are separated by space) in 'txt' |
protected String |
getToken(String text,
int num)
Returns 'num'-th token from 'text' using DELIMITERS_STANDARD. |
protected String |
getToken(String text,
String delimiters,
int num)
Returns 'num'-th token from 'text' using 'delimiters'. |
protected double[] |
getTriple(String txt)
Return a triple (double[]{x,y,z}) starting from num token(tokens are separated by space) in 'txt' |
protected double[] |
getTripleDouble(String txt)
Return a triple (double[]{x,y,z}) starting from num token(tokens are separated by space) in 'txt' |
protected int |
intValue(String txt)
Return an integer from num token in txt. |
protected Latitude |
latitudeValue(String txt)
Return a triple Longitude or Latitude consisted of int, double and char starting from num token(tokens are separated by space) in 'txt' |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
locationDoubleValue(String txt)
Return a Location instance starting from num token(tokens are separated by space) in txt |
protected Longitude |
longitudeValue(String txt)
Return a triple Longitude or Latitude consisted of int, double and char starting from num token(tokens are separated by space) in 'txt' |
static void |
main(String[] argv)
Runs the scanner on input files. |
protected OdometryPose |
odometryValue(String txt)
Return a OdometryPose instance starting from num token(tokens are separated by space) in txt |
protected javax.vecmath.Point2d |
point2dDoubleValue(String txt)
Return a Point2D instance starting from num token(tokens are separated by space) in txt |
protected javax.vecmath.Point3d |
point3dValue(String txt)
Return a Point3d instance starting from num token(tokens are separated by space) in txt |
protected javax.vecmath.Point3d |
point3fValue(String txt)
Return a Point3d instance starting from num token(tokens are separated by space) in txt |
protected javax.vecmath.Point4d |
point4fValue(String txt)
Return a Point4d instance starting from num token(tokens are separated by space) in txt |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
rotationValue(String txt)
Return a Rotation instance starting from num token(tokens are separated by space) in txt |
void |
setObserver(cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver observer)
|
void |
setReader(Reader reader)
|
void |
setTime(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj,
double time)
|
void |
setTranslator(UnrealIdTranslator translator)
Set parser translating UnrealID to IntID. |
protected UnrealId |
stringIdValue(String txt)
Returns UnrealId for parsed token. |
protected String |
stringValue(String txt)
Returns string for parsed token. |
protected UnrealId |
unrealIdValue(String txt)
Return an UnrealId instance from identificator token in txt. |
protected javax.vecmath.Vector3d |
vector3dValue(String txt)
Return a Vector3d instance starting from num token(tokens are separated by space) in txt |
protected javax.vecmath.Vector3d |
vector3fValue(String txt)
Return a Vector3d instance starting from num token(tokens are separated by space) in txt |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity |
velocityValue(String txt)
Return a Velocity instance starting from num token(tokens are separated by space) in txt |
protected void |
warning(String info)
Send the warning to observer or prints it to the console. |
void |
yybegin(int newState)
Enters a new lexical state |
void |
yyclose()
Closes the input stream. |
char |
yycharat(int pos)
Returns the character at position pos from the matched text. |
int |
yylength()
Returns the length of the matched text region. |
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage |
yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
void |
yypushback(int number)
Pushes the specified amount of characters back into the input stream. |
void |
yyreset(Reader reader)
Resets the scanner to read from a new input stream. |
int |
yystate()
Returns the current lexical state. |
String |
yytext()
Returns the text matched by the current regular expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int YYEOF
public static final int MSG_MISSTA
public static final int MSG_CONF
public static final int MSG_GEO
public static final int MSG_STA
public static final int MSG_NFO
public static final int MSG_RES
public static final int MSG_DIE
public static final int YYINITIAL
public static final int MSG_SEN
public static final int DUMMY
public static final String DELIMITERS_STANDARD
public static final String DELIMITERS_EXTENDED
protected Map<Integer,Double> mapIntIDDouble
protected Map<Integer,Double> mapIntDouble
protected UnrealIdTranslator translator
protected cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver observer
protected double udkTime
protected Object actObj
Constructor Detail |
---|
public Yylex()
public Yylex(Reader in)
in
- the java.io.Reader to read input from.public Yylex(InputStream in)
in
- the java.io.Inputstream to read input from.Method Detail |
---|
public void setReader(Reader reader)
setReader
in interface cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylex
public void close() throws IOException
close
in interface cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylex
IOException
public void setObserver(cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylexObserver observer)
setObserver
in interface cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylex
public void setTranslator(UnrealIdTranslator translator)
setTranslator
in interface IUSAR2004Yylex
public void setTime(cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject obj, double time)
protected void exceptionOccured(Exception e, String info)
e
- info
- protected void warning(String info)
protected String getToken(String text, String delimiters, int num)
text
- delimiters
-
protected String getToken(String text, int num)
text
-
protected int intValue(String txt)
txt
- text of parameter
protected double doubleValue(String txt)
txt
- text of parameter
protected void addRangeRange(String txt)
txt
- text of parameterprotected void addTick(String txt)
txt
- text of parameterprotected void addTouch(String txt)
txt
- text of parameterprotected void addRanges(String txt)
txt
- text of parameterprotected void addGeometry(String txt)
txt
- text of parameterprotected OdometryPose odometryValue(String txt)
txt
- text of parameter
protected double[] getTripleDouble(String txt)
txt
- text of parameter
protected double[] getDoubleDouble(String txt)
txt
- text of parameter
protected Longitude longitudeValue(String txt)
txt
- text of parameter
protected Latitude latitudeValue(String txt)
txt
- text of parameter
protected javax.vecmath.Vector3d vector3fValue(String txt)
txt
- text of parameter
protected javax.vecmath.Point3d point3fValue(String txt)
txt
- text of parameter
protected void addConfPair(String txt)
txt
- text of parameterprotected void addStaPair(String txt)
txt
- text of parameterprotected void addStartPose(String txt)
txt
- text of parameterprotected javax.vecmath.Point4d point4fValue(String txt)
txt
- text of parameter
protected double[] getTriple(String txt)
txt
- text of parameter
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location locationDoubleValue(String txt)
txt
- text of parameter
protected javax.vecmath.Point2d point2dDoubleValue(String txt)
txt
- text of parameter
protected cz.cuni.amis.pogamut.base3d.worldview.object.Velocity velocityValue(String txt)
txt
- text of parameter
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotationValue(String txt)
txt
- text of parameter
protected javax.vecmath.Point3d point3dValue(String txt)
txt
- text of parameter
protected javax.vecmath.Vector3d vector3dValue(String txt)
txt
- text of parameter
protected String stringValue(String txt)
txt
- text of parameter
protected UnrealId stringIdValue(String txt)
txt
- text of parameter
protected boolean booleanValue(String txt)
txt
- text of parameter
protected UnrealId unrealIdValue(String txt)
txt
- text of parameter
public final void yyclose() throws IOException
IOException
public final void yyreset(Reader reader)
reader
- the new input streampublic final int yystate()
public final void yybegin(int newState)
newState
- the new lexical statepublic final String yytext()
public final char yycharat(int pos)
pos
- the position of the character to fetch.
A value from 0 to yylength()-1.
public final int yylength()
public void yypushback(int number)
number
- the number of characters to be read again.
This number must not be greater than yylength()!public cz.cuni.amis.pogamut.base.communication.messages.InfoMessage yylex() throws IOException
yylex
in interface cz.cuni.amis.pogamut.base.communication.parser.impl.yylex.IYylex
IOException
- if any I/O-Error occurspublic static void main(String[] argv)
argv
- the command line, contains the filenames to run
the scanner on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |