How renny-l/swen383 works
This is a small Java weather-station monitor: its entry points create a station, start periodic sampling, and present observer updates in either text or Swing form. The station owns temperature and pressure sensors, converts readings into display units, and notifies attached views. Sensor simulations, sampling/state management, and the two presentation options are the meaningful runtime layers. The README is empty; relationships below are supported by the provided source excerpts.
Main entry points: WeatherStation_Pressure.java Weather station · TextUI_Pressure.java Text monitor · SwingUI_Pressure.java Swing monitor · KelvinTempSensor.java Temperature sensor
Components 6
Sensor simulations
- Temperature sensor
KelvinTempSensor.java - Pressure sensor
Barometer.java
Sampling and conversion
- Weather station
WeatherStation_Pressure.java
Observer displays
- Text monitor
TextUI_Pressure.java - Swing monitor
SwingUI_Pressure.java
Other components
- User
Connections 10
- User → Text monitor: starts
TextUI_Pressure.java - User → Swing monitor: starts
SwingUI_Pressure.java - Text monitor → Weather station: creates and starts
TextUI_Pressure.java - Swing monitor → Weather station: creates and starts
SwingUI_Pressure.java - Weather station → Temperature sensor: reads
WeatherStation_Pressure.java - Weather station → Pressure sensor: reads
WeatherStation_Pressure.java - Weather station → Text monitor: notifies
TextUI_Pressure.java - Weather station → Swing monitor: notifies
SwingUI_Pressure.java - Text monitor → Weather station: retrieves converted readings
TextUI_Pressure.java - Swing monitor → Weather station: retrieves converted readings
SwingUI_Pressure.java