Class LocalAddeEntry
java.lang.Object
edu.wisc.ssec.mcidasv.servermanager.LocalAddeEntry
- All Implemented Interfaces:
AddeEntry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe various kinds of local ADDE data understood by McIDAS-V, along with some helpful metadata.static classA builder of (mostly) immutableLocalAddeEntryinstances.static enumNested 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 Stringprivate final StringN2private final StringR2private StringAllows the user to refer to this entry with an arbitrary name.private AddeEntry.EntryStatusStatus of this entry.private final StringMASKprivate final LocalAddeEntry.AddeFormatMCVprivate final StringN1static final List<LocalAddeEntry> Represents a "bad" collection of local ADDE entries.static final LocalAddeEntryRepresents a "bad" local ADDE entry.private final booleanWhether or not this entry is temporary.(package private) static final org.slf4j.LoggerFriendly neighborhood logging object.private final StringCprivate final booleanRTprivate final StringR1Fields inherited from interface edu.wisc.ssec.mcidasv.servermanager.AddeEntry
DEFAULT_ACCOUNT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLocalAddeEntry(LocalAddeEntry.Builder builder) Creates a new local ADDE entry from the givenbuilderobject. -
Method Summary
Modifier and TypeMethodDescriptionCurrently used as a identifier for convenient storage by the server manager.booleanChecks a given object for equality with the currentLocalAddeEntryinstance.static intgenerateHashCode(LocalAddeEntry entry) static intgenerateHashCode(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.HandyStringrepresentation 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.booleanGets 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.inthashCode()booleanDetermine whether or not this entry will be saved between application sessions.booleanisValid()Tests the current local ADDE dataset for validity.voidsetEntryAlias(String newAlias) voidsetEntryStatus(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 givenbuilderobject.- Parameters:
builder- Builder that represents a local ADDE entry.- See Also:
-
-
Method Details
-
getAccount
Description copied from interface:AddeEntryAccounting information associated with the current entry. If the server does not require accounting information, this method returnsAddeEntry.DEFAULT_ACCOUNT.- Specified by:
getAccountin interfaceAddeEntry- Returns:
- ADDE account object.
-
getAddress
Description copied from interface:AddeEntryAddress of the server associated with the current entry.LocalAddeEntrieswill returnlocalhost.- Specified by:
getAddressin interfaceAddeEntry- Returns:
- Server address.
-
getEntrySource
Description copied from interface:AddeEntrySource 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:
getEntrySourcein interfaceAddeEntry- Returns:
- Source of this entry.
-
getEntryStatus
Description copied from interface:AddeEntryGUI status of the entry. Differs fromAddeEntry.EntryValidityin thatEntryStatuscontrols 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:
getEntryStatusin interfaceAddeEntry- Returns:
- Status of this entry.
-
getEntryText
Description copied from interface:AddeEntryHandyStringrepresentation of this ADDE entry. Currently looks likeADDRESS/GROUP, but this is subject to change.- Specified by:
getEntryTextin interfaceAddeEntry- Returns:
- Entry as a
String.
-
getEntryType
Description copied from interface:AddeEntryType of chooser this entry should appear under.- Specified by:
getEntryTypein interfaceAddeEntry- Returns:
- The "type" of data associated with this entry.
-
getEntryValidity
Description copied from interface:AddeEntryDoes this entry represent a "valid" ADDE server.- Specified by:
getEntryValidityin interfaceAddeEntry- Returns:
- Whether or not this entry has been validated.
-
getEntryAlias
- Specified by:
getEntryAliasin interfaceAddeEntry
-
setEntryAlias
- Specified by:
setEntryAliasin interfaceAddeEntry
-
setEntryStatus
- Specified by:
setEntryStatusin interfaceAddeEntry
-
isEntryTemporary
Description copied from interface:AddeEntryDetermine whether or not this entry will be saved between application sessions.- Specified by:
isEntryTemporaryin interfaceAddeEntry- Returns:
- Whether or not this entry is saved for subsequent sessions.
-
getGroup
Description copied from interface:AddeEntryDataset/group located on the server. -
getName
Description copied from interface:AddeEntryName 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 currentLocalAddeEntryinstance. -
asStringId
Description copied from interface:AddeEntryCurrently used as a identifier for convenient storage by the server manager.- Specified by:
asStringIdin interfaceAddeEntry- Returns:
- Identifier for this entry.
-
toString
Description copied from interface:AddeEntryString 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)
-