Пример #1
0
        public GroundWaterLevelAtNode(string idAndCaption, Point2D point, double defaultValue, double timeTolerance, LinkableComponentMW2 component)
            : base(idAndCaption, component.TimeExtent, defaultValue, timeTolerance)
        {
            Quantity q = new Quantity(
                new Unit(PredefinedUnits.Meter),
                "Ground Water Level",  // Description
                "Ground Water Level"); // Caption

            q.ValueType = typeof(double);

            ElementSet2D es = new ElementSet2D(idAndCaption, ElementType.Point);

            es.AddElement(new Point2D[] { point });

            Initialise(component, q, es);
        }