Exemplo n.º 1
0
        public static IFormulaObjectCreator GetCreator(IVariableDetector detector, IEnumerable <IOperationDetector> additional,
                                                       IEnumerable <IBinaryDetector> binary)
        {
            IFormulaObjectCreator prot = new ExtendedFormulaCreator(detector);

            prot.Add(ElementaryRealDetector.Object);
            prot.Add(PropertyFictionOperation.Singleton);
            prot.Add(BinaryPropertyDetector.Singleton);
            foreach (IOperationDetector d in additional)
            {
                prot.Add(d);
            }
            foreach (IBinaryDetector d in binary)
            {
                prot.Add(d);
            }
            IFormulaObjectCreator creator = new FormulaArrayObjectCreator(prot);

            foreach (IOperationDetector d in additional)
            {
                creator.Add(d);
            }
            foreach (IBinaryDetector d in binary)
            {
                creator.Add(d);
            }
            return(creator);
        }
Exemplo n.º 2
0
        public static IFormulaObjectCreator GetCreator(IVariableDetector detector)
        {
            IFormulaObjectCreator prot = new ExtendedFormulaCreator(detector);

            prot.Add(ElementaryRealDetector.Object);
            IFormulaObjectCreator creator = new FormulaArrayObjectCreator(prot);

            return(creator);
        }
Exemplo n.º 3
0
        public static IFormulaObjectCreator GetCreator(Dictionary <char, object> table)
        {
            IFormulaObjectCreator prot = new ExtendedFormulaCreator(table);

            prot.Add(ElementaryRealDetector.Object);
            IFormulaObjectCreator creator = new FormulaArrayObjectCreator(prot);

            return(creator);
        }