use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class AngularDisplacementTypeConverter method convert.
@Override
public AngularDisplacement convert(AngularDisplacementType angularDisplacementType) {
AngularDisplacement angularDisplacement = new AngularDisplacement();
angularDisplacement.setName(angularDisplacementType.getName());
List<VariableType> variableTypes = angularDisplacementType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
angularDisplacement.setVariables(variables);
return angularDisplacement;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class ChargeTypeConverter method convert.
@Override
public Charge convert(ChargeType chargeType) {
Charge charge = new Charge();
charge.setName(chargeType.getName());
List<VariableType> variableTypes = chargeType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
charge.setVariables(variables);
return charge;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class LinearDisplacementTypeConverter method convert.
@Override
public LinearDisplacement convert(LinearDisplacementType linearDisplacementType) {
LinearDisplacement linearDisplacement = new LinearDisplacement();
linearDisplacement.setName(linearDisplacementType.getName());
List<VariableType> variableTypes = linearDisplacementType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
linearDisplacement.setVariables(variables);
return linearDisplacement;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class PressureTypeConverter method convert.
@Override
public Pressure convert(PressureType pressureType) {
Pressure pressure = new Pressure();
pressure.setName(pressureType.getName());
List<VariableType> variableTypes = pressureType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
pressure.setVariables(variables);
return pressure;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class VolumeFlowRateTypeConverter method convert.
@Override
public VolumeFlowRate convert(VolumeFlowRateType volumeFlowRateType) {
VolumeFlowRate volumeFlowRate = new VolumeFlowRate();
volumeFlowRate.setName(volumeFlowRateType.getName());
List<VariableType> variableTypes = volumeFlowRateType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
volumeFlowRate.setVariables(variables);
return volumeFlowRate;
}
Aggregations