Class ActivityProcessor

java.lang.Object
uk.m0nom.adifproc.adif3.transform.ActivityProcessor

@Service public class ActivityProcessor extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • setHemaOrSotaFromWota

      protected void setHemaOrSotaFromWota(Station station, String wotaId)
      If a Wainwright on the air summit corresponds to a SOTA/HEMA summit then we alsop record those respective activities against the station
      Parameters:
      station - station participating in Wainwrights on the air
      wotaId - Reference for the WOTA, eg: LDO-113
    • setWotaFromHemaId

      protected void setWotaFromHemaId(Station station, String hemaId)
      Check if a HEMA is being activated by the station if it corresponds to a WOTA summit in the Lake District
      Parameters:
      station - station participating in HEMA
      hemaId - Humps on the Air reference for the summit being activated
    • setWotaFromSotaId

      protected void setWotaFromSotaId(Station station, String sotaId)
      Check ifa SOTA is being activated by the station if it corresponds to a WOTA summit in the Lake District
      Parameters:
      station - station participating in SOTA
      sotaId - SOTA reference for the summit being activated
    • processActivityFromControl

      protected void processActivityFromControl(TransformControl control, ActivityType type, Station station)
      If the 'from' station has activity information specified in the transform control record then add this activity to the station
      Parameters:
      type - activity type to check
      station - station doing the activation
    • processActivity

      protected void processActivity(ActivityType type, Station station, String ref)
      This method provides the cross referencing logic for WOTA, HEMA and SOTA to ensure that all activities are recorded where the summit is part of multiple programmes
      Parameters:
      type - type of activity
      station - station participating in a programme
      ref - the reference of the activity provided
    • processActivityFromSigInfo

      protected void processActivityFromSigInfo(ActivityType type, Station station, Adif3Record rec)
      Record activity for a station where the input ADIF file contains a SIG/SIG_INFO record
      Parameters:
      type - activity type to check
      station - station to record activity against
      rec - input ADIF record
    • processActivities

      public void processActivities(TransformControl control, Station station, Adif3Record rec)
      For each of the supported activities ensure any SIG_INFO/SIG_REF information in the input ADIF file is recorded against the station
      Parameters:
      station - station to check for activity
      rec - input ADIF record to check for SIG_INFO/SIG_REF supported activity information