Class LocalAddeEntry
java.lang.Object
edu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry
- All Implemented Interfaces:
AddeEntry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The various kinds of local ADDE data understood by McIDAS-V, along with some helpful metadata.static class
A builder of (mostly) immutableLocalAddeEntry
instances.static enum
Nested classes/interfaces inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry
AddeEntry.EditorAction, AddeEntry.EntrySource, AddeEntry.EntryStatus, AddeEntry.EntryType, AddeEntry.EntryValidity
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private final String
N2private final String
R2private String
Allows the user to refer to this entry with an arbitrary name.private AddeEntry.EntryStatus
Status of this entry.private final String
MASKprivate final LocalAddeEntry.AddeFormat
MCVprivate final String
N1static final List
<LocalAddeEntry> Represents a "bad" collection of local ADDE entries.static final LocalAddeEntry
Represents a "bad" local ADDE entry.private final boolean
Whether or not this entry is temporary.(package private) static final org.slf4j.Logger
Friendly neighborhood logging object.private final String
Cprivate final boolean
RTprivate final String
R1Fields inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry
DEFAULT_ACCOUNT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
LocalAddeEntry
(LocalAddeEntry.Builder builder) Creates a new local ADDE entry from the givenbuilder
object. -
Method Summary
Modifier and TypeMethodDescriptionCurrently used as a identifier for convenient storage by the server manager.boolean
Checks a given object for equality with the currentLocalAddeEntry
instance.static int
generateHashCode
(LocalAddeEntry entry) static int
generateHashCode
(String name, String group, String fileMask, String entryAlias, boolean isTemporary, LocalAddeEntry.AddeFormat format) Accounting information associated with the current entry.Address of the server associated with the current entry.Gets the ADDE descriptor for the current local ADDE entry.getEnd()
Gets the ending number of the current local ADDE dataset.Source that specified this entry.GUI status of the entry.HandyString
representation of this ADDE entry.Type of chooser this entry should appear under.Does this entry represent a "valid" ADDE server.Gets the ADDE file mask for the current local ADDE entry.Gets the ADDE dataset format for the current local ADDE entry.getGroup()
Dataset/group located on the server.getMask()
Gets the ADDE file mask for the current local ADDE entry.getName()
Name associated with this entry.boolean
Gets the ADDE realtime status of the current local ADDE entry.Gets the local ADDE dataset's realtime status as a value suitable for RESOLV.SRV (one of "Y" or "N").getStart()
Gets the starting number of the current local ADDE dataset.int
hashCode()
boolean
Determine whether or not this entry will be saved between application sessions.boolean
isValid()
Tests the current local ADDE dataset for validity.void
setEntryAlias
(String newAlias) void
setEntryStatus
(AddeEntry.EntryStatus newStatus) toString()
String representation of this entry.
-
Field Details
-
logger
Friendly neighborhood logging object. -
INVALID_ENTRY
Represents a "bad" local ADDE entry. -
INVALID_ENTRIES
Represents a "bad" collection of local ADDE entries. -
entryStatus
Status of this entry. -
group
N1 -
descriptor
N2 -
realtime
RT -
format
MCV -
start
R1 -
end
R2 -
fileMask
MASK -
name
C -
asStringId
-
isTemporary
Whether or not this entry is temporary. -
entryAlias
Allows the user to refer to this entry with an arbitrary name.
-
-
Constructor Details
-
LocalAddeEntry
Creates a new local ADDE entry from the givenbuilder
object.- Parameters:
builder
- Builder that represents a local ADDE entry.- See Also:
-
-
Method Details
-
getAccount
Description copied from interface:AddeEntry
Accounting information associated with the current entry. If the server does not require accounting information, this method returnsAddeEntry.DEFAULT_ACCOUNT
.- Specified by:
getAccount
in interfaceAddeEntry
- Returns:
- ADDE account object.
-
getAddress
Description copied from interface:AddeEntry
Address of the server associated with the current entry.LocalAddeEntries
will returnlocalhost
.- Specified by:
getAddress
in interfaceAddeEntry
- Returns:
- Server address.
-
getEntrySource
Description copied from interface:AddeEntry
Source that specified this entry. For example; allows you to distinguish "system" entries (which cannot be removed, only disabled) from entries created by the user (full control).- Specified by:
getEntrySource
in interfaceAddeEntry
- Returns:
- Source of this entry.
-
getEntryStatus
Description copied from interface:AddeEntry
GUI status of the entry. Differs fromAddeEntry.EntryValidity
in thatEntryStatus
controls this entry showing up in a chooser and has nothing to do with whether or not the entry is a valid ADDE server.- Specified by:
getEntryStatus
in interfaceAddeEntry
- Returns:
- Status of this entry.
-
getEntryText
Description copied from interface:AddeEntry
HandyString
representation of this ADDE entry. Currently looks likeADDRESS/GROUP
, but this is subject to change.- Specified by:
getEntryText
in interfaceAddeEntry
- Returns:
- Entry as a
String
.
-
getEntryType
Description copied from interface:AddeEntry
Type of chooser this entry should appear under.- Specified by:
getEntryType
in interfaceAddeEntry
- Returns:
- The "type" of data associated with this entry.
-
getEntryValidity
Description copied from interface:AddeEntry
Does this entry represent a "valid" ADDE server.- Specified by:
getEntryValidity
in interfaceAddeEntry
- Returns:
- Whether or not this entry has been validated.
-
getEntryAlias
- Specified by:
getEntryAlias
in interfaceAddeEntry
-
setEntryAlias
- Specified by:
setEntryAlias
in interfaceAddeEntry
-
setEntryStatus
- Specified by:
setEntryStatus
in interfaceAddeEntry
-
isEntryTemporary
Description copied from interface:AddeEntry
Determine whether or not this entry will be saved between application sessions.- Specified by:
isEntryTemporary
in interfaceAddeEntry
- Returns:
- Whether or not this entry is saved for subsequent sessions.
-
getGroup
Description copied from interface:AddeEntry
Dataset/group located on the server. -
getName
Description copied from interface:AddeEntry
Name associated with this entry. -
getDescriptor
Gets the ADDE descriptor for the current local ADDE entry.- Returns:
- ADDE descriptor (corresponds to the "N2" section of a RESOLV.SRV entry).
-
getFormat
Gets the ADDE dataset format for the current local ADDE entry.- Returns:
- ADDE format (corresponds to the "MCV" section of a RESOLV.SRV entry).
-
getMask
Gets the ADDE file mask for the current local ADDE entry.- Returns:
- ADDE file mask (corresponds to the "MASK" section of a RESOLV.SRV entry).
-
getFileMask
Gets the ADDE file mask for the current local ADDE entry.- Returns:
- ADDE file mask (corresponds to the "MASK" section of a RESOLV.SRV entry).
-
getRealtime
Gets the ADDE realtime status of the current local ADDE entry.- Returns:
- Whether or not the current dataset is "realtime". Corresponds to the "RT" section of a RESOLV.SRV entry.
-
getStart
Gets the starting number of the current local ADDE dataset.- Returns:
- Corresponds to the "R1" section of a RESOLV.SRV entry.
-
getEnd
Gets the ending number of the current local ADDE dataset.- Returns:
- Corresponds to the "R2" section of a RESOLV.SRV entry.
-
isValid
Tests the current local ADDE dataset for validity. -
getRealtimeAsString
Gets the local ADDE dataset's realtime status as a value suitable for RESOLV.SRV (one of "Y" or "N").- Returns:
- RESOLV.SRV-friendly representation of the current realtime status.
-
hashCode
-
equals
Checks a given object for equality with the currentLocalAddeEntry
instance. -
asStringId
Description copied from interface:AddeEntry
Currently used as a identifier for convenient storage by the server manager.- Specified by:
asStringId
in interfaceAddeEntry
- Returns:
- Identifier for this entry.
-
toString
Description copied from interface:AddeEntry
String representation of this entry.Output will typically contain internal details and as such will differ from
AddeEntry.getEntryText()
. -
generateHashCode
-
generateHashCode
public static int generateHashCode(String name, String group, String fileMask, String entryAlias, boolean isTemporary, LocalAddeEntry.AddeFormat format)
-