Опубликованный пакет / CLIR
ca.eccc.wind_chill
v0.1.0Ветро-холодовой индекс Environment and Climate Change Canada: таблица индекса, шесть полос риска и условия публикации
Пакет можно напечатать самостоятельным модулем на языке общего назначения, который отвечает без движка правил: ответ и статус, без доказательства, хэшей и канонического документа. Всё на этой странице взято из плана кодогенерации, построенного вместе с индексом; витрина ничего не вычисляет сама.
План кодогенерации
План строится: пакет печатается модулем.
- формат плана
- law-backend-plan/0.7
- возможности
- только базовый слой
Сверка сценариями пакета
Не сверено: сценарии пакета на порождённых модулях не исполнялись. Построенный план ещё не показывает, что ответы совпадают.
Целевые языки
bslcsdarterlexgojavaktluaphppyrbrsscalaswiftts
./law dev backend corpus/clir/ca-eccc-wind-chill-index.lawir.json --target ts --target py --target go --out DIR
Интерфейс модуля
Вопросы — публичные отношения с производящим правилом; входы — факты, которые вопрос читает. Имена функций следуют языку: ask_… в Python, ask.… в TypeScript, Ask… в Go.
Вопросы · 9
| Имя | Параметры | Смысл | Читает | Источники |
|---|---|---|---|---|
| frostbite_faster_than_indicated_above_wind_kmh | dec | in sustained winds over this speed frostbite can occur faster than the band indicatesEN | без входов | |
| no_frostbite_risk_above_temperature_c | dec | above this air temperature there is no risk of frostbite no matter how windy it isEN | без входов | |
| wind_chill_extreme_at_or_below | dec | extreme risk: wind chill value of this number or colder (the page gives no lower bound)EN | без входов | |
| wind_chill_index_c | dec, dec, dec | wind chill index value for a wind speed (km/h) and an air temperature (degrees C) of the published tableEN | без входов | |
| wind_chill_reported_at_or_below_temperature_c | dec | wind chill is included in forecasts at this air temperature or belowEN | без входов | |
| wind_chill_reported_from_wind_kmh | dec | wind chill is included in forecasts from this wind speed upwardsEN | без входов | |
| wind_chill_risk_band_bounds | enum, dec, dec | inclusive wind chill bounds of a risk bandEN | без входов | |
| wind_chill_skin_freezes_in_less_than_minutes | enum, dec | exposed skin can freeze in less than this many minutesEN | без входов | |
| wind_chill_skin_freezes_minutes | enum, dec, dec | exposed skin can freeze in this many minutesEN | без входов |