Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
Research-Project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jayakody J.A.D.K.A - IT19114040
Research-Project
Commits
db4713fb
Commit
db4713fb
authored
Mar 06, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Splitting the Child ID Column in the csv file
parent
20fbad9b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
17 deletions
+24
-17
app/src/main/java/com/anuththara18/attentionassessment/alternating/AACompleteScreen.java
...a18/attentionassessment/alternating/AACompleteScreen.java
+4
-3
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DACompleteScreen.java
...ttentionassessment/dividedattention/DACompleteScreen.java
+4
-3
app/src/main/java/com/anuththara18/attentionassessment/focused/FACompleteScreen.java
...thara18/attentionassessment/focused/FACompleteScreen.java
+5
-3
app/src/main/java/com/anuththara18/attentionassessment/gender/GenderActivity.java
...uththara18/attentionassessment/gender/GenderActivity.java
+2
-2
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveACompleteScreen.java
...tentionassessment/selective/SelectiveACompleteScreen.java
+5
-3
app/src/main/java/com/anuththara18/attentionassessment/sustained/SA1CompleteScreen.java
...ra18/attentionassessment/sustained/SA1CompleteScreen.java
+4
-3
No files found.
app/src/main/java/com/anuththara18/attentionassessment/alternating/AACompleteScreen.java
View file @
db4713fb
...
...
@@ -166,7 +166,7 @@ public class AACompleteScreen extends AppCompatActivity {
try
{
writer
=
new
CSVWriter
(
new
FileWriter
(
csv
));
String
[]
entries
=
{
"id"
,
"child_
id
"
,
"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"
};
writer
.
writeNext
(
entries
);
List
<
String
[]>
data
=
new
ArrayList
<
String
[]>();
...
...
@@ -175,7 +175,8 @@ public class AACompleteScreen extends AppCompatActivity {
Alternating
gameData
=
dataList
.
get
(
i
);
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
gameData
.
getChildID
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
...
...
@@ -255,7 +256,7 @@ public class AACompleteScreen extends AppCompatActivity {
canvas
.
drawText
(
"Age : "
+
AgeActivity
.
age
,
150
,
250
,
title
);
String
gender
;
if
(
GenderActivity
.
gender
==
0
)
{
if
(
GenderActivity
.
gender
==
2
)
{
gender
=
"Male"
;
}
else
{
...
...
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DACompleteScreen.java
View file @
db4713fb
...
...
@@ -167,7 +167,7 @@ public class DACompleteScreen extends AppCompatActivity {
try
{
writer
=
new
CSVWriter
(
new
FileWriter
(
csv
));
String
[]
entries
=
{
"id"
,
"child_
id
"
,
"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"
};
writer
.
writeNext
(
entries
);
List
<
String
[]>
data
=
new
ArrayList
<
String
[]>();
...
...
@@ -176,7 +176,8 @@ public class DACompleteScreen extends AppCompatActivity {
Divided
gameData
=
dataList
.
get
(
i
);
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
gameData
.
getChildID
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
...
...
@@ -257,7 +258,7 @@ public class DACompleteScreen extends AppCompatActivity {
canvas
.
drawText
(
"Age : "
+
AgeActivity
.
age
,
150
,
250
,
title
);
String
gender
;
if
(
GenderActivity
.
gender
==
0
)
{
if
(
GenderActivity
.
gender
==
2
)
{
gender
=
"Male"
;
}
else
{
...
...
app/src/main/java/com/anuththara18/attentionassessment/focused/FACompleteScreen.java
View file @
db4713fb
...
...
@@ -167,7 +167,7 @@ public class FACompleteScreen extends AppCompatActivity {
try
{
writer
=
new
CSVWriter
(
new
FileWriter
(
csv
));
String
[]
entries
=
{
"id"
,
"child_
id
"
,
"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"
};
writer
.
writeNext
(
entries
);
List
<
String
[]>
data
=
new
ArrayList
<
String
[]>();
...
...
@@ -176,7 +176,9 @@ public class FACompleteScreen extends AppCompatActivity {
Focused
gameData
=
dataList
.
get
(
i
);
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
gameData
.
getChildID
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
...
...
@@ -257,7 +259,7 @@ public class FACompleteScreen extends AppCompatActivity {
canvas
.
drawText
(
"Age : "
+
AgeActivity
.
age
,
150
,
250
,
title
);
String
gender
;
if
(
GenderActivity
.
gender
==
0
)
{
if
(
GenderActivity
.
gender
==
2
)
{
gender
=
"Male"
;
}
else
{
...
...
app/src/main/java/com/anuththara18/attentionassessment/gender/GenderActivity.java
View file @
db4713fb
...
...
@@ -26,7 +26,7 @@ public class GenderActivity extends AppCompatActivity {
ImageView
girl_img
,
boy_img
;
TextView
boy_txt
,
girl_txt
,
next
,
previous
,
selectGender
;
public
static
int
gender
=
0
;
public
static
int
gender
=
2
;
int
click
=
1
;
...
...
@@ -86,7 +86,7 @@ public class GenderActivity extends AppCompatActivity {
girl_txt
.
setAlpha
(
0.5f
);
boy_img
.
setImageAlpha
(
255
);
boy_txt
.
setAlpha
(
1
f
);
gender
=
0
;
// boy
gender
=
2
;
// boy
Log
.
d
(
"gender"
,
String
.
valueOf
(
gender
));
}
}
...
...
app/src/main/java/com/anuththara18/attentionassessment/selective/SelectiveACompleteScreen.java
View file @
db4713fb
...
...
@@ -166,7 +166,7 @@ public class SelectiveACompleteScreen extends AppCompatActivity {
try
{
writer
=
new
CSVWriter
(
new
FileWriter
(
csv
));
String
[]
entries
=
{
"id"
,
"child_
id
"
,
"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"
};
writer
.
writeNext
(
entries
);
List
<
String
[]>
data
=
new
ArrayList
<
String
[]>();
...
...
@@ -175,7 +175,9 @@ public class SelectiveACompleteScreen extends AppCompatActivity {
Selective
gameData
=
dataList
.
get
(
i
);
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
gameData
.
getChildID
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
2
)),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
...
...
@@ -222,7 +224,7 @@ public class SelectiveACompleteScreen extends AppCompatActivity {
canvas
.
drawText
(
"Age : "
+
AgeActivity
.
age
,
150
,
250
,
title
);
String
gender
;
if
(
GenderActivity
.
gender
==
0
)
{
if
(
GenderActivity
.
gender
==
2
)
{
gender
=
"Male"
;
}
else
{
...
...
app/src/main/java/com/anuththara18/attentionassessment/sustained/SA1CompleteScreen.java
View file @
db4713fb
...
...
@@ -168,7 +168,7 @@ public class SA1CompleteScreen extends AppCompatActivity {
try
{
writer
=
new
CSVWriter
(
new
FileWriter
(
csv
));
String
[]
entries
=
{
"id"
,
"child_
id
"
,
"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"
};
writer
.
writeNext
(
entries
);
List
<
String
[]>
data
=
new
ArrayList
<
String
[]>();
...
...
@@ -177,7 +177,8 @@ public class SA1CompleteScreen extends AppCompatActivity {
Sustained
gameData
=
dataList
.
get
(
i
);
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
gameData
.
getChildID
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
...
...
@@ -257,7 +258,7 @@ public class SA1CompleteScreen extends AppCompatActivity {
canvas
.
drawText
(
"Age : "
+
AgeActivity
.
age
,
150
,
250
,
title
);
String
gender
;
if
(
GenderActivity
.
gender
==
0
)
{
if
(
GenderActivity
.
gender
==
2
)
{
gender
=
"Male"
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment