Skip to content

Commit

Permalink
Added flags field to AbstractWeatherCode
Browse files Browse the repository at this point in the history
This field is an enumSet to hold possible values: AUTO, AMD, CNL, COR or NIL.
Added methods to retrieve is flags are set.
  • Loading branch information
mivek committed Jul 17, 2022
1 parent 437d1eb commit 6c60dda
Show file tree
Hide file tree
Showing 17 changed files with 309 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ Error.prefix=An error occured. Error code n°
ErrorCode.AirportNotFound=The airport was not found for this message.
ErrorCode.InvalidMessage=The entered message is invalid.

Flag.AMD=amended TAF
Flag.AUTO=automated METAR
Flag.CNL=canceled TAF
Flag.COR=corrected METAR/TAF
Flag.NIL=no data

Indicator.M=less than
Indicator.P=greater than

Expand Down Expand Up @@ -216,6 +222,7 @@ ToString.descriptive=descriptive
ToString.dew.point=dew point
ToString.end.day.month=end day of the month
ToString.end.hour.day=end hour of the day
ToString.flags=flags
ToString.height.feet=height (ft)
ToString.height.meter=height (m)
ToString.intensity=intensity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Error.prefix=Ein Fehler ist aufgetretten. Error Code n°
ErrorCode.AirportNotFound=Der Flughafen wurde in dieser Mitteilung nicht gefunden
ErrorCode.InvalidMessage=Eingegebende Mitteilung nicht gültig


Indicator.M=weniger als
Indicator.P=mehr als

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@ CloudQuantity.OVC=ciel couvert
CloudQuantity.SCT=nuages épars
CloudQuantity.SKC=pas de nuage

CloudType.AC=Altocumulus
CloudType.AS=Altostratus
CloudType.CB=Cumunolinbus
CloudType.CC=Cirrocumulus
CloudType.CI=Cirrus
CloudType.CS=Cirrostratus
CloudType.CU=Cumulus
CloudType.NS=Nimbostratus
CloudType.SC=Stratocumulus
CloudType.ST=Stratus
CloudType.TCU=Cumulus bourgeonnant

DepositBrakingCapacity.NOT_REPORTED=non reportée
Expand All @@ -25,6 +33,12 @@ DepositCoverage.FROM_51_TO_100=de 51% à 100%

DepositThickness.NOT_REPORTED=non reportée
DepositThickness.LESS_1_MM=moins de 1 mm
DepositThickness.THICKNESS_10=10 cm
DepositThickness.THICKNESS_15=15 cm
DepositThickness.THICKNESS_20=20 cm
DepositThickness.THICKNESS_25=25 cm
DepositThickness.THICKNESS_30=30 cm
DepositThickness.THICKNESS_35=35 cm
DepositThickness.THICKNESS_40=40 cm ou plus
DepositThickness.CLOSED=fermée

Expand Down Expand Up @@ -53,6 +67,12 @@ Error.prefix=Une erreur est survenue. Code erreur n°
ErrorCode.AirportNotFound=L'aéroport n'a pas été trouvé pour ce message.
ErrorCode.InvalidMessage=Le message entré est invalide.
Flag.AMD=TAF modifié
Flag.AUTO=METAR automatisé
Flag.CNL=TAF annulé
Flag.COR=METAR/TAF corrigé
Flag.NIL=Aucune donnée
Indicator.M=moins que
Indicator.P=plus que
Expand All @@ -73,6 +93,7 @@ Phenomenon.HZ=brume sèche
Phenomenon.IC=cristaux de glace
Phenomenon.PL=granules de glace
Phenomenon.PO=tourbillon de poussières sable
Phenomenon.PY=spray
Phenomenon.RA=pluie
Phenomenon.SA=sable
Phenomenon.SG=neige en grains
Expand Down Expand Up @@ -145,6 +166,7 @@ Remark.Tower.Visibility=visibility de la tour de contrôle de {0} miles
Remark.Variable.Prevailing.Visibility=variation de la visibilité dominante entre {0} et {1} SM
Remark.Variable.Sky.Condition=couche de nuages variant entre {0} et {1}
Remark.Variable.Sky.Condition.Height=couche de nuages à {0} pieds variant entre {1} et {2}
Remark.VIRGA=virga
Remark.Virga.Direction=virga au {0} de la station
Remark.WATERSPOUT=trombe
Remark.Water.Equivalent.Snow.Ground=équivalent d''eau de {0} pouces de neige
Expand All @@ -170,6 +192,7 @@ Converter.SSE=Sud Sud Est
Converter.SSW=Sud Sud Ouest
Converter.SW=Sud Ouest
Converter.U=accroissement
Converter.VRB=Variable
Converter.W=Ouest
Converter.WNW=Ouest Nord Ouest
Converter.WSW=Ouest Sud Ouest
Expand All @@ -186,6 +209,8 @@ TimeIndicator.TL=jusqu'à
ToString.airport=aéroport
ToString.altimeter=altimètre (hPa)
ToString.amendment=amendement
ToString.auto=auto
ToString.cavok=cavok
ToString.clouds=nuages
ToString.day.month=jour du mois
ToString.day.hour=heure du jour
Expand All @@ -197,12 +222,14 @@ ToString.descriptive=descriptif
ToString.dew.point=point de rosée
ToString.end.day.month=jour de fin du mois
ToString.end.hour.day=heure de fin du jour
ToString.flags=drapeaux
ToString.height.feet=altitude (pieds)
ToString.height.meter=altitude (m)
ToString.intensity=intensité
ToString.indicator=indicateur
ToString.message=message original
ToString.name=nom
ToString.nosig=nosig
ToString.phenomenons=phénomènes
ToString.probability=probabilité
ToString.quantity=quantité
Expand All @@ -217,12 +244,14 @@ ToString.temperature.max=température maximale (°C)
ToString.temperature.min=température minimale (°C)
ToString.trend=tendance
ToString.trends=tendances
ToString.type=type
ToString.visibility.main=visibilité principale
ToString.visibility.min=visibilité minimale
ToString.visibility.min.direction=direction de la visibilité minimale
ToString.visibility.max=visibilité maximale
ToString.vertical.visibility=visibilité verticale (pieds)
ToString.weather.conditions=conditions météorologique
ToString.wind.direction=direction
ToString.wind.direction.degrees=direction (degrés)
ToString.wind.gusts=rafales
ToString.wind.min.variation=variation minimale du vent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Error.prefix=Si è verificato un errore. Errore nr.
ErrorCode.AirportNotFound=L’aeroporto non è stato trovato in questa notifica
ErrorCode.InvalidMessage=Il messaggio non è valido


Indicator.M=minore di
Indicator.P=maggiore di

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ CloudType.SC=Kłębiasto warstwowa
CloudType.ST=Warstwowa
CloudType.TCU=Wypiętrzona chmura kłębiasta





Descriptive.BC=płaty
Descriptive.BL=zawieja
Descriptive.DR=zamieć przyziemna
Expand All @@ -30,6 +34,8 @@ Error.prefix=Wystąpił błąd. Kod błędu numer
ErrorCode.AirportNotFound=Nie znaleziono lotniska w tej depeszy.
ErrorCode.InvalidMessage=Wprowadzona depesza jest nieprawidłowa.



Intensity.-=Słaby
Intensity.+=Silny
Intensity.VC=W pobliżu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Error.prefix=Hata oluştu. Hata kodu\: {0}
ErrorCode.AirportNotFound=Bu mesaj için havaalanı bulunamadı.
ErrorCode.InvalidMessage=Girilen mesaj geçersiz.


Indicator.M=daha az
Indicator.P=daha fazla

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CloudQuantity.BKN=碎云
CloudQuantity.FEW=少量
CloudQuantity.BKN=5-7分云
CloudQuantity.FEW=少云
CloudQuantity.NSC=没有明显的云。
CloudQuantity.OVC=多云
CloudQuantity.SCT=散云
CloudQuantity.OVC=满天云
CloudQuantity.SCT=3-4分云
CloudQuantity.SKC=天空晴朗

CloudType.AC=高积云
Expand All @@ -17,9 +17,42 @@ CloudType.SC=层积云
CloudType.ST=层云
CloudType.TCU=高耸积云




DepositBrakingCapacity.NOT_REPORTED=未报告
DepositBrakingCapacity.POOR=差
DepositBrakingCapacity.MEDIUM_POOR=中差
DepositBrakingCapacity.MEDIUM=中
DepositBrakingCapacity.MEDIUM_GOOD=良好
DepositBrakingCapacity.GOOD=好
DepositBrakingCapacity.UNRELIABLE=数字不可靠

DepositCoverage.NOT_REPORTED=未报告
DepositCoverage.LESS_10=低于10%
DepositCoverage.FROM_11_TO_25=从11%到25%
DepositCoverage.FROM_26_TO_50=从26%到50%
DepositCoverage.FROM_51_TO_100=从51%到100%

DepositThickness.NOT_REPORTED=未报告
DepositThickness.LESS_1_MM=小于 1 毫米
DepositThickness.THICKNESS_10=10 厘米
DepositThickness.THICKNESS_15=15 厘米
DepositThickness.THICKNESS_20=20 厘米
DepositThickness.THICKNESS_25=25 厘米
DepositThickness.THICKNESS_30=30 厘米
DepositThickness.THICKNESS_35=35 厘米
DepositThickness.THICKNESS_40=40厘米或以上
DepositThickness.CLOSED=已关闭

DepositType.NOT_REPORTED=未报告
DepositType.CLEAR_DRY=干净
DepositType.DAMP=潮湿
DepositType.WET_WATER_PATCHES=湿和水纹
DepositType.RIME_FROST_COVERED=雾凇和霜覆盖
DepositType.DRY_SNOW=干雪
DepositType.WET_SNOW=湿雪
DepositType.ICE=冰
DepositType.COMPACTED_SNOW=压实或滚压的雪
DepositType.FROZEN_RIDGES=冷冻的轮辙或冰脊
DepositType.SLUSH=雪浆

Descriptive.BC=补丁
Descriptive.BL=吹
Expand All @@ -35,8 +68,11 @@ ErrorCode.AirportNotFound=找不到此消息的机场。
ErrorCode.InvalidMessage=输入的消息无效。


Intensity.-=光
Intensity.+=重的
Indicator.M=小于
Indicator.P=大于

Intensity.-=弱的
Intensity.+=强的
Intensity.VC=在附近

Phenomenon.BR=薄雾
Expand Down Expand Up @@ -65,32 +101,125 @@ Phenomenon.TS=雷雨

Remark.AO1=没有降水鉴别器的自动化站
Remark.AO2=带有降水鉴别器的自动化站
Remark.ALQDS=全象限
Remark.Barometer.0=先增加后减少
Remark.Barometer.1=先增加后稳定, 或是先增加后缓慢增加
Remark.Barometer.2=稳定或不稳定的增加
Remark.Barometer.3=先减少或保持稳定,然后增加;或先增加然后快速增加
Remark.Barometer.4=稳定
Remark.Barometer.5=减小,然后增加
Remark.Barometer.6=先减少后稳定;或先减少后更缓慢减少
Remark.Barometer.7=稳定或不稳定地减少
Remark.Barometer.8=先稳定或增加,然后减少;或先减少快速减少
Remark.BASED=基于
Remark.Ceiling.Height=上限在 {0} 到 {1} 英尺之间变化
Remark.Ceiling.Second.Location=由位于 {1} 处的第二个传感器测量的 {0} 英尺的上限
Remark.DSNT=距离
Remark.FCST=预报
Remark.FUNNELCLOUD=漏斗云
Remark.FUNNELCLOUD=漏斗云
Remark.Hail=直径为 {0} 英寸的最大的冰雹
Remark.Hail.LesserThan=直径小于 {0} 英寸的最大的冰雹
Remark.Hourly.Maximum.Temperature=6小时最高温度为{0}°C
Remark.Hourly.Maximum.Minimum.Temperature=24小时最高温度为{0}°C,24小时最低温度为{1}°C
Remark.Hourly.Minimum.Temperature=6 小时最低温度为 {0}° C
Remark.Hourly.Temperature=小时气温 {0}°C
Remark.Hourly.Temperature.Dew.Point=小时气温为{0}°C,露点为{1}°C
Remark.Ice.Accretion.Amount=过去{1} 小时内积冰{0}/100英寸
Remark.HVY=重度的
Remark.LGT=轻微的
Remark.LTG=闪电
Remark.MOD=中等
Remark.Obscuration={0} 层位于 {1} 英尺,由 {2} 组成
Remark.ON=在
Remark.NXT=下一个
Remark.PeakWind=在 {2}\:{3} 有位于 {0} 度,风速 {1} 节的峰值风
Remark.TORNADO=龙卷风
Remark.VIRGA=幡状云
Remark.WATERSPOUT=水龙卷
Remark.Water.Equivalent.Snow.Ground=相当于{0} 英寸雪的降水
Remark.WindShift=风力转变于 {0}\:{1}


MetarFacade.InvalidIcao=ICAO 代码无效。

Converter.D=减少
Converter.E=东
Converter.ENE=东东北
Converter.ESE=东东南
Converter.N=北
Converter.NE=东北
Converter.NNE=北东北
Converter.NNW=北西北
Converter.NSC=无明显变化
Converter.NW=西北
Converter.S=南
Converter.SE=东南
Converter.SSE=南东南
Converter.SSW=南西南
Converter.SW=西南
Converter.U=上升
Converter.VRB=多变的
Converter.W=西
Converter.WNW=西西北
Converter.WSW=西西南

WeatherChangeType.FM=从
WeatherChangeType.BECMG=变得
WeatherChangeType.INTER=间歇的
WeatherChangeType.TEMPO=暂时的
WeatherChangeType.PROB=可能性

TimeIndicator.AT=在
TimeIndicator.FM=从
TimeIndicator.TL=直到
ToString.airport=机场
ToString.altimeter=修正海压(百帕)
ToString.amendment=修订
ToString.auto=自动观测
ToString.cavok=能见度≥10km
ToString.clouds=云
ToString.day.month=当月某天
ToString.day.hour=当日某小时
ToString.deposit.braking=制动能力
ToString.deposit.coverage=覆盖范围
ToString.deposit.thickness=厚度
ToString.deposit.type=沉积物类型
ToString.descriptive=描述
ToString.dew.point=露点
ToString.end.day.month=当月的结束日
ToString.end.hour.day=当日的结束小时
ToString.height.feet=高度(英尺)
ToString.height.meter=高度(米)
ToString.intensity=强度
ToString.indicator=指示器
ToString.message=原始消息
ToString.name=名称
ToString.nosig=无重大变化
ToString.phenomenons=现象
ToString.probability=可能性
ToString.quantity=数量
ToString.remark=备注
ToString.report.time=报告时间
ToString.runway.info=跑道信息
ToString.start.day.month=当月起始日
ToString.start.hour.day=当日起始小时
ToString.start.minute=起始分钟
ToString.temperature=温度(°C)
ToString.temperature.max=最高温度(°C)
ToString.temperature.min=最低温度(°C)
ToString.trend=趋势预报
ToString.trends=趋势
ToString.type=类型
ToString.visibility.main=主要能见度
ToString.visibility.min=最小能见度
ToString.visibility.min.direction=最小能见方向
ToString.visibility.max=最大能见度
ToString.vertical.visibility=垂直能见度(英尺)
ToString.weather.conditions=天气状况
ToString.wind.direction=方向
ToString.wind.direction.degrees=方向(度)
ToString.wind.gusts=阵风
ToString.wind.min.variation=最小风力变化量
ToString.wind.max.variation=最大风力变化量
ToString.wind.speed=速度
ToString.wind.unit=单位
24 changes: 24 additions & 0 deletions metarParser-entities/src/main/java/io/github/mivek/enums/Flag.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.github.mivek.enums;

import io.github.mivek.internationalization.Messages;

/**
* @author Jean-Kevin KPADEY
*/
public enum Flag {
/** Amended. */
AMD,
/** Auto. */
AUTO,
/** Cancelled. */
CNL,
/** Corrected. */
COR,
/** Null. */
NIL;

@Override
public String toString() {
return Messages.getInstance().getString("Flag." + name());
}
}
Loading

0 comments on commit 6c60dda

Please sign in to comment.