Example #1
0
        public bool LoadFromFile(string filename)
        {
            if (File.Exists(filename))
            {
                Clear();
                XElement xroot  = XElement.Load(filename);
                XElement xmlApp = xroot.Element("AUTOSARTAPP");
                BaseDataTypes.Clear();

                LoadProperties(xroot);
                Enums.LoadFromXML(xroot);
                systemErrors.LoadFromXML(xroot);
                BaseDataTypes.LoadFromXML(xroot);
                SimpleDataTypes.LoadFromXML(xroot);
                ComplexDataTypes.LoadFromXML(xroot);
                SenderReceiverInterfaces.LoadFromXML(xroot);
                ClientServerInterfaces.LoadFromXML(xroot);
                ComponentDefenitionsList.LoadFromXML(xroot);
                Compositions.LoadFromXML(xroot);
                OsTasks.LoadFromXML(xroot);
                arrayDataTypes.LoadFromXML(xroot);
                MCUType.LoadFromXML(xroot);
                BaseDataTypes.CheckBaseDataTypes();
                SyncronizeRunnables(null, true);
                UpdateConnections();

                FileName = filename;
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        public void CreateNewProject()
        {
            CompositionInstance mainComposition = new CompositionInstance();

            mainComposition.Name = CompositionInstancesList.MainCompositionName;
            ActiveComposition    = mainComposition;
            compositions.Add(mainComposition);
            BaseDataTypes.CheckBaseDataTypes();
        }
Example #3
0
 private AutosarApplication()
 {
     BaseDataTypes.CheckBaseDataTypes();
 }