예제 #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);
        }
예제 #2
0
        public ITransformedPropertySpecification transform(IPropertySpecification property)
        {
            IFormula formulaForTransformation = expressionParser.parseExpression(property.getFormalRepresentation(), property.getPropertyId());

            return(transformFormula(formulaForTransformation));
        }