Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AirPressureConverterNode"/> class.
        /// </summary>
        /// <param name="context">The node context.</param>
        public AirPressureConverterNode(INodeContext context)
            : base(context)
        {
            context.ThrowIfNull("context");
            // Get the TypeService from the context
            var typeService = context.GetService <ITypeService>();

            this.Temperature          = typeService.CreateDouble(PortTypes.Temperature, "Temperatur (°C)");
            this.Temperature.MinValue = -50;
            this.Temperature.MaxValue = 50;

            this.AbsoluteAirPressure = typeService.CreateDouble(PortTypes.Float, "Absoluter Luftdruck (hPA)");
            this.MeasurementHeight   = typeService.CreateInt(PortTypes.Integer, "Messhöhe über N.N.");
            this.RelativeAirPressure = typeService.CreateDouble(PortTypes.Float, "Relative Luftfeuchtigkeit (hPA)");
        }
Exemplo n.º 2
0
        public DewPointNode(INodeContext context) : base(context)
        {
            context.ThrowIfNull("context");

            this.typeService = context.GetService <ITypeService>();

            this.Temperature          = this.typeService.CreateDouble(PortTypes.Temperature, "Temperatur (°C)");
            this.Temperature.MinValue = -248;
            this.Temperature.MaxValue = 2000;

            this.Humidity          = this.typeService.CreateDouble(PortTypes.Float, "rel. Luftfeuchte (%)");
            this.Humidity.MinValue = 0;
            this.Humidity.MaxValue = 100;

            this.DewPoint = this.typeService.CreateDouble(PortTypes.Float, "Taupunkt (°C)");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="HumidityConverterNode"/> class.
        /// </summary>
        /// <param name="context">The node context.</param>
        public HumidityConverterNode(INodeContext context)
            : base(context)
        {
            context.ThrowIfNull("context");
            // Get the TypeService from the context
            var typeService = context.GetService <ITypeService>();

            this.Temperature          = typeService.CreateDouble(PortTypes.Temperature, "Temperatur (°C)");
            this.Temperature.MinValue = -50;
            this.Temperature.MaxValue = 50;

            this.RelativeHumidity          = typeService.CreateDouble(PortTypes.Float, "Relative Luftfeuchtigkeit (%)");
            this.RelativeHumidity.MinValue = 0;
            this.RelativeHumidity.MaxValue = 100;

            this.AbsoluteHumidity = typeService.CreateDouble(PortTypes.Float, "Absolute Luftfeuchtigkeit (g/m3)");
        }