Creating a stand‐alone Cluster object - n4af/TR4W GitHub Wiki

In keeping with the class approach, there should be a TCluster object. The cluster object has the various information about the connected cluster, the list of possible clusters, etc.

The TCluster object also has a TBandMap object. For the bandmap to be display, the code simply calls GetCurrentBandMap(wSort: TBMSorted):TSringList to return the band map in whatever sort order it wants. The TList has each callsign along with a BM object. For even more encapsulation, the TBandMAp class can have a function to break out the string list so the code would be as follows:

slBandMap := bandmap.GetCurrentBandMap(wSortAzimuth); // This returns the current bandmap sorted by rotor heading. Note the slBandMap stringlist returned is not changable by the caller. 
for i := 0 to slBandMap.Count - 1 do
   begin
   bandMapItem := LoadBandMapEntry(slBandMap[i], sCall, nQRX, sSource, s 
   

This code is still being fleshed out to determine the best class structure.