-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #257 from hpi-swa-teaching/feature/prio_vote
prio feature fertig nach 3 wochen
- Loading branch information
Showing
208 changed files
with
593 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Answers belonging currently all Questions have this type. However, this might be later split up into different question modes. | ||
Notable Instance Variables: | ||
- choicesRanking: An OrderedCollection of all the choices the participant voted. |
4 changes: 2 additions & 2 deletions
4
....class/class/newWithQuestion.andVotes..st → ....class/class/newWithQuestion.andVotes..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
class initialization | ||
newWithQuestion: aQuestion andVotes: anOrderedCollection | ||
|
||
^ LQChoicesAnswer new | ||
^ LQAnswer new | ||
questionId: aQuestion id; | ||
votedChoiceList: (anOrderedCollection collect: [:each | each description]) ; | ||
choicesRanking: (anOrderedCollection collect: [:each | each description]) ; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
choicesRanking: aChoiceList | ||
|
||
choicesRanking := aChoiceList |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQAnswer.class/instance/choicesRanking.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
choicesRanking | ||
|
||
^ choicesRanking |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQAnswer.class/instance/containsVoteForChoice..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
evaluation | ||
containsVoteForChoice: aChoice | ||
|
||
^ self choicesRanking includes: aChoice description |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/Liquid-Core.package/LQAnswer.class/instance/printDataOn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
printing | ||
printDataOn: aStream | ||
|
||
self choicesRanking ifEmpty: [^ self]. | ||
self choicesRanking | ||
collect: [:votedChoice | | ||
aStream nextPutAll: votedChoice. | ||
aStream nextPutAll: ':'] | ||
from: 1 | ||
to: self choicesRanking size - 1. | ||
|
||
aStream nextPutAll: self choicesRanking last |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
packages/Liquid-Core.package/LQAnswer.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"class" : { | ||
"newWithQuestion:andVotes:" : "Anton Eichstädt 6/5/2024 17:28" }, | ||
"instance" : { | ||
"choicesRanking" : "Anton Eichstädt 5/24/2024 15:23", | ||
"choicesRanking:" : "Anton Eichstädt 5/24/2024 15:24", | ||
"containsVoteForChoice:" : "Anton Eichstädt 5/24/2024 15:23", | ||
"id" : "JT 8/2/2022 16:59", | ||
"id:" : "JT 8/2/2022 16:59", | ||
"initialize" : "Anton Eichstädt 5/24/2024 15:24", | ||
"printDataOn:" : "Anton Eichstädt 5/24/2024 15:23", | ||
"questionId" : "JT 8/2/2022 17:01", | ||
"questionId:" : "JT 8/2/2022 17:01" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/Liquid-Core.package/LQChoicesAnswer.class/instance/containsVoteForChoice..st
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
packages/Liquid-Core.package/LQChoicesAnswer.class/instance/printDataOn..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/Liquid-Core.package/LQChoicesAnswer.class/instance/votedChoiceList..st
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/Liquid-Core.package/LQChoicesAnswer.class/instance/votedChoiceList.st
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
packages/Liquid-Core.package/LQChoicesAnswer.class/methodProperties.json
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...package/LQChoicesQuestion.class/README.md → ...age/LQMultiChoiceQuestion.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...estion.class/instance/buildEmptyAnswer.st → ...estion.class/instance/buildEmptyAnswer.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
initialize-release | ||
buildEmptyAnswer | ||
|
||
^ LQChoicesAnswer new | ||
^ LQAnswer new |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQMultiChoiceQuestion.class/instance/type.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
type | ||
|
||
^ 'multiChoice' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
A specific type of LQQuestion for Prioritisation-Questions. A LQPrioQuestion contains the choices the participant has to rank | ||
|
||
Notable Instance Variables: | ||
- choiceList: An OrderedCollection of Strings containing the Choices participants are presented. |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/addChoice..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
modifying | ||
addChoice: aChoice | ||
|
||
self choiceList add: aChoice. |
5 changes: 5 additions & 0 deletions
5
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/asString.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
converting | ||
asString | ||
|
||
self title ifNil: [^ 'Untitled Question']. | ||
^ self title |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/buildEmptyAnswer.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
initialize-release | ||
buildEmptyAnswer | ||
|
||
^ LQAnswer new |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/choiceDescriptions.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
choiceDescriptions | ||
|
||
^ self choiceList collect: [:choice | choice description] |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/choiceList..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
choiceList: aListOfChoices | ||
|
||
choiceList := aListOfChoices |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/choiceList.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
choiceList | ||
|
||
^ choiceList |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
id: aString | ||
|
||
id := aString |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/id.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
id | ||
|
||
^ id |
7 changes: 7 additions & 0 deletions
7
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
initialize-release | ||
initialize | ||
|
||
super initialize. | ||
self id: UUID new asString. | ||
self choiceList: OrderedCollection new. | ||
self numberOfChoices: (self choiceList size). |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/isVotedChoice.ValidFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
isVotedChoice: votedChoice ValidFrom: aUser | ||
|
||
^ self choiceList noneSatisfy: [:choice | (choice description = votedChoice) and: [choice excludesGroup: aUser group]] |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/maxNumberOfChoices.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
maxNumberOfChoices | ||
^ self choiceList size |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
numberOfChoices: anObject | ||
numberOfChoices := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/numberOfChoices.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
numberOfChoices | ||
^ numberOfChoices |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
title: aString | ||
|
||
title := aString |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/title.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
title | ||
|
||
^ title |
4 changes: 4 additions & 0 deletions
4
packages/Liquid-Core.package/LQPriorityQuestion.class/instance/toolTip.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
toolTip | ||
|
||
^ 'Give these options a ranking by clicking them in your favorite order! 1 should be the one you like most.' |
2 changes: 1 addition & 1 deletion
2
.../LQChoicesQuestion.class/instance/type.st → ...LQPriorityQuestion.class/instance/type.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
type | ||
|
||
^ 'choices' | ||
^ 'priority' |
21 changes: 21 additions & 0 deletions
21
packages/Liquid-Core.package/LQPriorityQuestion.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"addChoice:" : "Anton Eichstädt 6/5/2024 11:46", | ||
"asString" : "JT 8/2/2022 17:01", | ||
"buildEmptyAnswer" : "Anton Eichstädt 6/5/2024 17:40", | ||
"choiceDescriptions" : "kge 8/1/2022 18:51", | ||
"choiceList" : "JT 8/2/2022 17:01", | ||
"choiceList:" : "Anton Eichstädt 6/5/2024 11:46", | ||
"id" : "JT 8/2/2022 17:01", | ||
"id:" : "JT 8/2/2022 17:01", | ||
"initialize" : "Anton Eichstädt 6/4/2024 11:28", | ||
"isVotedChoice:ValidFrom:" : "ms 8/4/2022 21:31", | ||
"maxNumberOfChoices" : "Anton Eichstädt 6/5/2024 11:33", | ||
"numberOfChoices" : "Anton Eichstädt 6/4/2024 11:21", | ||
"numberOfChoices:" : "Anton Eichstädt 6/4/2024 11:21", | ||
"title" : "JT 8/2/2022 17:02", | ||
"title:" : "JT 8/2/2022 17:02", | ||
"toolTip" : "Anton Eichstädt 5/24/2024 15:15", | ||
"type" : "Anton Eichstädt 5/24/2024 15:11" } } |
17 changes: 17 additions & 0 deletions
17
packages/Liquid-Core.package/LQPriorityQuestion.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"category" : "Liquid-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "Anton Eichstädt 5/24/2024 15:19", | ||
"instvars" : [ | ||
"id", | ||
"title", | ||
"choiceList", | ||
"numberOfChoices" ], | ||
"name" : "LQPriorityQuestion", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/Liquid-Tests.package/LQAnswerPanelTests.class/instance/testToolTip.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
testing | ||
testToolTip | ||
|
||
self testToolTipWith: LQChoicesQuestion new | ||
self testToolTipWith: LQMultiChoiceQuestion new |
Oops, something went wrong.