public class AtomicStatechartBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.regex.Pattern |
s_transPattern
The pattern to parse transitions
|
| Constructor and Description |
|---|
AtomicStatechartBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
nextValidLine(java.util.Scanner scanner)
Gets the next valid line from the input source.
|
static Statechart<AtomicEvent> |
parseFromString(java.util.Scanner scanner)
Parses a statechart from a source of text
|
protected static AtomicStatechart |
parseStatechart(AtomicStatechart sc,
java.util.Scanner scanner)
Parses a statechart from a source of text
|
protected static void |
parseStates(Statechart<AtomicEvent> sc,
java.util.Scanner scanner)
Parses the states of a statechart
|
protected static Configuration<AtomicEvent> |
parseTarget(java.lang.String target_string)
Creates a target configuration from a string of text
|
protected static void |
parseTransitions(Statechart<AtomicEvent> sc,
java.util.Scanner scanner)
Parses the transitions of a statechart
|
protected static final java.util.regex.Pattern s_transPattern
public static Statechart<AtomicEvent> parseFromString(java.util.Scanner scanner) throws ca.uqac.lif.bullwinkle.BnfParser.ParseException
scanner - A scanner open on a source of textca.uqac.lif.bullwinkle.BnfParser.ParseException - Thrown if the source of text does not follow the
expected syntaxprotected static AtomicStatechart parseStatechart(AtomicStatechart sc, java.util.Scanner scanner) throws ca.uqac.lif.bullwinkle.BnfParser.ParseException
sc - The statechart to "fill" with the contents to be readscanner - A scanner pointing to the first line of the internal
contents of the statechartca.uqac.lif.bullwinkle.BnfParser.ParseException - Thrown if the source of text does not follow the
expected syntaxprotected static void parseStates(Statechart<AtomicEvent> sc, java.util.Scanner scanner) throws ca.uqac.lif.bullwinkle.BnfParser.ParseException
sc - The statechart to "fill" with the contents to be readscanner - A scanner pointing to the first line of the list of
states of the statechartca.uqac.lif.bullwinkle.BnfParser.ParseException - Thrown if the source of text does not follow the
expected syntaxprotected static void parseTransitions(Statechart<AtomicEvent> sc, java.util.Scanner scanner) throws ca.uqac.lif.bullwinkle.BnfParser.ParseException
sc - The statechart to "fill" with the contents to be readscanner - A scanner pointing to the first line of the list of
transitions of the statechartca.uqac.lif.bullwinkle.BnfParser.ParseException - Thrown if the source of text does not follow the
expected syntaxprotected static Configuration<AtomicEvent> parseTarget(java.lang.String target_string)
target_string - The string of textprotected static java.lang.String nextValidLine(java.util.Scanner scanner)
scanner - A scanner open on a source of textnull if there are no more
valid lines in the input sourceCopyright © Sylvain HallĂ©. All Rights Reserved.