|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry
public class LocalAddeEntry
Nested Class Summary | |
---|---|
static class |
LocalAddeEntry.AddeFormat
The various kinds of local ADDE data understood by McIDAS-V, along with some helpful metadata. |
static class |
LocalAddeEntry.Builder
A builder of (mostly) immutable LocalAddeEntry instances. |
static class |
LocalAddeEntry.ServerName
|
Nested classes/interfaces inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry |
---|
AddeEntry.EditorAction, AddeEntry.EntrySource, AddeEntry.EntryStatus, AddeEntry.EntryType, AddeEntry.EntryValidity |
Field Summary | |
---|---|
private String |
asStringId
|
private static String |
CYGWIN_PREFIX
|
private static int |
CYGWIN_PREFIX_LEN
|
private String |
descriptor
N2 |
private String |
end
R2 |
private String |
entryAlias
|
private AddeEntry.EntryStatus |
entryStatus
|
private String |
fileMask
MASK |
private LocalAddeEntry.AddeFormat |
format
MCV |
private String |
group
N1 |
static List<LocalAddeEntry> |
INVALID_ENTRIES
Represents a "bad" collection of local ADDE entries. |
static LocalAddeEntry |
INVALID_ENTRY
Represents a "bad" local ADDE entry. |
private boolean |
isTemporary
|
(package private) static org.slf4j.Logger |
logger
Friendly neighborhood logging object. |
private String |
name
C |
private boolean |
realtime
RT |
private String |
start
R1 |
Fields inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry |
---|
DEFAULT_ACCOUNT |
Constructor Summary | |
---|---|
private |
LocalAddeEntry(LocalAddeEntry.Builder builder)
|
Method Summary | |
---|---|
String |
asStringId()
Currently used as a identifier for convenient storage by the server manager. |
boolean |
equals(Object obj)
Checks a given object for equality with the current LocalAddeEntry
instance. |
static int |
generateHashCode(LocalAddeEntry entry)
|
static int |
generateHashCode(String name,
String group,
String fileMask,
String entryAlias,
boolean isTemporary,
LocalAddeEntry.AddeFormat format)
|
AddeAccount |
getAccount()
Accounting information associated with the current entry. |
String |
getAddress()
Address of the server associated with the current entry. |
String |
getDescriptor()
Gets the ADDE descriptor for the current local ADDE entry. |
String |
getEnd()
Gets the ending number of the current local ADDE dataset. |
String |
getEntryAlias()
|
AddeEntry.EntrySource |
getEntrySource()
Source that specified this entry. |
AddeEntry.EntryStatus |
getEntryStatus()
GUI status of the entry. |
String |
getEntryText()
Handy String representation of this ADDE entry. |
AddeEntry.EntryType |
getEntryType()
Type of chooser this entry should appear under. |
AddeEntry.EntryValidity |
getEntryValidity()
Does this entry represent a "valid" ADDE server. |
String |
getFileMask()
Gets the ADDE file mask for the current local ADDE entry. |
LocalAddeEntry.AddeFormat |
getFormat()
Gets the ADDE dataset format for the current local ADDE entry. |
String |
getGroup()
Dataset/group located on the server. |
String |
getMask()
Gets the ADDE file mask for the current local ADDE entry. |
String |
getName()
Name associated with this entry. |
boolean |
getRealtime()
Gets the ADDE realtime status of the current local ADDE entry. |
String |
getRealtimeAsString()
Gets the local ADDE dataset's realtime status as a value suitable for RESOLV.SRV (one of "Y" or "N"). |
String |
getStart()
Gets the starting number of the current local ADDE dataset. |
int |
hashCode()
|
boolean |
isEntryTemporary()
|
boolean |
isValid()
Tests the current local ADDE dataset for validity. |
void |
setEntryAlias(String newAlias)
|
void |
setEntryStatus(AddeEntry.EntryStatus newStatus)
|
String |
toString()
String representation of this entry. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final org.slf4j.Logger logger
public static final LocalAddeEntry INVALID_ENTRY
public static final List<LocalAddeEntry> INVALID_ENTRIES
private static final String CYGWIN_PREFIX
private static final int CYGWIN_PREFIX_LEN
private AddeEntry.EntryStatus entryStatus
private final String group
private final String descriptor
private final boolean realtime
private final LocalAddeEntry.AddeFormat format
private final String start
private final String end
private final String fileMask
private final String name
private String asStringId
private final boolean isTemporary
private String entryAlias
Constructor Detail |
---|
private LocalAddeEntry(LocalAddeEntry.Builder builder)
builder
- LocalAddeEntry.Builder
Method Detail |
---|
public AddeAccount getAccount()
AddeEntry
AddeEntry.DEFAULT_ACCOUNT
.
getAccount
in interface AddeEntry
public String getAddress()
AddeEntry
LocalAddeEntry
s will return localhost
.
getAddress
in interface AddeEntry
public AddeEntry.EntrySource getEntrySource()
AddeEntry
getEntrySource
in interface AddeEntry
public AddeEntry.EntryStatus getEntryStatus()
AddeEntry
AddeEntry.EntryValidity
in that
EntryStatus
controls this entry showing up in a chooser and has
nothing to do with whether or not the entry is a valid ADDE server.
getEntryStatus
in interface AddeEntry
public String getEntryText()
AddeEntry
String
representation of this ADDE entry. Currently looks
like ADDRESS/GROUP
, but this is subject to change.
getEntryText
in interface AddeEntry
public AddeEntry.EntryType getEntryType()
AddeEntry
getEntryType
in interface AddeEntry
public AddeEntry.EntryValidity getEntryValidity()
AddeEntry
getEntryValidity
in interface AddeEntry
public String getEntryAlias()
getEntryAlias
in interface AddeEntry
public void setEntryAlias(String newAlias)
setEntryAlias
in interface AddeEntry
public void setEntryStatus(AddeEntry.EntryStatus newStatus)
setEntryStatus
in interface AddeEntry
public boolean isEntryTemporary()
isEntryTemporary
in interface AddeEntry
public String getGroup()
AddeEntry
getGroup
in interface AddeEntry
public String getName()
AddeEntry
getName
in interface AddeEntry
public String getDescriptor()
public LocalAddeEntry.AddeFormat getFormat()
public String getMask()
public String getFileMask()
public boolean getRealtime()
public String getStart()
public String getEnd()
public boolean isValid()
true
iff group
and name
are not empty.public String getRealtimeAsString()
public int hashCode()
hashCode
in class Object
generateHashCode(String, String, String, String, boolean, AddeFormat)
public boolean equals(Object obj)
LocalAddeEntry
instance.
equals
in class Object
obj
- Object to check. null
values allowed.
true
if obj
is "equal" to the current
LocalAddeEntry
instance.public String asStringId()
AddeEntry
asStringId
in interface AddeEntry
public String toString()
AddeEntry
toString
in interface AddeEntry
toString
in class Object
public static int generateHashCode(LocalAddeEntry entry)
public static int generateHashCode(String name, String group, String fileMask, String entryAlias, boolean isTemporary, LocalAddeEntry.AddeFormat format)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |