Class ActivityProcessor
java.lang.Object
uk.m0nom.adifproc.adif3.transform.ActivityProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActivityDatabaseServiceprotected final CachingQrzXmlService -
Constructor Summary
ConstructorsConstructorDescriptionActivityProcessor(CachingQrzXmlService qrzXmlService, ActivityDatabaseService activities) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessActivities(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 stationprotected voidprocessActivity(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 programmesprotected voidprocessActivityFromControl(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 stationprotected voidprocessActivityFromSigInfo(ActivityType type, Station station, Adif3Record rec) Record activity for a station where the input ADIF file contains a SIG/SIG_INFO recordprotected voidsetHemaOrSotaFromWota(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 stationprotected voidsetWotaFromHemaId(Station station, String hemaId) Check if a HEMA is being activated by the station if it corresponds to a WOTA summit in the Lake Districtprotected voidsetWotaFromSotaId(Station station, String sotaId) Check ifa SOTA is being activated by the station if it corresponds to a WOTA summit in the Lake District
-
Field Details
-
qrzXmlService
-
activities
-
-
Constructor Details
-
ActivityProcessor
-
-
Method Details
-
setHemaOrSotaFromWota
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 airwotaId- Reference for the WOTA, eg: LDO-113
-
setWotaFromHemaId
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 HEMAhemaId- Humps on the Air reference for the summit being activated
-
setWotaFromSotaId
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 SOTAsotaId- 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 checkstation- station doing the activation
-
processActivity
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 activitystation- station participating in a programmeref- the reference of the activity provided
-
processActivityFromSigInfo
Record activity for a station where the input ADIF file contains a SIG/SIG_INFO record- Parameters:
type- activity type to checkstation- station to record activity againstrec- input ADIF record
-
processActivities
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 activityrec- input ADIF record to check for SIG_INFO/SIG_REF supported activity information
-