Package gov.usgs.earthquake.qdm
Class Regions
java.lang.Object
gov.usgs.earthquake.qdm.Regions
Set of regions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if the event is from the authoritative network.boolean
Determines if the event is from the authoritative network.boolean
Checks if an event's network ID is the default network.boolean
isDefaultNetID
(String netid) Checks if network ID is the default network.boolean
isValidnetID
(String netid) Is this netid in the set of regions? The default net covers the whole world so it is always valid since it has no finite boundaries.
-
Field Details
-
defaultNetid
Default network -
netids
Array of network ids, e.g. nc, us, etc. -
regions
Array of regions
-
-
Constructor Details
-
Regions
public Regions()Create a new set of regions.
-
-
Method Details
-
isValidnetID
Is this netid in the set of regions? The default net covers the whole world so it is always valid since it has no finite boundaries.- Parameters:
netid
- A netid (nc, us, etc.)- Returns:
- boolean if netid is valid
-
isDefaultNetID
Checks if network ID is the default network.- Parameters:
netid
- network ID- Returns:
- true if default network.
-
isDefaultNetID
Checks if an event's network ID is the default network.- Parameters:
eq
- EQ event- Returns:
- true if default network.
-
isAuthor
Determines if the event is from the authoritative network.- Parameters:
netid
- network IDp
- event point- Returns:
- true if event is authoritative
-
isAuthor
Determines if the event is from the authoritative network.- Parameters:
eq
- EQ event- Returns:
- true if event is authoritative
-