[virtualcommons-svn] SF.net SVN: virtualcommons:[360] irrigation/trunk/src/main
Status: Beta
Brought to you by:
alllee
From: <al...@us...> - 2009-11-13 05:32:16
|
Revision: 360 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=360&view=rev Author: alllee Date: 2009-11-13 05:32:07 +0000 (Fri, 13 Nov 2009) Log Message: ----------- updating quiz display / configuration parameters Modified Paths: -------------- irrigation/trunk/src/main/java/edu/asu/commons/irrigation/client/ExperimentGameWindow.java irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/RoundConfiguration.java irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/irrigation.xml irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round0.xml irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round2.xml Modified: irrigation/trunk/src/main/java/edu/asu/commons/irrigation/client/ExperimentGameWindow.java =================================================================== --- irrigation/trunk/src/main/java/edu/asu/commons/irrigation/client/ExperimentGameWindow.java 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/java/edu/asu/commons/irrigation/client/ExperimentGameWindow.java 2009-11-13 05:32:07 UTC (rev 360) @@ -459,8 +459,8 @@ color = "red"; } builder.append(String.format("Your answer: <font color='%s'>%s</font><br/>", color, response)); - builder.append(String.format("Correct answer: %s<br/>", correctAnswer)); - builder.append(quizAnswers.get( "qDescriptiveAnswer" + number )).append("</p>"); + builder.append(String.format("Correct answer: %s<br/>", quizAnswers.get("a" + number))); + builder.append(quizAnswers.get( "explanation" + number )).append("</p>"); } } quizPageResponses.put(currentQuizPageNumber, builder.toString()); Modified: irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/RoundConfiguration.java =================================================================== --- irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/RoundConfiguration.java 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/RoundConfiguration.java 2009-11-13 05:32:07 UTC (rev 360) @@ -101,7 +101,7 @@ } public boolean shouldResetInfrastructureEfficiency() { - return isPracticeRound() || getBooleanProperty("reset-infrastructure-efficiency", false); + return getBooleanProperty("reset-infrastructure-efficiency", false); } public String getInstructions() { Modified: irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java =================================================================== --- irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java 2009-11-13 05:32:07 UTC (rev 360) @@ -101,9 +101,11 @@ String key = "q" + i; String answer = properties.getProperty(key); answers.put(key, answer); - String quizDescriptiveAnswerKey = "qDescriptiveAnswer" + i; - String quizDescriptiveAnswer = properties.getProperty(quizDescriptiveAnswerKey); - answers.put(quizDescriptiveAnswerKey, quizDescriptiveAnswer); + String quizExplanationKey = "explanation" + i; + String quizExplanation = properties.getProperty(quizExplanationKey); + answers.put(quizExplanationKey, quizExplanation); + String descriptiveAnswerKey = "a" + i; + answers.put(descriptiveAnswerKey, properties.getProperty(descriptiveAnswerKey)); } return answers; } Modified: irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/irrigation.xml =================================================================== --- irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/irrigation.xml 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/irrigation.xml 2009-11-13 05:32:07 UTC (rev 360) @@ -26,16 +26,39 @@ <entry key="wait-for-participants">true</entry> <entry key="number-of-rounds">17</entry> -<entry key="q1">4</entry> -<entry key="q2">identity</entry> -<entry key="q3">49</entry> -<entry key="q4">76</entry> -<entry key="q5">20</entry> -<entry key="q6">5</entry> -<entry key="q7">25</entry> -<entry key="q8">7</entry> -<entry key="q9">19</entry> -<entry key="q10">1.50</entry> +<entry key="q1">49</entry> +<entry key="a1">49%</entry> +<entry key="explanation1">An existing infrastructure efficiency of 20% + 29 tokens invested = 49% infrastructure efficiency.</entry> +<entry key="q2">5</entry> +<entry key="a2">5 cubic feet per second</entry> +<entry key="explanation2"> +<![CDATA[ +An existing infrastructure efficiency of 35% + 15 tokens invested = 50% infrastructure efficiency for the current round. +An infrastructure efficiency of 50% corresponds to a water delivery capacity +of 5 cubic feet per second. +]]> +</entry> +<entry key="q3">5</entry> +<entry key='a3'>5 cubic feet per second</entry> +<entry key="explanation3">Since there is only 30 cubic feet per second of water +available, the irrigation infrastructure capacity of 35 cubic feet per +second will not be fully used. When A opens their gate, they take 25 of the +30 cubic feet per second out of the canal, leaving 5 cubic feet per second for +B. +</entry> +<entry key="q4">25</entry> +<entry key="a4">25 cubic feet per second</entry> +<entry key="explanation4">If A has 25 cfps available and does not take any +water, the same amount is available for the people downstream. Since B, C and +D do not take water, 25 cfps is available for E.</entry> +<entry key="q5">7</entry> +<entry key="a5">7 tokens</entry> +<entry key="explanation5">If you invest 7 out of 10 tokens, you keep 3 tokens for yourself. If you apply 202 cubic feet of water to your field you will earn 4 tokens. 3 + 4 = 7 tokens </entry> +<entry key="q6">19</entry> +<entry key="a6">19 tokens</entry> +<entry key="explanation6">If you invest all 10 tokens, you keep 0 tokens from +your initial endowment. If you apply 555 cubic feet of water to your field +you will earn 19 tokens. 0 + 19 = 19 tokens.</entry> <entry key='final-instructions'> <![CDATA[ Modified: irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round0.xml =================================================================== --- irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round0.xml 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round0.xml 2009-11-13 05:32:07 UTC (rev 360) @@ -4,6 +4,7 @@ <comment>Irrigation experiment round configuration</comment> <entry key="practice-round">true</entry> +<entry key='reset-infrastructure-efficiency'>true</entry> <entry key="instructions"> <![CDATA[ Modified: irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round2.xml =================================================================== --- irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round2.xml 2009-11-13 04:17:26 UTC (rev 359) +++ irrigation/trunk/src/main/resources/configuration/asu-fall-2009/mixed-pretest/round2.xml 2009-11-13 05:32:07 UTC (rev 360) @@ -11,7 +11,7 @@ <p> This is the first actual round of the experiment. Before this round begins you will have the opportunity to text chat with the other participant for -forty seconds, then decide on your level of investment in the irrigation +sixty seconds, then decide on your level of investment in the irrigation infrastructure. After the total irrigation infrastructure investment has been determined you will begin the experiment and make decisions on when to open your irrigation gates and grow crops. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |