Beispiel #1
0
        public static Marking GetInitialMarkingFromPntFile(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return(null);
            }

            SortedDictionary <int, Place> data = GetDataFromPntFile(filePath);

            return(PetriNetOperator.GetInitialMarkingFromPlaceDictionary(data));
        }
Beispiel #2
0
        public static void ExportReachabilityFileFromPntFile(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return;
            }

            SortedDictionary <int, Place> data = GetDataFromPntFile(filePath);

            PetriNetOperator.ExportReachabilityFileFromPlaceDiationary(data);
        }
Beispiel #3
0
        public static IncidenceMatrix GetPostIncidenceMatrixFromPntFile(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return(null);
            }

            SortedDictionary <int, Place> data = GetDataFromPntFile(filePath);

            return(PetriNetOperator.GetPostIncidenceMatrixFromPlaceDictionary(data));
        }