use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class VolumeTypeConverter method convert.
@Override
public Volume convert(VolumeType volumeType) {
Volume volume = new Volume();
volume.setName(volumeType.getName());
List<VariableType> variableTypes = volumeType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
volume.setVariables(variables);
return volume;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class ForceTypeConverter method convert.
@Override
public Force convert(ForceType forceType) {
Force force = new Force();
force.setName(forceType.getName());
List<VariableType> variableTypes = forceType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
force.setVariables(variables);
return force;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class TorqueTypeConverter method convert.
@Override
public Torque convert(TorqueType torqueType) {
Torque torque = new Torque();
torque.setName(torqueType.getName());
List<VariableType> variableTypes = torqueType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
torque.setVariables(variables);
return torque;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class VoltageTypeConverter method convert.
@Override
public Voltage convert(VoltageType voltageType) {
Voltage voltage = new Voltage();
voltage.setName(voltageType.getName());
List<VariableType> variableTypes = voltageType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
voltage.setVariables(variables);
return voltage;
}
use of com.opensimulationplatform.modeldescription.xml.model.VariableType in project osp-validator by open-simulation-platform.
the class AngularVelocityTypeConverter method convert.
@Override
public AngularVelocity convert(AngularVelocityType angularVelocityType) {
AngularVelocity angularVelocity = new AngularVelocity();
angularVelocity.setName(angularVelocityType.getName());
List<VariableType> variableTypes = angularVelocityType.getVariable();
List<Variable> variables = variableTypes.stream().map(context.variableTypeConverter::convert).collect(Collectors.toList());
angularVelocity.setVariables(variables);
return angularVelocity;
}
Aggregations