I wrote SA 10 and OK/OM DX SSB in code after two failed attempts at the download. The download works — the page posts a nonce with the form — and the files say I got both contests wrong. SA 10 is deleted from the code. Its file scores the station's log to the contact, where the code had the wrong Cabrillo name and counted its multipliers once in the contest rather than once per mode. OK/OM DX now covers the CW running only, which is what N1MM's class is for and what N1MM's own documentation says: the SSB running has different rules and a pair of .udc files, one for each side. The CW rules go back to the class, so Czechia and Slovakia are one side of the contest again. With the SSB files in place both of the station's SSB logs score to the contact. Reading those files turned up four things in the .udc reader: a file whose extension is upper case was passed over, `Country` was not read as a multiplier source, `OtherCountry` was not a points condition, and a section multiplier counted the serial numbers the other side of a contest sends. All Asian stays in code — N1MM has a class for it after all — with the Cabrillo name and the band table it uses. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
55 lines
2.3 KiB
C#
55 lines
2.3 KiB
C#
using Nonemm.Core;
|
|
|
|
namespace Nonemm.Contests;
|
|
|
|
/// N1MM names a contest per mode: CQ WW is `CQWWCW`, `CQWWSSB` or `CQWWRTTY`,
|
|
/// never plain `CQWW`. Our registry is keyed by the family, so a log written by
|
|
/// N1MM has to have its contest name turned back into a family and a mode
|
|
/// before the rules can be built.
|
|
|
|
public static class N1mmContestNames
|
|
{
|
|
private static readonly Dictionary<string, (string Family, ModeCategory Mode)> Known =
|
|
new(StringComparer.OrdinalIgnoreCase)
|
|
{
|
|
["CQWWCW"] = ("CQWW", ModeCategory.Cw),
|
|
["CQWWSSB"] = ("CQWW", ModeCategory.Phone),
|
|
["CQWWRTTY"] = ("CQWW", ModeCategory.Digital),
|
|
["CQWPXCW"] = ("CQWPX", ModeCategory.Cw),
|
|
["CQWPXSSB"] = ("CQWPX", ModeCategory.Phone),
|
|
["CQWPXRTTY"] = ("CQWPX", ModeCategory.Digital),
|
|
["WAECW"] = ("WAE", ModeCategory.Cw),
|
|
["WAESSB"] = ("WAE", ModeCategory.Phone),
|
|
["WAERTTY"] = ("WAE", ModeCategory.Digital),
|
|
["ARRLDXCW"] = ("ARRLDX", ModeCategory.Cw),
|
|
["ARRLDXSSB"] = ("ARRLDX", ModeCategory.Phone),
|
|
["SSCW"] = ("SS", ModeCategory.Cw),
|
|
["SSSSB"] = ("SS", ModeCategory.Phone),
|
|
["NAQPCW"] = ("NAQP", ModeCategory.Cw),
|
|
["NAQPSSB"] = ("NAQP", ModeCategory.Phone),
|
|
["NAQPRTTY"] = ("NAQP", ModeCategory.Digital),
|
|
["CQ160CW"] = ("CQ160", ModeCategory.Cw),
|
|
["CQ160SSB"] = ("CQ160", ModeCategory.Phone),
|
|
["EU_DXC"] = ("EUDXC", ModeCategory.Cw),
|
|
["REFCW"] = ("REF", ModeCategory.Cw),
|
|
["REFSSB"] = ("REF", ModeCategory.Phone),
|
|
["OCEANIACW"] = ("OCEANIA", ModeCategory.Cw),
|
|
["OCEANIASSB"] = ("OCEANIA", ModeCategory.Phone),
|
|
["BARTGSRTTY"] = ("BARTGRTTYS", ModeCategory.Digital),
|
|
["ALLASIACW"] = ("ALLASIA", ModeCategory.Cw),
|
|
["ALLASIASSB"] = ("ALLASIA", ModeCategory.Phone),
|
|
};
|
|
|
|
public static bool TryResolve(string name, out string family, out ModeCategory mode)
|
|
{
|
|
if (Known.TryGetValue(name.Trim(), out (string Family, ModeCategory Mode) found))
|
|
{
|
|
(family, mode) = found;
|
|
return true;
|
|
}
|
|
family = "";
|
|
mode = ModeCategory.Cw;
|
|
return false;
|
|
}
|
|
}
|