Exemple #1
0
        internal static ISet <MatchDomainAlP> CheckDomainAlP(LL.MDE.DataModels.EnAr.Package alP)
        {
            ISet <MatchDomainAlP> result = new HashSet <MatchDomainAlP>();

            LL.MDE.DataModels.EnAr.Element alPE     = alP.Element;
            LL.MDE.DataModels.EnAr.Package projectP = alP.ParentPackage();
            if (alPE.Stereotype == "abstraction level" && alPE.ElementPackage() == alP)
            {
                string projectName = projectP.Name;
                LL.MDE.DataModels.EnAr.Element projectPE = projectP.Element;
                if (projectPE.Stereotype == "fctsys" && projectPE.ElementPackage() == projectP)
                {
                    MatchDomainAlP match = new MatchDomainAlP()
                    {
                        alP         = alP,
                        alPE        = alPE,
                        projectP    = projectP,
                        projectName = projectName,
                        projectPE   = projectPE,
                    };
                    result.Add(match);
                }
            }
            return(result);
        }
        internal static ISet <MatchDomainAbstractionLevelP> CheckDomainAbstractionLevelP(LL.MDE.DataModels.EnAr.Package abstractionLevelP)
        {
            ISet <MatchDomainAbstractionLevelP> result = new HashSet <MatchDomainAbstractionLevelP>();
            string alpName = abstractionLevelP.Name;

            LL.MDE.DataModels.EnAr.Package fctsysP = abstractionLevelP.ParentPackage();
            string fctsysName = fctsysP.Name;
            MatchDomainAbstractionLevelP match = new MatchDomainAbstractionLevelP()
            {
                abstractionLevelP = abstractionLevelP,
                alpName           = alpName,
                fctsysP           = fctsysP,
                fctsysName        = fctsysName,
            };

            result.Add(match);

            return(result);
        }