[virtualcommons-svn] commit/irrigation: alllee: adding maximumPayment as a configuration parameter,
Status: Beta
Brought to you by:
alllee
From: Bitbucket <com...@bi...> - 2012-03-27 03:56:43
|
1 new commit in irrigation: https://bitbucket.org/virtualcommons/irrigation/changeset/1dd76dc52535/ changeset: 1dd76dc52535 user: alllee date: 2012-03-27 05:56:41 summary: adding maximumPayment as a configuration parameter, specifying round-duration explicitly in server configuration affected #: 6 files diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java --- a/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java +++ b/src/main/java/edu/asu/commons/irrigation/conf/ServerConfiguration.java @@ -82,13 +82,17 @@ return getDoubleProperty("showup-payment", 5.0d); } + public double getMaximumPayment() { + return getDoubleProperty("maximum-payment", 40.0d); + } + public String getInitialInstructions() { ST template = createStringTemplate(getProperty("initial-instructions")); - template.groupThatCreatedThisInstance.registerRenderer(Number.class, new NumberRenderer()); NumberFormat formatter = NumberFormat.getCurrencyInstance(); template.add("showUpPayment", formatter.format(getShowUpPayment())); template.add("dollarsPerToken", formatter.format(getDollarsPerToken())); template.add("quizCorrectAnswerReward", formatter.format(getQuizCorrectAnswerReward())); + template.add("maximumPayment", formatter.format(getMaximumPayment())); return template.render(); } diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/resources/configuration/asu/2011/pretest/irrigation.xml --- a/src/main/resources/configuration/asu/2011/pretest/irrigation.xml +++ b/src/main/resources/configuration/asu/2011/pretest/irrigation.xml @@ -31,6 +31,7 @@ <entry key='field-of-vision'>1</entry><entry key="wait-for-participants">true</entry><entry key="number-of-rounds">22</entry> +<entry key='round-duration'>50</entry><entry key="q1">49</entry><entry key="a1">49%</entry> @@ -67,8 +68,8 @@ <h1>Instructions</h1><hr><p> -You have already earned {showUpPayment} dollars by showing up for this exercise. You -can earn more, up to a maximum of about 45 dollars, by participating in this +You have already earned {showUpPayment} by showing up for this exercise. You +can earn more, up to a maximum of about {maximumPayment}, by participating in this experiment which will take about an hour to an hour and a half. The amount of money you earn depends on your decisions AND the decisions of other people in this room over the course of the experiment. diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/resources/configuration/asu/2011/t1/irrigation.xml --- a/src/main/resources/configuration/asu/2011/t1/irrigation.xml +++ b/src/main/resources/configuration/asu/2011/t1/irrigation.xml @@ -31,6 +31,7 @@ <entry key='field-of-vision'>1</entry><entry key="wait-for-participants">true</entry><entry key="number-of-rounds">22</entry> +<entry key='round-duration'>50</entry><entry key="q1">49</entry><entry key="a1">49%</entry> @@ -67,8 +68,8 @@ <h1>Instructions</h1><hr><p> -You have already earned {showUpPayment} dollars by showing up for this exercise. You -can earn more, up to a maximum of about 45 dollars, by participating in this +You have already earned {showUpPayment} by showing up for this exercise. You +can earn more, up to a maximum of about {maximumPayment}, by participating in this experiment which will take about an hour to an hour and a half. The amount of money you earn depends on your decisions AND the decisions of other people in this room over the course of the experiment. diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/resources/configuration/asu/2011/t2/irrigation.xml --- a/src/main/resources/configuration/asu/2011/t2/irrigation.xml +++ b/src/main/resources/configuration/asu/2011/t2/irrigation.xml @@ -31,6 +31,7 @@ <entry key='field-of-vision'>1</entry><entry key="wait-for-participants">true</entry><entry key="number-of-rounds">22</entry> +<entry key='round-duration'>50</entry><entry key="q1">49</entry><entry key="a1">49%</entry> @@ -67,8 +68,8 @@ <h1>Instructions</h1><hr><p> -You have already earned {showUpPayment} dollars by showing up for this exercise. You -can earn more, up to a maximum of about 45 dollars, by participating in this +You have already earned {showUpPayment} by showing up for this exercise. You +can earn more, up to a maximum of about {maximumPayment}, by participating in this experiment which will take about an hour to an hour and a half. The amount of money you earn depends on your decisions AND the decisions of other people in this room over the course of the experiment. diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/resources/configuration/asu/2011/t3/irrigation.xml --- a/src/main/resources/configuration/asu/2011/t3/irrigation.xml +++ b/src/main/resources/configuration/asu/2011/t3/irrigation.xml @@ -31,6 +31,7 @@ <entry key='field-of-vision'>1</entry><entry key="wait-for-participants">true</entry><entry key="number-of-rounds">22</entry> +<entry key='round-duration'>50</entry><entry key="q1">49</entry><entry key="a1">49%</entry> @@ -67,8 +68,8 @@ <h1>Instructions</h1><hr><p> -You have already earned {showUpPayment} dollars by showing up for this exercise. You -can earn more, up to a maximum of about 45 dollars, by participating in this +You have already earned {showUpPayment} by showing up for this exercise. You +can earn more, up to a maximum of about {maximumPayment}, by participating in this experiment which will take about an hour to an hour and a half. The amount of money you earn depends on your decisions AND the decisions of other people in this room over the course of the experiment. diff -r c3913959c96218a3ab8ae3eccff6272372b4679d -r 1dd76dc525351d2433fc0a3e9459575cdea10dd3 src/main/resources/configuration/asu/2011/t4/irrigation.xml --- a/src/main/resources/configuration/asu/2011/t4/irrigation.xml +++ b/src/main/resources/configuration/asu/2011/t4/irrigation.xml @@ -31,6 +31,7 @@ <entry key='field-of-vision'>1</entry><entry key="wait-for-participants">true</entry><entry key="number-of-rounds">22</entry> +<entry key='round-duration'>50</entry><entry key="q1">49</entry><entry key="a1">49%</entry> @@ -67,8 +68,8 @@ <h1>Instructions</h1><hr><p> -You have already earned {showUpPayment} dollars by showing up for this exercise. You -can earn more, up to a maximum of about 45 dollars, by participating in this +You have already earned {showUpPayment} by showing up for this exercise. You +can earn more, up to a maximum of about {maximumPayment}, by participating in this experiment which will take about an hour to an hour and a half. The amount of money you earn depends on your decisions AND the decisions of other people in this room over the course of the experiment. Repository URL: https://bitbucket.org/virtualcommons/irrigation/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |