示例#1
0
 public stForecast()
 {
     PexPreConstructorParameterless();
     _timeFrom              = Vortex.Connector.IConnectorFactory.CreateDATE_TIME();
     _timeTo                = Vortex.Connector.IConnectorFactory.CreateDATE_TIME();
     _precipitation_unit    = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _precipitation_value   = Vortex.Connector.IConnectorFactory.CreateREAL();
     _precipitation_type    = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _windDirection_value   = Vortex.Connector.IConnectorFactory.CreateREAL();
     _windDirection_name    = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _windSpeed_value       = Vortex.Connector.IConnectorFactory.CreateREAL();
     _windSpeed_unit        = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _windSpeed_name        = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _temperature_value     = Vortex.Connector.IConnectorFactory.CreateREAL();
     _temperature_unit      = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _temperature_min       = Vortex.Connector.IConnectorFactory.CreateREAL();
     _temperature_max       = Vortex.Connector.IConnectorFactory.CreateREAL();
     _temperature_feel_like = Vortex.Connector.IConnectorFactory.CreateREAL();
     _pressure_value        = Vortex.Connector.IConnectorFactory.CreateREAL();
     _pressure_unit         = Vortex.Connector.IConnectorFactory.CreateSTRING();
     _humidity_value        = Vortex.Connector.IConnectorFactory.CreateREAL();
     _humidity_UNIT         = Vortex.Connector.IConnectorFactory.CreateSTRING();
     AttributeName          = "";
     PexConstructorParameterless();
 }
示例#2
0
 public stForecast(Vortex.Connector.IVortexObject parent, string readableTail, string symbolTail)
 {
     this.@SymbolTail = symbolTail;
     this.@Connector  = parent.GetConnector();
     this.@ValueTags  = new System.Collections.Generic.List <Vortex.Connector.IValueTag>();
     this.@Parent     = parent;
     _humanReadable   = Vortex.Connector.IConnector.CreateSymbol(parent.HumanReadable, readableTail);
     this.Kids        = new System.Collections.Generic.List <Vortex.Connector.IVortexElement>();
     this.@Children   = new System.Collections.Generic.List <Vortex.Connector.IVortexObject>();
     PexPreConstructor(parent, readableTail, symbolTail);
     Symbol                 = Vortex.Connector.IConnector.CreateSymbol(parent.Symbol, symbolTail);
     _timeFrom              = @Connector.Online.Adapter.CreateDATE_TIME(this, "", "timeFrom");
     _timeTo                = @Connector.Online.Adapter.CreateDATE_TIME(this, "", "timeTo");
     _precipitation_unit    = @Connector.Online.Adapter.CreateSTRING(this, "", "precipitation_unit");
     _precipitation_value   = @Connector.Online.Adapter.CreateREAL(this, "", "precipitation_value");
     _precipitation_type    = @Connector.Online.Adapter.CreateSTRING(this, "", "precipitation_type");
     _windDirection_value   = @Connector.Online.Adapter.CreateREAL(this, "", "windDirection_value");
     _windDirection_name    = @Connector.Online.Adapter.CreateSTRING(this, "", "windDirection_name");
     _windSpeed_value       = @Connector.Online.Adapter.CreateREAL(this, "", "windSpeed_value");
     _windSpeed_unit        = @Connector.Online.Adapter.CreateSTRING(this, "", "windSpeed_unit");
     _windSpeed_name        = @Connector.Online.Adapter.CreateSTRING(this, "", "windSpeed_name");
     _temperature_value     = @Connector.Online.Adapter.CreateREAL(this, "", "temperature_value");
     _temperature_unit      = @Connector.Online.Adapter.CreateSTRING(this, "", "temperature_unit");
     _temperature_min       = @Connector.Online.Adapter.CreateREAL(this, "", "temperature_min");
     _temperature_max       = @Connector.Online.Adapter.CreateREAL(this, "", "temperature_max");
     _temperature_feel_like = @Connector.Online.Adapter.CreateREAL(this, "", "temperature_feel_like");
     _pressure_value        = @Connector.Online.Adapter.CreateREAL(this, "", "pressure_value");
     _pressure_unit         = @Connector.Online.Adapter.CreateSTRING(this, "", "pressure_unit");
     _humidity_value        = @Connector.Online.Adapter.CreateREAL(this, "", "humidity_value");
     _humidity_UNIT         = @Connector.Online.Adapter.CreateSTRING(this, "", "humidity_UNIT");
     AttributeName          = "";
     parent.AddChild(this);
     parent.AddKid(this);
     PexConstructor(parent, readableTail, symbolTail);
 }
示例#3
0
 public MAIN()
 {
     PexPreConstructorParameterless();
     _WeatherData     = new stWeatherData();
     _bGetWeatherData = Vortex.Connector.IConnectorFactory.CreateBOOL();
     _actDateTime     = Vortex.Connector.IConnectorFactory.CreateDATE_TIME();
     AttributeName    = "";
     PexConstructorParameterless();
 }
示例#4
0
 public stWeatherData()
 {
     PexPreConstructorParameterless();
     _sunrise = Vortex.Connector.IConnectorFactory.CreateDATE_TIME();
     _sunset  = Vortex.Connector.IConnectorFactory.CreateDATE_TIME();
     Forecast = new stForecast[40];
     Vortex.Connector.BuilderHelpers.Arrays.InstantiateArray(Forecast, () => new stForecast());
     AttributeName = "";
     PexConstructorParameterless();
 }
示例#5
0
 public MAIN(Vortex.Connector.IVortexObject parent, string readableTail, string symbolTail)
 {
     this.@SymbolTail = symbolTail;
     this.@Connector  = parent.GetConnector();
     this.@ValueTags  = new System.Collections.Generic.List <Vortex.Connector.IValueTag>();
     this.@Parent     = parent;
     _humanReadable   = Vortex.Connector.IConnector.CreateSymbol(parent.HumanReadable, readableTail);
     this.Kids        = new System.Collections.Generic.List <Vortex.Connector.IVortexElement>();
     this.@Children   = new System.Collections.Generic.List <Vortex.Connector.IVortexObject>();
     PexPreConstructor(parent, readableTail, symbolTail);
     Symbol           = Vortex.Connector.IConnector.CreateSymbol(parent.Symbol, symbolTail);
     _WeatherData     = new stWeatherData(this, "", "WeatherData");
     _bGetWeatherData = @Connector.Online.Adapter.CreateBOOL(this, "", "bGetWeatherData");
     _actDateTime     = @Connector.Online.Adapter.CreateDATE_TIME(this, "", "actDateTime");
     AttributeName    = "";
     parent.AddChild(this);
     parent.AddKid(this);
     PexConstructor(parent, readableTail, symbolTail);
 }
示例#6
0
 public stWeatherData(Vortex.Connector.IVortexObject parent, string readableTail, string symbolTail)
 {
     this.@SymbolTail = symbolTail;
     this.@Connector  = parent.GetConnector();
     this.@ValueTags  = new System.Collections.Generic.List <Vortex.Connector.IValueTag>();
     this.@Parent     = parent;
     _humanReadable   = Vortex.Connector.IConnector.CreateSymbol(parent.HumanReadable, readableTail);
     this.Kids        = new System.Collections.Generic.List <Vortex.Connector.IVortexElement>();
     this.@Children   = new System.Collections.Generic.List <Vortex.Connector.IVortexObject>();
     PexPreConstructor(parent, readableTail, symbolTail);
     Symbol   = Vortex.Connector.IConnector.CreateSymbol(parent.Symbol, symbolTail);
     _sunrise = @Connector.Online.Adapter.CreateDATE_TIME(this, "", "sunrise");
     _sunset  = @Connector.Online.Adapter.CreateDATE_TIME(this, "", "sunset");
     Forecast = new stForecast[40];
     Vortex.Connector.BuilderHelpers.Arrays.InstantiateArray(Forecast, this, "", "Forecast", (p, rt, st) => new stForecast(p, rt, st));
     AttributeName = "";
     parent.AddChild(this);
     parent.AddKid(this);
     PexConstructor(parent, readableTail, symbolTail);
 }