Package com.uppaal.model.io2
Class UGIReader
java.lang.Object
com.uppaal.model.io2.UGIReader
- All Implemented Interfaces:
UGIReaderConstants
public class UGIReader extends Object implements UGIReaderConstants
A parser that can read a file and modify pos tags in a
Document.-
Field Summary
Fields Modifier and Type Field Description Tokenjj_ntNext token.TokentokenCurrent token.UGIReaderTokenManagertoken_sourceGenerated Token Manager.Fields inherited from interface com.uppaal.model.io2.UGIReaderConstants
ASSIGN, BRANCHPOINT, CLPAR, COLOR, COMMA, DEFAULT, DOT, ECOLOR, EOF, EXPRATE, EXTERNALDECL, GLOBALDECL, GRAPHINFO, GUARD, ID, IMPORTS, INVARIANT, LCOLOR, LOCALDECL, LOCATION, LOCATIONNAME, NAT, OPPAR, PARAMLIST, PROBABILITY, PROCASSIGN, PROCESS, SELECT, SEMICOLON, SYNC, SYSTEMDEF, TEMPLATENAME, tokenImage, TRANS -
Constructor Summary
Constructors Constructor Description UGIReader(UGIReaderTokenManager tm)Constructor with generated Token Manager.UGIReader(InputStream stream)Constructor with InputStream.UGIReader(InputStream stream, String encoding)Constructor with InputStream and supplied encodingUGIReader(Reader stream)Constructor. -
Method Summary
Modifier and Type Method Description voidcolor(Element element)voiddisable_tracing()Disable tracing.voidenable_tracing()Enable tracing.ParseExceptiongenerateParseException()Generate ParseException.TokengetNextToken()Get the next Token.TokengetToken(int index)Get the specific Token.voidglobalDeclGI()voidgraphInfo(Document document)voidgraphInfoItem()voidimportGI()intinteger()voidlocalDeclGraphInfo()AbstractLocationlocIdent()voidnails(Edge edge)voidnameGraphInfo()voidparamListGraphInfo()voidparse(Document document)Parses the currently associatedjava.io.InputStreamand modifies pos tags on elements indocument.voidprocAssignGI()voidPTGraphInfo(Document document)voidReInit(UGIReaderTokenManager tm)Reinitialise.voidReInit(InputStream stream)Reinitialise.voidReInit(InputStream stream, String encoding)Reinitialise.voidReInit(Reader stream)Reinitialise.voidsingleCoord(Element element)voidsystemDefGI()EdgetransIdent()
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
Method Details
-
parse
Parses the currently associatedjava.io.InputStreamand modifies pos tags on elements indocument.- Parameters:
document- The DOM that the graphical info must modify.- Throws:
ParseException- If errors occur during parsing.Exception
-
graphInfo
- Throws:
ParseExceptionException
-
importGI
- Throws:
ParseException
-
globalDeclGI
- Throws:
ParseException
-
procAssignGI
- Throws:
ParseException
-
systemDefGI
- Throws:
ParseException
-
PTGraphInfo
- Throws:
ParseExceptionException
-
nameGraphInfo
- Throws:
ParseException
-
paramListGraphInfo
- Throws:
ParseException
-
localDeclGraphInfo
- Throws:
ParseException
-
graphInfoItem
- Throws:
ParseException
-
locIdent
- Throws:
ParseException
-
transIdent
- Throws:
ParseException
-
color
- Throws:
ParseException
-
nails
- Throws:
ParseException
-
singleCoord
- Throws:
ParseException
-
integer
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-