|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ka2ddo.ax25.DigipeatAliasCatalog
public class DigipeatAliasCatalog
This class manages the list of digipeat aliases recognized by YAAC.
Method Summary | |
---|---|
void |
addRow()
Add an empty digipeat alias definition to the catalog (used for user data entry of a new alias). |
void |
addRow(DigipeatAliasRecord dar)
Add a pre-filled-in digipeat alias to the catalog, |
void |
deleteRow(int rowIndex)
Deletes the specified alias row from the catalog. |
DigipeatAliasRecord |
getDigipeatRecord(java.lang.String baseCallsign)
Get a Digipeat alias record corresponding to the specified digipeater callsign, if such a record exists. |
DigipeatAliasRecord |
getEnabledDigipeatRecord(AX25Callsign callsign)
Get a Digipeat alias record corresponding to the specified digipeater callsign, if such a record exists and is enabled. |
static DigipeatAliasCatalog |
getInstance()
Get a reference to the singleton DigipeatAliasCatalog. |
java.lang.String |
getRegionCode()
Identify what appears to be a regional alias base in the list of known aliases, if one exists. |
DigipeatAliasRecord |
getRow(int rowIndex)
Get the Nth DigipeatAliasRecord in the catalog. |
int |
getRowCount()
Get the number of defined digipeat aliases. |
static boolean |
isRelayAStep(AX25Callsign relay)
|
java.util.Iterator<DigipeatAliasRecord> |
iterator()
Returns an iterator over the catalog of DigipeatAliasRecords. |
void |
loadDefaults(java.util.prefs.Preferences aliasNode)
Load the catalog with the factory defaults. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DigipeatAliasCatalog getInstance()
public void loadDefaults(java.util.prefs.Preferences aliasNode)
aliasNode
- Preferences node in which to store the catalog entriespublic int getRowCount()
public void addRow()
public void addRow(DigipeatAliasRecord dar)
dar
- DigipeatAliasRecord to add
java.lang.IllegalArgumentException
- if alias already exists in catalogpublic void deleteRow(int rowIndex)
rowIndex
- zero-based index of alias to deletepublic DigipeatAliasRecord getRow(int rowIndex)
rowIndex
- zero-based row index
public DigipeatAliasRecord getDigipeatRecord(java.lang.String baseCallsign)
baseCallsign
- String callsign to search for
public DigipeatAliasRecord getEnabledDigipeatRecord(AX25Callsign callsign)
callsign
- String callsign to search for
public static boolean isRelayAStep(AX25Callsign relay)
public java.util.Iterator<DigipeatAliasRecord> iterator()
iterator
in interface java.lang.Iterable<DigipeatAliasRecord>
public java.lang.String getRegionCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |