libSDRForge
Loading...
Searching...
No Matches
sdrforge.weather.forecast_area.ForecastAreaTracker Class Reference

Track explicit forecast areas and suspected bulletin cycles. More...

Public Member Functions

None __init__ (self)
 Initialize forecast attribution state.
str|None area (self)
 Return the current area state.
tuple[str,...] observed_areas (self)
 Return the current observed areas state.
tuple[str,...] areas (self)
 Return the current areas state.
int cycle (self)
 Return the current cycle state.
bool cycle_warning (self)
 Return the current cycle warning state.
str boundary_status (self)
 Return the current boundary status state.
str|None observe_completed (self, str transcript, str|None period=None)
 Return current area and process headers for subsequent forecasts.

Protected Attributes

str|None _area = None
tuple _areas = ()
int _cycle = 0
str|None _previous_period = None
bool _cycle_warning = False
str _boundary_status = "none"
 _observed_areas = current_areas

Detailed Description

Track explicit forecast areas and suspected bulletin cycles.

Constructor & Destructor Documentation

◆ __init__()

None sdrforge.weather.forecast_area.ForecastAreaTracker.__init__ ( self)

Initialize forecast attribution state.

Parameters
selfThe tracker instance.

Member Function Documentation

◆ area()

str | None sdrforge.weather.forecast_area.ForecastAreaTracker.area ( self)

Return the current area state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

◆ areas()

tuple[str, ...] sdrforge.weather.forecast_area.ForecastAreaTracker.areas ( self)

Return the current areas state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

◆ boundary_status()

str sdrforge.weather.forecast_area.ForecastAreaTracker.boundary_status ( self)

Return the current boundary status state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

◆ cycle()

int sdrforge.weather.forecast_area.ForecastAreaTracker.cycle ( self)

Return the current cycle state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

◆ cycle_warning()

bool sdrforge.weather.forecast_area.ForecastAreaTracker.cycle_warning ( self)

Return the current cycle warning state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

◆ observe_completed()

str | None sdrforge.weather.forecast_area.ForecastAreaTracker.observe_completed ( self,
str transcript,
str | None period = None )

Return current area and process headers for subsequent forecasts.

Parameters
selfThe tracker instance.
transcriptCompleted forecast transcript.
periodOptional named forecast period.
Returns
The current area when unambiguously identified.

Headers are deliberately not used to label the forecast preceding them. Ambiguous headers clear the area instead of guessing.

◆ observed_areas()

tuple[str, ...] sdrforge.weather.forecast_area.ForecastAreaTracker.observed_areas ( self)

Return the current observed areas state.

Parameters
selfThe tracker instance.
Returns
The requested attribution state.

Member Data Documentation

◆ _area

str | None sdrforge.weather.forecast_area.ForecastAreaTracker._area = None
protected

◆ _areas

tuple sdrforge.weather.forecast_area.ForecastAreaTracker._areas = ()
protected

◆ _boundary_status

str sdrforge.weather.forecast_area.ForecastAreaTracker._boundary_status = "none"
protected

◆ _cycle

int sdrforge.weather.forecast_area.ForecastAreaTracker._cycle = 0
protected

◆ _cycle_warning

bool sdrforge.weather.forecast_area.ForecastAreaTracker._cycle_warning = False
protected

◆ _observed_areas

sdrforge.weather.forecast_area.ForecastAreaTracker._observed_areas = current_areas
protected

◆ _previous_period

str | None sdrforge.weather.forecast_area.ForecastAreaTracker._previous_period = None
protected

The documentation for this class was generated from the following file: