Ejemplo n.º 1
0
        public void ChangeInputTimeSeries(string variableName, SimpleTimeSeries newTimeSeries)
        {
            Log(String.Format("Updating time series for {0}", variableName));
            VariableSummary summ =
                new VariableSummary(
                    Enumerable.FirstOrDefault(Scenario.Network.FunctionManager.Variables, v => v.FullName == ("$" + variableName)),
                    Scenario);

            summ.UpdateTimeSeries(newTimeSeries);
        }
Ejemplo n.º 2
0
        public void ChangePiecewiseLinear(string variableName, SimplePiecewise newPiecewise)
        {
            Log(String.Format("Updating  piecewise linear function for {0}", variableName));
            VariableSummary summ =
                new VariableSummary(
                    Enumerable.FirstOrDefault(Scenario.Network.FunctionManager.Variables, v => v.FullName == ("$" + variableName)),
                    Scenario);

            summ.UpdatePiecewise(newPiecewise);
        }
Ejemplo n.º 3
0
 public VariableSummary[] GetInputList()
 {
     Log("Requested Variable List");
     VariableSummary[] result = new VariableSummary[Scenario.Network.FunctionManager.Variables.Count];
     for (var i = 0; i < result.Length; i++)
     {
         result[i] = new VariableSummary(Scenario.Network.FunctionManager.Variables[i], Scenario);
     }
     return(result);
 }