Android Open Source - g3m_owm Place






From Project

Back to project page g3m_owm.

License

The source code is released under:

Copyright (c) 2013, Glob3 Mobile, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...

If you think the Android project g3m_owm listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.glob3.mobile.owm.shared.data;
/*from  w  w  w.  ja va 2s. co m*/
import java.util.ArrayList;

import org.glob3.mobile.generated.Geodetic2D;
import org.glob3.mobile.generated.URL;


public class Place {

   public final static String IMPERIAL         = "imperial";
   public final static String METRIC           = "metric";
   public URL                 _icon;
   public boolean             _gpsEnable;
   public String              _unitsSystem     = "";
   public String              _iconName;
   public String              _name            = "";
   public String              _fullName        = "";
   public Geodetic2D          _position;
   public double              _temperature;
   public double              _temperatureF;
   public ArrayList<Weather>  _weatherForecast = new ArrayList<Weather>();


   public Place() {

   }


   public String getName() {
      return _name;
   }


   public void setName(final String name) {
      _name = name;
   }


   public Geodetic2D getPosition() {
      return _position;
   }


   public void setPosition(final Geodetic2D position) {
      _position = position;
   }


   public URL getIcon() {
      return _icon;
   }


   public void setIcon(final URL icon) {
      _icon = icon;
   }


   public double getTemperature() {
      return _temperature;
   }


   public void setTemperature(final double temperature) {
      _temperature = temperature;
   }


   public String getIconName() {
      return _iconName;
   }


   public void setIconName(final String iconName) {
      _iconName = iconName;
   }


   public ArrayList<Weather> getWeatherForecast() {
      return _weatherForecast;
   }


   public void setWeatherForecast(final ArrayList<Weather> weatherForecast) {
      _weatherForecast = weatherForecast;
   }


   public boolean isGpsEnable() {
      return _gpsEnable;
   }


   public void setGpsEnable(final boolean gpsEnable) {
      _gpsEnable = gpsEnable;
   }


   public String getUnitsSystem() {
      return _unitsSystem;
   }


   public void setUnitsSystem(final String unitsSystem) {
      _unitsSystem = unitsSystem;
   }


   public double getTemperatureF() {
      _temperatureF = (_temperature * 1.8000d) + 32;

      return _temperatureF;
   }


   public void setTemperatureF(final double temperatureF) {
      _temperatureF = temperatureF;
   }


   public String getFullName() {
      return _fullName;
   }


   public void setFullName(final String fullName) {
      _fullName = fullName;
   }


}




Java Source Code List

com.glob3.mobile.owm.DataSourceAdapter.java
com.glob3.mobile.owm.Dialogs.java
com.glob3.mobile.owm.G3MOWMMainActivity.java
com.glob3.mobile.owm.GPSTracker.java
com.glob3.mobile.owm.Prefs.java
com.glob3.mobile.owm.SettingsActivity.java
com.glob3.mobile.owm.shared.G3MOWMBuilder.java
com.glob3.mobile.owm.shared.G3MOWMListener.java
com.glob3.mobile.owm.shared.data.DataRetriever.java
com.glob3.mobile.owm.shared.data.DialogDataListener.java
com.glob3.mobile.owm.shared.data.Place.java
com.glob3.mobile.owm.shared.data.Places.java
com.glob3.mobile.owm.shared.data.SimpleRasterLayerBuilder.java
com.glob3.mobile.owm.shared.data.Utils.java
com.glob3.mobile.owm.shared.data.WeatherForecastParser.java
com.glob3.mobile.owm.shared.data.WeatherForecast.java
com.glob3.mobile.owm.shared.data.Weather.java