Search in sources :

Example 6 with NmeaStatus

use of com.opensimulationplatform.core.model.modeldescription.variablegroup.nmeastatus.NmeaStatus in project osp-validator by open-simulation-platform.

the class NmeaStatusTypeConverter method convert.

@Override
public NmeaStatus convert(NmeaStatusType nmeaStatusType) {
    NmeaStatus nmeaStatus = new NmeaStatus();
    nmeaStatus.setName(nmeaStatusType.getName());
    Variable variable = context.variableTypeConverter.convert(nmeaStatusType.getVariable());
    nmeaStatus.setVariables(Collections.singletonList(variable));
    return nmeaStatus;
}
Also used : Variable(com.opensimulationplatform.core.model.modeldescription.Variable) NmeaStatus(com.opensimulationplatform.core.model.modeldescription.variablegroup.nmeastatus.NmeaStatus)

Aggregations

NmeaStatus (com.opensimulationplatform.core.model.modeldescription.variablegroup.nmeastatus.NmeaStatus)6 AngularDisplacement (com.opensimulationplatform.core.model.modeldescription.variablegroup.angulardisplacement.AngularDisplacement)3 Variable (com.opensimulationplatform.core.model.modeldescription.Variable)2 AngularAcceleration (com.opensimulationplatform.core.model.modeldescription.variablegroup.angularacceleration.AngularAcceleration)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 AzimuthAngle (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuthangle.AzimuthAngle)2 AzimuthThrusterFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuththrusterfeedback.AzimuthThrusterFeedback)2 AzimuthThrusterSetpoint (com.opensimulationplatform.core.model.modeldescription.variablegroup.azimuththrustersetpoint.AzimuthThrusterSetpoint)2 BatteryFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.batteryfeedback.BatteryFeedback)2 BladePitch (com.opensimulationplatform.core.model.modeldescription.variablegroup.bladepitch.BladePitch)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 ElectromagneticQuasiPort (com.opensimulationplatform.core.model.modeldescription.variablegroup.electromagneticquasiport.ElectromagneticQuasiPort)2 FixedThrusterFeedback (com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrusterfeedback.FixedThrusterFeedback)2 FixedThrusterSetpoint (com.opensimulationplatform.core.model.modeldescription.variablegroup.fixedthrustersetpoint.FixedThrusterSetpoint)2