Search in sources :

Example 6 with BladePitch

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch 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;
}
Also used : Force(com.opensimulationplatform.core.model.modeldescription.variablegroup.force.Force) BladePitch(com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch) FixedThrusterFeedback(com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrusterfeedback.FixedThrusterFeedback) ShaftSpeed(com.opensimulationplatform.core.model.modeldescription.variablegroup.shaftspeed.ShaftSpeed)

Example 7 with BladePitch

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch 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;
}
Also used : BladePitch(com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch) FixedThrusterSetpoint(com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrustersetpoint.FixedThrusterSetpoint) ShaftSpeed(com.opensimulationplatform.core.model.modeldescription.variablegroup.shaftspeed.ShaftSpeed)

Aggregations

BladePitch (com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch)7 ShaftSpeed (com.opensimulationplatform.core.model.modeldescription.variablegroup.shaftspeed.ShaftSpeed)6 AzimuthAngle (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuthangle.AzimuthAngle)4 Force (com.opensimulationplatform.core.model.modeldescription.variablegroup.force.Force)4 AzimuthThrusterFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuththrusterfeedback.AzimuthThrusterFeedback)3 AzimuthThrusterSetpoint (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuththrustersetpoint.AzimuthThrusterSetpoint)3 FixedThrusterFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrusterfeedback.FixedThrusterFeedback)3 FixedThrusterSetpoint (com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrustersetpoint.FixedThrusterSetpoint)3 Variable (com.opensimulationplatform.core.model.modeldescription.Variable)2 AngularAcceleration (com.opensimulationplatform.core.model.modeldescription.variablegroup.angularacceleration.AngularAcceleration)2 AngularDisplacement (com.opensimulationplatform.core.model.modeldescription.variablegroup.angulardisplacement.AngularDisplacement)2 AngularMechanicalPort (com.opensimulationplatform.core.model.modeldescription.variablegroup.angularmechanicalport.AngularMechanicalPort)2 AngularMechanicalQuasiPort (com.opensimulationplatform.core.model.modeldescription.variablegroup.angularmechanicalquasiport.AngularMechanicalQuasiPort)2 AngularVelocity (com.opensimulationplatform.core.model.modeldescription.variablegroup.angularvelocity.AngularVelocity)2 BatteryFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.batteryfeedback.BatteryFeedback)2 BusFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.busfeedback.BusFeedback)2 Charge (com.opensimulationplatform.core.model.modeldescription.variablegroup.charge.Charge)2 Current (com.opensimulationplatform.core.model.modeldescription.variablegroup.current.Current)2 ElectricPower (com.opensimulationplatform.core.model.modeldescription.variablegroup.electricpower.ElectricPower)2 ElectromagneticPort (com.opensimulationplatform.core.model.modeldescription.variablegroup.electromagneticport.ElectromagneticPort)2