Class RegexReachabilityChecker


  • public class RegexReachabilityChecker
    extends Object
    • Constructor Detail

      • RegexReachabilityChecker

        public RegexReachabilityChecker​(boolean defaultAnswer)
    • Method Detail

      • clearCache

        public void clearCache()
      • canReachWithoutConsumingInput

        public static boolean canReachWithoutConsumingInput​(AutomatonState start,
                                                            AutomatonState goal)
        Check if the automaton can reach the goal state from start state, ignoring boundaries (see BoundaryTree)
        Parameters:
        start - The start state
        goal - the targeted state
        Returns:
        true if the goal state can be reached from start, ignoring boundaries
      • canReachWithoutConsumingInputNorCrossingBoundaries

        public static boolean canReachWithoutConsumingInputNorCrossingBoundaries​(AutomatonState start,
                                                                                 AutomatonState goal)
        Check if the automaton can reach the goal state from start state, taking into consideration boundaries (see BoundaryTree)
        Parameters:
        start - The start state
        goal - the targeted state
        Returns:
        true if the goal state can be reached from start, stopping if encountering boundaries