Exemplo n.º 1
0
        public AquiferStorage(string id, double[] initialValues, double relaxation, IElementSet es, LinkableComponentMW2 component)
            : base(id, new Time(component.TimeExtent.TimeHorizon.StampAsModifiedJulianDay), initialValues, relaxation)
        {
            Quantity q = new Quantity();

            q.Description = "Aquifer Storage [m3]";
            q.Caption     = "Aquifer Storage";

            Dimension dimension = new Dimension();

            dimension.SetPower(DimensionBase.Length, 3);
            Unit unit = new Unit("Storage", 1.0, 0.0, "Storage");

            unit.Dimension = dimension;

            q.Unit = unit;

            _iDescribable = new Describable(
                string.Format("{0}, {1}", q.Caption, es.Caption),
                string.Format("{0}, {1}", q.Description, es.Description));

            _iValueDefinition = q;
            _iElementSet      = es;
            _iComponent       = component;
        }
Exemplo n.º 2
0
 ///<inheritdoc/>
 public void ClearValues()
 {
     Identifiable.ClearValues();
     Describable.ClearValues();
     Area.ClearValues();
     StatusType.ClearValues();
 }
Exemplo n.º 3
0
        public static Describable CreateDescribable(IDescribable describable)
        {
            var ret = new Describable()
            {
                name        = describable.Name,
                description = describable.Description
            };

            return(ret);
        }
Exemplo n.º 4
0
        public Inflow(string id, double[] defaultValues, double timeTolerance, IElementSet es, LinkableComponentMW2 component)
            : base(id, component.TimeExtent, defaultValues, timeTolerance)
        {
            Quantity q = new Quantity();

            q.Description = "Inflow [m3/s]";
            q.Caption     = "Flow";
            q.Unit        = new Unit(PredefinedUnits.CubicMeterPerSecond);

            _iDescribable = new Describable(
                string.Format("{0}, {1}", q.Caption, es.Caption),
                string.Format("{0}, {1}", q.Description, es.Description));

            _iValueDefinition = q;
            _iElementSet      = es;
            _iComponent       = component;
        }
Exemplo n.º 5
0
        public AquiferLevel(string id, double[] initialValues, double relaxation, IElementSet es, LinkableComponentMW2 component)
            : base(id, new Time(component.TimeExtent.TimeHorizon.StampAsModifiedJulianDay), initialValues, relaxation)
        {
            Quantity q = new Quantity();

            q.Description = "Aquifer level [m]";
            q.Caption     = "Aquifer Level";
            q.Unit        = new Unit(PredefinedUnits.CubicMeterPerSecond);

            _iDescribable = new Describable(
                string.Format("{0}, {1}", q.Caption, es.Caption),
                string.Format("{0}, {1}", q.Description, es.Description));

            _iValueDefinition = q;
            _iElementSet      = es;
            _iComponent       = component;
        }
Exemplo n.º 6
0
        private void RegisterSubtypes()
        {
            Identifiable = new Identifiable();

            Describable = new Describable();

            Area = new Area();

            StatusType = new StatusType();

            TypeOfLines = new Dictionary <int, SubType>()
            {
                { 1, Describable },
                { 2, Area },
                { 3, StatusType },
                { 4, Identifiable }
            };

            NumberOfSubtypes = TypeOfLines.Count;
        }
 public void OneTimeSetup()
 {
     _describable = new Describable();
     _subtype     = new KeyValuePair <int, SubType>(1, _describable);
 }
Exemplo n.º 8
0
 protected LinkableComponent(string id)
 {
     _identifier = new Identifier(id);
     _describes  = new Describable(id);
 }