package com.example.habitrack;

/**
 * Created by sshussai on 10/21/17.
 */

public class HabitType {
    String third_word = "hello";


    public String getWords() {
        return third_word;
    }
}

@@ -29,16 +29,53 @@
 k;%0A%0A/**%0A
+ *%0A * HabitType%0A *%0A * Version 1.0%0A *%0A
  * Creat
@@ -102,16 +102,19 @@
 /21/17.%0A
+ *%0A
  */%0A%0Apub
@@ -143,101 +143,1708 @@
     
-String third_word = %22hello%22;%0A%0A%0A    public String getWords() %7B%0A        return third_word;%0A    %7D
+/**%0A     * This class is the template for a habit type entity.%0A     *%0A     */%0A%0A    private final Integer ID;%0A    private String title;                   // title of the habit type%0A    private String reason;                  // reason for the habit type%0A    private Calendar startDate;             // Calendar object representing the start date%0A    private ArrayList%3CInteger%3E schedule;    // ArrayList of ints representing days of the week for the plan%0A    private Integer completedCounter;       // habit events currently completed%0A    private Integer currentMaxCounter;      // total number of habits events possible so far%0A%0A    public HabitType(Integer id) %7B%0A        this.ID = id;%0A        this.completedCounter = 0;%0A        this.currentMaxCounter = 0;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D%0A%0A    public String getReason() %7B%0A        return reason;%0A    %7D%0A%0A    public void setReason(String reason) %7B%0A        this.reason = reason;%0A    %7D%0A%0A    public Calendar getStartDate() %7B%0A        return startDate;%0A    %7D%0A%0A    public void setStartDate(Calendar startDate) %7B%0A        this.startDate = startDate;%0A    %7D%0A%0A    public ArrayList%3CInteger%3E getSchedule() %7B%0A        return schedule;%0A    %7D%0A%0A    public void setSchedule(ArrayList%3CInteger%3E plan) %7B%0A        this.schedule = plan;%0A    %7D%0A%0A    public Double getStatus()%7B%0A        return (completedCounter.doubleValue()/currentMaxCounter.doubleValue());%0A    %7D%0A%0A    public Integer getID() %7B%0A        return ID;%0A    %7D%0A%0A    public void incrementCompletedCounter()%7B%0A        completedCounter++;%0A    %7D%0A%0A    public void incrementMaxCounter()%7B%0A        currentMaxCounter++;%0A    %7D%0A
 %0A%7D%0A

version 1.0 of HabitType