Commit 96206ad0 authored by Anuththara18's avatar Anuththara18

Adding Diagnosis to CSV files

parent df0dd89f
...@@ -167,7 +167,7 @@ public class AACompleteScreen extends AppCompatActivity { ...@@ -167,7 +167,7 @@ public class AACompleteScreen extends AppCompatActivity {
try { try {
writer = new CSVWriter(new FileWriter(csv)); writer = new CSVWriter(new FileWriter(csv));
String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration"}; String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration","diagnosis"};
writer.writeNext(entries); writer.writeNext(entries);
List<String[]> data = new ArrayList<String[]>(); List<String[]> data = new ArrayList<String[]>();
...@@ -183,7 +183,9 @@ public class AACompleteScreen extends AppCompatActivity { ...@@ -183,7 +183,9 @@ public class AACompleteScreen extends AppCompatActivity {
String.valueOf(gameData.getNoOfCommissionErrors()), String.valueOf(gameData.getNoOfCommissionErrors()),
String.valueOf(gameData.getNoOfOmmissionErrors()), String.valueOf(gameData.getNoOfOmmissionErrors()),
String.valueOf(gameData.getMeanReactionTime()), String.valueOf(gameData.getMeanReactionTime()),
String.valueOf(gameData.getTotalDuration()) String.valueOf(gameData.getTotalDuration()),
String.valueOf(ParentDetailsActivity.diagnosis)
}); });
} }
......
...@@ -105,7 +105,7 @@ public class ParentDetailsActivity extends AppCompatActivity { ...@@ -105,7 +105,7 @@ public class ParentDetailsActivity extends AppCompatActivity {
} }
else{ else{
diagnosis = (String) genderradioButton.getText(); diagnosis = (String) genderradioButton.getText();
//Toast.makeText(ParentDetailsActivity.this,genderradioButton.getText(), Toast.LENGTH_SHORT).show(); Toast.makeText(ParentDetailsActivity.this,genderradioButton.getText(), Toast.LENGTH_SHORT).show();
nav = 1; nav = 1;
if (LanguageActivity.text.equals("English")) { if (LanguageActivity.text.equals("English")) {
startActivity(new Intent(ParentDetailsActivity.this, ConsentFormActivity.class)); startActivity(new Intent(ParentDetailsActivity.this, ConsentFormActivity.class));
......
...@@ -168,7 +168,7 @@ public class DACompleteScreen extends AppCompatActivity { ...@@ -168,7 +168,7 @@ public class DACompleteScreen extends AppCompatActivity {
try { try {
writer = new CSVWriter(new FileWriter(csv)); writer = new CSVWriter(new FileWriter(csv));
String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration"}; String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration","diagnosis"};
writer.writeNext(entries); writer.writeNext(entries);
List<String[]> data = new ArrayList<String[]>(); List<String[]> data = new ArrayList<String[]>();
...@@ -184,7 +184,9 @@ public class DACompleteScreen extends AppCompatActivity { ...@@ -184,7 +184,9 @@ public class DACompleteScreen extends AppCompatActivity {
String.valueOf(gameData.getNoOfCommissionErrors()), String.valueOf(gameData.getNoOfCommissionErrors()),
String.valueOf(gameData.getNoOfOmmissionErrors()), String.valueOf(gameData.getNoOfOmmissionErrors()),
String.valueOf(gameData.getMeanReactionTime()), String.valueOf(gameData.getMeanReactionTime()),
String.valueOf(gameData.getTotalDuration()) String.valueOf(gameData.getTotalDuration()),
String.valueOf(ParentDetailsActivity.diagnosis)
}); });
} }
......
...@@ -168,7 +168,7 @@ public class FACompleteScreen extends AppCompatActivity { ...@@ -168,7 +168,7 @@ public class FACompleteScreen extends AppCompatActivity {
try { try {
writer = new CSVWriter(new FileWriter(csv)); writer = new CSVWriter(new FileWriter(csv));
String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration"}; String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration","diagnosis"};
writer.writeNext(entries); writer.writeNext(entries);
List<String[]> data = new ArrayList<String[]>(); List<String[]> data = new ArrayList<String[]>();
...@@ -185,7 +185,8 @@ public class FACompleteScreen extends AppCompatActivity { ...@@ -185,7 +185,8 @@ public class FACompleteScreen extends AppCompatActivity {
String.valueOf(gameData.getNoOfCommissionErrors()), String.valueOf(gameData.getNoOfCommissionErrors()),
String.valueOf(gameData.getNoOfOmmissionErrors()), String.valueOf(gameData.getNoOfOmmissionErrors()),
String.valueOf(gameData.getMeanReactionTime()), String.valueOf(gameData.getMeanReactionTime()),
String.valueOf(gameData.getTotalDuration()) String.valueOf(gameData.getTotalDuration()),
String.valueOf(ParentDetailsActivity.diagnosis)
}); });
} }
......
...@@ -166,7 +166,7 @@ public class SelectiveACompleteScreen extends AppCompatActivity { ...@@ -166,7 +166,7 @@ public class SelectiveACompleteScreen extends AppCompatActivity {
try { try {
writer = new CSVWriter(new FileWriter(csv)); writer = new CSVWriter(new FileWriter(csv));
String[] entries = {"id","child_gender","child_age","level","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration"}; String[] entries = {"id","child_gender","child_age","level","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration","diagnosis"};
writer.writeNext(entries); writer.writeNext(entries);
List<String[]> data = new ArrayList<String[]>(); List<String[]> data = new ArrayList<String[]>();
...@@ -183,7 +183,8 @@ public class SelectiveACompleteScreen extends AppCompatActivity { ...@@ -183,7 +183,8 @@ public class SelectiveACompleteScreen extends AppCompatActivity {
String.valueOf(gameData.getNoOfCommissionErrors()), String.valueOf(gameData.getNoOfCommissionErrors()),
String.valueOf(gameData.getNoOfOmmissionErrors()), String.valueOf(gameData.getNoOfOmmissionErrors()),
String.valueOf(gameData.getMeanReactionTime()), String.valueOf(gameData.getMeanReactionTime()),
String.valueOf(gameData.getTotalDuration()) String.valueOf(gameData.getTotalDuration()),
String.valueOf(ParentDetailsActivity.diagnosis)
}); });
} }
......
...@@ -168,7 +168,7 @@ public class SA1CompleteScreen extends AppCompatActivity { ...@@ -168,7 +168,7 @@ public class SA1CompleteScreen extends AppCompatActivity {
try { try {
writer = new CSVWriter(new FileWriter(csv)); writer = new CSVWriter(new FileWriter(csv));
String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration"}; String[] entries = {"id","child_gender","child_age","total_correct_responses","correct_responses","commission_errors","omission_errors","mean_reaction_time","total_duration","diagnosis"};
writer.writeNext(entries); writer.writeNext(entries);
List<String[]> data = new ArrayList<String[]>(); List<String[]> data = new ArrayList<String[]>();
...@@ -184,7 +184,8 @@ public class SA1CompleteScreen extends AppCompatActivity { ...@@ -184,7 +184,8 @@ public class SA1CompleteScreen extends AppCompatActivity {
String.valueOf(gameData.getNoOfCommissionErrors()), String.valueOf(gameData.getNoOfCommissionErrors()),
String.valueOf(gameData.getNoOfOmmissionErrors()), String.valueOf(gameData.getNoOfOmmissionErrors()),
String.valueOf(gameData.getMeanReactionTime()), String.valueOf(gameData.getMeanReactionTime()),
String.valueOf(gameData.getTotalDuration()) String.valueOf(gameData.getTotalDuration()),
String.valueOf(ParentDetailsActivity.diagnosis)
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment