Esempio n. 1
0
        public void addOrReplaceProperty(IPropertySpecification property)
        {
            IPropertySpecification existing = null;

            foreach (IPropertySpecification prop in properties)
            {
                if (prop.getPropertyId().Equals(property.getPropertyId()))
                {
                    existing = prop;
                }
            }
            if (existing != null)
            {
                properties.Remove(existing);
            }
            properties.Add(property);
        }
Esempio n. 2
0
        public ITransformedPropertySpecification transform(IPropertySpecification property)
        {
            IFormula formulaForTransformation = expressionParser.parseExpression(property.getFormalRepresentation(), property.getPropertyId());

            return(transformFormula(formulaForTransformation));
        }