Class StationInfo

java.lang.Object
  extended byStationInfo

public class StationInfo
extends java.lang.Object

Represents station information file. Have functions to get latitude and longitude for each station.

Author:
Lulin Song

Method Summary
 float[] getLatitudes()
          Get all longitudes of stations
 float[] getLongitudes()
          Get all longitudes of stations
 float getMaxLatitude()
          Get the maximum latitude among the stations
 float getMaxLongitude()
          Get the maximum longitude among the stations
 float getMinLatitude()
          Get the minimum latitude among the stations
 float getMinLongitude()
          Get the minimum longitude among the stations
 double getStationLat(int stationNo)
          Get station latitude for a station.
 double getStationLon(int stationNo)
          Get station longitude for a station.
 int getTotalStations()
          Get total number of stations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTotalStations

public int getTotalStations()
Get total number of stations.


getStationLat

public double getStationLat(int stationNo)
Get station latitude for a station.

Parameters:
stationNo - station number ( start from one, not zero )
Returns:
latitude value

getStationLon

public double getStationLon(int stationNo)
Get station longitude for a station.

Parameters:
stationNo - station number ( start from one, not zero )
Returns:
longitude value

getMinLatitude

public float getMinLatitude()
Get the minimum latitude among the stations


getMinLongitude

public float getMinLongitude()
Get the minimum longitude among the stations


getMaxLatitude

public float getMaxLatitude()
Get the maximum latitude among the stations


getMaxLongitude

public float getMaxLongitude()
Get the maximum longitude among the stations


getLongitudes

public float[] getLongitudes()
Get all longitudes of stations


getLatitudes

public float[] getLatitudes()
Get all longitudes of stations