Class ReachabilityGraphParser
java.lang.Object
org.tweetyproject.commons.Parser
org.tweetyproject.logics.petri.syntax.reachability_graph.ReachabilityGraphParser
ReachabilityGraphParser class
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Construct the reachability graph for the Petri netget()
Get the reachability graph after parsingparseBeliefBase
(Reader reader) Parses the given reader into a belief base of the given type.parseFormula
(Reader reader) Parses the given reader into a formula of the given type.Methods inherited from class org.tweetyproject.commons.Parser
isNumeric, parseBeliefBase, parseBeliefBaseFromFile, parseFormula, parseFormulaFromFile, parseListOfBeliefBases, parseListOfBeliefBases, parseListOfBeliefBasesFromFile, parseListOfBeliefBasesFromFile
-
Constructor Details
-
ReachabilityGraphParser
Constructor- Parameters:
petriNet
- a Petri net with some designated initial markings
-
-
Method Details
-
construct
public void construct()Construct the reachability graph for the Petri net -
get
Get the reachability graph after parsing- Returns:
- the reachability graph if the graph had been parsed before
- Throws:
IllegalStateException
- if the reachability graph has not been parsed yet
-
parseBeliefBase
Description copied from class:Parser
Parses the given reader into a belief base of the given type.- Specified by:
parseBeliefBase
in classParser
- Parameters:
reader
- a reader- Returns:
- a belief base
- Throws:
IOException
- if some IO issue occurred.ParserException
- some parsing exceptions may be added here.
-
parseFormula
Description copied from class:Parser
Parses the given reader into a formula of the given type.- Specified by:
parseFormula
in classParser
- Parameters:
reader
- a reader- Returns:
- a formula
- Throws:
IOException
- if some IO issue occurred.ParserException
- some parsing exceptions may be added here.
-