Ejemplo n.º 1
0
        internal void CheckAndEnforce(LL.MDE.DataModels.SimpleUML.Association a, LL.MDE.DataModels.SimpleRDBMS.ForeignKey fk)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(a);
            EnforceDomains   output = new EnforceDomains(fk);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultAssocToFKey> result = Check(a);
                Enforce(result, fk);
                traceabilityMap[input] = output;
            }
        }
Ejemplo n.º 2
0
        internal void CheckAndEnforce(LL.MDE.DataModels.EnAr.Element parentEl, LL.MDE.DataModels.XML.Tag parentSeDecomposition, LL.MDE.DataModels.XML.Tag structureElements)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(parentEl, parentSeDecomposition);
            EnforceDomains   output = new EnforceDomains(structureElements);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultBlockProperty2StructureElement> result = Check(parentEl, parentSeDecomposition);
                Enforce(result, structureElements);
                traceabilityMap[input] = output;
            }
        }
Ejemplo n.º 3
0
        internal void CheckAndEnforce(LL.MDE.DataModels.SimpleUML.Class c, LL.MDE.DataModels.SimpleRDBMS.Table t, string prefix)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(c, prefix);
            EnforceDomains   output = new EnforceDomains(t);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultSuperAttributeToColumn> result = Check(c, prefix);
                Enforce(result, t, prefix);
                traceabilityMap[input] = output;
            }
        }
Ejemplo n.º 4
0
        public void CheckAndEnforce(LL.MDE.DataModels.EnAr.Package p, string someString, LL.MDE.DataModels.EnAr.Package p2, LL.MDE.DataModels.EnAr.Package po)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(p, someString, p2);
            EnforceDomains   output = new EnforceDomains(po);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultRelation1> result = Check(p, someString, p2);
                Enforce(result, someString, po);
                traceabilityMap[input] = output;
            }
        }
        internal void CheckAndEnforce(LL.MDE.DataModels.XML.Attribute structureIdRef, LL.MDE.DataModels.XML.Tag fmStructureRefs)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(structureIdRef);
            EnforceDomains   output = new EnforceDomains(fmStructureRefs);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultCreateProjectStructureLink> result = Check(structureIdRef);
                Enforce(result, fmStructureRefs);
                traceabilityMap[input] = output;
            }
        }
Ejemplo n.º 6
0
        internal void CheckAndEnforce(LL.MDE.DataModels.XML.Attribute tagId, LL.MDE.DataModels.XML.Tag decompositions)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(tagId);
            EnforceDomains   output = new EnforceDomains(decompositions);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultCreateDecompositionLink> result = Check(tagId);
                Enforce(result, decompositions);
                traceabilityMap[input] = output;
            }
        }
Ejemplo n.º 7
0
        public void CheckAndEnforce(LL.MDE.DataModels.XML.XMLFile fmeaFile, LL.MDE.DataModels.EnAr.Package alP)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(alP);
            EnforceDomains   output = new EnforceDomains(fmeaFile);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultEA2FMEA_Start> result = Check(alP);
                Enforce(result, fmeaFile);
                traceabilityMap[input] = output;
            }
        }
        internal void CheckAndEnforce(LL.MDE.DataModels.EnAr.Package abstractionLevelP, LL.MDE.DataModels.XML.Tag structure, LL.MDE.DataModels.XML.Tag structureElements)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(abstractionLevelP, structure);
            EnforceDomains   output = new EnforceDomains(structureElements);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultAddStructureRoot> result = Check(abstractionLevelP, structure);
                Enforce(result, structureElements);
                traceabilityMap[input] = output;
            }
        }
        internal void CheckAndEnforce(LL.MDE.DataModels.EnAr.Package productP, LL.MDE.DataModels.XML.Tag fmStructureRefs, LL.MDE.DataModels.XML.Tag fmStructureElements, LL.MDE.DataModels.XML.Tag fmStructures)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(productP, fmStructureRefs, fmStructureElements);
            EnforceDomains   output = new EnforceDomains(fmStructures);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultProduct2Structure> result = Check(productP, fmStructureRefs, fmStructureElements);
                Enforce(result, fmStructures);
                traceabilityMap[input] = output;
            }
        }
        public void CheckAndEnforce(LL.MDE.DataModels.SimpleUML.Package p, LL.MDE.DataModels.SimpleRDBMS.Schema s)
        {
            CheckOnlyDomains input  = new CheckOnlyDomains(p);
            EnforceDomains   output = new EnforceDomains(s);

            if (traceabilityMap.ContainsKey(input) && !traceabilityMap[input].Equals(output))
            {
                throw new Exception("This relation has already been used with different enforced parameters!");
            }
            if (!traceabilityMap.ContainsKey(input))
            {
                ISet <CheckResultPackageToSchema> result = Check(p);
                Enforce(result, s);
                traceabilityMap[input] = output;
            }
        }