Class DOTMutableAutomatonParser<S,​I,​SP,​TP,​A extends MutableAutomaton<S,​I,​?,​SP,​TP>>

    • Constructor Detail

      • DOTMutableAutomatonParser

        public DOTMutableAutomatonParser​(AutomatonCreator<A,​I> creator,
                                         Function<Map<String,​String>,​SP> nodeParser,
                                         Function<Map<String,​String>,​Pair<I,​TP>> edgeParser,
                                         Collection<String> initialNodeIds,
                                         boolean fakeInitialNodeIds)
        Parser for arbitrary MutableAutomatons with a custom automaton instance, custom node and edge attributes and custom labels for the initial nodes.
        Parameters:
        creator - a creator that is used to instantiate the returned automaton
        nodeParser - a node parser that extracts from a property map of a node the state property
        edgeParser - an edge parser that extracts from a property map of an edge the input symbol and transition property
        initialNodeIds - the ids of the initial nodes
        fakeInitialNodeIds - a flag indicating whether the initialNodeIds are artificial or not. If true, the nodes matching the initialNodeIds will not be added to the automaton. Instead, their direct successors will be initial states instead. This may be useful for instances where there are artificial nodes used to display in incoming arrow for the actual initial states. If false, the nodes matching the initialNodeIds will be used as initial nodes.