private VariableAP transformVariable(Shared.Variable variable) { try { //logger.Info("Inicio Transformar Variable"); VariableAP dest = new VariableAP(); dest.nombre = variable.Name; dest.valor = variable.InitialValue; dest.vector = false; dest.type = variable.Type; dest.dimension = null; dest.i = 0; if (variable is Victoria.Shared.VariableArray) { Victoria.Shared.VariableArray variableArray = (Victoria.Shared.VariableArray)variable; dest.vector = true; dest.dimension = variableArray.Dimension; dest.i = 1; } //logger.Info("Fin Transformar Variable"); return(dest); } catch (Exception ex) { logger.Error(ex.Source + " - " + ex.Message + ": " + ex.StackTrace); throw ex; } }
public string SetItToVector(VariableAP variable, double i) { variable.i = i; return(string.Empty); }