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); }
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); }
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); }