Skip to content

Commit

Permalink
Add TODO List at each function.
Browse files Browse the repository at this point in the history
Add TODO at each function.
  • Loading branch information
Leeheejin committed Dec 1, 2018
1 parent c1ec550 commit 898b96d
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ public void onClick(View view) {
Toast.makeText(getApplication(), sentenceConsistency, Toast.LENGTH_LONG).show();
sentencediffv.setText(sentenceConsistency);

// 현재 실행한 테스트를 DB에 저장
// TODO:현재 실행한 테스트를 DB에 저장
save_values();
}

private SQLiteDatabase init_database() {
// 데이터베이스 처음 생성시 초기화
SQLiteDatabase db = null;

// File file = getDatabasePath("contact.db") ;
Expand All @@ -137,6 +138,7 @@ private SQLiteDatabase init_database() {
}

private void init_tables() {
// 테이블 처음 생성시 초기화
if (sqliteDB != null) {
String sqlCreateTbl = "CREATE TABLE IF NOT EXISTS CONTACT_T (" +
"Date " + "INTEGER NOT NULL," +
Expand All @@ -148,6 +150,7 @@ private void init_tables() {
}

private void load_values() {
// TODO: 액티비티 로드 시 barchart 에 표시될 데이터 로드하기
if (sqliteDB != null) {
String sqlQueryTbl = "SELECT * FROM CONTACT_T";
Cursor cursor = null;
Expand All @@ -167,6 +170,8 @@ private void load_values() {
}

private void save_values() {
//TODO: 수행 결과를 데이터베이스에 추가하기.

if (sqliteDB != null) {

// delete
Expand Down Expand Up @@ -276,6 +281,8 @@ private void chartInit() {
}

private ArrayList<IBarDataSet> getDataSet() {
//TODO: DB에 저장된 데이터 받아서 밸류로 추가하기

ArrayList<IBarDataSet> dataSets = null;

ArrayList<BarEntry> valueSet2 = new ArrayList<>();
Expand Down Expand Up @@ -314,6 +321,8 @@ private ArrayList<IBarDataSet> getDataSet() {
}

private ArrayList<String> getXAxisValues() {
//TODO: DB에 저장된 날짜 받아서 X 축으로 추가하기

ArrayList<String> xAxis = new ArrayList<>();
xAxis.add("2018-12-01");
xAxis.add("2018-12-02");
Expand Down

0 comments on commit 898b96d

Please sign in to comment.