Exemplo n.º 1
0
        // calculating results from comparing two models
        public void CalculateModels(MetaModel model1, MetaModel model2, bool relevancy)
        {
            model2.CompareModels(model1, relevancy);

            NumOfElementsMod1   = model1.NumberOfElements(relevancy);
            NumOfElementsMod2   = model2.NumberOfElements(relevancy);
            NumOfAttributesMod1 = model1.NumberOfAttributes(relevancy);
            NumOfAttributesMod2 = model2.NumberOfAttributes(relevancy);
            numOfConnectorsMod1 = model1.NumberOfConnectors(relevancy);
            numOfConnectorsMod2 = model2.NumberOfConnectors(relevancy);
            NumOfPackagesMod1   = model1.NumberOfPackages(relevancy);
            NumOfPackagedMod2   = model2.NumberOfPackages(relevancy);

            NumOfChanges            = model2.NumOfChanges;
            NumOfModifiedPackages   = model2.NumberOfModifiedPackages();
            NumOfAddedPackages      = model2.NumberOfAddedPackages();
            NumOfRemovedPackages    = model2.NumberOfRemovedPackages();
            NumOfModifiedElements   = model2.NumberOfModifiedElements();
            NumOfAddedElements      = model2.NumberOfAddedElements();
            NumOfRemovedElements    = model2.NumberOfRemovedElements();
            NumOfModifiedConnectors = model2.NumberOfModifiedConnectors();
            NumOfAddedConnectors    = model2.NumberOfAddedConnectors();
            NumOfRemovedConnectors  = model2.NumberOfRemovedConnectors();
            NumOfModifiedAttributes = model2.NumberOfModifiedAttributes();
            NumOfAddedAttributes    = model2.NumberOfAddedAttributes();
            NumOfRemovedAttributes  = model2.NumberOfRemovedAttributes();

            Changes            = model2.GetChanges();
            ModifiedPackages   = model2.GetAllModifiedPackages();
            AddedPackages      = model2.GetAllAddedPackages();
            RemovedPackages    = model2.GetAllRemovedPackages();
            ModifiedElements   = model2.GetAllModifiedElements();
            AddedElements      = model2.GetAllAddedElements();
            RemovedElements    = model2.GetAllRemovedElements();
            ModifiedConnectors = model2.GetAllModifiedConnectors();
            AddedConnectors    = model2.GetAllAddedConnectors();
            RemovedConnectors  = model2.GetAllRemovedConnectors();
            ModifiedAttributes = model2.GetAllModifiedAttributes();
            AddedAttributes    = model2.GetAllAddedAttributes();
            RemovedAttributes  = model2.GetAllRemovedAttributes();
        }