use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class CurrentTypeConverter method convert.
@Override
public Current convert(CurrentType currentType) {
Current current = new Current();
current.setName(currentType.getName());
List<VariableType> variableTypes = currentType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
current.setVariables(variables);
return current;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class NmeaGstPositionErrorTypeConverter method convert.
@Override
public NmeaGstPositionError convert(NmeaGstPositionErrorType nmeaGstPositionErrorType) {
NmeaGstPositionError nmeaGstPositionError = new NmeaGstPositionError();
nmeaGstPositionError.setName(nmeaGstPositionErrorType.getName());
List<VariableType> variableTypes = nmeaGstPositionErrorType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
nmeaGstPositionError.setVariables(variables);
return nmeaGstPositionError;
}
Aggregations