Android Open Source - infinitep Movement Raw






From Project

Back to project page infinitep.

License

The source code is released under:

Apache License

If you think the Android project infinitep 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 es.daconstenla.infinip.database;
//www .j a  v a2 s.c o  m
import es.daconstenla.infinip.database.utils.Utils;

public class MovementRaw {
  public long id;
  public long dateTime;
  public String date;
  public String time;
  public int acel_x;
  public int acel_y;
  public int acel_z;

  public MovementRaw(){}
  /**
   * 
   * @param identifier identifier if known from sql row or imported  
   * @param dat of measurement
   * @param tim of measurement
   * @param aceleration_x measure acceleration in X axis
   * @param aceleration_y measure acceleration in Y axis
   * @param aceleration_z measure acceleration in Z axis
   */
  
  
  // With Strings & long
  public MovementRaw(long identifier,long dateTim, int aceleration_x,int aceleration_y,int aceleration_z,String dat, String tim){
    
    _init_(identifier, dateTim, aceleration_x, aceleration_y, aceleration_z, dat, tim);
    
  }
  
  // Only with Long 
  public MovementRaw(long dateTim, int aceleration_x,int aceleration_y,int aceleration_z){
    
    _init_(Long.MIN_VALUE,dateTim,aceleration_x, aceleration_y,aceleration_z,"","");
    
  }
  
  public MovementRaw(long identifier, long dateTime, int aceleration_x,int aceleration_y,int aceleration_z){
    
    _init_(identifier,dateTime,aceleration_x, aceleration_y,aceleration_z,"","");
    
  }
  
  private void _init_(long identifier,long dateTim, int aceleration_x, int aceleration_y,int aceleration_z,String dat,String tim){
    if(id == Long.MIN_VALUE) id = -1;
    else id = identifier;
    
    if(dat.length()==0){
      String tempS[] = Utils.createDateInStringFromLong(dateTim);
      this.date = tempS[0];
      this.time = tempS[1];
    }else{
      this.date = dat;
      this.time = tim;
    }
    
    this.dateTime = dateTim;
    acel_x = aceleration_x;
    acel_y = aceleration_y;
    acel_z = aceleration_z;
  }
  
  public String toString(){
    String toret =   "id "    +   id +
            "dateTime "  +  dateTime +
            "date "    +   date +
            "time "    +  time +
            "acelX "  +   acel_x +
            "acelY "  +  acel_y +
            "acelZ "  +   acel_z  
            ;
    return toret;
  }
  
  
}




Java Source Code List

com.example.databasetest.FullscreenActivity.java
com.example.databasetest.util.SystemUiHiderBase.java
com.example.databasetest.util.SystemUiHiderHoneycomb.java
com.example.databasetest.util.SystemUiHider.java
com.example.datatest.MainActivity.java
com.example.datatest.database.InfinitepHelper.java
com.example.datatest.database.MovementRaw.java
com.example.datatest.database.MovementSummary.java
com.example.datatest.database.TableMovementRaw.java
com.example.datatest.database.TableMovementSummary.java
com.example.datatest.databaseTest.DatabaseTester.java
com.example.datatest.util.Utils.java
es.daconstenla.infinip.activity.CalendarActivity.java
es.daconstenla.infinip.activity.DayActivity.java
es.daconstenla.infinip.activity.MainActivity.java
es.daconstenla.infinip.activity.RangeActivity.java
es.daconstenla.infinip.activity.SettingsActivity.java
es.daconstenla.infinip.activity.SplashActivity.java
es.daconstenla.infinip.activity.SyncActivity.java
es.daconstenla.infinip.customcomponents.HorizontalGraph.java
es.daconstenla.infinip.customcomponents.InformationBox.java
es.daconstenla.infinip.customcomponents.MonthFragmentTest.java
es.daconstenla.infinip.customcomponents.MonthFragment.java
es.daconstenla.infinip.customcomponents.MonthView.java
es.daconstenla.infinip.customcomponents.MyFragmentMonthAdapter.java
es.daconstenla.infinip.customcomponents.events.OnSwipeTouchListener.java
es.daconstenla.infinip.customcomponents.pieces.ElementBackground.java
es.daconstenla.infinip.customcomponents.pieces.HorGraphBar.java
es.daconstenla.infinip.customcomponents.pieces.ItemCalendarDay.java
es.daconstenla.infinip.customcomponents.pieces.data.BarElementData.java
es.daconstenla.infinip.customcomponents.pieces.data.ColorMyCustom.java
es.daconstenla.infinip.customcomponents.pieces.data.CustomScrollView.java
es.daconstenla.infinip.customcomponents.pieces.data.ItemHorizontalBar.java
es.daconstenla.infinip.database.InfinitepHelper.java
es.daconstenla.infinip.database.MovementRaw.java
es.daconstenla.infinip.database.MovementSummary.java
es.daconstenla.infinip.database.TableMovementRaw.java
es.daconstenla.infinip.database.TableMovementSummary.java
es.daconstenla.infinip.database.utils.Utils.java
es.daconstenla.infinip.unused.AutoResizeTextView.java