Beispiel #1
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();
 }
Beispiel #2
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);
 }