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
7de4ed67
Commit
7de4ed67
authored
May 08, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Analysing factors bug fix - Divided Attention
parent
6bbb10b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
...ionassessment/dividedattention/DividedAttentionGame1.java
+15
-9
No files found.
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
View file @
7de4ed67
...
@@ -131,39 +131,39 @@ public class DividedAttentionGame1 extends AppCompatActivity {
...
@@ -131,39 +131,39 @@ public class DividedAttentionGame1 extends AppCompatActivity {
public
void
run
()
{
public
void
run
()
{
if
(
i
<
40
)
{
// 40 times
if
(
i
<
40
)
{
// 40 times
if
(
i
==
4
)
{
if
(
i
==
5
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
9
)
{
}
else
if
(
i
==
10
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
1
4
)
{
}
else
if
(
i
==
1
5
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
19
)
{
}
else
if
(
i
==
20
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
2
4
)
{
}
else
if
(
i
==
2
5
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
29
)
{
}
else
if
(
i
==
30
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
3
4
)
{
}
else
if
(
i
==
3
5
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
39
)
{
}
else
if
(
i
==
40
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
}
else
if
(
i
==
4
4
)
{
}
else
if
(
i
==
4
5
)
{
checkIfMissed
();
checkIfMissed
();
missed
=
0
;
missed
=
0
;
correctresponse
=
0
;
correctresponse
=
0
;
...
@@ -316,6 +316,12 @@ public class DividedAttentionGame1 extends AppCompatActivity {
...
@@ -316,6 +316,12 @@ public class DividedAttentionGame1 extends AppCompatActivity {
}
}
}
}
else
{
else
{
if
(
i
==
40
)
{
if
(
missed
==
0
||
missed
==
2
)
{
sequence_of_responses
.
add
(
"M"
);
Log
.
d
(
"%%%%%%%%%%%%%%%%%%"
,
String
.
valueOf
(
sequence_of_responses
));
}
}
long
gameEnd
=
System
.
currentTimeMillis
();
long
gameEnd
=
System
.
currentTimeMillis
();
long
seconds
=
(
gameEnd
-
gameStart
)
/
1000
;
long
seconds
=
(
gameEnd
-
gameStart
)
/
1000
;
if
(
noOfCorrectResponses
==
0
)
{
if
(
noOfCorrectResponses
==
0
)
{
...
...
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