{
switch (simulator)
{
case CT:
{
GetVariablesStruct data = ctProxy.getVariables(Arrays.asList(new String[] { name }));
if (!data.variables.isEmpty())
{
return data.variables.get(0).value.get(0);
}
//If data is empty maybe the variable is a parameter
GetParametersStruct parameterData = ctProxy.getParameters(Arrays.asList(new String[] { name }));
if (!parameterData.parameters.isEmpty())
{
return parameterData.parameters.get(0).value.get(0);
}
}
break;
case DE:
{
GetVariablesStruct data = deProxy.getVariables(Arrays.asList(new String[] { name }));
if (!data.variables.isEmpty())
{
for (GetVariablesStructvariablesStruct p : data.variables)
{