public class DigipeatAliasRecord extends java.lang.Object implements java.lang.Comparable<DigipeatAliasRecord>
Modifier and Type | Field and Description |
---|---|
java.lang.String |
alias
The name of the alias, such as WIDE2.
|
boolean |
enabled
Specify if this digipeat alias is globally enabled for digipeating.
|
boolean |
isN_N
Specify if this is an alias using the New n-N paradigm.
|
boolean |
isTraced
Specify whether digipeats using this alias should have trace callsigns inserted into the digipeat path
of the AX.25 frame.
|
Constructor and Description |
---|
DigipeatAliasRecord()
Create an empty DigipeatAliasRecord.
|
DigipeatAliasRecord(java.lang.String alias,
java.lang.String params)
Create a DigipeatAliasRecord using string format attributes.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(DigipeatAliasRecord o)
Compares this object with the specified object for order.
|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getAliasString()
Create a complete alias string, accounting for aliases using the New n-N paradigm.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
readFromPreferences(java.util.prefs.Preferences prefs)
Fill this record from data saved under the alias name in Java Preferences.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
writeToPreferences(java.util.prefs.Preferences prefs)
Store this DigipeatAliasRecord in Java Preferences
|
public java.lang.String alias
public boolean isN_N
public boolean enabled
public boolean isTraced
public DigipeatAliasRecord()
public DigipeatAliasRecord(java.lang.String alias, java.lang.String params)
alias
- String name of aliasparams
- String of comma-separated boolean strings, indicating whether
this is a n-N alias, the alias is enabled, and whether this alias should be tracedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.hashCode()
public int hashCode()
java.util.Hashtable
.hashCode
in class java.lang.Object
equals(java.lang.Object)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAliasString()
public int compareTo(DigipeatAliasRecord o)
compareTo
in interface java.lang.Comparable<DigipeatAliasRecord>
o
- the object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.public void writeToPreferences(java.util.prefs.Preferences prefs)
prefs
- the Preferences node to contain the saved record datapublic void readFromPreferences(java.util.prefs.Preferences prefs)
prefs
- Preferences node containing the saved data