Example #1
0
        /// <summary>
        ///    Removes the <see cref="QuantitySelection" /> whose path is equal to the consolidated path of
        ///    <paramref name="quantity" />
        /// </summary>
        public virtual void RemoveQuantity(IQuantity quantity)
        {
            if (quantity == null)
            {
                return;
            }

            RemoveOutput(new QuantitySelection(quantity.ConsolidatedPath(), quantity.QuantityType));
        }
Example #2
0
        /// <summary>
        ///    Adds an output corresponding to the <paramref name="quantity" />. The corresponding <see cref="QuantitySelection" />
        ///    will be added using a consolidated path
        /// </summary>
        public virtual void AddQuantity(IQuantity quantity)
        {
            if (quantity == null)
            {
                return;
            }

            _allOutputs.Add(new QuantitySelection(quantity.ConsolidatedPath(), quantity.QuantityType));
        }