use of com.opensimulationplatform.core.model.modeldescription.variablegroup.shaftspeed.ShaftSpeed in project osp-validator by open-simulation-platform.
the class FixedThrusterFeedbackTypeConverter method convert.
@Override
public FixedThrusterFeedback convert(FixedThrusterFeedbackType fixedThrusterFeedbackType) {
FixedThrusterFeedback fixedThrusterFeedback = new FixedThrusterFeedback();
fixedThrusterFeedback.setName(fixedThrusterFeedbackType.getName());
BladePitch bladePitch = context.bladePitchTypeConverter.convert(fixedThrusterFeedbackType.getBladePitch());
Force force = context.forceTypeConverter.convert(fixedThrusterFeedbackType.getForce());
ShaftSpeed shaftSpeed = context.shaftSpeedTypeConverter.convert(fixedThrusterFeedbackType.getShaftSpeed());
fixedThrusterFeedback.setBladePitch(bladePitch);
fixedThrusterFeedback.setForce(force);
fixedThrusterFeedback.setShaftSpeed(shaftSpeed);
return fixedThrusterFeedback;
}
use of com.opensimulationplatform.core.model.modeldescription.variablegroup.shaftspeed.ShaftSpeed in project osp-validator by open-simulation-platform.
the class FixedThrusterSetpointTypeConverter method convert.
@Override
public FixedThrusterSetpoint convert(FixedThrusterSetpointType fixedThrusterSetpointType) {
FixedThrusterSetpoint fixedThrusterSetpoint = new FixedThrusterSetpoint();
fixedThrusterSetpoint.setName(fixedThrusterSetpointType.getName());
BladePitch bladePitch = context.bladePitchTypeConverter.convert(fixedThrusterSetpointType.getBladePitch());
ShaftSpeed shaftSpeed = context.shaftSpeedTypeConverter.convert(fixedThrusterSetpointType.getShaftSpeed());
fixedThrusterSetpoint.setBladePitch(bladePitch);
fixedThrusterSetpoint.setShaftSpeed(shaftSpeed);
return fixedThrusterSetpoint;
}
Aggregations