thredds.catalog.query
Class Station

java.lang.Object
  extended by thredds.catalog.query.ListChoice
      extended by thredds.catalog.query.Station
All Implemented Interfaces:
Choice

public class Station
extends ListChoice

Implementation of a DQC station element. This extends Choice with a location.

Author:
john caron

Constructor Summary
Station(Selector parent, String name, String value, String description)
          Construct from fields in XML catalog.
Station(Selector parent, String name, String value, String state, String country, String description)
           
 
Method Summary
 boolean equals(Object o)
           
 String getCountry()
           
 double getElevation()
           
 double getLatitude()
           
 Location getLocation()
           
 double getLongitude()
           
 String getState()
           
 String getStationID()
           
 String getStationName()
           
 int hashCode()
          Override Object.hashCode() to implement equals.
 void setLocation(Location location)
           
 
Methods inherited from class thredds.catalog.query.ListChoice
addNestedSelector, getDescription, getName, getNestedSelectors, getParentSelector, getTemplate, getValue, hasNestedSelectors, setDescription, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Station

public Station(Selector parent,
               String name,
               String value,
               String description)
Construct from fields in XML catalog.

See Also:
Choice

Station

public Station(Selector parent,
               String name,
               String value,
               String state,
               String country,
               String description)
Method Detail

setLocation

public void setLocation(Location location)

getLocation

public Location getLocation()

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getElevation

public double getElevation()

getStationName

public String getStationName()

getStationID

public String getStationID()

getState

public String getState()

getCountry

public String getCountry()

equals

public boolean equals(Object o)
Overrides:
equals in class ListChoice

hashCode

public int hashCode()
Override Object.hashCode() to implement equals.

Overrides:
hashCode in class ListChoice


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.