Esempio n. 1
0
 public void ChangeInputTimeSeries(string variableName, SimpleTimeSeries newTimeSeries)
 {
     Log(String.Format("Updating time series for {0}", variableName));
     VariableSummary summ =
         new VariableSummary(
             Scenario.Network.FunctionManager.Variables.FirstOrDefault(v => v.FullName == ("$" + variableName)),
             Scenario);
     summ.UpdateTimeSeries(newTimeSeries);
 }
Esempio n. 2
0
 public void ChangePiecewiseLinear(string variableName, SimplePiecewise newPiecewise)
 {
     Log(String.Format("Updating  piecewise linear function for {0}", variableName));
     VariableSummary summ =
         new VariableSummary(
             Scenario.Network.FunctionManager.Variables.FirstOrDefault(v => v.FullName == ("$" + variableName)),
             Scenario);
     summ.UpdatePiecewise(newPiecewise);
 }
Esempio 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.Count(); i++)
         result[i] = new VariableSummary(Scenario.Network.FunctionManager.Variables[i],Scenario);
     return result;
 }