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
fd0a8c64
Commit
fd0a8c64
authored
May 08, 2022
by
Anuththara18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Analysing factors addded- Divided Attention
parent
03bca415
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
83 deletions
+133
-83
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DACompleteScreen.java
...ttentionassessment/dividedattention/DACompleteScreen.java
+6
-4
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/Divided.java
...thara18/attentionassessment/dividedattention/Divided.java
+53
-1
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
...ionassessment/dividedattention/DividedAttentionGame1.java
+74
-78
No files found.
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DACompleteScreen.java
View file @
fd0a8c64
...
...
@@ -156,12 +156,14 @@ public class DACompleteScreen extends AppCompatActivity {
dataList
.
add
(
new
Divided
(
cursorEmployees
.
getInt
(
0
),
cursorEmployees
.
getInt
(
1
),
cursorEmployees
.
get
Int
(
2
),
cursorEmployees
.
get
String
(
2
),
cursorEmployees
.
getInt
(
3
),
cursorEmployees
.
getInt
(
4
),
cursorEmployees
.
getInt
(
5
),
cursorEmployees
.
getInt
(
6
),
cursorEmployees
.
getInt
(
7
)
cursorEmployees
.
getInt
(
7
),
cursorEmployees
.
getInt
(
8
),
cursorEmployees
.
getString
(
9
)
));
}
while
(
cursorEmployees
.
moveToNext
());
}
...
...
@@ -191,14 +193,14 @@ public class DACompleteScreen extends AppCompatActivity {
data
.
add
(
new
String
[]{
String
.
valueOf
(
gameData
.
getId
()),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
0
)),
String
.
valueOf
(
String
.
valueOf
(
gameData
.
getChildID
()).
charAt
(
1
)),
String
.
valueOf
(
"null"
),
String
.
valueOf
(
gameData
.
getSequence_of_responses
()
),
String
.
valueOf
(
gameData
.
getTotalCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCorrectResponses
()),
String
.
valueOf
(
gameData
.
getNoOfCommissionErrors
()),
String
.
valueOf
(
gameData
.
getNoOfOmmissionErrors
()),
String
.
valueOf
(
gameData
.
getMeanReactionTime
()),
String
.
valueOf
(
gameData
.
getTotalDuration
()),
String
.
valueOf
(
ParentDetailsActivity
.
diagnosis
)
String
.
valueOf
(
gameData
.
getDiagnosis
()
)
});
}
...
...
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/Divided.java
View file @
fd0a8c64
...
...
@@ -4,56 +4,108 @@ public class Divided {
private
int
id
;
private
int
childID
;
private
String
sequence_of_responses
;
private
int
totalCorrectResponses
;
private
int
noOfCorrectResponses
;
private
int
noOfCommissionErrors
;
private
int
noOfOmmissionErrors
;
private
int
meanReactionTime
;
private
int
totalDuration
;
private
String
diagnosis
;
public
Divided
(
int
id
,
int
childID
,
int
totalCorrectResponses
,
int
noOfCorrectResponses
,
int
noOfCommissionErrors
,
int
noOfOmmissionErrors
,
int
meanReactionTime
,
int
totalDuration
)
{
public
Divided
(
int
id
,
int
childID
,
String
sequence_of_responses
,
int
totalCorrectResponses
,
int
noOfCorrectResponses
,
int
noOfCommissionErrors
,
int
noOfOmmissionErrors
,
int
meanReactionTime
,
int
totalDuration
,
String
diagnosis
)
{
this
.
id
=
id
;
this
.
childID
=
childID
;
this
.
sequence_of_responses
=
sequence_of_responses
;
this
.
totalCorrectResponses
=
totalCorrectResponses
;
this
.
noOfCorrectResponses
=
noOfCorrectResponses
;
this
.
noOfCommissionErrors
=
noOfCommissionErrors
;
this
.
noOfOmmissionErrors
=
noOfOmmissionErrors
;
this
.
meanReactionTime
=
meanReactionTime
;
this
.
totalDuration
=
totalDuration
;
this
.
diagnosis
=
diagnosis
;
}
public
int
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
this
.
id
=
id
;
}
public
int
getChildID
()
{
return
childID
;
}
public
void
setChildID
(
int
childID
)
{
this
.
childID
=
childID
;
}
public
String
getSequence_of_responses
()
{
return
sequence_of_responses
;
}
public
void
setSequence_of_responses
(
String
sequence_of_responses
)
{
this
.
sequence_of_responses
=
sequence_of_responses
;
}
public
int
getTotalCorrectResponses
()
{
return
totalCorrectResponses
;
}
public
void
setTotalCorrectResponses
(
int
totalCorrectResponses
)
{
this
.
totalCorrectResponses
=
totalCorrectResponses
;
}
public
int
getNoOfCorrectResponses
()
{
return
noOfCorrectResponses
;
}
public
void
setNoOfCorrectResponses
(
int
noOfCorrectResponses
)
{
this
.
noOfCorrectResponses
=
noOfCorrectResponses
;
}
public
int
getNoOfCommissionErrors
()
{
return
noOfCommissionErrors
;
}
public
void
setNoOfCommissionErrors
(
int
noOfCommissionErrors
)
{
this
.
noOfCommissionErrors
=
noOfCommissionErrors
;
}
public
int
getNoOfOmmissionErrors
()
{
return
noOfOmmissionErrors
;
}
public
void
setNoOfOmmissionErrors
(
int
noOfOmmissionErrors
)
{
this
.
noOfOmmissionErrors
=
noOfOmmissionErrors
;
}
public
int
getMeanReactionTime
()
{
return
meanReactionTime
;
}
public
void
setMeanReactionTime
(
int
meanReactionTime
)
{
this
.
meanReactionTime
=
meanReactionTime
;
}
public
int
getTotalDuration
()
{
return
totalDuration
;
}
public
void
setTotalDuration
(
int
totalDuration
)
{
this
.
totalDuration
=
totalDuration
;
}
public
String
getDiagnosis
()
{
return
diagnosis
;
}
public
void
setDiagnosis
(
String
diagnosis
)
{
this
.
diagnosis
=
diagnosis
;
}
/*
CREATE TABLE sustainedAttention (
id int NOT NULL AUTO_INCREMENT,
...
...
app/src/main/java/com/anuththara18/attentionassessment/dividedattention/DividedAttentionGame1.java
View file @
fd0a8c64
This diff is collapsed.
Click to expand it.
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