Android Open Source - SSPIA Celestial






From Project

Back to project page SSPIA.

License

The source code is released under:

MIT License

If you think the Android project SSPIA 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.fiec.sspia.db;
//from w  w w .ja  va  2  s. c  om
import android.os.Bundle;
import android.os.Parcel;

public abstract class Celestial{
  
  protected String NAME;
  protected int PID;
  protected int IMGREG;
  protected String[] INFO;
  protected int SAT_COUNT;
  protected String SAT_EXTRA;
  protected SolarDb DB;
  
  public Celestial(String n, String[] inf, int pid, int sat, int imgres) {
    this.NAME = n;
    this.INFO = inf;
    this.PID = pid;
    this.SAT_COUNT = sat;
    this.IMGREG = imgres;
  }
  
  public Celestial(String n, String[] inf, int pid, int imgres, String extra) {
    this.NAME = n;
    this.INFO = inf;
    this.PID = pid;
    this.IMGREG = imgres;
    this.SAT_EXTRA = extra;
  } 
  
  public Celestial(Parcel in){
    Bundle bund = in.readBundle();
    this.NAME = bund.getString("namekey");
    this.INFO = bund.getStringArray("infokey");
    this.PID = bund.getInt("pidkey");
    this.IMGREG = bund.getInt("imgkey");
    this.SAT_COUNT = bund.getInt("satkey");
  }
  
  public abstract String getName();
  public abstract String[] getinf();
  public abstract int getPid();
  public abstract int getImgres();
  public abstract SolarDb getDb();
  
  public int getSat(){
    return SAT_COUNT;
  }
  
  public String getSatExtra(){
    return SAT_EXTRA;
  }
  
  public void setInfoMars(String max, String min){
    this.INFO[0] = max;
    this.INFO[2] = min;
  }
  
  public void setDb(SolarDb db){
    this.DB = db;
  }
  
  public void setName(String name){
    this.NAME = name;
  }
  
  public void setImg(int img){
    this.IMGREG = img;
  }
  
  public void setPid(int pid){
    this.PID = pid;
  }
  
  public void setSats(int sats) {
    this.SAT_COUNT = sats;
  }
  
  public void setInf(String[] inf){
    this.INFO = inf;
  }
}




Java Source Code List

com.fiec.sspia.buff.DefaultNoti.java
com.fiec.sspia.buff.PlanetClass.java
com.fiec.sspia.buff.PlanetSource.java
com.fiec.sspia.buff.Tag.java
com.fiec.sspia.db.Celestial.java
com.fiec.sspia.db.DBHelper.java
com.fiec.sspia.db.DbAuxClass.java
com.fiec.sspia.db.Planets.java
com.fiec.sspia.db.Satellites.java
com.fiec.sspia.db.SolarDb.java
com.fiec.sspia.main.InformationTab.java
com.fiec.sspia.main.SatellitesClass.java
com.fiec.sspia.main.SolarActivity.java
com.fiec.sspia.main.TabsPlanets.java
com.fiec.sspia.mclass.MainClass.java
com.fiec.sspia.mclass.MainFragment.java
com.fiec.sspia.mclass.SSNotific.java
com.fiec.sspia.mclass.SetttingsClass.java
com.fiec.sspia.mclass.SplashClass.java
com.fiec.sspia.system.BroadcastRec.java
com.fiec.sspia.system.SspiaService.java
com.fiec.sspia.system.StartingNotis.java
com.fiec.sspia.util.AbstrCd.java
com.fiec.sspia.util.CdClass.java
com.fiec.sspia.util.CustomInfoAdapter.java
com.fiec.sspia.util.CustomMenuAdapter.java
com.fiec.sspia.util.FillMenuAdapter.java
com.fiec.sspia.util.JSONParser.java
com.fiec.sspia.util.MainGridAdapterClass.java
com.fiec.sspia.util.MenuSettings.java
com.fiec.sspia.util.SSInterfaceNoti.java
com.fiec.sspia.util.SatelliteGridAdapterClass.java
com.fiec.sspia.util.TempClass.java
com.fiec.sspia.util.TransitionClass.java