Class MonitoredStation

java.lang.Object
org.ka2ddo.yaac.healthmonitor.MonitoredStation

public class MonitoredStation extends Object
This class contains the control information for specifying one remote station to monitor.
Author:
Andrew Pavlin, KA2DDO
  • Field Details

    • types

      public final Set<MonitorType> types
      Set of all the types of monitoring the health monitor should perform.
    • state

      public transient StationState state
      The StationState object for the monitored station.
    • digipeatedStations

      public transient ArrayList<String> digipeatedStations
      The list of stations digipeated by this station. May be null if this station is not a digipeater or I-gate.
  • Constructor Details

    • MonitoredStation

      public MonitoredStation()
      Create an empty MonitoredStation record.
    • MonitoredStation

      public MonitoredStation(String callsign)
      Create a MonitoredStation record for the specified callsign-SSID.
      Parameters:
      callsign - String callsign-SSID of the station to monitor
  • Method Details

    • getStationCallsign

      public AX25Callsign getStationCallsign()
      Get the callsign-SSID of this MonitoredStation.
      Returns:
      AX25Callsign of the station callsign-SSID
    • setStationCallsign

      public void setStationCallsign(AX25Callsign stationCallsign) throws IllegalStateException
      Initialize the callsign for an empty MonitoredStation record.
      Parameters:
      stationCallsign - AX25Callsign of the station callsign-SSID
      Throws:
      IllegalStateException - if callsign was already set for this record
    • writeToPreferences

      public void writeToPreferences()
      Persist this MonitoredStation to Java Preferences.