virtualcommons-svn Mailing List for Virtual Commons Experiment Software (Page 66)
Status: Beta
Brought to you by:
alllee
You can subscribe to this list here.
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(21) |
Aug
(31) |
Sep
(6) |
Oct
(15) |
Nov
(2) |
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2009 |
Jan
(4) |
Feb
(6) |
Mar
(12) |
Apr
(52) |
May
(14) |
Jun
(19) |
Jul
(81) |
Aug
(115) |
Sep
(36) |
Oct
(88) |
Nov
(46) |
Dec
(58) |
2010 |
Jan
(52) |
Feb
(55) |
Mar
(48) |
Apr
(15) |
May
(5) |
Jun
(38) |
Jul
(27) |
Aug
(24) |
Sep
(28) |
Oct
(1) |
Nov
(2) |
Dec
(29) |
2011 |
Jan
(87) |
Feb
(39) |
Mar
(63) |
Apr
(42) |
May
(26) |
Jun
(53) |
Jul
(23) |
Aug
(43) |
Sep
(37) |
Oct
(25) |
Nov
(4) |
Dec
(7) |
2012 |
Jan
(73) |
Feb
(79) |
Mar
(62) |
Apr
(28) |
May
(12) |
Jun
(2) |
Jul
(9) |
Aug
(1) |
Sep
(8) |
Oct
|
Nov
(3) |
Dec
(3) |
2013 |
Jan
(8) |
Feb
(16) |
Mar
(38) |
Apr
(74) |
May
(62) |
Jun
(15) |
Jul
(49) |
Aug
(19) |
Sep
(9) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(25) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Kalin J. <kj...@as...> - 2009-08-18 22:50:53
|
I return from lunch at 14:00 On Tue, Aug 18, 2009 at 1:03 PM, Kalin Jonas <kj...@as...> wrote: > I will be at lunch starting 13:00pm (2hr) > > > On Tue, Aug 18, 2009 at 11:13 AM, Kalin Jonas <kj...@as...> wrote: > >> I come in today at 11:00am >> I will test savestrategy and change the structure of my code in >> anticipation of server-pushing, as opposed to firing queries. >> >> "9.If everything is finished, then create interface for seeing the student >> responses for admin. I do not think admin would know how to fire query to >> database and understand the data. " >> I would gladly be working on this, if there were services or some way for >> me to access the database through flex. >> > > |
From: <kj...@us...> - 2009-08-18 22:43:53
|
Revision: 261 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=261&view=rev Author: kjonas Date: 2009-08-18 22:43:42 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Modified Paths: -------------- mentalmodels/trunk/flex/src/StartGame.mxml mentalmodels/trunk/flex/src/actionscript/Game.as mentalmodels/trunk/flex/src/actionscript/PageDisplay.as mentalmodels/trunk/flex/src/actionscript/StudentStrategy.as mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf mentalmodels/trunk/src/main/webapp/StartGame.swf Modified: mentalmodels/trunk/flex/src/StartGame.mxml =================================================================== --- mentalmodels/trunk/flex/src/StartGame.mxml 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/StartGame.mxml 2009-08-18 22:43:42 UTC (rev 261) @@ -1,24 +1,54 @@ <?xml version="1.0" encoding="utf-8"?> -<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> - -<mx:Script> - <![CDATA[ - import actionscript.Block; +<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> - import mx.rpc.events.ResultEvent; - import mx.rpc.events.FaultEvent; - import mx.controls.Alert; - - - public function faultHandler(event:FaultEvent):void - { - Alert.show(event.fault.getStackTrace()); - } + <mx:VBox visible="{pageNum==0}" horizontalAlign="center"> + <mx:HBox horizontalAlign="right" width="330" id="firstBox"> + <mx:Label text="$USD per lb of fish:"/> + <mx:TextInput id="txtMoney"/> + </mx:HBox> + <mx:HBox horizontalAlign="right" width="{firstBox.width}"> + <mx:Label text="Brief description of game:"/> + <mx:TextArea id="txtDescription"/> + </mx:HBox> + <mx:Button label="Create Game" id="btnCreateGame" click="false"/> + <mx:HBox horizontalAlign="right" width="{firstBox.width}"> + <mx:Label text="Game ID:"/> + <mx:TextInput id="txtGameID" enabled="false"/> + </mx:HBox> - ]]> -</mx:Script> + <mx:Spacer height="30"/> + + <mx:Text text="Click the Start Game button only after all students have connected using the above ID." width="300"/> + <mx:Button label="Start Game" id="btnStartGame" click="feed.start()"/> + </mx:VBox> - <mx:Button label="Start Game" id="btnStartGame" horizontalCenter="-6" verticalCenter="-46" click="feed.start()"/> - <mx:RemoteObject id="feed" destination="feed" fault="{faultHandler(event)}" /> + <mx:VBox visible="{pageNum==1}"> + <mx:Button label="Get Responses" id="btnGetResponses" click="getResponses()"/> + <mx:VBox id="responsesContent"/> + </mx:VBox> + + <mx:RemoteObject id="feed" destination="feed" fault="{faultHandler(event)}" /> + + <mx:Script> + <![CDATA[ + import actionscript.Block; + import mx.rpc.events.ResultEvent; + import mx.rpc.events.FaultEvent; + import mx.controls.Alert; + + [Bindable]private var pageNum:int = 0; + + public function faultHandler(event:FaultEvent):void + { + Alert.show(event.fault.getStackTrace()); + } + + public function getResponses():void + { + + } + ]]> + </mx:Script> + </mx:Application> Modified: mentalmodels/trunk/flex/src/actionscript/Game.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/Game.as 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/actionscript/Game.as 2009-08-18 22:43:42 UTC (rev 261) @@ -11,7 +11,7 @@ public var numberOfLocations:int; public var maxDays:int; public var maxFishHarvest:int; - public var timestamp:Timestamp; + public var timestamp:Date; public var title:String; public var description:String; public var money:Number; Modified: mentalmodels/trunk/flex/src/actionscript/PageDisplay.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/PageDisplay.as 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/actionscript/PageDisplay.as 2009-08-18 22:43:42 UTC (rev 261) @@ -13,14 +13,12 @@ import mx.collections.ArrayCollection; import mx.containers.VBox; - import mx.controls.Alert; import mx.controls.Text; - [Bindable] public class PageDisplay { -public var msg:String = ""; + public var msg:String = ""; public var pages:ArrayCollection; public var minPagesRead:int; Modified: mentalmodels/trunk/flex/src/actionscript/StudentStrategy.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/StudentStrategy.as 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/actionscript/StudentStrategy.as 2009-08-18 22:43:42 UTC (rev 261) @@ -8,12 +8,13 @@ public class StudentStrategy { public var id:Number; + public var student:actionscript.Student; public var allocationSeqNo:int; public var days:int; public var threshold:Number; public var location:Location; public var repeatedDecisions:Boolean; public var dayOutput:ArrayCollection; - + public var roundConfig:actionscript.Round; } } \ No newline at end of file Modified: mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-08-18 22:43:42 UTC (rev 261) @@ -46,8 +46,7 @@ </mx:State> </mx:states> - <!-- <mx:Canvas id="content" x="5" y="5" width="750" height="470"/> --> - <mx:Canvas id="content" x="0" y="0" width="720" height="475"/> + <mx:Canvas id="content" x="0" y="0" width="720" height="460"/> <mx:Canvas id="expiredContent" x="-1" y="-1" width="1" height="1" visible="false"/> <mx:HBox id="buttonBar" left="{(width-buttonBar.width)/2}" bottom="0" horizontalGap="100"> @@ -60,10 +59,10 @@ <mx:RemoteObject id="roundService" destination="roundService" fault="faultHandler(event)"> <mx:method name="getBlock" result="blockResultHandler(event)"/> + <mx:method name="getCurrentRound" result="roundResultHandler(event)"/> </mx:RemoteObject> <mx:RemoteObject id="startupService" destination="startupService" fault="faultHandler(event)"> <mx:method name="createStudent" result="studentResultHandler(event)"/> - <mx:method name="getFirstModule" result="moduleResultHandler(event)"/> </mx:RemoteObject> <mx:RemoteObject id="answeringService" destination="answeringService" fault="faultHandler(event)"> <mx:method name="saveStrategy" result="strategyResultHandler(event)"/> @@ -106,6 +105,8 @@ public var currentModuleNumber:int = 0; public var currentBlock:Block = null; public var currentBlockNumber:int = 0; + public var currentRound:Round = null; + public var currentRoundNumber:int = 0; [Bindable] public var locations:ArrayCollection = new ArrayCollection([newLocation(0, 0)]); public var blockLoader:Function = null; @@ -117,6 +118,7 @@ public var instructionsLoaded:Boolean = false; [Bindable] public var studentObject:actionscript.Student; + [Bindable] public var roundObject:actionscript.Round; private function newLocation(maxCapacity:Number,growth:Number):Location { @@ -130,9 +132,7 @@ [Bindable] public var randomNumbers:String; private function ack(event:MessageAckEvent):void { - //chart.setVisible(true); randomNumbers = event.message.body as String; - //Alert.show("in ack method" + randomNumbers); } public function init():void @@ -144,7 +144,6 @@ { btnForward.enabled = btnBack.enabled = btnReset.enabled = true; instructionsLoaded = true; -// instructions.moduleNumber = currentModuleNumber; currentState = "instructions"; } private function sendBlockQuestions():void @@ -242,10 +241,16 @@ studentResponse.question = null; var strategy:StrategyDesignQuestionC = StrategyDesignQuestionC(curr.getChildAt(j)); - answeringService.saveStrategy(strategy.toDatabaseObject()); + var tempDBObjects:ArrayCollection = strategy.toDatabaseObject(); + + for(var k:int=0;k<tempDBObjects.length;k++) + { + (tempDBObjects.getItemAt(k) as StudentStrategy).student = studentObject; + (tempDBObjects.getItemAt(k) as StudentStrategy).roundConfig = roundObject; + } + + answeringService.saveStrategy(tempDBObjects); } -// if(curr.getChildAt(j) is StrategyDesignQuestionC) -// Alert.show("strategy found"); if(studentResponse.question != null) { @@ -254,19 +259,6 @@ } } -// var str:String = ""; -// for(var q:int=0;q<responseList.length;q++) -// { -// str += "null:"; -// str += (responseList.getItemAt(q) == null); -// str += "\n"; -// str += "response:"; -// str += (responseList.getItemAt(q) as StudentResponse).response; -// -// str += "\n"; -// str += "\n"; -// } -// Alert.show(str); answeringService.saveQuestion(responseList); } @@ -276,16 +268,21 @@ } private function getNextBlock():void { - if(currentBlock != null) sendBlockQuestions(); currentBlock = null; currentBlockNumber++; //server request roundService.getBlock(); -// blockResultHandler(new ResultEvent("",false,true,makeBlock())); } private function blockResultHandler(event:ResultEvent):void { + // save questions from previous Block + if(currentBlock != null) + { + sendBlockQuestions(); + } + + // update with new block currentBlock = (event.result as actionscript.Block); if(currentBlock == null @@ -303,8 +300,12 @@ gotoInstructions(); } + // start timer to alert students to hurry shell.setProgressBarTime(0,0,currentBlock.duration); shell.progressBarInit(); + + // get the present round; hopefully the strategy design has been finished by now + roundService.getCurrentRound(); } private function moduleResultHandler(event:ResultEvent):void { @@ -330,6 +331,11 @@ gotoInstructions(); } } + private function roundResultHandler(event:ResultEvent):void + { + currentRound = event.result as Round; + currentRoundNumber = currentRound.id; + } public function getLocation():void { @@ -340,7 +346,6 @@ if(event.result is ArrayCollection) { locations = event.result as ArrayCollection; -// Alert.show("locations received: "+locations.length); } } private function strategyResultHandler(event:ResultEvent):void @@ -362,7 +367,6 @@ private function messageHandler(message:IMessage):void { randomNumbers = message.body as String; -// Alert.show( ""+randomNumbers); } public function back():Boolean @@ -460,98 +464,6 @@ } } - public function makeBlock():Block - { - var block1:Block = new Block(); - try{ - var questionGroups1:ArrayCollection = new ArrayCollection(); - var qg0:QuestionGroup = new QuestionGroup(); - var qg1:QuestionGroup = new QuestionGroup(); - var qg2:QuestionGroup = new QuestionGroup(); - var qg3:QuestionGroup = new QuestionGroup(); - var qg4:QuestionGroup = new QuestionGroup(); - var qg5:QuestionGroup = new QuestionGroup(); - var qg6:QuestionGroup = new QuestionGroup(); - qg0.questions = new ArrayCollection(); - qg1.questions = new ArrayCollection(); - qg2.questions = new ArrayCollection(); - qg3.questions = new ArrayCollection(); - qg4.questions = new ArrayCollection(); - qg5.questions = new ArrayCollection(); - qg6.questions = new ArrayCollection(); - block1.questionGroups = new ArrayCollection(); - - // create questions - var ddq1:Question = new Question(); - ddq1.question = "dayByDayDecisionsQuestion"; - ddq1.type = "dayByDayDecisions"; - - var cat1:Categorical = new Categorical(); - cat1.question = "categoricalQuestion"; - cat1.type = "categorical"; - cat1.categoricalOptions = new ArrayCollection(); - - var for1:Question = new Question(); - for1.question = "forecastingFishQuestion"; - for1.type = "forecastingFishermen"; - var for2:Question = new Question(); - for2.question = "forecastingFishermenQuestion"; - for2.type = "forecastingFish"; - - var psy1:Psychometric = new Psychometric(); - psy1.question = "psychometricQuestionBipolar"; - psy1.type = "psychometric"; - psy1.maxSliderValue = 10; - psy1.choices = new ArrayCollection(); - psy1.choices.addItem("Highly Agree"); - psy1.choices.addItem("Neutral"); - psy1.choices.addItem("Highly Disagree"); - - var psy2:Psychometric = new Psychometric(); - psy2.question = "psychometricQuestionUnipolar"; - psy2.type = "psychometric"; - psy2.maxSliderValue = 10; - psy2.choices = new ArrayCollection(); - psy2.choices.addItem("Strong"); - psy2.choices.addItem("Neutral"); - - var str1:Question = new Question(); - str1.question = "strategyDesignQuestion"; - str1.type = "strategyDesign"; - - var txt1:Question = new Question(); - txt1.question = "textQuestion"; - txt1.type = "text"; - - // insert questions into groups - qg0.questions.addItem(ddq1); - qg1.questions.addItem(cat1); - qg2.questions.addItem(for1); - qg3.questions.addItem(for2); - qg4.questions.addItem(psy1); - qg4.questions.addItem(psy2); - qg5.questions.addItem(str1); - qg6.questions.addItem(txt1); - - qg1.description = "testDesc"; - qg1.header = "testHead"; - - block1.questionGroups.addItem(qg0); - block1.questionGroups.addItem(qg1); - block1.questionGroups.addItem(qg2); - block1.questionGroups.addItem(qg3); - block1.questionGroups.addItem(qg4); - block1.questionGroups.addItem(qg5); - block1.questionGroups.addItem(qg6); - - - }catch(errObject:Error){ - Alert.show("block creation failure\n" + - errObject.message + "\n" + errObject.getStackTrace()); - } - return block1; - } - ]]> </mx:Script> Modified: mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-08-18 22:35:46 UTC (rev 260) +++ mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-08-18 22:43:42 UTC (rev 261) @@ -35,6 +35,7 @@ <mx:Script> <![CDATA[ + import actionscript.Round; import actionscript.Location; import actionscript.StudentStrategy; import actionscript.questions.Question; Modified: mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf =================================================================== (Binary files differ) Modified: mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf =================================================================== (Binary files differ) Modified: mentalmodels/trunk/src/main/webapp/StartGame.swf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <see...@us...> - 2009-08-18 22:35:53
|
Revision: 260 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=260&view=rev Author: seematalele Date: 2009-08-18 22:35:46 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-18 22:24:40 UTC (rev 259) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-18 22:35:46 UTC (rev 260) @@ -327,19 +327,6 @@ -- Table structure for table `grp` -- -DROP TABLE IF EXISTS `grp`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `grp` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `grp_number` int(11) NOT NULL, - `game_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `FK190E57AC42F73` (`game_id`), - CONSTRAINT `FK190E57AC42F73` FOREIGN KEY (`game_id`) REFERENCES `game` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - -- -- Dumping data for table `grp` -- @@ -684,24 +671,6 @@ -- Table structure for table `student` -- -DROP TABLE IF EXISTS `student`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `student` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `birth_year` int(11) DEFAULT NULL, - `gender` varchar(255) DEFAULT NULL, - `major` varchar(255) DEFAULT NULL, - `semester` varchar(255) DEFAULT NULL, - `student_no` int(11) DEFAULT NULL, - `timestamp` datetime DEFAULT NULL, - `group_id` bigint(20) DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `FK8FFE823B65663181` (`group_id`), - CONSTRAINT `FK8FFE823B65663181` FOREIGN KEY (`group_id`) REFERENCES `grp` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; - -- -- Dumping data for table `student` -- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <see...@us...> - 2009-08-18 22:24:54
|
Revision: 259 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=259&view=rev Author: seematalele Date: 2009-08-18 22:24:40 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Modified Paths: -------------- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-18 22:14:33 UTC (rev 258) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-18 22:24:40 UTC (rev 259) @@ -132,8 +132,7 @@ </bean> <bean id='startupService' class='edu.asu.commons.mme.service.StartupService'> - <property name='roundService' ref='roundService'/> - <property name='studentService' ref='studentService'/> + </bean> <bean id='locationService' class='edu.asu.commons.mme.service.LocationService'> @@ -160,6 +159,7 @@ <bean id="startGame" class="edu.asu.commons.mme.service.StartGame"> <property name='roundService' ref='roundService'/> <property name='locationService' ref='locationService'/> + <property name='studentService' ref='studentService'/> </bean> <bean id="feed" class="edu.asu.commons.mme.service.Feed"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <see...@us...> - 2009-08-18 22:14:39
|
Revision: 258 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=258&view=rev Author: seematalele Date: 2009-08-18 22:14:33 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Written code to push student list to the clients. Modified Paths: -------------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-18 21:56:49 UTC (rev 257) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-18 22:14:33 UTC (rev 258) @@ -1,5 +1,7 @@ package edu.asu.commons.mme.service; +import java.util.List; + import edu.asu.commons.mme.entity.Block; import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.ModuleRoundConfig; @@ -45,9 +47,9 @@ return roundService.createGame(game); } - public void assignGroups() + public List<Student> assignGroups() { - studentService.assignGroups(); + return studentService.assignGroups(); } /** Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-18 21:56:49 UTC (rev 257) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-18 22:14:33 UTC (rev 258) @@ -1,16 +1,18 @@ package edu.asu.commons.mme.service; +import java.util.ArrayList; +import java.util.List; + import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; -import org.springframework.context.ApplicationEvent; -import org.springframework.context.ApplicationListener; -import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.transaction.annotation.Transactional; -import edu.asu.commons.mme.dao.HibernateGameDao; import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.Student; +import flex.messaging.MessageBroker; +import flex.messaging.messages.AsyncMessage; +import flex.messaging.util.UUIDUtils; @Transactional public class StartupService implements ApplicationContextAware { @@ -36,15 +38,32 @@ public void assignGroups() { - getStartGame().assignGroups(); + + MessageBroker msgBroker = MessageBroker.getMessageBroker(null); + String clientID = UUIDUtils.createUUID(); + AsyncMessage msg = new AsyncMessage(); + msg.setDestination("DataPush"); + //msg.setHeader("DSSubtopic", "hello"); + msg.setClientId(clientID); + msg.setMessageId(UUIDUtils.createUUID()); + msg.setTimestamp(System.currentTimeMillis()); + List<Student> students = new ArrayList<Student>(); + + msg.setBody(students); + System.out.println("Message broker is: "+ msgBroker); + System.out.println("Students size is: " + students.size()); + + msgBroker.routeMessageToService(msg, null); + } public void startGame() { //push assign groups to all the students + assignGroups(); //start the game - + this.startGame.run(); } public void stop() { @@ -65,7 +84,7 @@ try{ if (startGame == null) { this.startGame = (StartGame)ctx.getBean("startGame"); - //this.startGame.run(); + } }catch(Exception e) { Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-18 21:56:49 UTC (rev 257) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-18 22:14:33 UTC (rev 258) @@ -26,9 +26,8 @@ public class StudentService extends Service.Base<Student, HibernateStudentDao> { HibernateGroupDao groupDao; + private List<Student> studentWithGroupsAssigned = new ArrayList<Student>(); - - private List<Student> students = new ArrayList<Student>(); public Student createStudent(Student student) { @@ -44,11 +43,15 @@ } else return null; + initializeStudent(student); + + return student; + } + + private void initializeStudent(Student student) { Hibernate.initialize(student); Hibernate.initialize(student.getGame()); Hibernate.initialize(student.getGroup()); - - return student; } public boolean checkStudentAlreadyExists(Student student) @@ -63,10 +66,9 @@ } - public void assignGroups() + public List<Student> assignGroups() { //write an algorithm to form groups - int totalStudents = students.size(); int noOfGroupsWithSize3=0; int noOfGroupsWithSize4=0; @@ -118,6 +120,7 @@ assignGroupstoStudents(3,noOfGroupsWithSize3); } + return studentWithGroupsAssigned; } @@ -140,6 +143,9 @@ //assign student no and group to each student student.setStudentNo(studentNo); student.setGroup(grp); + save(student); + initializeStudent(student); + studentWithGroupsAssigned.add(student); students.remove(i); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <see...@us...> - 2009-08-18 21:56:59
|
Revision: 257 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=257&view=rev Author: seematalele Date: 2009-08-18 21:56:49 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Created the HibernateGroupDao Modified Paths: -------------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/Feed.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml Added Paths: ----------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateGroupDao.java Added: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateGroupDao.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateGroupDao.java (rev 0) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateGroupDao.java 2009-08-18 21:56:49 UTC (rev 257) @@ -0,0 +1,11 @@ +package edu.asu.commons.mme.dao; + +import edu.asu.commons.mme.entity.Group; + +public class HibernateGroupDao extends HibernateDao<Group> { + + public HibernateGroupDao() + { + super(Group.class); + } +} Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java 2009-08-18 21:56:49 UTC (rev 257) @@ -50,6 +50,8 @@ private String gender; + private String gameCode; + public Long getId() { return id; } @@ -122,4 +124,12 @@ return game; } + public void setGameCode(String gameCode) { + this.gameCode = gameCode; + } + + public String getGameCode() { + return gameCode; + } + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/Feed.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/Feed.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/Feed.java 2009-08-18 21:56:49 UTC (rev 257) @@ -43,8 +43,6 @@ } - - /*@Override public Object invoke(Message msg) { // TODO Auto-generated method stub Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-18 21:56:49 UTC (rev 257) @@ -60,9 +60,24 @@ currentGame = new Game(); currentGame = game; getGameDao().save(currentGame); + currentGame.setDescription(currentGame.getDescription()+currentGame.getId()); + getGameDao().save(currentGame); setCurrentGame(currentGame); + initializeCurrentGame(); return getCurrentGame(); } + private void initializeCurrentGame() { + // TODO Auto-generated method stub + Hibernate.initialize(currentGame); + Hibernate.initialize(currentGame.getCurrentBlock()); + Hibernate.initialize(currentGame.getCurrentRound()); + Iterator<Round> rounds = currentGame.getRounds().iterator(); + while(rounds.hasNext()) + { + initializeRound(rounds.next()); + } + } + public Module getNextModule(int sequenceNo) { return getModule(sequenceNo); @@ -487,12 +502,12 @@ public Round getCurrentRound() { - initializeCurrentRound(); + initializeRound(currentRound); return currentRound; } - private void initializeCurrentRound() { + private void initializeRound(Round currentRound) { // TODO Auto-generated method stub Hibernate.initialize(currentRound); @@ -508,7 +523,6 @@ { Hibernate.initialize(roundlocations.get(k)); } - } /*public void setStartModule(Boolean startModule) { Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-18 21:56:49 UTC (rev 257) @@ -1,7 +1,9 @@ package edu.asu.commons.mme.service; import edu.asu.commons.mme.entity.Block; +import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.ModuleRoundConfig; +import edu.asu.commons.mme.entity.Student; import flex.messaging.MessageBroker; import flex.messaging.messages.AsyncMessage; import flex.messaging.util.UUIDUtils; @@ -12,10 +14,9 @@ private RoundService roundService; private LocationService locationService; private DayByDayDecisionsService dayBydayDecisionService; - - + private StudentService studentService; private ModuleRoundConfig currentModuleRoundConfig; - + public StartGame() { @@ -25,6 +26,30 @@ setRunning(true); } + + public Student createStudent(Student student) { + Game game = new Game(); + game = roundService.getCurrentGame(); + Student studentReturn = null; + if(game.getDescription() == student.getGameCode()) + { + student.setGame(game); + studentReturn = new Student(); + studentReturn = studentService.createStudent(student); + } + return studentReturn; + } + + public Game createGame(Game game) + { + return roundService.createGame(game); + } + + public void assignGroups() + { + studentService.assignGroups(); + } + /** * 1)Initially first block will get pushed to all the clients. * 2)get timer for that block @@ -38,12 +63,12 @@ Block block = new Block(); //roundService.test(); - + MessageBroker msgBroker = MessageBroker.getMessageBroker(null); String clientID = UUIDUtils.createUUID(); int i=0; - while (i<15) { + while (running) { i++; /*if(getCurrentModuleRoundConfig() == null) @@ -53,42 +78,44 @@ }*/ //Push the first block to the clients - if(block == null) + AsyncMessage msg = new AsyncMessage(); + msg.setDestination("DataPush"); + //msg.setHeader("DSSubtopic", "hello"); + msg.setClientId(clientID); + msg.setMessageId(UUIDUtils.createUUID()); + msg.setTimestamp(System.currentTimeMillis()); + System.out.println("in while loop: "); + block = roundService.getBlock(); + System.out.println("after block "); + msg.setBody("Here is a block!!!" + block); + System.out.println("Message broker is: "+ msgBroker); + System.out.println("Message is: "+ block.getDescription()); + msgBroker.routeMessageToService(msg, null); + if(block.getDescription().equalsIgnoreCase("Day-by-day decisions game")) { - AsyncMessage msg = new AsyncMessage(); - msg.setDestination("DataPush"); - //msg.setHeader("DSSubtopic", "hello"); - msg.setClientId(clientID); - msg.setMessageId(UUIDUtils.createUUID()); - msg.setTimestamp(System.currentTimeMillis()); - System.out.println("in while loop: "); - block = roundService.getBlock(); - System.out.println("after block "); - msg.setBody("Here is a block!!!" + block); - System.out.println("Message broker is: "+ msgBroker); - System.out.println("Message is: "+ block.getDescription()); - msgBroker.routeMessageToService(msg, null); - if(block.getDescription().equalsIgnoreCase("Day-by-day decisions game")) + //start day by day decision + //getDayBydayDecisionService(). + + } + else if (block.getDescription().equalsIgnoreCase("Communication")) + { + //start communication round + + } + //get the timer for the block + Integer timer = roundService.getTimerforBlock(block); + //start the timer for the block sent + try { + //for testing purpose 5000 is given as an argument + Thread.sleep(5000); + if(block == null) { - //start day by day decision - //getDayBydayDecisionService(). - - } - else if (block.getDescription().equalsIgnoreCase("Communication")) - { - //start communication round - - } - //get the timer for the block - Integer timer = roundService.getTimerforBlock(block); - //start the timer for the block sent - try { - Thread.sleep(5000); running = false; - } catch (InterruptedException e) { } + } catch (InterruptedException e) { } + } } @@ -136,6 +163,9 @@ public DayByDayDecisionsService getDayBydayDecisionService() { return dayBydayDecisionService; } + public void setStudentService(StudentService studentService) { + this.studentService = studentService; + } } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-18 21:56:49 UTC (rev 257) @@ -16,33 +16,27 @@ public class StartupService implements ApplicationContextAware { //private QuestionCreatorService questionCreatorService; - private StudentService studentService; - private RoundService roundService; - private StartGame thread; + private StartGame startGame; private ApplicationContext ctx; /*public void setQuestionCreatorService(QuestionCreatorService questionCreatorService) { this.questionCreatorService = questionCreatorService; }*/ - public void setStudentService(StudentService studentService) { - this.studentService = studentService; - } - public Student createStudent(Integer birthYear, String semester,String gender,String major) { + public Student createStudent(Student student) { - return studentService.createStudent(birthYear, semester, gender, major); + return getStartGame().createStudent(student); } public Game createGame(Game game) { - return roundService.createGame(game); - + return getStartGame().createGame(game); } public void assignGroups() { - studentService.assignGroups(); + getStartGame().assignGroups(); } public void startGame() @@ -50,20 +44,12 @@ //push assign groups to all the students //start the game - try{ - if (thread == null) { - thread = (StartGame)ctx.getBean("startGame"); - thread.run(); - } - }catch(Exception e) - { - System.out.println(e.getStackTrace()); - } + } public void stop() { - thread.setRunning(false); - thread = null; + startGame.setRunning(false); + startGame = null; } @@ -72,15 +58,24 @@ throws BeansException { // TODO Auto-generated method stub this.ctx = context; - } - public void setRoundService(RoundService roundService) { - this.roundService = roundService; + + public void setStartGame() { + try{ + if (startGame == null) { + this.startGame = (StartGame)ctx.getBean("startGame"); + //this.startGame.run(); + } + }catch(Exception e) + { + System.out.println(e.getStackTrace()); + } } - public RoundService getRoundService() { - return roundService; + public StartGame getStartGame() { + + return startGame; } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-18 21:56:49 UTC (rev 257) @@ -5,9 +5,12 @@ import java.util.Date; import java.util.List; +import org.hibernate.Hibernate; import org.springframework.transaction.annotation.Transactional; +import edu.asu.commons.mme.dao.HibernateGroupDao; import edu.asu.commons.mme.dao.HibernateStudentDao; +import edu.asu.commons.mme.entity.Group; import edu.asu.commons.mme.entity.Student; /** @@ -22,33 +25,32 @@ @Transactional public class StudentService extends Service.Base<Student, HibernateStudentDao> { + HibernateGroupDao groupDao; + + + private List<Student> students = new ArrayList<Student>(); - - public Student createStudent(Integer birthYear, String semester,String gender,String major) { -// System.out.println("Birthyear " + birthYear); -// System.out.println("Ethnicity " + semester); -// System.out.println("Gender " + gender); -// System.out.println("Major " + major); - - Student student = new Student(); - student.setBirthYear(birthYear); - student.setSemester(semester); - student.setGender(gender); - student.setMajor(major); - student.setTimestamp(new Timestamp(new Date().getTime())); - save(student); - getLogger().debug("Student id is: " + student.getId()); - if(!checkStudentAlreadyExists(student)) + public Student createStudent(Student student) { + + Student studentSave = new Student(); + studentSave = student; + studentSave.setTimestamp(new Timestamp(new Date().getTime())); + save(studentSave); + getLogger().debug("Student id is: " + studentSave.getId()); + if(!checkStudentAlreadyExists(studentSave)) { - students.add(student); + students.add(studentSave); } else return null; - + Hibernate.initialize(student); + Hibernate.initialize(student.getGame()); + Hibernate.initialize(student.getGroup()); + return student; } - + public boolean checkStudentAlreadyExists(Student student) { for(int i = 0; i < students.size(); i++) @@ -59,56 +61,99 @@ } return false; } - - + + public void assignGroups() { //write an algorithm to form groups - + int totalStudents = students.size(); - int groupSize3=0; - int groupSize4=0; - int groupSize5=0; + int noOfGroupsWithSize3=0; + int noOfGroupsWithSize4=0; + int noOfGroupsWithSize5=0; int x; - - - //no of groups - groupSize5=((int)(totalStudents/5)); - x= totalStudents%5; - /* if(x==0) + //no of groups + noOfGroupsWithSize5=((int)(totalStudents/5)); + + x= totalStudents%5; + + /* if(x==0) { totalGroups=groupSize5; } else*/ - if(x==1) - { - groupSize5=groupSize5 - 1; - groupSize3=2; - // totalGroups=groupSize5 + groupSize3; - } + if(x==1) + { + noOfGroupsWithSize5=noOfGroupsWithSize5 - 1; + noOfGroupsWithSize3=2; + // totalGroups=groupSize5 + groupSize3; + } - else if(x==2) - { - groupSize5=groupSize5-1; - groupSize3=1; - groupSize4=1; - // totalGroups=groupSize5 + groupSize3 + groupSize4; - } - else if(x==3) - { - groupSize3=1; - // totalGroups=groupSize3 + groupSize5; - } + else if(x==2) + { + noOfGroupsWithSize5=noOfGroupsWithSize5-1; + noOfGroupsWithSize4=1; + noOfGroupsWithSize3=1; + // totalGroups=groupSize5 + groupSize3 + groupSize4; + } + else if(x==3) + { + noOfGroupsWithSize3=1; + // totalGroups=groupSize3 + groupSize5; + } - else if(x==4) - { - groupSize4=1; -// totalGroups=groupSize4 + groupSize5; - } - + else if(x==4) + { + noOfGroupsWithSize4=1; + // totalGroups=groupSize4 + groupSize5; + } + //assign every student a number and group + if(!students.isEmpty()) + { + assignGroupstoStudents(5,noOfGroupsWithSize5); + assignGroupstoStudents(4,noOfGroupsWithSize4); + assignGroupstoStudents(3,noOfGroupsWithSize3); + + } + } - + + private void assignGroupstoStudents(int groupSize, int noOfGroups) { + // TODO Auto-generated method stub + Student student = new Student(); + + for(int grpno = 0,studentNo = 1; grpno < noOfGroups; grpno++,studentNo++) + { + //create group + Group grp = new Group(); + grp.setNumber(grpno + 1); + getGroupDao().save(grp); + for(int i = 0; i < groupSize; i++) + { + //get a student from a list + student = students.get(i); + if(student.getGroup() == null) + { + //assign student no and group to each student + student.setStudentNo(studentNo); + student.setGroup(grp); + students.remove(i); + } + } + } + } + + + + public HibernateGroupDao getGroupDao() { + return groupDao; + } + + public void setGroupDao(HibernateGroupDao groupDao) { + this.groupDao = groupDao; + } + } Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-18 18:41:59 UTC (rev 256) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-18 21:56:49 UTC (rev 257) @@ -34,6 +34,10 @@ <property name='sessionFactory' ref='sessionFactory'/> </bean> + <bean id='groupDao' class='edu.asu.commons.mme.dao.HibernateGroupDao'> + <property name='sessionFactory' ref='sessionFactory'/> + </bean> + <bean id='roundConfigDao' class='edu.asu.commons.mme.dao.HibernateRoundConfigDao'> <property name='sessionFactory' ref='sessionFactory'/> </bean> @@ -139,6 +143,7 @@ <bean id='studentService' class='edu.asu.commons.mme.service.StudentService'> <property name='dao' ref='studentDao'/> + <property name='groupDao' ref='groupDao'/> </bean> <!-- spring managed service layer --> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-08-18 20:03:28
|
I will be at lunch starting 13:00pm (2hr) On Tue, Aug 18, 2009 at 11:13 AM, Kalin Jonas <kj...@as...> wrote: > I come in today at 11:00am > I will test savestrategy and change the structure of my code in > anticipation of server-pushing, as opposed to firing queries. > > "9.If everything is finished, then create interface for seeing the student > responses for admin. I do not think admin would know how to fire query to > database and understand the data. " > I would gladly be working on this, if there were services or some way for > me to access the database through flex. > |
From: <see...@us...> - 2009-08-18 18:42:06
|
Revision: 256 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=256&view=rev Author: seematalele Date: 2009-08-18 18:41:59 +0000 (Tue, 18 Aug 2009) Log Message: ----------- I have changed the getCurrentRound() function, so that it will first do hibernate.initialize round and then return it. Modified Paths: -------------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-18 01:53:12 UTC (rev 255) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-18 18:41:59 UTC (rev 256) @@ -17,6 +17,7 @@ import edu.asu.commons.mme.entity.CategoricalQuestion; import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.InformationWindow; +import edu.asu.commons.mme.entity.Location; import edu.asu.commons.mme.entity.Module; import edu.asu.commons.mme.entity.ModuleRoundConfig; import edu.asu.commons.mme.entity.Question; @@ -486,10 +487,30 @@ public Round getCurrentRound() { + initializeCurrentRound(); return currentRound; } + private void initializeCurrentRound() { + // TODO Auto-generated method stub + Hibernate.initialize(currentRound); + + Iterator <Game> games = currentRound.getGame().iterator(); + while(games.hasNext()) + { + Hibernate.initialize(games.next()); + + } + + List<Location> roundlocations = currentRound.getLocations(); + for(int k=0;k<roundlocations.size();k++) + { + Hibernate.initialize(roundlocations.get(k)); + } + + } + /*public void setStartModule(Boolean startModule) { this.startGame = startModule; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-08-18 18:13:56
|
I come in today at 11:00am I will test savestrategy and change the structure of my code in anticipation of server-pushing, as opposed to firing queries. "9.If everything is finished, then create interface for seeing the student responses for admin. I do not think admin would know how to fire query to database and understand the data. " I would gladly be working on this, if there were services or some way for me to access the database through flex. |
From: <see...@us...> - 2009-08-18 01:53:20
|
Revision: 255 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=255&view=rev Author: seematalele Date: 2009-08-18 01:53:12 +0000 (Tue, 18 Aug 2009) Log Message: ----------- Removed Game from Group entity Changed the StartupService.java so that it will create game, create Students , assign groups and start the game. Changed the application Context according to the changes made in the services. StartupService.java is not completely written. Following changes needs to be made 1) assign groups to the student. Only algorithm is written to from groups. 2) push assigned groups number students to the each client 3) test for start game function. Modified Paths: -------------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Group.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/ModuleRoundConfig.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/StudentStrategy.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/AnsweringService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Group.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Group.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Group.java 2009-08-18 01:53:12 UTC (rev 255) @@ -29,10 +29,10 @@ @Column(name="grp_number",nullable=false) private Integer number; - + /* @ManyToOne @JoinColumn(nullable = false) - private Game game; + private Game game;*/ public Long getId() { return id; @@ -50,12 +50,12 @@ this.number = no; } - public void setGame(Game game) { + /*public void setGame(Game game) { this.game = game; } public Game getGame() { return game; } - +*/ } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/ModuleRoundConfig.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/ModuleRoundConfig.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/ModuleRoundConfig.java 2009-08-18 01:53:12 UTC (rev 255) @@ -38,7 +38,6 @@ @JoinColumn(nullable = false) private Round round; - public void setSequenceNo(Integer sequenceNo) { this.sequenceNo = sequenceNo; } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Student.java 2009-08-18 01:53:12 UTC (rev 255) @@ -9,6 +9,7 @@ import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.Id; +import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; import javax.persistence.Temporal; @@ -39,6 +40,10 @@ private String semester; + @ManyToOne + @JoinColumn(nullable = false) + private Game game; + @Temporal(TemporalType.TIMESTAMP) private Date timestamp; @@ -109,4 +114,12 @@ this.timestamp = timestamp; } + public void setGame(Game game) { + this.game = game; + } + + public Game getGame() { + return game; + } + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/StudentStrategy.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/StudentStrategy.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/StudentStrategy.java 2009-08-18 01:53:12 UTC (rev 255) @@ -32,7 +32,7 @@ @ManyToOne @JoinColumn(nullable=false) - private Round roundConfig; + private Round round; @Column(name = "allocation_sequence_no",nullable=false) private Integer allocationSeqNo; @@ -49,9 +49,7 @@ @Column (name="repeated_decisions",columnDefinition="Boolean", nullable=false) public boolean repeatedDecisions; - - public void setId(Long id) { this.id = id; } @@ -92,12 +90,12 @@ return repeatedDecisions; } - public void setRoundConfig(Round roundConfig) { - this.roundConfig = roundConfig; + public void setRound(Round round) { + this.round = round; } - public Round getRoundConfig() { - return roundConfig; + public Round getRound() { + return round; } public void setLocation(Location location) { Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/AnsweringService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/AnsweringService.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/AnsweringService.java 2009-08-18 01:53:12 UTC (rev 255) @@ -35,7 +35,6 @@ StudentResponse clientStudentResponse = new StudentResponse(); for(int i = 0; i < studentResponses.size(); i++ ) { - clientStudentResponse = (StudentResponse) studentResponses.get(i); getLogger().debug("Question is: " + clientStudentResponse.getQuestion()); getLogger().debug("Response is: " + clientStudentResponse.getResponse()); @@ -46,7 +45,6 @@ studentResponse.setStudent(clientStudentResponse.getStudent()); getDao().save(studentResponse); } - //return moduleService.getBlock(); } @@ -55,15 +53,13 @@ StudentStrategy clientStudentStrategy = new StudentStrategy(); for(int i = 0; i < studentStrategies.size(); i++ ) { - clientStudentStrategy = (StudentStrategy) studentStrategies.get(i); - studentStrategy = new StudentStrategy(); studentStrategy.setLocation(clientStudentStrategy.getLocation()); studentStrategy.setAllocationSeqNo(clientStudentStrategy.getAllocationSeqNo()); studentStrategy.setDays(clientStudentStrategy.getDays()); studentStrategy.setRepeatedDecisions(clientStudentStrategy.isRepeatedDecisions()); - studentStrategy.setRoundConfig(clientStudentStrategy.getRoundConfig()); + studentStrategy.setRound(clientStudentStrategy.getRound()); studentStrategy.setStudent(clientStudentStrategy.getStudent()); getStudentStrategyDao().save(studentStrategy); } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java 2009-08-18 01:53:12 UTC (rev 255) @@ -13,37 +13,42 @@ @Transactional public class DayByDayDecisionsService extends Service.Base<DayByDayDecisions, HibernateDayByDayDecisionsDao> { - private List<DayByDayDecisions> studentdecisions = new ArrayList<DayByDayDecisions>(); + private List<DayByDayDecisions> studentDecisions = new ArrayList<DayByDayDecisions>(); - public void setStudentdecisions(List<DayByDayDecisions> studentdecisions) { - this.studentdecisions = studentdecisions; + public void setStudentDecisions(List<DayByDayDecisions> studentDecisions) { + this.studentDecisions = studentDecisions; } - public List<DayByDayDecisions> getStudentdecisions() { - return studentdecisions; + public List<DayByDayDecisions> getStudentDecisions() { + return studentDecisions; } public void saveStudentDecision(DayByDayDecisions studentDecision) { - if (studentdecisions == null) { - studentdecisions = new ArrayList<DayByDayDecisions>(); - studentdecisions.add(studentDecision); - + if (studentDecisions == null) + { + studentDecisions = new ArrayList<DayByDayDecisions>(); + studentDecisions.add(studentDecision); } else { - if(!this.studentdecisions.contains(studentDecision)) + if(!this.studentDecisions.contains(studentDecision)) { - studentdecisions.add(studentDecision); - + studentDecisions.add(studentDecision); } else { System.out.println("Student Decision already exists!!"); } } + } + + public void executeStrategy() + { - } - + + + + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-08-18 01:53:12 UTC (rev 255) @@ -31,18 +31,37 @@ private HibernateGameDao gameDao; private HibernateModuleRoundConfigDao moduleRoundDao; - private Module currentModule=null; - private boolean startGame = true; - private Round currentRound=null; - private Block currentBlock=null; - - private int blockSeqNo=0; + private Module currentModule; + //private boolean startGame = true; + private Round currentRound; + private Block currentBlock; + private Game currentGame; + + private int blockSeqNo; private ModuleRoundConfig currentModuleRoundConfig; - private boolean gameFinished = false; + private boolean gameFinished; + public RoundService() + { + setCurrentGame(null); + setCurrentBlock(null); + setCurrentModule(null); + setCurrentModuleRoundConfig(null); + setCurrentRound(null); + setBlockSeqNo(0); + setGameFinished(false); + } + public Game createGame(Game game) + { + currentGame = new Game(); + currentGame = game; + getGameDao().save(currentGame); + setCurrentGame(currentGame); + return getCurrentGame(); + } public Module getNextModule(int sequenceNo) { return getModule(sequenceNo); @@ -233,16 +252,9 @@ } - private Game getCurrentGame() { - // TODO Auto-generated method stub - Game game = gameDao.find(1L); - //Hibernate.initialize(game); - //getLogger().debug("round size is: " + game.getRounds().size()); - return game; + - } - public HibernateModuleDao getModuleDao() { return moduleDao; } @@ -478,14 +490,14 @@ } - public void setStartModule(Boolean startModule) { + /*public void setStartModule(Boolean startModule) { this.startGame = startModule; } public Boolean getStartModule() { return startGame; - } + }*/ public void setGameDao(HibernateGameDao gameDao) { @@ -554,6 +566,12 @@ ModuleRoundConfig currentModuleRoundConfig) { this.currentModuleRoundConfig = currentModuleRoundConfig; } + public void setCurrentGame(Game game) { + this.currentGame = game; + } + public Game getCurrentGame() { + return currentGame; + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartGame.java 2009-08-18 01:53:12 UTC (rev 255) @@ -11,6 +11,7 @@ private boolean running; private RoundService roundService; private LocationService locationService; + private DayByDayDecisionsService dayBydayDecisionService; private ModuleRoundConfig currentModuleRoundConfig; @@ -27,6 +28,8 @@ /** * 1)Initially first block will get pushed to all the clients. * 2)get timer for that block + * 3)check if the block is day by day decision game if yes then start day by day decision service + * 4)if it is communication, start communication service * 3)start the timer * 4)Once the timer is over, push the next block * @@ -35,7 +38,7 @@ Block block = new Block(); //roundService.test(); - roundService.setStartModule(true); + MessageBroker msgBroker = MessageBroker.getMessageBroker(null); String clientID = UUIDUtils.createUUID(); @@ -50,26 +53,40 @@ }*/ //Push the first block to the clients - AsyncMessage msg = new AsyncMessage(); - msg.setDestination("DataPush"); - //msg.setHeader("DSSubtopic", "hello"); - msg.setClientId(clientID); - msg.setMessageId(UUIDUtils.createUUID()); - msg.setTimestamp(System.currentTimeMillis()); - System.out.println("in while loop: "); - block = roundService.getBlock(); - System.out.println("after block "); - msg.setBody("Here is a block!!!" + block); - System.out.println("Message broker is: "+ msgBroker); - System.out.println("Message is: "+ block.getDescription()); - msgBroker.routeMessageToService(msg, null); - //get the timer for the block - Integer timer = roundService.getTimerforBlock(block); - //start the timer for the block sent - try { - Thread.sleep(5000); - running = false; - } catch (InterruptedException e) { + if(block == null) + { + AsyncMessage msg = new AsyncMessage(); + msg.setDestination("DataPush"); + //msg.setHeader("DSSubtopic", "hello"); + msg.setClientId(clientID); + msg.setMessageId(UUIDUtils.createUUID()); + msg.setTimestamp(System.currentTimeMillis()); + System.out.println("in while loop: "); + block = roundService.getBlock(); + System.out.println("after block "); + msg.setBody("Here is a block!!!" + block); + System.out.println("Message broker is: "+ msgBroker); + System.out.println("Message is: "+ block.getDescription()); + msgBroker.routeMessageToService(msg, null); + if(block.getDescription().equalsIgnoreCase("Day-by-day decisions game")) + { + //start day by day decision + //getDayBydayDecisionService(). + + } + else if (block.getDescription().equalsIgnoreCase("Communication")) + { + //start communication round + + } + //get the timer for the block + Integer timer = roundService.getTimerforBlock(block); + //start the timer for the block sent + try { + Thread.sleep(5000); + running = false; + } catch (InterruptedException e) { + } } } @@ -112,5 +129,13 @@ this.locationService = locationService; } + public void setDayBydayDecisionService(DayByDayDecisionsService dayBydayDecisionService) { + this.dayBydayDecisionService = dayBydayDecisionService; + } + + public DayByDayDecisionsService getDayBydayDecisionService() { + return dayBydayDecisionService; + } + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-08-18 01:53:12 UTC (rev 255) @@ -1,34 +1,29 @@ package edu.asu.commons.mme.service; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.transaction.annotation.Transactional; +import edu.asu.commons.mme.dao.HibernateGameDao; +import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.Student; @Transactional -public class StartupService implements ApplicationListener { +public class StartupService implements ApplicationContextAware { - private QuestionCreatorService questionCreatorService; + //private QuestionCreatorService questionCreatorService; private StudentService studentService; - private ModuleService moduleService; + private RoundService roundService; + private StartGame thread; + private ApplicationContext ctx; - private volatile boolean alreadyInitialized; - - @Override - public void onApplicationEvent(ApplicationEvent event) { - if (event instanceof ContextRefreshedEvent && ! alreadyInitialized) { - //questionCreatorService.createQuestions(); - - alreadyInitialized = true; - } - - } - - public void setQuestionCreatorService(QuestionCreatorService questionCreatorService) { + /*public void setQuestionCreatorService(QuestionCreatorService questionCreatorService) { this.questionCreatorService = questionCreatorService; - } + }*/ public void setStudentService(StudentService studentService) { this.studentService = studentService; @@ -39,15 +34,54 @@ return studentService.createStudent(birthYear, semester, gender, major); } - /*public Block getFirstBlock() + public Game createGame(Game game) { - //studentService.formGroups(); - return moduleService.getBlock(); - }*/ + return roundService.createGame(game); + + } + public void assignGroups() + { + studentService.assignGroups(); + } - public void setModuleService(ModuleService moduleService) { - this.moduleService = moduleService; + public void startGame() + { + //push assign groups to all the students + + //start the game + try{ + if (thread == null) { + thread = (StartGame)ctx.getBean("startGame"); + thread.run(); + } + }catch(Exception e) + { + System.out.println(e.getStackTrace()); + } } + public void stop() { + thread.setRunning(false); + thread = null; + } + + + @Override + public void setApplicationContext(ApplicationContext context) + throws BeansException { + // TODO Auto-generated method stub + this.ctx = context; + + } + + public void setRoundService(RoundService roundService) { + this.roundService = roundService; + } + + public RoundService getRoundService() { + return roundService; + } + + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StudentService.java 2009-08-18 01:53:12 UTC (rev 255) @@ -61,9 +61,54 @@ } - public void formGroups() + public void assignGroups() { //write an algorithm to form groups + + int totalStudents = students.size(); + int groupSize3=0; + int groupSize4=0; + int groupSize5=0; + int x; + + + //no of groups + groupSize5=((int)(totalStudents/5)); + + x= totalStudents%5; + + /* if(x==0) + { + totalGroups=groupSize5; + } + else*/ + if(x==1) + { + groupSize5=groupSize5 - 1; + groupSize3=2; + // totalGroups=groupSize5 + groupSize3; + } + + else if(x==2) + { + groupSize5=groupSize5-1; + groupSize3=1; + groupSize4=1; + // totalGroups=groupSize5 + groupSize3 + groupSize4; + } + else if(x==3) + { + groupSize3=1; + // totalGroups=groupSize3 + groupSize5; + } + + else if(x==4) + { + groupSize4=1; +// totalGroups=groupSize4 + groupSize5; + } + + } } Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-15 01:03:03 UTC (rev 254) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-18 01:53:12 UTC (rev 255) @@ -128,7 +128,7 @@ </bean> <bean id='startupService' class='edu.asu.commons.mme.service.StartupService'> - <property name='questionCreatorService' ref='questionCreatorService'/> + <property name='roundService' ref='roundService'/> <property name='studentService' ref='studentService'/> </bean> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-08-18 00:04:46
|
I leave at 17:00pm (2hr) (5.5hr total today) I have identified the method causing the error, and alerted Seema. I should have a working version of the saveStrategy method, but it has not been rigorously tested. I will commit the code pending this testing. Seema and I have discussed changing from calling methods to having the server push information to the clients. This requires a change in the structure of the code, which will be made pending the completion of the server-pushing methods being written by Seema. On Mon, Aug 17, 2009 at 3:09 PM, Kalin Jonas <kj...@as...> wrote: > I return to work at 15:00pm > > On Mon, Aug 17, 2009 at 2:31 PM, Kalin Jonas <kj...@as...> wrote: > >> I go for lunch at 14:30pm(3.5hr) >> >> >> On Mon, Aug 17, 2009 at 11:16 AM, Kalin Jonas <kj...@as...> wrote: >> >>> I come in to work today at 11:00am (took a while to connect) >>> I will look over the database to make sure no questions were left out. >>> I will then work on seeing if i can make the savestrategy function wrok >>> >> >> > |
From: Kalin J. <kj...@as...> - 2009-08-17 22:10:58
|
I return to work at 15:00pm On Mon, Aug 17, 2009 at 2:31 PM, Kalin Jonas <kj...@as...> wrote: > I go for lunch at 14:30pm(3.5hr) > > > On Mon, Aug 17, 2009 at 11:16 AM, Kalin Jonas <kj...@as...> wrote: > >> I come in to work today at 11:00am (took a while to connect) >> I will look over the database to make sure no questions were left out. >> I will then work on seeing if i can make the savestrategy function wrok >> > > |
From: Kalin J. <kj...@as...> - 2009-08-17 21:32:02
|
I go for lunch at 14:30pm On Mon, Aug 17, 2009 at 11:16 AM, Kalin Jonas <kj...@as...> wrote: > I come in to work today at 11:00am (took a while to connect) > I will look over the database to make sure no questions were left out. > I will then work on seeing if i can make the savestrategy function wrok > |
From: Kalin J. <kj...@as...> - 2009-08-17 18:17:08
|
I come in to work today at 11:00am (took a while to connect) I will look over the database to make sure no questions were left out. I will then work on seeing if i can make the savestrategy function wrok |
From: Kalin J. <kj...@as...> - 2009-08-15 01:04:03
|
Checking out tonight at 18:00pm (5.75hr) On Fri, Aug 14, 2009 at 12:26 PM, Kalin Jonas <kj...@as...> wrote: > Today I come in to work at 12:15pm > I will be checking to see that all the questions are in the database, > including the simple categorical questions > Seema has also aasked me to make changes to the strategy saving method. we > will keep talking about this until we decide what changes to make > |
From: <kj...@us...> - 2009-08-15 01:03:14
|
Revision: 254 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=254&view=rev Author: kjonas Date: 2009-08-15 01:03:03 +0000 (Sat, 15 Aug 2009) Log Message: ----------- copied data from 2A to 2B Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 23:00:55 UTC (rev 253) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-15 01:03:03 UTC (rev 254) @@ -55,7 +55,7 @@ `id` bigint(20) NOT NULL AUTO_INCREMENT, `optionKey` varchar(255) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -64,7 +64,7 @@ LOCK TABLES `categorical_option` WRITE; /*!40000 ALTER TABLE `categorical_option` DISABLE KEYS */; -INSERT INTO `categorical_option` VALUES (1,'Focus on own earnings'),(2,'Focus on fish population'),(3,'Focus on what the others might do or think'),(7,'Focus on fish population'),(8,'Focus on what the others might do or think'),(9,'Focus on own earnings'),(10,'Focus on what the others might do or think'),(11,'Focus on fish population'),(12,'Focus on own earnings'),(13,'Focus on what the others might do or think:'),(14,'Focus on fish population'),(15,'Focus on own earnings'),(16,'The group agreed upon a quite clear rule of how to fish.'),(17,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(18,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(19,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(20,'The communication never touched the topic of how to fish or design the strategy.'),(21,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(22,'The group agreed upon a quite clear rule of how to fish.'),(23,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(24,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(25,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(26,'The communication never touched the topic of how to fish or design the strategy.'),(27,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(28,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(29,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(30,'1'),(31,'The communication never touched the topic of how to fish or design the strategy.'),(32,'The group agreed upon a quite clear rule of how to fish.'),(33,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(34,'2'),(35,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(48,'1 to 6 months ago'),(49,'less then 1 week ago'),(50,'more than 6 months ago'),(51,'1 to 4 weeks ago'),(52,'every 3 to 4 weeks'),(53,'several times per week'),(54,'every 1 or 2 weeks'),(55,'(almost) never'),(56,'less often'); +INSERT INTO `categorical_option` VALUES (1,'Focus on own earnings'),(2,'Focus on fish population'),(3,'Focus on what the others might do or think'),(7,'Focus on fish population'),(8,'Focus on what the others might do or think'),(9,'Focus on own earnings'),(10,'Focus on what the others might do or think'),(11,'Focus on fish population'),(12,'Focus on own earnings'),(13,'Focus on what the others might do or think:'),(14,'Focus on fish population'),(15,'Focus on own earnings'),(16,'The group agreed upon a quite clear rule of how to fish.'),(17,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(18,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(19,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(20,'The communication never touched the topic of how to fish or design the strategy.'),(21,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(22,'The group agreed upon a quite clear rule of how to fish.'),(23,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(24,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(25,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(26,'The communication never touched the topic of how to fish or design the strategy.'),(27,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(28,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(29,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(30,'1'),(31,'The communication never touched the topic of how to fish or design the strategy.'),(32,'The group agreed upon a quite clear rule of how to fish.'),(33,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(34,'2'),(35,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(48,'1 to 6 months ago'),(49,'less then 1 week ago'),(50,'more than 6 months ago'),(51,'1 to 4 weeks ago'),(52,'every 3 to 4 weeks'),(53,'several times per week'),(54,'every 1 or 2 weeks'),(55,'(almost) never'),(56,'less often'),(57,'Focus on own earnings'),(58,'Focus on fish population'),(59,'Focus on what the others might do or think'),(60,'Focus on own earnings:'),(61,'Focus on what the others might do or think:'),(62,'Focus on fish population:'),(63,'Focus on own earnings:'),(64,'Focus on fish population:'),(65,'Focus on what the others might do or think:'),(66,'Focus on own earnings:'),(67,'Focus on what the others might do or think:'),(68,'Focus on fish population:'),(69,'Focus on own earnings:'),(70,'Focus on fish population:'),(71,'Focus on what the others might do or think:'),(72,'Focus on own earnings:'),(73,'Focus on what the others might do or think:'),(74,'Focus on fish population:'); /*!40000 ALTER TABLE `categorical_option` ENABLE KEYS */; UNLOCK TABLES; @@ -89,7 +89,7 @@ LOCK TABLES `categorical_option_choices` WRITE; /*!40000 ALTER TABLE `categorical_option_choices` DISABLE KEYS */; -INSERT INTO `categorical_option_choices` VALUES (1,'Earn as much as possible'),(1,'Earn more than the others'),(1,'Earn about the same as the others'),(1,'Earn less than the others'),(1,'Earn a fair amount but much less than would be possible'),(1,'Earn nothing'),(2,'Let the fish population grow as much as possible'),(2,'Keep the fish population at a high stable level'),(2,'Keep the fish population at a medium stable level'),(2,'Keep the fish population at a low stable level'),(2,'Not to completely destroy the fish population'),(2,'To completely destroy the fish population'),(3,'Act similarly to the others'),(3,'Act differently than the others'),(3,'Allow the others to have good earnings'),(3,'Avoid that the others get good earnings'),(3,'Act according to rules I expect the others to know'),(3,'Act against rules I expect the others to know'),(7,'Let the fish population grow as much as possible'),(7,'Keep the fish population at a high stable level'),(7,'Keep the fish population at a medium stable level'),(7,'Keep the fish population at a low stable level'),(7,'Not to completely destroy the fish population'),(7,'To destroy the fish population'),(8,'Act similarly to the others'),(8,'Act differently than the others'),(8,'Allow the others to have good earnings'),(8,'Avoid that the others get good earnings'),(8,'Act according to rules I expect the others to know'),(8,'Act against rules I expect the others to know'),(9,'Earn as much as possible'),(9,'Earn more than the others'),(9,'Earn about the same as the others'),(9,'Earn less then the others'),(9,'Earn a fair amount but much less than the would be possible'),(9,'Earn nothing'),(10,'Act similarly to the others'),(10,'Act differently than the others'),(10,'Allow the others to have good earnings'),(10,'Avoid that the others get good earnings'),(10,'Act according to rules I expect the others to know'),(10,'Act against rules I expect the others to know'),(11,'Let the fish population grow as much as possible'),(11,'Keep the fish population at a high stable level'),(11,'Keep the fish population at a medium stable level'),(11,'Keep the fish population at a low stable level'),(11,'Not to completely destroy the fish population'),(11,'To destroy the fish population'),(12,'Earn as much as possible'),(12,'Earn more than the others'),(12,'Earn about the same as the others'),(12,'Earn less than the others'),(12,'Earn a fair amount but much less than the would be possible'),(12,'Earn nothing'),(13,'Act similarly to the others'),(13,'Act differently than the others'),(13,'Allow the others to have good earnings'),(13,'Avoid that the others get good earnings'),(13,'Act according to rules I expect the others to know'),(13,'Act against rules I expect the others to know'),(14,'Let the fish population grow as much as possible'),(14,'Keep the fish population at a high stable level'),(14,'Keep the fish population at a medium stable level'),(14,'Keep the fish population at a low stable level'),(14,'Not to completely destroy the fish population'),(14,'To destroy the fish population'),(15,'Earn as much as possible'),(15,'Earn more than the others'),(15,'Earn about the same as the others'),(15,'Earn less than the others'),(15,'Earn a fair amount but much less than the would be possible'),(15,'Earn nothing'); +INSERT INTO `categorical_option_choices` VALUES (1,'Earn as much as possible'),(1,'Earn more than the others'),(1,'Earn about the same as the others'),(1,'Earn less than the others'),(1,'Earn a fair amount but much less than would be possible'),(1,'Earn nothing'),(2,'Let the fish population grow as much as possible'),(2,'Keep the fish population at a high stable level'),(2,'Keep the fish population at a medium stable level'),(2,'Keep the fish population at a low stable level'),(2,'Not to completely destroy the fish population'),(2,'To completely destroy the fish population'),(3,'Act similarly to the others'),(3,'Act differently than the others'),(3,'Allow the others to have good earnings'),(3,'Avoid that the others get good earnings'),(3,'Act according to rules I expect the others to know'),(3,'Act against rules I expect the others to know'),(7,'Let the fish population grow as much as possible'),(7,'Keep the fish population at a high stable level'),(7,'Keep the fish population at a medium stable level'),(7,'Keep the fish population at a low stable level'),(7,'Not to completely destroy the fish population'),(7,'To destroy the fish population'),(8,'Act similarly to the others'),(8,'Act differently than the others'),(8,'Allow the others to have good earnings'),(8,'Avoid that the others get good earnings'),(8,'Act according to rules I expect the others to know'),(8,'Act against rules I expect the others to know'),(9,'Earn as much as possible'),(9,'Earn more than the others'),(9,'Earn about the same as the others'),(9,'Earn less then the others'),(9,'Earn a fair amount but much less than the would be possible'),(9,'Earn nothing'),(10,'Act similarly to the others'),(10,'Act differently than the others'),(10,'Allow the others to have good earnings'),(10,'Avoid that the others get good earnings'),(10,'Act according to rules I expect the others to know'),(10,'Act against rules I expect the others to know'),(11,'Let the fish population grow as much as possible'),(11,'Keep the fish population at a high stable level'),(11,'Keep the fish population at a medium stable level'),(11,'Keep the fish population at a low stable level'),(11,'Not to completely destroy the fish population'),(11,'To destroy the fish population'),(12,'Earn as much as possible'),(12,'Earn more than the others'),(12,'Earn about the same as the others'),(12,'Earn less than the others'),(12,'Earn a fair amount but much less than the would be possible'),(12,'Earn nothing'),(13,'Act similarly to the others'),(13,'Act differently than the others'),(13,'Allow the others to have good earnings'),(13,'Avoid that the others get good earnings'),(13,'Act according to rules I expect the others to know'),(13,'Act against rules I expect the others to know'),(14,'Let the fish population grow as much as possible'),(14,'Keep the fish population at a high stable level'),(14,'Keep the fish population at a medium stable level'),(14,'Keep the fish population at a low stable level'),(14,'Not to completely destroy the fish population'),(14,'To destroy the fish population'),(15,'Earn as much as possible'),(15,'Earn more than the others'),(15,'Earn about the same as the others'),(15,'Earn less than the others'),(15,'Earn a fair amount but much less than the would be possible'),(15,'Earn nothing'),(57,'Earn as much as possible'),(57,'Earn more than the others'),(57,'Earn about the same as the others'),(57,'Earn less than the others'),(57,'Earn a fair amount but much less than would be possible'),(57,'Earn nothing'),(58,'Let the fish population grow as much as possible'),(58,'Keep the fish population at a high stable level'),(58,'Keep the fish population at a medium stable level'),(58,'Keep the fish population at a low stable level'),(58,'Not to completely destroy the fish population'),(58,'To destroy the fish population'),(59,'Act similarly to the others'),(59,'Act differently than the others'),(59,'Allow the others to have good earnings'),(59,'Avoid that the others get good earnings'),(59,'Act according to rules I expect the others to know'),(59,'Act against rules I expect the others to know'),(60,'Earn as much as possible'),(60,'Earn more than the others'),(60,'Earn about the same as the others'),(60,'Earn less then the others'),(60,'Earn a fair amount but much less then the would be possible'),(60,'Earn nothing'),(61,'Act similarly to the others'),(61,'Act differently than the others'),(61,'Allow the others to have good earnings'),(61,'Avoid that the others get good earnings'),(61,'Act according to rules I expect the others to know'),(61,'Act against rules I expect the others to know'),(62,'Let the fish population grow as much as possible'),(62,'Keep the fish population at a high stable level'),(62,'Keep the fish population at a medium stable level'),(62,'Keep the fish population at a low stable level'),(62,'Not to completely destroy the fish population'),(62,'To destroy the fish population'),(63,'Earn as much as possible'),(63,'Earn more than the others'),(63,'Earn about the same as the others'),(63,'Earn less then the others'),(63,'Earn a fair amount but much less then the would be possible'),(63,'Earn nothing'),(64,'Let the fish population grow as much as possible'),(64,'Keep the fish population at a high stable level'),(64,'Keep the fish population at a medium stable level'),(64,'Keep the fish population at a low stable level'),(64,'Not to completely destroy the fish population'),(64,'To destroy the fish population'),(65,'Act similarly to the others'),(65,'Act differently than the others'),(65,'Allow the others to have good earnings'),(65,'Avoid that the others get good earnings'),(65,'Act according to rules I expect the others to know'),(65,'Act against rules I expect the others to know'),(66,'Earn as much as possible'),(66,'Earn more than the others'),(66,'Earn about the same as the others'),(66,'Earn less then the others'),(66,'Earn a fair amount but much less then the would be possible'),(66,'Earn nothing'),(67,'Act similarly to the others'),(67,'Act differently than the others'),(67,'Allow the others to have good earnings'),(67,'Avoid that the others get good earnings'),(67,'Act according to rules I expect the others to know'),(67,'Act against rules I expect the others to know'),(68,'Let the fish population grow as much as possible'),(68,'Keep the fish population at a high stable level'),(68,'Keep the fish population at a medium stable level'),(68,'Keep the fish population at a low stable level'),(68,'Not to completely destroy the fish population'),(68,'To destroy the fish population'),(69,'Earn as much as possible'),(69,'Earn more than the others'),(69,'Earn about the same as the others'),(69,'Earn less then the others'),(69,'Earn a fair amount but much less then the would be possible'),(69,'Earn nothing'),(70,'Let the fish population grow as much as possible'),(70,'Keep the fish population at a high stable level'),(70,'Keep the fish population at a medium stable level'),(70,'Keep the fish population at a low stable level'),(70,'Not to completely destroy the fish population'),(70,'To destroy the fish population'),(71,'Act similarly to the others'),(71,'Act differently than the others'),(71,'Allow the others to have good earnings'),(71,'Avoid that the others get good earnings'),(71,'Act according to rules I expect the others to know'),(71,'Act against rules I expect the others to know'),(72,'Earn as much as possible'),(72,'Earn more than the others'),(72,'Earn about the same as the others'),(72,'Earn less then the others'),(72,'Earn a fair amount but much less then the would be possible'),(72,'Earn nothing'),(73,'Act similarly to the others'),(73,'Act differently than the others'),(73,'Allow the others to have good earnings'),(73,'Avoid that the others get good earnings'),(73,'Act according to rules I expect the others to know'),(73,'Act against rules I expect the others to know'),(74,'Let the fish population grow as much as possible'),(74,'Keep the fish population at a high stable level'),(74,'Keep the fish population at a medium stable level'),(74,'Keep the fish population at a low stable level'),(74,'Not to completely destroy the fish population'),(74,'To destroy the fish population'); /*!40000 ALTER TABLE `categorical_option_choices` ENABLE KEYS */; UNLOCK TABLES; @@ -116,7 +116,7 @@ LOCK TABLES `categorical_options_pivot` WRITE; /*!40000 ALTER TABLE `categorical_options_pivot` DISABLE KEYS */; -INSERT INTO `categorical_options_pivot` VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(10,7),(10,8),(10,9),(11,10),(11,11),(11,12),(13,13),(13,14),(13,15),(51,16),(51,17),(51,18),(51,19),(51,20),(51,21),(73,48),(73,49),(73,50),(73,51),(118,52),(118,53),(118,54),(118,55),(118,56); +INSERT INTO `categorical_options_pivot` VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(10,7),(10,8),(10,9),(11,10),(11,11),(11,12),(13,13),(13,14),(13,15),(51,16),(51,17),(51,18),(51,19),(51,20),(51,21),(73,48),(73,49),(73,50),(73,51),(118,52),(118,53),(118,54),(118,55),(118,56),(121,57),(121,58),(121,59),(122,60),(122,61),(122,62),(124,63),(124,64),(124,65),(126,66),(126,67),(126,68),(127,69),(127,70),(127,71),(129,72),(129,73),(129,74); /*!40000 ALTER TABLE `categorical_options_pivot` ENABLE KEYS */; UNLOCK TABLES; @@ -141,7 +141,7 @@ LOCK TABLES `categorical_question` WRITE; /*!40000 ALTER TABLE `categorical_question` DISABLE KEYS */; -INSERT INTO `categorical_question` VALUES (1),(2),(3),(10),(11),(13),(51),(73),(118); +INSERT INTO `categorical_question` VALUES (1),(2),(3),(10),(11),(13),(51),(73),(118),(121),(122),(124),(126),(127),(129); /*!40000 ALTER TABLE `categorical_question` ENABLE KEYS */; UNLOCK TABLES; @@ -511,7 +511,7 @@ LOCK TABLES `psychometric_question` WRITE; /*!40000 ALTER TABLE `psychometric_question` DISABLE KEYS */; -INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78),(10,'unipolar',79),(10,'unipolar',80),(10,'bipolar',81),(10,'bipolar',82),(10,'bipolar',83),(10,'bipolar',84),(10,'bipolar',85),(10,'unipolar',86),(10,'unipolar',87),(10,'unipolar',88),(10,'unipolar',89),(10,'unipolar',90),(10,'unipolar',91),(10,'unipolar',92),(10,'unipolar',93),(10,'unipolar',98),(10,'unipolar',99),(10,'bipolar',100),(10,'bipolar',101),(10,'bipolar',102),(10,'bipolar',103),(10,'bipolar',104),(10,'unipolar',105),(10,'unipolar',106),(10,'unipolar',107),(10,'unipolar',108),(10,'unipolar',109),(10,'unipolar',110),(10,'unipolar',111),(10,'unipolar',112); +INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78),(10,'unipolar',79),(10,'unipolar',80),(10,'bipolar',81),(10,'bipolar',82),(10,'bipolar',83),(10,'bipolar',84),(10,'bipolar',85),(10,'unipolar',86),(10,'unipolar',87),(10,'unipolar',88),(10,'unipolar',89),(10,'unipolar',90),(10,'unipolar',91),(10,'unipolar',92),(10,'unipolar',93),(10,'unipolar',98),(10,'unipolar',99),(10,'bipolar',100),(10,'bipolar',101),(10,'bipolar',102),(10,'bipolar',103),(10,'bipolar',104),(10,'unipolar',105),(10,'unipolar',106),(10,'unipolar',107),(10,'unipolar',108),(10,'unipolar',109),(10,'unipolar',110),(10,'unipolar',111),(10,'unipolar',112),(10,'unipolar',119),(10,'unipolar',123),(10,'unipolar',125),(10,'unipolar',128),(10,'unipolar',130),(10,'bipolar',131),(10,'unipolar',132),(10,'unipolar',133),(10,'unipolar',134),(10,'bipolar',135),(10,'unipolar',136),(10,'unipolar',137),(10,'unipolar',138),(10,'unipolar',139),(10,'unipolar',140),(10,'unipolar',141),(10,'unipolar',142),(10,'unipolar',143),(10,'unipolar',144),(10,'unipolar',145),(10,'unipolar',146),(10,'bipolar',147),(10,'unipolar',148),(10,'unipolar',149),(10,'bipolar',150); /*!40000 ALTER TABLE `psychometric_question` ENABLE KEYS */; UNLOCK TABLES; @@ -536,7 +536,7 @@ LOCK TABLES `psychometric_question_choices` WRITE; /*!40000 ALTER TABLE `psychometric_question_choices` DISABLE KEYS */; -INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'),(79,'I am very satisfied'),(79,'I am not satisfied at all'),(80,'very fair'),(80,'not at all fair'),(81,'I got too much fish'),(81,'I got the right amount of fish'),(81,'I got too few fish'),(82,'the others got too much fish'),(82,'the others got the right amount of fish'),(82,'the others got too few fish'),(83,'the earnings were too equal'),(83,'the earnings had the right variance'),(83,'the earnings were too varied'),(84,'the fishermen acted too similarly'),(84,'the actions had the right variance'),(84,'the fishermen acted too differently'),(85,'too much fish remained'),(85,'the right amount of fish remained'),(85,'too few fish remained'),(86,'applies completely'),(86,'applies not at all'),(87,'applies completely'),(87,'applies not at all'),(88,'applies completely'),(88,'applies not at all'),(89,'applies completely'),(89,'applies not at all'),(90,'applies completely'),(90,'applies not at all'),(91,'applies completely'),(91,'applies not at all'),(92,'applies completely'),(92,'applies not at all'),(93,'applies completely'),(93,'applies not at all'),(98,'I am very satisfied'),(98,'I am not satisfied at all'),(99,'very fair'),(99,'not at all fair'),(100,'I got too much fish'),(100,'I got the right amount of fish'),(100,'I got too few fish'),(101,'the others got too much fish'),(101,'the others got the right amount of fish'),(101,'the others got too few fish'),(102,'the earnings were too equal'),(102,'the earnings had the right variance'),(102,'the earnings were too varied'),(103,'the fishermen acted too similarly'),(103,'the actions had the right variance'),(103,'the fishermen acted too differently'),(104,'too much fish remained'),(104,'the right amount of fish remained'),(104,'too few fish remained'),(106,'applies completely'),(106,'applies not at all'),(105,'applies completely'),(105,'applies not at all'),(107,'applies completely'),(107,'applies not at all'),(108,'applies completely'),(108,'applies not at all'),(109,'applies completely'),(109,'applies not at all'),(110,'applies completely'),(110,'applies not at all'),(111,'applies completely'),(111,'applies not at all'),(112,'applies completely'),(112,'applies not at all'); +INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'),(79,'I am very satisfied'),(79,'I am not satisfied at all'),(80,'very fair'),(80,'not at all fair'),(81,'I got too much fish'),(81,'I got the right amount of fish'),(81,'I got too few fish'),(82,'the others got too much fish'),(82,'the others got the right amount of fish'),(82,'the others got too few fish'),(83,'the earnings were too equal'),(83,'the earnings had the right variance'),(83,'the earnings were too varied'),(84,'the fishermen acted too similarly'),(84,'the actions had the right variance'),(84,'the fishermen acted too differently'),(85,'too much fish remained'),(85,'the right amount of fish remained'),(85,'too few fish remained'),(86,'applies completely'),(86,'applies not at all'),(87,'applies completely'),(87,'applies not at all'),(88,'applies completely'),(88,'applies not at all'),(89,'applies completely'),(89,'applies not at all'),(90,'applies completely'),(90,'applies not at all'),(91,'applies completely'),(91,'applies not at all'),(92,'applies completely'),(92,'applies not at all'),(93,'applies completely'),(93,'applies not at all'),(98,'I am very satisfied'),(98,'I am not satisfied at all'),(99,'very fair'),(99,'not at all fair'),(100,'I got too much fish'),(100,'I got the right amount of fish'),(100,'I got too few fish'),(101,'the others got too much fish'),(101,'the others got the right amount of fish'),(101,'the others got too few fish'),(102,'the earnings were too equal'),(102,'the earnings had the right variance'),(102,'the earnings were too varied'),(103,'the fishermen acted too similarly'),(103,'the actions had the right variance'),(103,'the fishermen acted too differently'),(104,'too much fish remained'),(104,'the right amount of fish remained'),(104,'too few fish remained'),(106,'applies completely'),(106,'applies not at all'),(105,'applies completely'),(105,'applies not at all'),(107,'applies completely'),(107,'applies not at all'),(108,'applies completely'),(108,'applies not at all'),(109,'applies completely'),(109,'applies not at all'),(110,'applies completely'),(110,'applies not at all'),(111,'applies completely'),(111,'applies not at all'),(112,'applies completely'),(112,'applies not at all'),(119,'very important'),(119,'not important at all'),(123,'nearly as important'),(123,'not important at all'),(125,'nearly as important'),(125,'not important at all'),(128,'nearly as important'),(128,'not important at all'),(130,'nearly as important'),(130,'not important at all'),(131,'I like my group very much'),(131,'neutral'),(131,'I do not like my group at all'),(132,'very important'),(132,'not important at all'),(133,'very important'),(133,'not important at all'),(134,'very important'),(134,'not important at all'),(135,'completely as a team'),(135,'neutral'),(135,'completely as competing players'),(136,'very much'),(136,'not at all'),(137,'very important'),(137,'not important at all'),(138,'very much'),(138,'not at all'),(139,'very much'),(139,'not at all'),(140,'very much'),(140,'not at all'),(141,'very much'),(141,'not at all'),(142,'very much'),(142,'not at all'),(143,'very much'),(143,'not at all'),(144,'very much'),(144,'not at all'),(145,'very much'),(145,'not at all'),(146,'perfectly'),(146,'not at all'),(147,'much better'),(147,'same as me'),(147,'much worse'),(148,'very confident'),(148,'not at all confident'),(149,'totally'),(149,'not at all'),(150,'completely safe'),(150,'balancing risk and outcomes'),(150,'completely risky'); /*!40000 ALTER TABLE `psychometric_question_choices` ENABLE KEYS */; UNLOCK TABLES; @@ -557,7 +557,7 @@ PRIMARY KEY (`id`), KEY `FKBA823BE6CA626674` (`question_group_id`), CONSTRAINT `FKBA823BE6CA626674` FOREIGN KEY (`question_group_id`) REFERENCES `question_group` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -566,7 +566,7 @@ LOCK TABLES `question` WRITE; /*!40000 ALTER TABLE `question` DISABLE KEYS */; -INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62),(98,0,'',2,'psychometric',58),(99,0,'I feel the outcomes are:',3,'psychometric',58),(100,0,'',1,'psychometric',63),(101,0,'',2,'psychometric',63),(102,0,'',3,'psychometric',63),(103,0,'',4,'psychometric',63),(104,0,'',5,'psychometric',63),(105,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',64),(106,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough',2,'psychometric',64),(107,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',64),(108,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',64),(109,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',64),(110,0,'The group was too uncoordinated',6,'psychometric',64),(111,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',64),(112,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',64),(113,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',65),(114,0,'New understanding of fish dynamics',1,'text',66),(115,0,'New expectations on how the others of the group will act',2,'text',66),(116,0,'Ideas for improving your strategy',3,'text',66),(117,0,'Describe in your own words what the rule, agreement, or other coordination attempt states. Describe how you and the others should act and what would happen if one does not act in this way.<br>\rIf you cannot identify any sort of coordination attempt in the communication, write \"no coordination\" in the field below.<br>\r(The information you write in this field will be available the next time you edit your strategy.)',2,'text',31),(118,0,'How often do you play strategy games (i.e. any games where you have to anticipate the moves of other players and plan your own moves ahead, like computer games, card games, board games, etc)?',3,'categorical',36); +INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62),(98,0,'',2,'psychometric',58),(99,0,'I feel the outcomes are:',3,'psychometric',58),(100,0,'',1,'psychometric',63),(101,0,'',2,'psychometric',63),(102,0,'',3,'psychometric',63),(103,0,'',4,'psychometric',63),(104,0,'',5,'psychometric',63),(105,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',64),(106,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough',2,'psychometric',64),(107,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',64),(108,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',64),(109,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',64),(110,0,'The group was too uncoordinated',6,'psychometric',64),(111,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',64),(112,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',64),(113,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',65),(114,0,'New understanding of fish dynamics',1,'text',66),(115,0,'New expectations on how the others of the group will act',2,'text',66),(116,0,'Ideas for improving your strategy',3,'text',66),(117,0,'Describe in your own words what the rule, agreement, or other coordination attempt states. Describe how you and the others should act and what would happen if one does not act in this way.<br>\rIf you cannot identify any sort of coordination attempt in the communication, write \"no coordination\" in the field below.<br>\r(The information you write in this field will be available the next time you edit your strategy.)',2,'text',31),(118,0,'How often do you play strategy games (i.e. any games where you have to anticipate the moves of other players and plan your own moves ahead, like computer games, card games, board games, etc)?',3,'categorical',36),(119,0,'An example of a scale would be',1,'psychometric',41),(120,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',42),(121,0,'Most important goal:',1,'categorical',43),(122,0,'Second most important goal:',2,'categorical',43),(123,0,'Compared to the most important goal, this goal is',3,'psychometric',43),(124,0,'Third most important goal:',4,'categorical',43),(125,0,'Compared to the most important goal, this goal is',5,'psychometric',43),(126,0,'<b>Most important goal:</b>',1,'categorical',44),(127,0,'<b>Second most important goal:</b>',2,'categorical',44),(128,0,'Compared to the most important goal, this goal is',3,'psychometric',44),(129,0,'<b>Third most important goal:</b>',4,'categorical',44),(130,0,'Compared to the most important goal, this goal is',5,'psychometric',44),(131,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',45),(132,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',45),(133,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',45),(134,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',45),(135,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',45),(136,0,'How much do you trust the others in your group?',1,'psychometric',46),(137,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',46),(138,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',46),(139,0,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',46),(140,0,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',46),(141,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',47),(142,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',47),(143,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',47),(144,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',47),(145,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',47),(146,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',48),(147,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',48),(148,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',48),(149,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',48),(150,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',48),(151,0,'',1,'forecastingfishermen',49),(152,0,'',1,'forecastingfish',50); /*!40000 ALTER TABLE `question` ENABLE KEYS */; UNLOCK TABLES; @@ -871,4 +871,4 @@ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2009-08-14 15:46:07 +-- Dump completed on 2009-08-14 17:49:50 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ... [truncated message content] |
From: <see...@us...> - 2009-08-14 23:01:08
|
Revision: 253 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=253&view=rev Author: seematalele Date: 2009-08-14 23:00:55 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Have made changes in the location table. Moved harbor to first position. Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 22:51:40 UTC (rev 252) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 23:00:55 UTC (rev 253) @@ -400,7 +400,7 @@ LOCK TABLES `location` WRITE; /*!40000 ALTER TABLE `location` DISABLE KEYS */; -INSERT INTO `location` VALUES (1,NULL,0.5,5,'Bay1',10),(2,NULL,0.15,10,'Bay2',20),(3,NULL,0.05,15,'Bay3',30),(4,NULL,0,0,'Harbor',0); +INSERT INTO `location` VALUES (1,NULL,0,0,'Harbor',0),(2,NULL,0.5,5,'Bay1',10),(3,NULL,0.15,10,'Bay2',20),(4,NULL,0.05,15,'Bay3',30); /*!40000 ALTER TABLE `location` ENABLE KEYS */; UNLOCK TABLES; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kj...@us...> - 2009-08-14 22:53:12
|
Revision: 252 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=252&view=rev Author: kjonas Date: 2009-08-14 22:51:40 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 00:37:13 UTC (rev 251) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 22:51:40 UTC (rev 252) @@ -55,7 +55,7 @@ `id` bigint(20) NOT NULL AUTO_INCREMENT, `optionKey` varchar(255) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -64,7 +64,7 @@ LOCK TABLES `categorical_option` WRITE; /*!40000 ALTER TABLE `categorical_option` DISABLE KEYS */; -INSERT INTO `categorical_option` VALUES (1,'Focus on own earnings'),(2,'Focus on fish population'),(3,'Focus on what the others might do or think'),(7,'Focus on fish population'),(8,'Focus on what the others might do or think'),(9,'Focus on own earnings'),(10,'Focus on what the others might do or think'),(11,'Focus on fish population'),(12,'Focus on own earnings'),(13,'Focus on what the others might do or think:'),(14,'Focus on fish population'),(15,'Focus on own earnings'),(16,'The group agreed upon a quite clear rule of how to fish.'),(17,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(18,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(19,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(20,'The communication never touched the topic of how to fish or design the strategy.'),(21,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(22,'The group agreed upon a quite clear rule of how to fish.'),(23,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(24,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(25,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(26,'The communication never touched the topic of how to fish or design the strategy.'),(27,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(28,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(29,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(30,'1'),(31,'The communication never touched the topic of how to fish or design the strategy.'),(32,'The group agreed upon a quite clear rule of how to fish.'),(33,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(34,'2'),(35,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(36,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(37,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(38,'1'),(39,'1 to 6 months ago'),(40,'The communication never touched the topic of how to fish or design the strategy.'),(41,'1 to 4 weeks ago'),(42,'more than 6 months ago'),(43,'The group agreed upon a quite clear rule of how to fish.'),(44,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(45,'2'),(46,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(47,'less then 1 week ago'); +INSERT INTO `categorical_option` VALUES (1,'Focus on own earnings'),(2,'Focus on fish population'),(3,'Focus on what the others might do or think'),(7,'Focus on fish population'),(8,'Focus on what the others might do or think'),(9,'Focus on own earnings'),(10,'Focus on what the others might do or think'),(11,'Focus on fish population'),(12,'Focus on own earnings'),(13,'Focus on what the others might do or think:'),(14,'Focus on fish population'),(15,'Focus on own earnings'),(16,'The group agreed upon a quite clear rule of how to fish.'),(17,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(18,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(19,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(20,'The communication never touched the topic of how to fish or design the strategy.'),(21,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(22,'The group agreed upon a quite clear rule of how to fish.'),(23,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(24,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(25,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(26,'The communication never touched the topic of how to fish or design the strategy.'),(27,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(28,'Some sort of (maybe only vague) agreement of how to coordinate the fishing emerged.'),(29,'Several options of how to coordinate the fishing were discussed but there wasn’t any agreement.'),(30,'1'),(31,'The communication never touched the topic of how to fish or design the strategy.'),(32,'The group agreed upon a quite clear rule of how to fish.'),(33,'Fishing or the strategy were discussed but not in the form of coordinating ones actions.'),(34,'2'),(35,'No agreement emerged, but I got a vague idea of how to synchronize my fishing with the others.'),(48,'1 to 6 months ago'),(49,'less then 1 week ago'),(50,'more than 6 months ago'),(51,'1 to 4 weeks ago'),(52,'every 3 to 4 weeks'),(53,'several times per week'),(54,'every 1 or 2 weeks'),(55,'(almost) never'),(56,'less often'); /*!40000 ALTER TABLE `categorical_option` ENABLE KEYS */; UNLOCK TABLES; @@ -116,7 +116,7 @@ LOCK TABLES `categorical_options_pivot` WRITE; /*!40000 ALTER TABLE `categorical_options_pivot` DISABLE KEYS */; -INSERT INTO `categorical_options_pivot` VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(10,7),(10,8),(10,9),(11,10),(11,11),(11,12),(13,13),(13,14),(13,15),(51,16),(51,17),(51,18),(51,19),(51,20),(51,21),(52,22),(52,23),(52,24),(52,25),(52,26),(52,27),(53,28),(53,29),(53,30),(53,31),(53,32),(53,33),(53,34),(53,35),(73,36),(73,37),(73,38),(73,39),(73,40),(73,41),(73,42),(73,43),(73,44),(73,45),(73,46),(73,47); +INSERT INTO `categorical_options_pivot` VALUES (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3),(10,7),(10,8),(10,9),(11,10),(11,11),(11,12),(13,13),(13,14),(13,15),(51,16),(51,17),(51,18),(51,19),(51,20),(51,21),(73,48),(73,49),(73,50),(73,51),(118,52),(118,53),(118,54),(118,55),(118,56); /*!40000 ALTER TABLE `categorical_options_pivot` ENABLE KEYS */; UNLOCK TABLES; @@ -141,7 +141,7 @@ LOCK TABLES `categorical_question` WRITE; /*!40000 ALTER TABLE `categorical_question` DISABLE KEYS */; -INSERT INTO `categorical_question` VALUES (1),(2),(3),(10),(11),(13),(51),(52),(53),(73); +INSERT INTO `categorical_question` VALUES (1),(2),(3),(10),(11),(13),(51),(73),(118); /*!40000 ALTER TABLE `categorical_question` ENABLE KEYS */; UNLOCK TABLES; @@ -557,7 +557,7 @@ PRIMARY KEY (`id`), KEY `FKBA823BE6CA626674` (`question_group_id`), CONSTRAINT `FKBA823BE6CA626674` FOREIGN KEY (`question_group_id`) REFERENCES `question_group` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -566,7 +566,7 @@ LOCK TABLES `question` WRITE; /*!40000 ALTER TABLE `question` DISABLE KEYS */; -INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(52,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(53,0,'test',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62),(98,0,'',2,'psychometric',58),(99,0,'I feel the outcomes are:',3,'psychometric',58),(100,0,'',1,'psychometric',63),(101,0,'',2,'psychometric',63),(102,0,'',3,'psychometric',63),(103,0,'',4,'psychometric',63),(104,0,'',5,'psychometric',63),(105,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',64),(106,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough',2,'psychometric',64),(107,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',64),(108,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',64),(109,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',64),(110,0,'The group was too uncoordinated',6,'psychometric',64),(111,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',64),(112,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',64); +INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62),(98,0,'',2,'psychometric',58),(99,0,'I feel the outcomes are:',3,'psychometric',58),(100,0,'',1,'psychometric',63),(101,0,'',2,'psychometric',63),(102,0,'',3,'psychometric',63),(103,0,'',4,'psychometric',63),(104,0,'',5,'psychometric',63),(105,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',64),(106,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough',2,'psychometric',64),(107,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',64),(108,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',64),(109,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',64),(110,0,'The group was too uncoordinated',6,'psychometric',64),(111,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',64),(112,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',64),(113,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',65),(114,0,'New understanding of fish dynamics',1,'text',66),(115,0,'New expectations on how the others of the group will act',2,'text',66),(116,0,'Ideas for improving your strategy',3,'text',66),(117,0,'Describe in your own words what the rule, agreement, or other coordination attempt states. Describe how you and the others should act and what would happen if one does not act in this way.<br>\rIf you cannot identify any sort of coordination attempt in the communication, write \"no coordination\" in the field below.<br>\r(The information you write in this field will be available the next time you edit your strategy.)',2,'text',31),(118,0,'How often do you play strategy games (i.e. any games where you have to anticipate the moves of other players and plan your own moves ahead, like computer games, card games, board games, etc)?',3,'categorical',36); /*!40000 ALTER TABLE `question` ENABLE KEYS */; UNLOCK TABLES; @@ -871,4 +871,4 @@ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2009-08-13 17:01:52 +-- Dump completed on 2009-08-14 15:46:07 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-08-14 19:26:51
|
Today I come in to work at 12:15pm I will be checking to see that all the questions are in the database, including the simple categorical questions Seema has also aasked me to make changes to the strategy saving method. we will keep talking about this until we decide what changes to make |
From: <kj...@us...> - 2009-08-14 00:37:22
|
Revision: 251 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=251&view=rev Author: kjonas Date: 2009-08-14 00:37:13 +0000 (Fri, 14 Aug 2009) Log Message: ----------- Added up to approx 2(B)-5-05 into database Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-13 23:02:37 UTC (rev 250) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-14 00:37:13 UTC (rev 251) @@ -511,7 +511,7 @@ LOCK TABLES `psychometric_question` WRITE; /*!40000 ALTER TABLE `psychometric_question` DISABLE KEYS */; -INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78),(10,'unipolar',79),(10,'unipolar',80),(10,'bipolar',81),(10,'bipolar',82),(10,'bipolar',83),(10,'bipolar',84),(10,'bipolar',85),(10,'unipolar',86),(10,'unipolar',87),(10,'unipolar',88),(10,'unipolar',89),(10,'unipolar',90),(10,'unipolar',91),(10,'unipolar',92),(10,'unipolar',93); +INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78),(10,'unipolar',79),(10,'unipolar',80),(10,'bipolar',81),(10,'bipolar',82),(10,'bipolar',83),(10,'bipolar',84),(10,'bipolar',85),(10,'unipolar',86),(10,'unipolar',87),(10,'unipolar',88),(10,'unipolar',89),(10,'unipolar',90),(10,'unipolar',91),(10,'unipolar',92),(10,'unipolar',93),(10,'unipolar',98),(10,'unipolar',99),(10,'bipolar',100),(10,'bipolar',101),(10,'bipolar',102),(10,'bipolar',103),(10,'bipolar',104),(10,'unipolar',105),(10,'unipolar',106),(10,'unipolar',107),(10,'unipolar',108),(10,'unipolar',109),(10,'unipolar',110),(10,'unipolar',111),(10,'unipolar',112); /*!40000 ALTER TABLE `psychometric_question` ENABLE KEYS */; UNLOCK TABLES; @@ -536,7 +536,7 @@ LOCK TABLES `psychometric_question_choices` WRITE; /*!40000 ALTER TABLE `psychometric_question_choices` DISABLE KEYS */; -INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'),(79,'I am very satisfied'),(79,'I am not satisfied at all'),(80,'very fair'),(80,'not at all fair'),(81,'I got too much fish'),(81,'I got the right amount of fish'),(81,'I got too few fish'),(82,'the others got too much fish'),(82,'the others got the right amount of fish'),(82,'the others got too few fish'),(83,'the earnings were too equal'),(83,'the earnings had the right variance'),(83,'the earnings were too varied'),(84,'the fishermen acted too similarly'),(84,'the actions had the right variance'),(84,'the fishermen acted too differently'),(85,'too much fish remained'),(85,'the right amount of fish remained'),(85,'too few fish remained'),(86,'applies completely'),(86,'applies not at all'),(87,'applies completely'),(87,'applies not at all'),(88,'applies completely'),(88,'applies not at all'),(89,'applies completely'),(89,'applies not at all'),(90,'applies completely'),(90,'applies not at all'),(91,'applies completely'),(91,'applies not at all'),(92,'applies completely'),(92,'applies not at all'),(93,'applies completely'),(93,'applies not at all'); +INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'),(79,'I am very satisfied'),(79,'I am not satisfied at all'),(80,'very fair'),(80,'not at all fair'),(81,'I got too much fish'),(81,'I got the right amount of fish'),(81,'I got too few fish'),(82,'the others got too much fish'),(82,'the others got the right amount of fish'),(82,'the others got too few fish'),(83,'the earnings were too equal'),(83,'the earnings had the right variance'),(83,'the earnings were too varied'),(84,'the fishermen acted too similarly'),(84,'the actions had the right variance'),(84,'the fishermen acted too differently'),(85,'too much fish remained'),(85,'the right amount of fish remained'),(85,'too few fish remained'),(86,'applies completely'),(86,'applies not at all'),(87,'applies completely'),(87,'applies not at all'),(88,'applies completely'),(88,'applies not at all'),(89,'applies completely'),(89,'applies not at all'),(90,'applies completely'),(90,'applies not at all'),(91,'applies completely'),(91,'applies not at all'),(92,'applies completely'),(92,'applies not at all'),(93,'applies completely'),(93,'applies not at all'),(98,'I am very satisfied'),(98,'I am not satisfied at all'),(99,'very fair'),(99,'not at all fair'),(100,'I got too much fish'),(100,'I got the right amount of fish'),(100,'I got too few fish'),(101,'the others got too much fish'),(101,'the others got the right amount of fish'),(101,'the others got too few fish'),(102,'the earnings were too equal'),(102,'the earnings had the right variance'),(102,'the earnings were too varied'),(103,'the fishermen acted too similarly'),(103,'the actions had the right variance'),(103,'the fishermen acted too differently'),(104,'too much fish remained'),(104,'the right amount of fish remained'),(104,'too few fish remained'),(106,'applies completely'),(106,'applies not at all'),(105,'applies completely'),(105,'applies not at all'),(107,'applies completely'),(107,'applies not at all'),(108,'applies completely'),(108,'applies not at all'),(109,'applies completely'),(109,'applies not at all'),(110,'applies completely'),(110,'applies not at all'),(111,'applies completely'),(111,'applies not at all'),(112,'applies completely'),(112,'applies not at all'); /*!40000 ALTER TABLE `psychometric_question_choices` ENABLE KEYS */; UNLOCK TABLES; @@ -557,7 +557,7 @@ PRIMARY KEY (`id`), KEY `FKBA823BE6CA626674` (`question_group_id`), CONSTRAINT `FKBA823BE6CA626674` FOREIGN KEY (`question_group_id`) REFERENCES `question_group` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=113 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -566,7 +566,7 @@ LOCK TABLES `question` WRITE; /*!40000 ALTER TABLE `question` DISABLE KEYS */; -INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(52,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(53,0,'test',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62); +INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(52,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(53,0,'test',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62),(98,0,'',2,'psychometric',58),(99,0,'I feel the outcomes are:',3,'psychometric',58),(100,0,'',1,'psychometric',63),(101,0,'',2,'psychometric',63),(102,0,'',3,'psychometric',63),(103,0,'',4,'psychometric',63),(104,0,'',5,'psychometric',63),(105,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',64),(106,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough',2,'psychometric',64),(107,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',64),(108,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',64),(109,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',64),(110,0,'The group was too uncoordinated',6,'psychometric',64),(111,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',64),(112,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',64); /*!40000 ALTER TABLE `question` ENABLE KEYS */; UNLOCK TABLES; @@ -587,7 +587,7 @@ PRIMARY KEY (`id`), KEY `FK8F8090E61F51CEC1` (`block_id`), CONSTRAINT `FK8F8090E61F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -596,7 +596,7 @@ LOCK TABLES `question_group` WRITE; /*!40000 ALTER TABLE `question_group` DISABLE KEYS */; -INSERT INTO `question_group` VALUES (1,'In this experiment you will design a strategy to fish in an abstract fishing ground together with three other persons. As we are mainly interested in the reasons <i>why</i> you choose a certain strategy, we will ask you a number of questions. For the same reason, there are no correct or wrong strategies and no correct or wrong answers. However, since for each pound of fish you get during the experiment you will receive $1.00 US, you might be interested in finding a strategy that fits your goals well. For this, you will need to understand the dynamics of the (simulated) fish population and anticipate well the behavior of the other persons of your group.',30,'<b>Welcome to the E-Fishery Experiment</b>',1,1),(2,'<p>The experiment will run as follows:</p> <ul> <li><b>Introduction</b>: We will explain the interface and how the dynamics of the fish population are modeled. We will also ask you some questions about you and you will have the opportunity to make your decisions on how to fish on a (simulated) day-by-day basis to get a feeling for the dynamics of the fish population. </li> <li><b>Strategy design 1</b>: You will design a fishing strategy that will be simulated together with the strategies of the other persons in your group, and we ask you a larger amount of questions to understand your decisions and to help you reflect on those decisions. </li> <li><b>Fishing and evaluation 1</b>: Besides simulating the strategies you will decide on how to fish on a (simulated) day-by-day basis. Then, we will ask you some questions on your evaluation of the results. </li> <li><b>Communication</b>:You will have the opportunity to chat with the other persons in your group. After the chat we will ask some questions to asses your evaluation of the communication. </li> <li><b>Strategy design, fishing and evaluation 2</b>: The strategy design, fishing and evaluation are repeated as described above. </li> <li><b>Finishing the experiment</b>: The experiment closes with some final questions and more information on the experiment, and you will have the opportunity to give a feedback if you wish to do so. </li> </ul> <p> In the <b>information bar above the main window</b> you can see which part of the experiment you are in, your progress and how you are doing with the time. </p>',30,'<b>Experimental procedure</b>',2,1),(3,'<p>The <b>information window "Fishing Ground"</b> gives you an overview that will be explained here.</p> <p> Imagine you are living on an island and your only income is from a species of fish that only survives in the shallow bays formed by the island. The fish can leave crowed bays and move to less crowded bays, but they cannot survive in the ocean. Nor can new fish arrive from the ocean. </p> <p> The fish population grows at a constant rate. Thus, the more fish are in a bay the faster the population grows. However, the population a bay can sustain is limited and fish leave crowed bays to find less crowded bays. The more crowded a bay, the more fish leave and the less fish enter the bay (the movement is directly proportional to the percentage to which a bay is filled up). The number of fish leaving the bay is proportional to the rate of growth, and the number of fish entering the bay is also proportional to the amount of fish leaving the three bays (i.e. fish in the ocean). </p> <p> The equations of these dynamics are given in the information windows. It is, however, not necessary to know them for designing a strategy. For this, you only have to <b>understand the following five principles</b>: </p> <ul> <li>If all bays are <b>filled up</b> with fish, then the total growth is highest, but all additional lbs of fish are lost to the ocean and the amount of fish in the bays stops growing.</li> <li>If the bays are <b>half filled</b>, then the amount of fish in the bays grows fastest.</li> <li>If the bays are <b>nearly empty</b>, the population grows very slowly.</li> <li>If there is <b>no fish</b> in any of the bays, there will be never any fish again.</li> <li>If there are both <b>crowded and empty</b> bays, a lot of fish move from the crowded to the empty bays.</li> </ul> ',120,'<b>How the dynamics of the fish population are modeled</b>',3,1),(4,'<p>The three bays are different in size and characteristics leading to different growth rates and capacities (i.e. the maximal amount of fish the bay can sustain). At the start of the simulation each bay is half filled.</p> <table> <thead> <th></th><th>Bay 1</th><th>Bay 2</th><th>Bay 3</th> </thead> <tbody> <tr> <td>Capacity:</td><td>10 lb</td><td>20 lb</td><td>30 lb</td> </tr> <tr> <td>Starts with:</td><td>5 lb</td><td>10 lb</td><td>15 lb</td> </tr> <tr> <td>Growth rate:</td><td>50% per day</td><td>15% per day</td><td>5% per day</td> </tr> </tbody> </table> <p> <b>How much fish</b> you take out in a day is <b>directly proportional with the extent that the bay is filled up with fish</b>. Your fishing gear allows you to harvest a maximum of 5 lbs. Thus, if the bay is completely filled up you get 5 lb of fish. If the bay is half filled, you get 2.5 lb of fish. If the bay is filled up only to 20 % you will get 1 lb, etc. The fish population is diminished by the same amount. If several persons fish the same bay and together would get more fish than the bay holds, then all the fish in the bay are distributed equally among these fishermen. </p> <p>However, you can <b>stay in the harbor</b> instead of fishing. This way, you do not get anything and the fish population is not diminished. </p> <p> Your task is to design a strategy of how to fish this fishing ground for 30 days together with three other persons (thus, with you the group compromises 4 persons). You will define the number of days that you stay in each bay or in the harbor. Please note that this is not an exam! We do not expect you to find the mathematically optimal solution to this problem. We want to know how you come up with a solution that sufficiently fulfills your goals. As long as we can understand why you choose a certain strategy you can come up with whatever you like. </p> ',120,'<b>Differences of bays and effects of fishing</b>',4,1),(5,'<p>Before designing the strategy, you have the opportunity to make your decisions on a day-by-day basis for the simulation. You will interact with the actual model of the fishing ground together with the other persons of your group. Thus, the problems and possibilities you will experience in this warm-up are relevant for the design of your strategy. </p> <p> The <b>interface</b> you will encounter on the next page has the following elements: <ul> <li>Information on the day of the simulation</li> <li>Buttons for your decision. If you want to fish in Bay 1, for example, click on Button "Bay 1". </li> <li>Time remaining. You have 10 seconds for each decision. If you do not press any button within these 10 seconds then you will stay in the harbor for this day. However, you can change your decision within these 10 seconds (i.e. if you clicked on "Bay 1" after 4 seconds and after another 4 seconds on "Bay 3", you will go to Bay 3). </li> <li>Table of past results. Your previous locations from past days are highlighted. The table shows you how much you fished and who else was in the same location as you. You do not have any information of locations where you not have been. </li> ',60,'<b>A warm-up</b>',5,1),(6,'',345,'<b>Day-by-day-decisions</b>',6,1),(7,'<p>In what we refer to as a \'strategy\' you predefine your decisions of where to go each day of the simulation.\r Al-though only 30 days will be simulated, your strategy should represent your decisions for an indefinite period. Therefore you define a <b>set of decisions that will be repeated</b> until the end of the simulation. The set can contain as many decisions as you want but try to use as few as possible. Remember: Often simple strategies are more effective!</p> <p>It might be that you want to base your set of repeated decisions on another state of the fish population. In this case you can define a set of not repeated decisions that are applied at the beginning of the simulation. For example, you might first stay in the harbor to let the fish population increase or first fish all the bays to reduce the fish population before you start the repeated sequence of decisions.</p> <p>In this strategy you define how many days you stay at a certain location and to which other location you will move on.\r If, for example, you define to repeat the sequence \"2 days in harbor - 3 days in Bay 1 - 2 days in Bay 2\" you will not fish for two days, then fish in Bay 1 for three days, then fish in Bay 2 for two days, then not fish for two days, then fish in Bay 1 for three days, etc.</p> ',480,'<b>Designing your Strategy</b>',1,2),(8,'<p>Your strategy is mainly based on the number of days you stay at a certain location. However, things might run differently than you expected and you might wish to leave a bay earlier than the days you specified because you get too few fish out of that bay. For doing so you can specify a threshold of income. If you fish less then this threshold, the next day you will not fish this bay anymore but move on to the next location specified in your strategy.</p> <p>Note: Thresholds refer to the quantity of fish you get during one day fishing in a bay and not, for example, to the quantity of fish in the bay, fish fished by others, sum of fish already fished, etc.</p> <p>The final option you have is to stop repeating your strategy and stay in the harbor for some days. This op-tion can be used to prevent the total destruction of the fish population. For this you define a threshold and a number of days. If during one repetition of your decision set you never fished the amount defined by the threshold, then you stay in the harbor for the specified number of days before you start the next repetition.</p> <p>Note: Intentionally we do not allow designing \'intelligent\' strategies that search for solutions during the game. You have to think about what would be the best solution for you and express it with the options explained above.</p> ',90,'<b>Some special features of the strategy design</b>',2,2),(9,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',480,'<b>Design your strategy</b>',3,2),(10,'<p>Please specify three goals that most influenced the design of your strategy. You can select from 18 different goals grouped in three categories (foci). </p><p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal.</p><p> The information you write into these fields will be available the next time you edit your strategy.</p>',30,'<b>What goals did you follow when designing your strategy?</b>',3,3),(11,'<p>We will ask you a number of questions on the strategy you just designed. This will help us to better understand how you came up with your strategy and it might help you reflect on certain aspects to improve your strategy.</p>\r<p>Besides <b>large fields</b> to write text and <b>small fields</b> to write numbers, you will encounter drop-down lists for selecting predefined values and scales. </p>\r<p>To give an answer on a scale, click on the location between the labels that comes closest to your opinion. By clicking on the scale, a slider appears that marks the value you selected. You can change the value by clicking on another position on the scale. By clicking on the reset button, the sliders of all scales on a page are removed and you can start selecting values again.</p>\r<p>Please try to answer all questions even if you are not sure. We are not testing your abilities but rather want to understand how you came up with your strategy.</p>\r',30,'<b>Introduction to questionnaire</b>',1,3),(12,'<p>Please explain your strategy with a few sentences. Particularly consider the following aspects:</p>',300,'<b>Explain the strategy in your own words</b>',2,3),(13,'<p>Specify the three goals that you think most influenced the design of the strategy of the other fishermen in your group. You can select from 18 different goals grouped in three categories (foci).</p>\r<p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal</p>\r',30,'<b>What goals do you think the others follow?</b>',4,3),(14,'',30,'<b>How do you perceive your group?</b>',5,3),(15,'',30,'<b>How much do you count on others and how much can they count on you?</b>',6,3),(16,'',30,'<b>What else influenced your strategy design?</b>',7,3),(17,'',60,'<b>How confident are you in reaching the outcomes you are expecting?</b>',8,3),(18,'<p>Fill in the following table your expectations of the others’ actions (i.e. the number of fishermen in each bay) for the first 15 days. Please note that we ask only for the expectations of where the others will go. </p>',180,'<b>What are you expecting the others will do?</b>',9,3),(19,'<p>Please enter in the table below your expectations of how the fish population develops within the first six days. Note that by clicking on “Update” the earnings and fish remaining in the bays is calculated, using your expecta-tions of the other’s actions and your strategy. Thus, you only have to think about how the fish population changes from one day to the next due to growth and movement of the fish. These estimations can be really rough. We do not expect you do perform detailed calculations.</p>\r<b>Note: You can only change the entries of one day at a time. To calculate the values and activate the next day for entries click on “Update”. You cannot return to previous days!</b>\r',180,'<b>What are you expecting how the fish population will develop?</b>',10,3),(20,'By clicking on “Accept” you will leave this part of the questionnaire and return to the strategy design. <b>You can-not return to this or previous pages!</b> However, important information for the design of your strategy will be available in information windows.',30,'<b>Leaving questionnaire on your strategy</b>',11,3),(21,'<p>The previous questions may have lead to some reflections on your strategy and you may wish to change some elements of it. Among the information windows you will find your previous strategy, your goals and your fore-cast.</p>\r<p>The time for editing your strategy depends on how fast you finished the questionnaire. For the next simulation we have to synchronize the group again. If you have been rather fast, you can think now more deeply about your strategy. If you are rather behind the time suggestion, you have to make your changes quickly.</p>\r<p>The interface for designing your strategy will not be explained again. If you are not sure about some elements, please refer to the information window “Help on strategy design”.</p>\r',30,'<b>Edit your strategy</b>',1,4),(22,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',240,'<b>Design your strategy</b>',2,4),(23,'<p>Before we present the results of your strategy, we would like to see again how you make your decisions day-by-day. On the next page you will find the same interface as you already used to decide on how to fish the modeled fishing grounds.</p>',15,'<b>Applying your strategy in day-by-day decisions</b>',1,5),(24,'',345,'<b>Day-by-day-decisions</b>',2,5),(25,'<p>We will now present you the results of your strategy. By clicking on “Accept” you cannot return to this or any previous page, but the results of your day-by-day decisions (and also of your strategy) will be available in an information window.</p>',15,'<b>Leaving day-bay-day decisions</b>',3,5),(26,'',60,'<b>Your strategy resulted in the following actions</b>',1,6),(27,'<p>First we want to know your emotional reactions to the results:</p>',30,'<b>What are your emotional reactions to the outcome?</b>',2,6),(28,'You can now chat for 5 minutes with the other fishermen in your group. You can talk about whatever you want as long as you…\r<ul><li>…do not reveal your identity.</li>\r<li>…do not threaten others with any consequence after the experiment is finished.</li>\r<li>…do not promise others side-payments after the experiment is completed.</li></ul>\rThe interface works like a text messenger. In the text box at the bottom you write your text and by clicking on “Send” you send this text to all other group members. In the large box in the center of the window you see all messages that have been sent during the communication.<br>\rAfter five minutes the “Send” button will be deactivated and the “Next” button activated. Please click then on “Next” to answer some questions about the communication. You can return to this page to see the communication protocol again.\r',360,'<b>Chat with the other fishermen in your group</b>',1,7),(29,'Due to the conversation, I now…',30,'<b>Did the communication have any effect on you?</b>',1,15),(30,'Due to the conversation, the other fishermen in my group…',30,'<b>What do you think were the effects of the communication on the others?</b>',2,15),(31,'',60,'<b>Did the communication lead to some sort of coordination of the fishing?</b>',3,15),(32,'The rule, agreement, or coordination attempt is… ',30,'<b>What is your opinion about the rule(s) that emerged from communication?</b>',4,15),(33,'',30,'<b>What will be the effects of the rule?</b>',5,15),(34,'In the fields below note what you have learned from the communication to improve your strategy.<br>\rThink about your understanding of the dynamics of the fish population, your expectations about the behavior of the other fishermen in your group and possibilities to improve your strategy. For each of these aspects a separate field is offered. This information will be available in the next round of designing your strategy.<br>\rIf you have no entry for one of the fields below, write “none” in the respective field.<br>\rThe information you write into these fields will be available the next time you edit your strategy.',300,'<b>Lessons learned<b>',6,15),(35,'Congratulations! You finished the actual experiment. We want to ask you some final questions.',30,'<b>Some final questions about the experiment</b>',1,13),(36,'',90,'<b>Some final questions about you</b>',2,13),(37,'Thank you for participating in this experiment. Your contribution will help to better understand the effects of communication on the performance of groups. We tested whether the communication led to…\r<ul>\r<li>…a different understanding of the dynamics of the fish population.</li>\r<li>…different expectations of how the others in your group will act.</li>\r<li>…changes in the goals you follow or you expect the others to follow.</li>\r<li>…a form of ‘group feeling’ or ‘team spirit’.</li>\r<li>…the emergence of rules, agreements or other forms of coordination attempts.</li>\r<li>…the emergence of some kind of social pressure or commitment.</li>\r</ul>\rBesides advancing science, the experiment also allowed you to earn the following money:<br>\rFor participating in the game: US$<br>\rFrom fish you caught: US$<br>\rTotal: US$<br>\rThe money will be paid to you in private. Wait till your computer number is called and then proceed to the conference room where you have signed up.<br>\rWe hope the experiment was satisfying to you.<br>\rWhen you are ready you can click on “Accept” to leave the experiment.<br>\r',120,'<b>The end</b>',1,14),(38,'<p>In what we refer to as a \'strategy\' you predefine your decisions of where to go each day of the simulation.\r Al-though only 30 days will be simulated, your strategy should represent your decisions for an indefinite period. Therefore you define a <b>set of decisions that will be repeated</b> until the end of the simulation. The set can contain as many decisions as you want but try to use as few as possible. Remember: Often simple strategies are more effective!</p> <p>It might be that you want to base your set of repeated decisions on another state of the fish population. In this case you can define a set of not repeated decisions that are applied at the beginning of the simulation. For example, you might first stay in the harbor to let the fish population increase or first fish all the bays to reduce the fish population before you start the repeated sequence of decisions.</p> <p>In this strategy you define how many days you stay at a certain location and to which other location you will move on.\r If, for example, you define to repeat the sequence \"2 days in harbor - 3 days in Bay 1 - 2 days in Bay 2\" you will not fish for two days, then fish in Bay 1 for three days, then fish in Bay 2 for two days, then not fish for two days, then fish in Bay 1 for three days, etc.</p> ',480,'<b>Designing your Strategy</b>',1,8),(39,'<p>Your strategy is mainly based on the number of days you stay at a certain location. However, things might run differently than you expected and you might wish to leave a bay earlier than the days you specified because you get too few fish out of that bay. For doing so you can specify a threshold of income. If you fish less then this threshold, the next day you will not fish this bay anymore but move on to the next location specified in your strategy.</p> <p>Note: Thresholds refer to the quantity of fish you get during one day fishing in a bay and not, for example, to the quantity of fish in the bay, fish fished by others, sum of fish already fished, etc.</p> <p>The final option you have is to stop repeating your strategy and stay in the harbor for some days. This op-tion can be used to prevent the total destruction of the fish population. For this you define a threshold and a number of days. If during one repetition of your decision set you never fished the amount defined by the threshold, then you stay in the harbor for the specified number of days before you start the next repetition.</p> <p>Note: Intentionally we do not allow designing \'intelligent\' strategies that search for solutions during the game. You have to think about what would be the best solution for you and express it with the options explained above.</p> ',90,'<b>Some special features of the strategy design</b>',2,8),(40,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',480,'<b>Design your strategy</b>',3,8),(41,'<p>We will ask you a number of questions on the strategy you just designed. This will help us to better understand how you came up with your strategy and it might help you reflect on certain aspects to improve your strategy.</p>\r<p>Besides <b>large fields</b> to write text and <b>small fields</b> to write numbers, you will encounter drop-down lists for selecting predefined values and scales. </p>\r<p>To give an answer on a scale, click on the location between the labels that comes closest to your opinion. By clicking on the scale, a slider appears that marks the value you selected. You can change the value by clicking on another position on the scale. By clicking on the reset button, the sliders of all scales on a page are removed and you can start selecting values again.</p>\r<p>Please try to answer all questions even if you are not sure. We are not testing your abilities but rather want to understand how you came up with your strategy.</p>\r',90,'<b>Introduction to questionnaire</b>',1,9),(42,'<p>Please explain your strategy with a few sentences. Particularly consider the following aspects:</p>',300,'<b>Explain the strategy in your own words</b>',2,9),(43,'<p>Please specify three goals that most influenced the design of your strategy. You can select from 18 different goals grouped in three categories (foci). </p><p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal.</p><p> The information you write into these fields will be available the next time you edit your strategy.</p>',30,'<b>What goals did you follow when designing your strategy?</b>',3,9),(44,'<p>Specify the three goals that you think most influenced the design of the strategy of the other fishermen in your group. You can select from 18 different goals grouped in three categories (foci).</p>\r<p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal</p>\r',30,'<b>What goals do you think the others follow?</b>',4,9),(45,'',30,'<b>How do you perceive your group?</b>',5,9),(46,'',30,'<b>How much do you count on others and how much can they count on you?</b>',6,9),(47,'',30,'<b>What else influenced your strategy design?</b>',7,9),(48,'',60,'<b>How confident are you in reaching the outcomes you are expecting?</b>',8,9),(49,'<p>Fill in the following table your expectations of the others’ actions (i.e. the number of fishermen in each bay) for the first 15 days. Please note that we ask only for the expectations of where the others will go. </p>',180,'<b>What are you expecting the others will do?</b>',9,9),(50,'<p>Please enter in the table below your expectations of how the fish population develops within the first six days. Note that by clicking on “Update” the earnings and fish remaining in the bays is calculated, using your expecta-tions of the other’s actions and your strategy. Thus, you only have to think about how the fish population changes from one day to the next due to growth and movement of the fish. These estimations can be really rough. We do not expect you do perform detailed calculations.</p>\r<b>Note: You can only change the entries of one day at a time. To calculate the values and activate the next day for entries click on “Update”. You cannot return to previous days!</b>\r',180,'<b>What are you expecting how the fish population will develop?</b>',10,9),(51,'By clicking on “Accept” you will leave this part of the questionnaire and return to the strategy design. <b>You can-not return to this or previous pages!</b> However, important information for the design of your strategy will be available in information windows.',30,'<b>Leaving questionnaire on your strategy</b>',11,9),(52,'<p>The previous questions may have lead to some reflections on your strategy and you may wish to change some elements of it. Among the information windows you will find your previous strategy, your goals and your fore-cast.</p>\r<p>The time for editing your strategy depends on how fast you finished the questionnaire. For the next simulation we have to synchronize the group again. If you have been rather fast, you can think now more deeply about your strategy. If you are rather behind the time suggestion, you have to make your changes quickly.</p>\r<p>The interface for designing your strategy will not be explained again. If you are not sure about some elements, please refer to the information window “Help on strategy design”.</p>\r',30,'<b>Edit your strategy</b>',1,10),(53,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',240,'<b>Design your strategy</b>',2,10),(54,'<p>Before we present the results of your strategy, we would like to see again how you make your decisions day-by-day. On the next page you will find the same interface ... [truncated message content] |
From: Kalin J. <kj...@as...> - 2009-08-14 00:23:19
|
I check out today at 17:15pm (4hr) I found out that clearing the browser's cache will allow the newest versions of files to show up. I worked on the database and have finished entering block 2A-5 into the database. I have gotten through block 2B-5 up until page 2B-5-04, or so. will work more on this tomorrow. On Thu, Aug 13, 2009 at 1:21 PM, Kalin Jonas <kj...@as...> wrote: > I come in to work today at 13:15pm > I will be examining the code, and attempting to figure out why eclipse is > not showing the compiled files. > When eclipse is compiling and jetty will let me run the new files properly, > I will be able to continue working on getting the saveStrategy method to > work. > |
From: <kj...@us...> - 2009-08-13 23:02:55
|
Revision: 250 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=250&view=rev Author: kjonas Date: 2009-08-13 23:02:37 +0000 (Thu, 13 Aug 2009) Log Message: ----------- modified core to have popups for testing saveStrategy added block 2-5 to database. Modified Paths: -------------- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml mentalmodels/trunk/src/main/db/init-mme.sql mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf Modified: mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-08-13 20:53:14 UTC (rev 249) +++ mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-08-13 23:02:37 UTC (rev 250) @@ -72,8 +72,6 @@ <mx:method name="getAllLocations" result="locationResultHandler(event)"/> </mx:RemoteObject> - - <mx:Producer id="producer" destination="DataPush" acknowledge="ack(event)"/> <mx:Consumer id="consumer" destination="DataPush" message="messageHandler(event.message)" /> @@ -140,7 +138,6 @@ public function init():void { getLocations(); -// Alert.show("initialized"); } private function gotoInstructions():void @@ -247,7 +244,8 @@ var strategy:StrategyDesignQuestionC = StrategyDesignQuestionC(curr.getChildAt(j)); answeringService.saveStrategy(strategy.toDatabaseObject()); } - Alert.show(""+(curr.getChildAt(j) is StrategyDesignQuestionC)); +// if(curr.getChildAt(j) is StrategyDesignQuestionC) +// Alert.show("strategy found"); if(studentResponse.question != null) { Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-13 20:53:14 UTC (rev 249) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-13 23:02:37 UTC (rev 250) @@ -1,8 +1,8 @@ --- MySQL dump 10.13 Distrib 5.1.35, for Win32 (ia32) +-- MySQL dump 10.13 Distrib 5.1.36, for Win32 (ia32) -- -- Host: localhost Database: mme -- ------------------------------------------------------ --- Server version 5.1.35-community +-- Server version 5.1.36-community /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -511,7 +511,7 @@ LOCK TABLES `psychometric_question` WRITE; /*!40000 ALTER TABLE `psychometric_question` DISABLE KEYS */; -INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78); +INSERT INTO `psychometric_question` VALUES (10,'Unipolar',4),(10,'unipolar',7),(10,'unipolar',9),(10,'unipolar',12),(10,'unipolar',14),(10,'bipolar',15),(10,'unipolar',16),(10,'unipolar',17),(10,'unipolar',18),(10,'bipolar',19),(10,'unipolar',20),(10,'unipolar',21),(10,'unipolar',22),(10,'unipolar',23),(10,'unipolar',24),(10,'unipolar',25),(10,'unipolar',26),(10,'unipolar',27),(10,'unipolar',28),(10,'unipolar',29),(10,'unipolar',30),(10,'bipolar',31),(10,'unipolar',32),(10,'unipolar',33),(10,'bipolar',34),(10,'unipolar',40),(10,'unipolar',41),(10,'unipolar',42),(10,'unipolar',43),(10,'unipolar',44),(10,'bipolar',45),(10,'unipolar',46),(10,'unipolar',47),(10,'unipolar',48),(10,'unipolar',49),(10,'bipolar',50),(10,'unipolar',54),(10,'unipolar',55),(10,'bipolar',56),(10,'bipolar',57),(10,'bipolar',58),(10,'unipolar',59),(10,'unipolar',60),(10,'unipolar',61),(10,'unipolar',62),(10,'bipolar',63),(10,'bipolar',67),(10,'unipolar',68),(10,'unipolar',69),(10,'unipolar',70),(10,'unipolar',71),(10,'unipolar',78),(10,'unipolar',79),(10,'unipolar',80),(10,'bipolar',81),(10,'bipolar',82),(10,'bipolar',83),(10,'bipolar',84),(10,'bipolar',85),(10,'unipolar',86),(10,'unipolar',87),(10,'unipolar',88),(10,'unipolar',89),(10,'unipolar',90),(10,'unipolar',91),(10,'unipolar',92),(10,'unipolar',93); /*!40000 ALTER TABLE `psychometric_question` ENABLE KEYS */; UNLOCK TABLES; @@ -536,7 +536,7 @@ LOCK TABLES `psychometric_question_choices` WRITE; /*!40000 ALTER TABLE `psychometric_question_choices` DISABLE KEYS */; -INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'); +INSERT INTO `psychometric_question_choices` VALUES (4,'nearly as important'),(4,'not important at all'),(7,'very important'),(7,'not important at all'),(9,'nearly as important'),(9,'not important at all'),(12,'nearly as important'),(12,'not important at all'),(14,'nearly as important'),(14,'not important at all'),(15,'I like my group very much'),(15,'neutral'),(15,'I do not like my group at all'),(16,'very important'),(16,'not important at all'),(17,'very important'),(17,'not important at all'),(18,'very important'),(18,'not important at all'),(19,'completely as a team'),(19,'neutral'),(19,'completely as competing players'),(20,'very much'),(20,'not at all'),(21,'very important'),(21,'not important at all'),(22,'very much'),(22,'not at all'),(23,'very much'),(23,'not at all'),(24,'very much'),(24,'not at all'),(25,'very much'),(25,'not at all'),(26,'very much'),(27,'very much'),(27,'not at all'),(28,'very much'),(28,'not at all'),(29,'very much'),(29,'not at all'),(30,'perfectly'),(30,'not at all'),(31,'much better'),(31,'same as me'),(31,'much worse'),(32,'very confident'),(32,'not at all confident'),(33,'totally'),(33,'not at all'),(34,'completely ‘safe’'),(34,'balancing risk and outcomes'),(34,'completely ‘risky’'),(26,'not at all'),(40,'I am very surprised'),(40,'I am not surprised at all'),(41,'very much'),(41,'not at all'),(42,'very much'),(42,'not at all'),(43,'very much'),(43,'not at all'),(44,'very much'),(45,'much more positively'),(45,'same as before'),(45,'much more negatively'),(46,'very much'),(46,'not at all'),(47,'very much'),(47,'not at all'),(48,'very much'),(48,'not at all'),(49,'very much'),(49,'not at all'),(50,'much more positively'),(50,'same as before'),(50,'much more negatively'),(54,'…developed by all group members'),(54,'…made up by a single player'),(55,'…very fair'),(55,'…not fair at all'),(56,'…leading to much higher earnings for the group'),(56,' '),(56,'…leading to much lower earnings for the group'),(57,'…protecting the fish population'),(57,' '),(57,'…destroying the fish population'),(58,'…overall a very good solution'),(58,' '),(58,'…overall a very bad solution'),(59,'totally clear'),(59,'not clear at all'),(60,'…totally understood'),(60,'…did not understand at all'),(61,'I will totally follow the rule'),(61,'I will not at all follow the rule'),(62,'totally follow the rule'),(62,'not at all follow the rule'),(63,'the group will do much better'),(63,' '),(63,'the group will do much worse'),(67,'very interesting'),(67,'neutral'),(67,'very boring'),(68,'very much effort'),(68,'no effort at all'),(69,'very difficult'),(69,'not at all difficult'),(70,'very difficult'),(70,'not at all difficult'),(71,'very clear'),(71,'not clear at all'),(78,'I am very surprised'),(78,'I am not surprised at all'),(79,'I am very satisfied'),(79,'I am not satisfied at all'),(80,'very fair'),(80,'not at all fair'),(81,'I got too much fish'),(81,'I got the right amount of fish'),(81,'I got too few fish'),(82,'the others got too much fish'),(82,'the others got the right amount of fish'),(82,'the others got too few fish'),(83,'the earnings were too equal'),(83,'the earnings had the right variance'),(83,'the earnings were too varied'),(84,'the fishermen acted too similarly'),(84,'the actions had the right variance'),(84,'the fishermen acted too differently'),(85,'too much fish remained'),(85,'the right amount of fish remained'),(85,'too few fish remained'),(86,'applies completely'),(86,'applies not at all'),(87,'applies completely'),(87,'applies not at all'),(88,'applies completely'),(88,'applies not at all'),(89,'applies completely'),(89,'applies not at all'),(90,'applies completely'),(90,'applies not at all'),(91,'applies completely'),(91,'applies not at all'),(92,'applies completely'),(92,'applies not at all'),(93,'applies completely'),(93,'applies not at all'); /*!40000 ALTER TABLE `psychometric_question_choices` ENABLE KEYS */; UNLOCK TABLES; @@ -557,7 +557,7 @@ PRIMARY KEY (`id`), KEY `FKBA823BE6CA626674` (`question_group_id`), CONSTRAINT `FKBA823BE6CA626674` FOREIGN KEY (`question_group_id`) REFERENCES `question_group` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -566,7 +566,7 @@ LOCK TABLES `question` WRITE; /*!40000 ALTER TABLE `question` DISABLE KEYS */; -INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(52,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(53,0,'test',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58); +INSERT INTO `question` VALUES (1,0,'Most important goal:',1,'categorical',10),(2,0,'Second most important goal:',2,'categorical',10),(3,0,'Third most important goal:',4,'categorical',10),(4,0,'Compared to the most important goal, this goal is',3,'psychometric',10),(6,0,'',1,'daybydaydecisions',6),(7,0,'An example of a scale would be',1,'psychometric',11),(8,0,'<ul>\r<li>Why did you design the strategy the way you did? What did you consider and why do you think your strategy is an adequate solution?</li>\r<li>What actions do you expect from the other fishermen in your group? Why do you think, they might act this way?</li>\r<li>How do you think your strategy will work? Will the fish population grow or shrink in the different bays? What earnings do you expect?</li>\r</ul>\r',1,'text',12),(9,0,'Compared to the most important goal, this goal is',5,'psychometric',10),(10,0,'<b>Most important goal:</b>',1,'categorical',13),(11,0,'<b>Second most important goal:</b>',2,'categorical',13),(12,0,'Compared to the most important goal, this goal is',3,'psychometric',13),(13,0,'<b>Third most important goal:</b>',4,'categorical',13),(14,0,'Compared to the most important goal, this goal is',5,'psychometric',13),(15,0,'Over all, how much do like your group (i.e. the other players)?',1,'psychometric',14),(16,0,'How important is it for you what the others think about you and your behavior (i.e. your reputation in the group)?',2,'psychometric',14),(17,0,'How important is it for you that the others can reach their goals (i.e. the outcomes are fair)?',3,'psychometric',14),(18,0,'What do you think, how important is it for the others that you can reach your goals (i.e. the outcomes are fair)?',4,'psychometric',14),(19,0,'Do you perceive the group as a team or as competing players?',5,'psychometric',14),(20,0,'How much do you trust the others in your group?',1,'psychometric',15),(21,0,'How important is it for you that the others in your group can and do trust you?',2,'psychometric',15),(22,0,'How much do you think your group trying to coordinate their actions to reach better outcomes for all?',3,'psychometric',15),(23,1,'How much are you trying to follow rules or agreements that emerged from the communication?',4,'psychometric',15),(24,1,'How much do you think <i>the others</i> are trying to follow rules or agreements that emerged from the communica-tion?',5,'psychometric',15),(25,0,'Do you feel a sense of ‘commitment’ to act in the way you specified in your strategy?',1,'psychometric',16),(26,0,'Would you feel any discomfort or tension if you would act differently than you specified in your strategy?',2,'psychometric',16),(27,0,'Do you feel any sort of ‘social pressure’ to act in the way you specified in your strategy?',3,'psychometric',16),(28,0,'Would you feel guilt or shame if you had acted differently than you specified in your strategy?',4,'psychometric',16),(29,0,'Are you afraid of some sort of ‘punishment’ if you had acted differently as specified in your strategy?',5,'psychometric',16),(30,0,'How well did you understand the dynamics of the fish population?',1,'psychometric',17),(31,0,'Did the others in your group understand the dynamics better or worse than you?',2,'psychometric',17),(32,0,'How confident are you in having developed a strategy that leads to ‘good’ outcomes regarding your goals?',3,'psychometric',17),(33,0,'How much does your strategy depend on how the others in the group will act to reach the desired outcomes?',4,'psychometric',17),(34,0,'Would you classify your strategy as ‘safe’ in the sense of having acceptable but suboptimal results for sure, or rather as ‘risky’ in the sense of having the optimal results if everything runs like expected or very poor results otherwise?',5,'psychometric',17),(35,0,'',1,'forecastingfishermen',18),(36,0,'',1,'forecastingfish',19),(37,0,'',1,'strategydesign',9),(38,0,'',1,'strategydesign',22),(39,0,'',1,'daybydaydecisions',24),(40,0,'',1,'psychometric',27),(41,0,'… better understand the dynamics of the fish population.',1,'psychometric',29),(42,0,'… better understand the other fishermen in my group.',2,'psychometric',29),(43,0,'… better understand how to design the strategy.',3,'psychometric',29),(44,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',29),(45,0,'… appraise the other fishermen in my group differently. Now I think about the others…',5,'psychometric',29),(46,0,'… better understand the dynamics of the fish population.',1,'psychometric',30),(47,0,'… better understand the other fishermen.',2,'psychometric',30),(48,0,'… better understand how to design the strategy.',3,'psychometric',30),(49,0,'… feel a ‘team spirit’ in the group.',4,'psychometric',30),(50,0,'… appraise the other fishermen in my group differently. Now I think about the others …',5,'psychometric',30),(51,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(52,0,'Did the communication have any form of reference to how to fish or design the strategy?',1,'categorical',31),(53,0,'test',1,'categorical',31),(54,0,'',1,'psychometric',32),(55,0,'',2,'psychometric',32),(56,0,'',3,'psychometric',32),(57,0,'',4,'psychometric',32),(58,0,'',5,'psychometric',32),(59,0,'How clear is it to you, that you have to fish conforming to this rule, agreement or coordination attempt?',1,'psychometric',33),(60,0,'Do you think the other fishermen understood how they have to act according to this rule?<br>I think the others… ',2,'psychometric',33),(61,0,'Will you follow the rule, agreement, or coordination attempt that emerged from communication?<br>I will follow the rule…',3,'psychometric',33),(62,0,'Do you think, the other fishermen in you group will follow the rule, agreement, or coordination attempt?<br>\rI think, the others will… ',4,'psychometric',33),(63,0,'Considering the effects you expect for following the rule and your expectations of how the group will follow the rule, do you think the group will do better or worse due to the rule?',5,'psychometric',33),(64,0,'New understanding of fish dynamics',1,'text',34),(65,0,'New Expectations on how the others of the group will act',2,'text',34),(66,0,'Ideas for improving your strategy',3,'text',34),(67,0,'How interesting was the experiment for you?',1,'psychometric',35),(68,0,'How would you rate the effort you invested to design your strategy?',2,'psychometric',35),(69,0,'How difficult was it to understand the problem?',3,'psychometric',35),(70,0,'How difficult was it to find a good strategy?',4,'psychometric',35),(71,0,'How clear was it what you had to do?',5,'psychometric',35),(72,0,'How many times have you participated in problem solving experiments similar to this one?',1,'text',36),(73,0,'If you already participated in such experiments, when was the last time?',2,'categorical',36),(74,0,'Comments and Feedback',1,'text',37),(75,0,'',1,'strategydesign',40),(76,0,'',1,'strategydesign',53),(77,0,'',1,'daybydaydecisions',55),(78,0,'',1,'psychometric',58),(79,0,'',2,'psychometric',27),(80,0,'I feel the outcomes are:',3,'psychometric',27),(81,0,'',1,'psychometric',59),(82,0,'',2,'psychometric',59),(83,0,'',3,'psychometric',59),(84,0,'',4,'psychometric',59),(85,0,'',5,'psychometric',59),(86,0,'I did not understand the dynamics of the fish population well enough.',1,'psychometric',60),(87,0,'Some of the other fishermen did not understand the dynamics of the fish population well enough.',2,'psychometric',60),(88,0,'The actions of the others in my group did not help my strategy work well.',3,'psychometric',60),(89,0,'Some of the other fishermen acted too reluctantly (harvested too few).',4,'psychometric',60),(90,0,'Some of the other fishermen acted too aggressively (harvested too much).',5,'psychometric',60),(91,0,'The group was too uncoordinated',6,'psychometric',60),(92,0,'The group did not follow the rules or agreements that emerged from the communication enough.',7,'psychometric',60),(93,0,'The rules or agreements that emerged from the communication did not work out well.',8,'psychometric',60),(94,0,'What were the most important reasons for you to deviate from your strategy during the day-by-day decisions?<br>\rIf you did not deviate from your strategy then please write something like \"No difference\" in the text field.',1,'text',61),(95,0,'New understanding of fish dynamics',1,'text',62),(96,0,'New expectations on how the others of the group will act',2,'text',62),(97,0,'Ideas for improving your strategy',3,'text',62); /*!40000 ALTER TABLE `question` ENABLE KEYS */; UNLOCK TABLES; @@ -587,7 +587,7 @@ PRIMARY KEY (`id`), KEY `FK8F8090E61F51CEC1` (`block_id`), CONSTRAINT `FK8F8090E61F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -596,7 +596,7 @@ LOCK TABLES `question_group` WRITE; /*!40000 ALTER TABLE `question_group` DISABLE KEYS */; -INSERT INTO `question_group` VALUES (1,'In this experiment you will design a strategy to fish in an abstract fishing ground together with three other persons. As we are mainly interested in the reasons <i>why</i> you choose a certain strategy, we will ask you a number of questions. For the same reason, there are no correct or wrong strategies and no correct or wrong answers. However, since for each pound of fish you get during the experiment you will receive $1.00 US, you might be interested in finding a strategy that fits your goals well. For this, you will need to understand the dynamics of the (simulated) fish population and anticipate well the behavior of the other persons of your group.',30,'<b>Welcome to the E-Fishery Experiment</b>',1,1),(2,'<p>The experiment will run as follows:</p> <ul> <li><b>Introduction</b>: We will explain the interface and how the dynamics of the fish population are modeled. We will also ask you some questions about you and you will have the opportunity to make your decisions on how to fish on a (simulated) day-by-day basis to get a feeling for the dynamics of the fish population. </li> <li><b>Strategy design 1</b>: You will design a fishing strategy that will be simulated together with the strategies of the other persons in your group, and we ask you a larger amount of questions to understand your decisions and to help you reflect on those decisions. </li> <li><b>Fishing and evaluation 1</b>: Besides simulating the strategies you will decide on how to fish on a (simulated) day-by-day basis. Then, we will ask you some questions on your evaluation of the results. </li> <li><b>Communication</b>:You will have the opportunity to chat with the other persons in your group. After the chat we will ask some questions to asses your evaluation of the communication. </li> <li><b>Strategy design, fishing and evaluation 2</b>: The strategy design, fishing and evaluation are repeated as described above. </li> <li><b>Finishing the experiment</b>: The experiment closes with some final questions and more information on the experiment, and you will have the opportunity to give a feedback if you wish to do so. </li> </ul> <p> In the <b>information bar above the main window</b> you can see which part of the experiment you are in, your progress and how you are doing with the time. </p>',30,'<b>Experimental procedure</b>',2,1),(3,'<p>The <b>information window "Fishing Ground"</b> gives you an overview that will be explained here.</p> <p> Imagine you are living on an island and your only income is from a species of fish that only survives in the shallow bays formed by the island. The fish can leave crowed bays and move to less crowded bays, but they cannot survive in the ocean. Nor can new fish arrive from the ocean. </p> <p> The fish population grows at a constant rate. Thus, the more fish are in a bay the faster the population grows. However, the population a bay can sustain is limited and fish leave crowed bays to find less crowded bays. The more crowded a bay, the more fish leave and the less fish enter the bay (the movement is directly proportional to the percentage to which a bay is filled up). The number of fish leaving the bay is proportional to the rate of growth, and the number of fish entering the bay is also proportional to the amount of fish leaving the three bays (i.e. fish in the ocean). </p> <p> The equations of these dynamics are given in the information windows. It is, however, not necessary to know them for designing a strategy. For this, you only have to <b>understand the following five principles</b>: </p> <ul> <li>If all bays are <b>filled up</b> with fish, then the total growth is highest, but all additional lbs of fish are lost to the ocean and the amount of fish in the bays stops growing.</li> <li>If the bays are <b>half filled</b>, then the amount of fish in the bays grows fastest.</li> <li>If the bays are <b>nearly empty</b>, the population grows very slowly.</li> <li>If there is <b>no fish</b> in any of the bays, there will be never any fish again.</li> <li>If there are both <b>crowded and empty</b> bays, a lot of fish move from the crowded to the empty bays.</li> </ul> ',120,'<b>How the dynamics of the fish population are modeled</b>',3,1),(4,'<p>The three bays are different in size and characteristics leading to different growth rates and capacities (i.e. the maximal amount of fish the bay can sustain). At the start of the simulation each bay is half filled.</p> <table> <thead> <th></th><th>Bay 1</th><th>Bay 2</th><th>Bay 3</th> </thead> <tbody> <tr> <td>Capacity:</td><td>10 lb</td><td>20 lb</td><td>30 lb</td> </tr> <tr> <td>Starts with:</td><td>5 lb</td><td>10 lb</td><td>15 lb</td> </tr> <tr> <td>Growth rate:</td><td>50% per day</td><td>15% per day</td><td>5% per day</td> </tr> </tbody> </table> <p> <b>How much fish</b> you take out in a day is <b>directly proportional with the extent that the bay is filled up with fish</b>. Your fishing gear allows you to harvest a maximum of 5 lbs. Thus, if the bay is completely filled up you get 5 lb of fish. If the bay is half filled, you get 2.5 lb of fish. If the bay is filled up only to 20 % you will get 1 lb, etc. The fish population is diminished by the same amount. If several persons fish the same bay and together would get more fish than the bay holds, then all the fish in the bay are distributed equally among these fishermen. </p> <p>However, you can <b>stay in the harbor</b> instead of fishing. This way, you do not get anything and the fish population is not diminished. </p> <p> Your task is to design a strategy of how to fish this fishing ground for 30 days together with three other persons (thus, with you the group compromises 4 persons). You will define the number of days that you stay in each bay or in the harbor. Please note that this is not an exam! We do not expect you to find the mathematically optimal solution to this problem. We want to know how you come up with a solution that sufficiently fulfills your goals. As long as we can understand why you choose a certain strategy you can come up with whatever you like. </p> ',120,'<b>Differences of bays and effects of fishing</b>',4,1),(5,'<p>Before designing the strategy, you have the opportunity to make your decisions on a day-by-day basis for the simulation. You will interact with the actual model of the fishing ground together with the other persons of your group. Thus, the problems and possibilities you will experience in this warm-up are relevant for the design of your strategy. </p> <p> The <b>interface</b> you will encounter on the next page has the following elements: <ul> <li>Information on the day of the simulation</li> <li>Buttons for your decision. If you want to fish in Bay 1, for example, click on Button "Bay 1". </li> <li>Time remaining. You have 10 seconds for each decision. If you do not press any button within these 10 seconds then you will stay in the harbor for this day. However, you can change your decision within these 10 seconds (i.e. if you clicked on "Bay 1" after 4 seconds and after another 4 seconds on "Bay 3", you will go to Bay 3). </li> <li>Table of past results. Your previous locations from past days are highlighted. The table shows you how much you fished and who else was in the same location as you. You do not have any information of locations where you not have been. </li> ',60,'<b>A warm-up</b>',5,1),(6,'',345,'<b>Day-by-day-decisions</b>',6,1),(7,'<p>In what we refer to as a \'strategy\' you predefine your decisions of where to go each day of the simulation.\r Al-though only 30 days will be simulated, your strategy should represent your decisions for an indefinite period. Therefore you define a <b>set of decisions that will be repeated</b> until the end of the simulation. The set can contain as many decisions as you want but try to use as few as possible. Remember: Often simple strategies are more effective!</p> <p>It might be that you want to base your set of repeated decisions on another state of the fish population. In this case you can define a set of not repeated decisions that are applied at the beginning of the simulation. For example, you might first stay in the harbor to let the fish population increase or first fish all the bays to reduce the fish population before you start the repeated sequence of decisions.</p> <p>In this strategy you define how many days you stay at a certain location and to which other location you will move on.\r If, for example, you define to repeat the sequence \"2 days in harbor - 3 days in Bay 1 - 2 days in Bay 2\" you will not fish for two days, then fish in Bay 1 for three days, then fish in Bay 2 for two days, then not fish for two days, then fish in Bay 1 for three days, etc.</p> ',480,'<b>Designing your Strategy</b>',1,2),(8,'<p>Your strategy is mainly based on the number of days you stay at a certain location. However, things might run differently than you expected and you might wish to leave a bay earlier than the days you specified because you get too few fish out of that bay. For doing so you can specify a threshold of income. If you fish less then this threshold, the next day you will not fish this bay anymore but move on to the next location specified in your strategy.</p> <p>Note: Thresholds refer to the quantity of fish you get during one day fishing in a bay and not, for example, to the quantity of fish in the bay, fish fished by others, sum of fish already fished, etc.</p> <p>The final option you have is to stop repeating your strategy and stay in the harbor for some days. This op-tion can be used to prevent the total destruction of the fish population. For this you define a threshold and a number of days. If during one repetition of your decision set you never fished the amount defined by the threshold, then you stay in the harbor for the specified number of days before you start the next repetition.</p> <p>Note: Intentionally we do not allow designing \'intelligent\' strategies that search for solutions during the game. You have to think about what would be the best solution for you and express it with the options explained above.</p> ',90,'<b>Some special features of the strategy design</b>',2,2),(9,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',480,'<b>Design your strategy</b>',3,2),(10,'<p>Please specify three goals that most influenced the design of your strategy. You can select from 18 different goals grouped in three categories (foci). </p><p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal.</p><p> The information you write into these fields will be available the next time you edit your strategy.</p>',30,'<b>What goals did you follow when designing your strategy?</b>',3,3),(11,'<p>We will ask you a number of questions on the strategy you just designed. This will help us to better understand how you came up with your strategy and it might help you reflect on certain aspects to improve your strategy.</p>\r<p>Besides <b>large fields</b> to write text and <b>small fields</b> to write numbers, you will encounter drop-down lists for selecting predefined values and scales. </p>\r<p>To give an answer on a scale, click on the location between the labels that comes closest to your opinion. By clicking on the scale, a slider appears that marks the value you selected. You can change the value by clicking on another position on the scale. By clicking on the reset button, the sliders of all scales on a page are removed and you can start selecting values again.</p>\r<p>Please try to answer all questions even if you are not sure. We are not testing your abilities but rather want to understand how you came up with your strategy.</p>\r',30,'<b>Introduction to questionnaire</b>',1,3),(12,'<p>Please explain your strategy with a few sentences. Particularly consider the following aspects:</p>',300,'<b>Explain the strategy in your own words</b>',2,3),(13,'<p>Specify the three goals that you think most influenced the design of the strategy of the other fishermen in your group. You can select from 18 different goals grouped in three categories (foci).</p>\r<p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal</p>\r',30,'<b>What goals do you think the others follow?</b>',4,3),(14,'',30,'<b>How do you perceive your group?</b>',5,3),(15,'',30,'<b>How much do you count on others and how much can they count on you?</b>',6,3),(16,'',30,'<b>What else influenced your strategy design?</b>',7,3),(17,'',60,'<b>How confident are you in reaching the outcomes you are expecting?</b>',8,3),(18,'<p>Fill in the following table your expectations of the others’ actions (i.e. the number of fishermen in each bay) for the first 15 days. Please note that we ask only for the expectations of where the others will go. </p>',180,'<b>What are you expecting the others will do?</b>',9,3),(19,'<p>Please enter in the table below your expectations of how the fish population develops within the first six days. Note that by clicking on “Update” the earnings and fish remaining in the bays is calculated, using your expecta-tions of the other’s actions and your strategy. Thus, you only have to think about how the fish population changes from one day to the next due to growth and movement of the fish. These estimations can be really rough. We do not expect you do perform detailed calculations.</p>\r<b>Note: You can only change the entries of one day at a time. To calculate the values and activate the next day for entries click on “Update”. You cannot return to previous days!</b>\r',180,'<b>What are you expecting how the fish population will develop?</b>',10,3),(20,'By clicking on “Accept” you will leave this part of the questionnaire and return to the strategy design. <b>You can-not return to this or previous pages!</b> However, important information for the design of your strategy will be available in information windows.',30,'<b>Leaving questionnaire on your strategy</b>',11,3),(21,'<p>The previous questions may have lead to some reflections on your strategy and you may wish to change some elements of it. Among the information windows you will find your previous strategy, your goals and your fore-cast.</p>\r<p>The time for editing your strategy depends on how fast you finished the questionnaire. For the next simulation we have to synchronize the group again. If you have been rather fast, you can think now more deeply about your strategy. If you are rather behind the time suggestion, you have to make your changes quickly.</p>\r<p>The interface for designing your strategy will not be explained again. If you are not sure about some elements, please refer to the information window “Help on strategy design”.</p>\r',30,'<b>Edit your strategy</b>',1,4),(22,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',240,'<b>Design your strategy</b>',2,4),(23,'<p>Before we present the results of your strategy, we would like to see again how you make your decisions day-by-day. On the next page you will find the same interface as you already used to decide on how to fish the modeled fishing grounds.</p>',15,'<b>Applying your strategy in day-by-day decisions</b>',1,5),(24,'',345,'<b>Day-by-day-decisions</b>',2,5),(25,'<p>We will now present you the results of your strategy. By clicking on “Accept” you cannot return to this or any previous page, but the results of your day-by-day decisions (and also of your strategy) will be available in an information window.</p>',15,'<b>Leaving day-bay-day decisions</b>',3,5),(26,'',60,'<b>Your strategy resulted in the following actions</b>',1,6),(27,'<p>First we want to know your emotional reactions to the results:</p>',30,'<b>What are your emotional reactions to the outcome?</b>',2,6),(28,'You can now chat for 5 minutes with the other fishermen in your group. You can talk about whatever you want as long as you…\r<ul><li>…do not reveal your identity.</li>\r<li>…do not threaten others with any consequence after the experiment is finished.</li>\r<li>…do not promise others side-payments after the experiment is completed.</li></ul>\rThe interface works like a text messenger. In the text box at the bottom you write your text and by clicking on “Send” you send this text to all other group members. In the large box in the center of the window you see all messages that have been sent during the communication.<br>\rAfter five minutes the “Send” button will be deactivated and the “Next” button activated. Please click then on “Next” to answer some questions about the communication. You can return to this page to see the communication protocol again.\r',360,'<b>Chat with the other fishermen in your group</b>',1,7),(29,'Due to the conversation, I now…',30,'<b>Did the communication have any effect on you?</b>',1,15),(30,'Due to the conversation, the other fishermen in my group…',30,'<b>What do you think were the effects of the communication on the others?</b>',2,15),(31,'',60,'<b>Did the communication lead to some sort of coordination of the fishing?</b>',3,15),(32,'The rule, agreement, or coordination attempt is… ',30,'<b>What is your opinion about the rule(s) that emerged from communication?</b>',4,15),(33,'',30,'<b>What will be the effects of the rule?</b>',5,15),(34,'In the fields below note what you have learned from the communication to improve your strategy.<br>\rThink about your understanding of the dynamics of the fish population, your expectations about the behavior of the other fishermen in your group and possibilities to improve your strategy. For each of these aspects a separate field is offered. This information will be available in the next round of designing your strategy.<br>\rIf you have no entry for one of the fields below, write “none” in the respective field.<br>\rThe information you write into these fields will be available the next time you edit your strategy.',300,'<b>Lessons learned<b>',6,15),(35,'Congratulations! You finished the actual experiment. We want to ask you some final questions.',30,'<b>Some final questions about the experiment</b>',1,13),(36,'',90,'<b>Some final questions about you</b>',2,13),(37,'Thank you for participating in this experiment. Your contribution will help to better understand the effects of communication on the performance of groups. We tested whether the communication led to…\r<ul>\r<li>…a different understanding of the dynamics of the fish population.</li>\r<li>…different expectations of how the others in your group will act.</li>\r<li>…changes in the goals you follow or you expect the others to follow.</li>\r<li>…a form of ‘group feeling’ or ‘team spirit’.</li>\r<li>…the emergence of rules, agreements or other forms of coordination attempts.</li>\r<li>…the emergence of some kind of social pressure or commitment.</li>\r</ul>\rBesides advancing science, the experiment also allowed you to earn the following money:<br>\rFor participating in the game: US$<br>\rFrom fish you caught: US$<br>\rTotal: US$<br>\rThe money will be paid to you in private. Wait till your computer number is called and then proceed to the conference room where you have signed up.<br>\rWe hope the experiment was satisfying to you.<br>\rWhen you are ready you can click on “Accept” to leave the experiment.<br>\r',120,'<b>The end</b>',1,14),(38,'<p>In what we refer to as a \'strategy\' you predefine your decisions of where to go each day of the simulation.\r Al-though only 30 days will be simulated, your strategy should represent your decisions for an indefinite period. Therefore you define a <b>set of decisions that will be repeated</b> until the end of the simulation. The set can contain as many decisions as you want but try to use as few as possible. Remember: Often simple strategies are more effective!</p> <p>It might be that you want to base your set of repeated decisions on another state of the fish population. In this case you can define a set of not repeated decisions that are applied at the beginning of the simulation. For example, you might first stay in the harbor to let the fish population increase or first fish all the bays to reduce the fish population before you start the repeated sequence of decisions.</p> <p>In this strategy you define how many days you stay at a certain location and to which other location you will move on.\r If, for example, you define to repeat the sequence \"2 days in harbor - 3 days in Bay 1 - 2 days in Bay 2\" you will not fish for two days, then fish in Bay 1 for three days, then fish in Bay 2 for two days, then not fish for two days, then fish in Bay 1 for three days, etc.</p> ',480,'<b>Designing your Strategy</b>',1,8),(39,'<p>Your strategy is mainly based on the number of days you stay at a certain location. However, things might run differently than you expected and you might wish to leave a bay earlier than the days you specified because you get too few fish out of that bay. For doing so you can specify a threshold of income. If you fish less then this threshold, the next day you will not fish this bay anymore but move on to the next location specified in your strategy.</p> <p>Note: Thresholds refer to the quantity of fish you get during one day fishing in a bay and not, for example, to the quantity of fish in the bay, fish fished by others, sum of fish already fished, etc.</p> <p>The final option you have is to stop repeating your strategy and stay in the harbor for some days. This op-tion can be used to prevent the total destruction of the fish population. For this you define a threshold and a number of days. If during one repetition of your decision set you never fished the amount defined by the threshold, then you stay in the harbor for the specified number of days before you start the next repetition.</p> <p>Note: Intentionally we do not allow designing \'intelligent\' strategies that search for solutions during the game. You have to think about what would be the best solution for you and express it with the options explained above.</p> ',90,'<b>Some special features of the strategy design</b>',2,8),(40,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',480,'<b>Design your strategy</b>',3,8),(41,'<p>We will ask you a number of questions on the strategy you just designed. This will help us to better understand how you came up with your strategy and it might help you reflect on certain aspects to improve your strategy.</p>\r<p>Besides <b>large fields</b> to write text and <b>small fields</b> to write numbers, you will encounter drop-down lists for selecting predefined values and scales. </p>\r<p>To give an answer on a scale, click on the location between the labels that comes closest to your opinion. By clicking on the scale, a slider appears that marks the value you selected. You can change the value by clicking on another position on the scale. By clicking on the reset button, the sliders of all scales on a page are removed and you can start selecting values again.</p>\r<p>Please try to answer all questions even if you are not sure. We are not testing your abilities but rather want to understand how you came up with your strategy.</p>\r',90,'<b>Introduction to questionnaire</b>',1,9),(42,'<p>Please explain your strategy with a few sentences. Particularly consider the following aspects:</p>',300,'<b>Explain the strategy in your own words</b>',2,9),(43,'<p>Please specify three goals that most influenced the design of your strategy. You can select from 18 different goals grouped in three categories (foci). </p><p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal.</p><p> The information you write into these fields will be available the next time you edit your strategy.</p>',30,'<b>What goals did you follow when designing your strategy?</b>',3,9),(44,'<p>Specify the three goals that you think most influenced the design of the strategy of the other fishermen in your group. You can select from 18 different goals grouped in three categories (foci).</p>\r<p>First select the focus of the goal (earnings, fish population or the other fishermen). Based on this selection, the list on the right hand sight will be filled and you can select one of these goals. For the second and third most important goal, also state, how much less important they are in relation to the most important goal</p>\r',30,'<b>What goals do you think the others follow?</b>',4,9),(45,'',30,'<b>How do you perceive your group?</b>',5,9),(46,'',30,'<b>How much do you count on others and how much can they count on you?</b>',6,9),(47,'',30,'<b>What else influenced your strategy design?</b>',7,9),(48,'',60,'<b>How confident are you in reaching the outcomes you are expecting?</b>',8,9),(49,'<p>Fill in the following table your expectations of the others’ actions (i.e. the number of fishermen in each bay) for the first 15 days. Please note that we ask only for the expectations of where the others will go. </p>',180,'<b>What are you expecting the others will do?</b>',9,9),(50,'<p>Please enter in the table below your expectations of how the fish population develops within the first six days. Note that by clicking on “Update” the earnings and fish remaining in the bays is calculated, using your expecta-tions of the other’s actions and your strategy. Thus, you only have to think about how the fish population changes from one day to the next due to growth and movement of the fish. These estimations can be really rough. We do not expect you do perform detailed calculations.</p>\r<b>Note: You can only change the entries of one day at a time. To calculate the values and activate the next day for entries click on “Update”. You cannot return to previous days!</b>\r',180,'<b>What are you expecting how the fish population will develop?</b>',10,9),(51,'By clicking on “Accept” you will leave this part of the questionnaire and return to the strategy design. <b>You can-not return to this or previous pages!</b> However, important information for the design of your strategy will be available in information windows.',30,'<b>Leaving questionnaire on your strategy</b>',11,9),(52,'<p>The previous questions may have lead to some reflections on your strategy and you may wish to change some elements of it. Among the information windows you will find your previous strategy, your goals and your fore-cast.</p>\r<p>The time for editing your strategy depends on how fast you finished the questionnaire. For the next simulation we have to synchronize the group again. If you have been rather fast, you can think now more deeply about your strategy. If you are rather behind the time suggestion, you have to make your changes quickly.</p>\r<p>The interface for designing your strategy will not be explained again. If you are not sure about some elements, please refer to the information window “Help on strategy design”.</p>\r',30,'<b>Edit your strategy</b>',1,10),(53,'<p>Design your strategy by clicking on <b>\'New\'</b> and <b>\'Delete\'</b>. You have to specify at least one repeated decision! If you are not sure about the meaning of the concepts used, refer to the information window \'Help for strategy design\'. </br>\rWhen you are done, click on <b>\'Next\'</b> </p>',240,'<b>Design your strategy</b>',2,10),(54,'<p>Before we present the results of your strategy, we would like to see again how you make your decisions day-by-day. On the next page you will find the same interface as you already used to decide on how to fish the modeled fishing grounds.</p>',15,'<b>Applying your strategy in day-by-day decisions</b>',1,11),(55,'',345,'<b>Day-by-day-decisions</b>',2,11),(56,'<p>We will now present you the results of your strategy. By clicking on “Accept” you cannot return to this or any previous page, but the results of your day-by-day decisions (and also of your strategy) will be available in an information window.</p>',15,'<b>Leaving day-bay-day decisions</b>',3,11),(57,'',60,'<b>Your strategy resulted in the following actions</b>',1,12),(58,'<p>First we want to know your emotional reactions to the results:</p>',30,'<b>What are your emotional reactions to the outcome?</b>',2,12); +INSERT INTO `question_group` VALUES (1,'In this experiment you will design a strategy to fish in an abstract fishing ground together with three other persons. As we are mainly interested in the reasons <i>why</i> you choose a certain strategy, we will ask you a number of questions. For the same reason, there are no correct or wrong strategies and no correct or wrong answers. However, since for each pound of fish you get during the experiment you will receive $1.00 US, you might be interested in finding a strategy that fits your goals well. For this, you will need to understand the dynamics of the (simulated) fish population and anticipate well the behavior of the other persons of your group.',30,'<b>Welcome to the E-Fishery Experiment</b>',1,1),(2,'<p>The experiment will run as follows:</p> <ul> <li><b>Introduction</b>: We will explain the interface and how the dynamics of the fish population are modeled. We will also ask you some questions about you and you will have the opportunity to make your decisions on how to fish on a (simulated) day-by-day basis to get a feeling for the dynamics of the fish population. </li> <li><b>Strategy design 1</b>: You will design a fishing strategy that will be simulated together with the strategies of the other persons in your group, and we ask you a larger amount of questions to understand your decisions and to help you reflect on those decisions. </li> <li><b>Fishing and evaluation 1</b>: Besides simulating the strategies you will decide on how to fish on a (simulated) day-by-day basis. Then, we will ask you some questions on your evaluation of the results. </li> <li><b>Communication</b>:You will have the opportunity to chat with the other persons in your group. After the chat we will ask some questions to asses your evaluation of the communication. </li> <li><b>Strategy design, fishing and evaluation 2</b>: The strategy design, fishing and evaluation are repeated as described above. </li> <li><b>Finishing the experiment</b>: The experiment closes with some final questions and more information on the experiment, and you will have the opportunity to give a feedback if you wish to do so. </li> </ul> <p> In the <b>information bar above the main window</b> you can see which part of the experiment you are in, your progress and how you are doing with the time. </p>',30,'<b>Experimental procedure</b>',2,1),(3,'<p>The <b>information window "Fishing Ground"</b> gives you an overview that will be explained here.</p> <p> Imagine you are living on an island and your only income is from a species of fish that only survives in the shallow bays formed by the island. The fish can leave crowed bays and move to less crowded bays, but they cannot survive in the ocean.... [truncated message content] |
From: <see...@us...> - 2009-08-13 20:53:21
|
Revision: 249 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=249&view=rev Author: seematalele Date: 2009-08-13 20:53:14 +0000 (Thu, 13 Aug 2009) Log Message: ----------- Solve the bug in simple CategoricalQuestion.java Problems- 1) if you want to update simple categorical question then it enters all the changes in the database but in GUI it does not show those changes. 2)if you want to update relative categorical question then it enters all the changes in the database but in GUI it does not show those changes. Created the HibernateCategoricalOptionDao.java Modified Paths: -------------- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml mentalmodels/trunk/flex/src/custom/db/questions/CategoricalSimple.mxml mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/CategoricalQuestion.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml Added Paths: ----------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateCategoricalOptionDao.java Modified: mentalmodels/trunk/flex/src/InitialiseDatabase.mxml =================================================================== --- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-12 22:35:58 UTC (rev 248) +++ mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-13 20:53:14 UTC (rev 249) @@ -77,7 +77,6 @@ [Bindable] private var categoricalQuestions:XML = <list> <categorical type="Categorical Questions" id="0"/> - </list>; /** @@ -160,7 +159,9 @@ } } } - } + } + + } private function createModuleNode(module:actionscript.Module):XML @@ -290,7 +291,7 @@ var newOptionNode:XML = <option/>; newOptionNode.setLocalName("option"); newOptionNode.@name = options.optionKey; - if(options.choices.length == 0) + if(options.choices == null || options.choices.length == 0) { flagType = false } @@ -304,7 +305,9 @@ if(choices == "") { + //Alert.show("choices is eqaul to : " + choices); choices = options.choices[k]; + //Alert.show("choices is eqaul to : " + choices); } else { @@ -341,6 +344,24 @@ return newQNode; } + private function getCategoricalType(categorical:actionscript.questions.Categorical):String + { + //false means it is simple type, otherwise it is relative type + var type:String = null; + for(var x:int = 0; x < categorical.categoricalOptions.length ; x++) + { + var catOptions:actionscript.questions.CategoricalOption = new actionscript.questions.CategoricalOption(); + catOptions = actionscript.questions.CategoricalOption(categorical.categoricalOptions.getItemAt(x)); + //Alert.show("options.choices is: " + options.choices); + if((catOptions.choices == null) || (catOptions.choices.length == 0)) + type = "simple"; + else + type = "relative"; + } + return type; + + } + private function faultHandler(event:FaultEvent):void { Alert.show("event fault is " + event.fault.getStackTrace()); @@ -505,7 +526,7 @@ } else { - //Alert.show("Id is: " + module.id); + Alert.show("Id is: " + module.id); var newModuleNode:XML = createModuleNode(module); survey.appendChild(newModuleNode); } @@ -1008,17 +1029,19 @@ Options.choices = dict[key]; categoricalQuestion.categoricalOptions.addItem(Options); } + categoricalQuestion.type = questionInfo.getType(); categoricalQuestion.question = questionInfo.getQuestion(); categoricalQuestion.sequenceNo = int(questionInfo.getSequenceNo()); categoricalQuestion.communicationQ = questionInfo.isCommunicationQuestion(); - /*for(var i:int = 0; i < categoricalQuestion.categoricalOptions.length ; i++) + for(var i:int = 0; i < categoricalQuestion.categoricalOptions.length ; i++) { var testoption:actionscript.questions.CategoricalOption = new actionscript.questions.CategoricalOption(); testoption = actionscript.questions.CategoricalOption(categoricalQuestion.categoricalOptions.getItemAt(i)); - trace(testoption.optionKey); - trace(testoption.choices); - }*/ + Alert.show(testoption.optionKey); + for(var j:int =0; j<testoption.choices.length ;j++) + Alert.show(testoption.choices.getItemAt(j).toString()); + } if(questionInfo.getId() == 0) { if(checkSeqNoQuestion.length() > 0) @@ -1053,7 +1076,7 @@ { var OptionsSimple:actionscript.questions.CategoricalOption = new actionscript.questions.CategoricalOption(); OptionsSimple.optionKey = option.toString(); - //Alert.show("Key : " + option.toString()); + // Alert.show("Key : " + option.toString()); OptionsSimple.choices = Simpledict[key]; categoricalSimpleQuestion.categoricalOptions.addItem(OptionsSimple); } @@ -1061,12 +1084,12 @@ categoricalSimpleQuestion.question = questionInfo.getQuestion(); categoricalSimpleQuestion.sequenceNo = int(questionInfo.getSequenceNo()); categoricalSimpleQuestion.communicationQ = questionInfo.isCommunicationQuestion(); - /*for(var j:int = 0; j < categoricalSimpleQuestion.categoricalOptions.length ; j++) + /* for(var j:int = 0; j < categoricalSimpleQuestion.categoricalOptions.length ; j++) { - var testoption:ASCategoricalOption = new ASCategoricalOption(); - testoption = ASCategoricalOption(categoricalSimpleQuestion.categoricalOptions.getItemAt(i)); - trace(testoption.optionKey); - trace(testoption.choices); + var testoption:actionscript.questions.CategoricalOption = new actionscript.questions.CategoricalOption(); + testoption = actionscript.questions.CategoricalOption(categoricalSimpleQuestion.categoricalOptions.getItemAt(j)); + Alert.show(testoption.optionKey.toString()); + //Alert.show(testoption.choices); }*/ /*Alert.show("Question: " + categoricalSimpleQuestion.question); Alert.show("SeQ No: " + categoricalSimpleQuestion.sequenceNo); @@ -1075,12 +1098,16 @@ if(questionInfo.getId() == 0) { + if(checkSeqNoQuestion.length() > 0) { Alert.show("Sequence number " + questionInfo.getSequenceNo() + " already exists!"); } else + { roQuestionCreator.saveQuestion(categoricalSimpleQuestion,int(node.@id)); + //Alert.show( categoricalSimpleQuestion.question+ " is saved."); + } } else { @@ -1089,7 +1116,10 @@ Alert.show("Sequence number " + questionInfo.getSequenceNo() + " already exists!"); } else + { roQuestionCreator.updateQuestion(categoricalSimpleQuestion,int(node.@id), questionInfo.getId()); + //Alert.show( categoricalSimpleQuestion.question+ " is updated."); + } } } @@ -1166,6 +1196,16 @@ newNode.setLocalName("question"); var newQNode:XML = <question/>; newQNode.setLocalName("question"); + var questionXML:XMLList = survey.module.block.questiongroup.question.(@id == question.id); + + if(questionXML.length() > 0) + { + questionXML[0].@title = question.question; + questionXML[0].@sequenceNo = question.sequenceNo; + questionXML[0].@type = question.type; + questionXML[0].@communication = question.communicationQ; + } + var choices:String=""; if(question.type.toLowerCase() == "psychometric") { @@ -1184,10 +1224,10 @@ newPNode.@scale = psychometricResult.scale; newPNode.@maxSliderValue = psychometricResult.maxSliderValue; - newQNode.@sequenceNo = psychometricResult.sequenceNo; +/* newQNode.@sequenceNo = psychometricResult.sequenceNo; newQNode.@title = psychometricResult.question; newQNode.@type = psychometricResult.type; - newQNode.@communication = psychometricResult.communicationQ; + newQNode.@communication = psychometricResult.communicationQ; */ choices = ""; if(psychometricResult.choices != null) { @@ -1210,11 +1250,11 @@ else if(question.type.toLowerCase() == "categorical") { var categoricalResult:actionscript.questions.Categorical = actionscript.questions.Categorical(question); - newQNode.@sequenceNo = categoricalResult.sequenceNo; +/* newQNode.@sequenceNo = categoricalResult.sequenceNo; newQNode.@title = categoricalResult.question; newQNode.@type = categoricalResult.type; newQNode.@id = categoricalResult.id; - newQNode.@communication = categoricalResult.communicationQ; + newQNode.@communication = categoricalResult.communicationQ; */ //flagType false means it is simple type, otherwise it is relative type var flagType:Boolean = false; @@ -1225,7 +1265,7 @@ if( categoricalList.length() > 0 ) { - //remove all the <option> tags and then add those rather than modifying those. It is simple. + //remove all the <option> tags and then add new ones rather than modifying those. It is simple. var children:XMLList = categoricalList.children(); for(var l:Number=0; l < children.length(); l++) @@ -1235,6 +1275,7 @@ if(categoricalResult.categoricalOptions != null) { + Alert.show("categoricalResult.categoricalOptions.length : "+ categoricalResult.categoricalOptions.length); for(var i:int = 0; i < categoricalResult.categoricalOptions.length ; i++) { var options:actionscript.questions.CategoricalOption = new actionscript.questions.CategoricalOption(); @@ -1242,7 +1283,7 @@ var newOptionNode:XML = <option/>; newOptionNode.setLocalName("option"); newOptionNode.@name = options.optionKey; - if(options.choices.length == 0) + if((options.choices == null) || options.choices.length == 0) { flagType = false } @@ -1275,8 +1316,10 @@ { newCNode.@type = "simple"; } + newCNode.appendChild(newOptionNode); } + //Alert.show("after inserting into the XML: " + newOptionNode.attributes().toXMLString()); } } } @@ -1446,8 +1489,9 @@ outputchoices = choiceStr.split(","); - for(var i:int = 0; i < outputchoices.length; i++) + for(var i:int = 0; i < outputchoices.length - 1; i++) { + //Alert.show("counter i is: " + i + outputchoices[i]); dict[str].addItem(outputchoices[i]); } } @@ -1455,6 +1499,7 @@ } else if(categoricalQ[0].@type == "simple") { + //Alert.show(categoricalQuestions.categorical); compCategorical.setType("simple"); currentState = "simple"; var cat2obj:DisplayObject = pnlComponent.getChildAt(3); @@ -1463,6 +1508,7 @@ var dictionary:Dictionary = new Dictionary(); var attributeSimpleList:XMLList = categoricalQ[0].option.attributes(); + // Alert.show("attribute list is : " + attributeSimpleList.toXMLString()); var str1:String; for(var k:int = 0; k < attributeSimpleList.length(); k++) @@ -1472,7 +1518,8 @@ dictionary[str1] = new ArrayCollection(); dictionary[str1].addItem(null); } - compSimple.setDictionary(dictionary); + compSimple.setDictionary(dictionary); + } } } @@ -1496,7 +1543,7 @@ choiceStr = psychometricQ[0].@choices; outputchoices = choiceStr.split(","); - for(i = 0; i < outputchoices.length; i++) + for(i = 0; i < outputchoices.length - 1; i++) { compPsychometric.choice.addItem(outputchoices[i]); Modified: mentalmodels/trunk/flex/src/custom/db/questions/CategoricalSimple.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/db/questions/CategoricalSimple.mxml 2009-08-12 22:35:58 UTC (rev 248) +++ mentalmodels/trunk/flex/src/custom/db/questions/CategoricalSimple.mxml 2009-08-13 20:53:14 UTC (rev 249) @@ -89,8 +89,6 @@ public function reset():void { - - txtChoice.text = ""; lblHeader.text = ""; header.removeAll(); @@ -99,7 +97,7 @@ { for(var key:Object in dict) { - dict[key].removeAll(); + //dict[key].removeAll(); delete dict[key]; } } @@ -154,6 +152,12 @@ dict[txtChoice.text] = null; txtChoice.text = ""; } + //use following for loop to see the dictionary items after addition + /* for(var key:Object in dict) + { + //dict[key].removeAll(); + Alert.show("After addition dict item is: "+ key.toString() ); + } */ } @@ -171,15 +175,22 @@ } else { + + //Alert.show("selected item is : " +lstHeader.selectedItem.toString()); + delete dict[lstHeader.selectedItem]; header.removeItemAt(header.getItemIndex(lstHeader.selectedItem)); - delete dict[lstHeader.selectedItem]; + + //use following for loop to see the dictionary items after deletion + /* for(var key:Object in dict) + { + //dict[key].removeAll(); + Alert.show("After deletion dict item is: "+ key.toString() ); + } */ + + } } - - - - ]]> </mx:Script> <!-- <mx:VBox id="vboxHeaders" horizontalAlign="center"> @@ -194,7 +205,7 @@ <mx:HBox id="vboxSecondHeader" > <mx:VBox> <mx:Label text="Values" id="lblHeader" fontSize="12" fontWeight="bold" fontFamily="Verdana"/> - <mx:List id="lstHeader" wordWrap="true" dataProvider="{header}" allowMultipleSelection="false"/> + <mx:List id="lstHeader" wordWrap="false" dataProvider="{header}" allowMultipleSelection="false" height="300"/> <mx:FormItem id="frmitmAddChoice" label="Choice for Values: "> <mx:TextInput id="txtChoice" change="{validateForm(event)}"/> </mx:FormItem> Added: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateCategoricalOptionDao.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateCategoricalOptionDao.java (rev 0) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/dao/HibernateCategoricalOptionDao.java 2009-08-13 20:53:14 UTC (rev 249) @@ -0,0 +1,12 @@ +package edu.asu.commons.mme.dao; + +import edu.asu.commons.mme.entity.CategoricalOption; + +public class HibernateCategoricalOptionDao extends HibernateDao<CategoricalOption>{ + + public HibernateCategoricalOptionDao() + { + super(CategoricalOption.class); + } + +} Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/CategoricalQuestion.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/CategoricalQuestion.java 2009-08-12 22:35:58 UTC (rev 248) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/CategoricalQuestion.java 2009-08-13 20:53:14 UTC (rev 249) @@ -1,8 +1,11 @@ package edu.asu.commons.mme.entity; +import java.util.Iterator; import java.util.List; + + import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.JoinColumn; @@ -29,5 +32,7 @@ public List<CategoricalOption> getCategoricalOptions() { return categoricalOptions; } + + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java 2009-08-12 22:35:58 UTC (rev 248) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java 2009-08-13 20:53:14 UTC (rev 249) @@ -8,6 +8,7 @@ import org.springframework.transaction.annotation.Transactional; import edu.asu.commons.mme.dao.HibernateBlockDao; +import edu.asu.commons.mme.dao.HibernateCategoricalOptionDao; import edu.asu.commons.mme.dao.HibernateCategoricalQuestionDao; import edu.asu.commons.mme.dao.HibernateModuleDao; import edu.asu.commons.mme.dao.HibernatePsychometricQuestionDao; @@ -34,31 +35,32 @@ @Transactional public class QuestionCreatorService extends Service.Base<Question, HibernateQuestionDao> { - + private HibernateBlockDao blockDao; private HibernateModuleDao moduleDao; private HibernateQuestionGroupDao questionGroupDao; private HibernatePsychometricQuestionDao psychometricQuestionDao; private HibernateCategoricalQuestionDao categoricalQuestionDao; - + private HibernateCategoricalOptionDao categoricalOptionDao; + Module module; Block block; QuestionGroup questionGroup; Question question; CategoricalQuestion categoricalQ; - + PsychometricQuestion psychometricQ; - + public List<Module> initializeData() { List<Module> modulelist = new ArrayList<Module>(); - + getLogger().debug("In InitializeData function"); modulelist = moduleDao.findAll(); - + getLogger().debug("Module length " + modulelist.size()); - + for(int i = 0; i<modulelist.size(); i++) { Module module = modulelist.get(i); @@ -78,7 +80,7 @@ Hibernate.initialize(questionGroup); // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -91,7 +93,7 @@ } } } - + }*/ } /* @@ -100,18 +102,19 @@ * */ //getLogger().debug("questionGroup: " + modulelist.get(0).getBlocks().get(0).getQuestionGroups().get(0).getHeader()); - + return modulelist; - + } - - + + public Module saveModule(Integer sequenceNo, String description, Integer duration) { - Module module = moduleDao.findByProperty("sequenceNo", new Integer(sequenceNo)); + module = new Module(); + module = moduleDao.findByProperty("sequenceNo", new Integer(sequenceNo)); if(module == null) { - createModule(sequenceNo, description, duration); + module = createModule(sequenceNo, description, duration); } else { @@ -120,8 +123,8 @@ } return module; } - - + + public Module createModule(Integer sequenceNo, String description, Integer duration) { module = new Module(); @@ -130,11 +133,11 @@ module.setDuration(duration); moduleDao.save(module); getLogger().debug("module is created with Id: " + module.getId()); - + return module; - + } - + public Module updateModule(Long id, Integer sequenceNo, String description, Integer duration) { getLogger().debug("Id came from client is: " + id); @@ -155,7 +158,7 @@ Hibernate.initialize(questionGroup); // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -168,7 +171,7 @@ } } } - + }*/ if( module != null) { @@ -177,22 +180,22 @@ module.setDuration(duration); moduleDao.save(module); getLogger().debug("module is updated with Id: " + module.getId()); - + } - + return module; - + } - + public Block saveBlock(Integer sequenceNo, String description, Integer duration, Long module_Id) { - + Block currentblock = new Block(); - + currentblock.setSequenceNo(sequenceNo); currentblock.setDescription(description); currentblock.setDuration(duration); - + module = moduleDao.find(module_Id); Hibernate.initialize(module); initializeModule(module); @@ -209,7 +212,7 @@ Hibernate.initialize(questionGroup); // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -222,7 +225,7 @@ } } } - + }*/ if(currentblock != null) { @@ -231,9 +234,9 @@ } getLogger().debug("Block is created with Id: " + currentblock.getId()); return currentblock; - + } - + public Block updateBlock(Long id, Integer sequenceNo, String description, Integer duration, Long module_Id) { getLogger().debug("Id came from client is: " + id); @@ -246,9 +249,9 @@ { QuestionGroup questionGroup = iteratorquestionGrp.next(); Hibernate.initialize(questionGroup); -// getLogger().debug(questionGroup.getDescription()); + // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -283,7 +286,7 @@ Hibernate.initialize(questionGroup); // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -296,14 +299,14 @@ } } } - + }*/ block.setModule(module); blockDao.save(block); getLogger().debug("block is updated with Id: " + block.getId()); } return block; - + } public QuestionGroup saveQuestionGroup(Integer sequenceNo,String header, String description, Integer duration, Long block_id) @@ -331,7 +334,7 @@ Hibernate.initialize(questionGroup); // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -344,25 +347,25 @@ } } } - + }*/ questionGroup.setBlock(block); questionGroupDao.save(questionGroup); getLogger().debug("QuestionGroup is created with Id: " + questionGroup.getId()); return questionGroup; - + } - + public QuestionGroup updateQuestionGroup(Integer sequenceNo,String header, String description, Integer duration,Long block_id,Long qg_id) { - + getLogger().debug("Id came from client is: " + qg_id); QuestionGroup questionGroup = questionGroupDao.findByProperty("id", qg_id); getLogger().debug(questionGroup); Hibernate.initialize(questionGroup); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -378,7 +381,7 @@ module = block.getModule(); Hibernate.initialize(module); initializeModule(module); - + questionGroup.setSequenceNo(sequenceNo); questionGroup.setDescription(description); questionGroup.setHeader(header); @@ -388,7 +391,7 @@ return questionGroup; } - + private void initializeModule(Module module1) { // TODO Auto-generated method stub @@ -408,9 +411,9 @@ { QuestionGroup questionGroup = iteratorquestionGrp.next(); Hibernate.initialize(questionGroup); - // getLogger().debug(questionGroup.getDescription()); + // getLogger().debug(questionGroup.getDescription()); List<Question> questions = questionGroup.getQuestions(); - + for(int j = 0; j < questions.size(); j++) { Hibernate.initialize(questions.get(j)); @@ -423,10 +426,10 @@ } } } - + } - - + + } @@ -436,7 +439,7 @@ getLogger().debug("questionGroup_id: " + questionGroup_id); if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.PsychometricQuestion")) { - + PsychometricQuestion psychometricQ = new PsychometricQuestion(); PsychometricQuestion psychometric = (PsychometricQuestion)questionInfo; psychometricQ.setScale(psychometric.getScale().toLowerCase()); @@ -447,122 +450,138 @@ psychometricQ.setQuestion(psychometric.getQuestion()); psychometricQ.setType(psychometric.getType().toLowerCase()); psychometricQ.setCommunicationQ(psychometric.isCommunicationQ()); - - + + getLogger().debug("Scale: " + psychometric.getScale()); getLogger().debug("Max slider value: " + psychometric.getMaxSliderValue()); for(int i=0;i < psychometric.getChoices().size();i++) { getLogger().debug("Choice" + i+" : "+ psychometric.getChoices().get(i)); - + } - + getLogger().debug("Seq no: " + psychometric.getSequenceNo()); getLogger().debug("Question: " + psychometric.getQuestion()); getLogger().debug("Type: " + psychometric.getType()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroup_id); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); psychometricQ.setQuestionGroup(questionGroup); - + psychometricQuestionDao.save(psychometricQ); getLogger().debug("Question is created with Id: " + psychometricQ.getId() + "and type is: " + psychometricQ.getType()); Hibernate.initialize(psychometricQ); returnQuestion = psychometricQ; - + } else if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.CategoricalQuestion")) { - + CategoricalQuestion categoricalQ = new CategoricalQuestion(); - + CategoricalQuestion categoricalInfo = (CategoricalQuestion)questionInfo; getLogger().debug("Question from client is: " + categoricalInfo.getQuestion()); List<CategoricalOption> options = categoricalInfo.getCategoricalOptions(); - + for(int i = 0; i< options.size(); i++) { CategoricalOption test1 = new CategoricalOption(); test1 = (CategoricalOption)options.get(i); - + getLogger().debug("Option: " + i + test1.getOptionKey()); } - - + + //List<CategoricalOption> options = categoricalInfo.getCategoricalOptions(); categoricalQ.setCategoricalOptions(options); - + categoricalQ.setQuestion(categoricalInfo.getQuestion()); categoricalQ.setSequenceNo(categoricalInfo.getSequenceNo()); categoricalQ.setType(categoricalInfo.getType().toLowerCase()); /*Set<Round> round_configs = categoricalInfo.getRound_configs(); categoricalQ.setRound_configs(round_configs);*/ categoricalQ.setCommunicationQ(categoricalInfo.isCommunicationQ()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroup_id); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); categoricalQ.setQuestionGroup(questionGroup); - + categoricalQuestionDao.save(categoricalQ); - + returnQuestion = categoricalQ; getLogger().debug("Question is created with Id: " + categoricalQ.getId() + "and type is: " + categoricalQ.getType()); - + } else if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.Question")) { question = new Question(); - + Question otherTypeQuestionInfo = (Question)questionInfo; getLogger().debug("Question from client is: " + otherTypeQuestionInfo.getQuestion()); question.setQuestion(otherTypeQuestionInfo.getQuestion()); question.setSequenceNo(otherTypeQuestionInfo.getSequenceNo()); question.setType(otherTypeQuestionInfo.getType().toLowerCase()); question.setCommunicationQ(otherTypeQuestionInfo.isCommunicationQ()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroup_id); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); question.setQuestionGroup(questionGroup); - + save(question); - + returnQuestion = question; - + } - - + + return returnQuestion; } - + + private void resetCategoricalOptions(CategoricalQuestion categoricalQ) { + // TODO Auto-generated method stub + + try + { + getCategoricalOptionDao().delete(categoricalQ.getCategoricalOptions()); + }catch(Exception e) + { + e.printStackTrace(); + } + + //return categoricalOptions; + + } + + public Object updateQuestion(Object questionInfo,Long questionGroupId, Long questionId) { Object returnQuestion = new Object(); getLogger().debug("questionGroup_id: " + questionGroupId); if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.PsychometricQuestion")) { - + //PsychometricQuestion psychometricQ = new PsychometricQuestion(); PsychometricQuestion psychometricQ = psychometricQuestionDao.find(questionId); Hibernate.initialize(psychometricQ); @@ -575,83 +594,85 @@ psychometricQ.setQuestion(psychometric.getQuestion()); psychometricQ.setType(psychometric.getType().toLowerCase()); psychometricQ.setCommunicationQ(psychometric.isCommunicationQ()); - - + + getLogger().debug("Scale: " + psychometric.getScale()); getLogger().debug("Max slider value: " + psychometric.getMaxSliderValue()); for(int i=0;i < psychometric.getChoices().size();i++) { getLogger().debug("Choice" + i+" : "+ psychometric.getChoices().get(i)); - + } - + getLogger().debug("Seq no: " + psychometric.getSequenceNo()); getLogger().debug("Question: " + psychometric.getQuestion()); getLogger().debug("Type: " + psychometric.getType()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroupId); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); psychometricQ.setQuestionGroup(questionGroup); - + psychometricQuestionDao.save(psychometricQ); - getLogger().debug("Question is created with Id: " + psychometricQ.getId() + "and type is: " + psychometricQ.getType()); + getLogger().debug("Question is updated with Id: " + psychometricQ.getId() + "and type is: " + psychometricQ.getType()); Hibernate.initialize(psychometricQ); returnQuestion = psychometricQ; - + } else if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.CategoricalQuestion")) { - + CategoricalQuestion categoricalQ = categoricalQuestionDao.find(questionId); Hibernate.initialize(categoricalQ); Iterator<CategoricalOption> categoricalOption = categoricalQ.getCategoricalOptions().iterator(); Hibernate.initialize(categoricalOption); + //reset the privious entries + resetCategoricalOptions(categoricalQ); CategoricalQuestion categoricalInfo = (CategoricalQuestion)questionInfo; getLogger().debug("Question from client is: " + categoricalInfo.getQuestion()); List<CategoricalOption> options = categoricalInfo.getCategoricalOptions(); - + for(int i = 0; i< options.size(); i++) { CategoricalOption test1 = new CategoricalOption(); test1 = (CategoricalOption)options.get(i); - + getLogger().debug("Option: " + i + test1.getOptionKey()); } - - + + //List<CategoricalOption> options = categoricalInfo.getCategoricalOptions(); categoricalQ.setCategoricalOptions(options); - + categoricalQ.setQuestion(categoricalInfo.getQuestion()); categoricalQ.setSequenceNo(categoricalInfo.getSequenceNo()); categoricalQ.setType(categoricalInfo.getType().toLowerCase()); categoricalQ.setCommunicationQ(categoricalInfo.isCommunicationQ()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroupId); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); categoricalQ.setQuestionGroup(questionGroup); - + save(categoricalQ); - + returnQuestion = categoricalQ; - getLogger().debug("Question is created with Id: " + categoricalQ.getId() + "and type is: " + categoricalQ.getType()); - + getLogger().debug("Question is updated with Id: " + categoricalQ.getId() + "and type is: " + categoricalQ.getType()); + } else if(questionInfo.getClass().getName().equalsIgnoreCase("edu.asu.commons.mme.entity.Question")) { @@ -664,36 +685,36 @@ module = block.getModule(); Hibernate.initialize(module); initializeModule(module); - + Question otherTypeQuestionInfo = (Question)questionInfo; getLogger().debug("Question from client is: " + otherTypeQuestionInfo.getQuestion()); question.setQuestion(otherTypeQuestionInfo.getQuestion()); question.setSequenceNo(otherTypeQuestionInfo.getSequenceNo()); question.setType(otherTypeQuestionInfo.getType().toLowerCase()); question.setCommunicationQ(otherTypeQuestionInfo.isCommunicationQ()); - - + + questionGroup = questionGroupDao.findByProperty("id",questionGroupId); Hibernate.initialize(questionGroup); block = questionGroup.getBlock(); Hibernate.initialize(block); module = block.getModule(); Hibernate.initialize(module); - + initializeModule(module); question.setQuestionGroup(questionGroup); - + save(question); - + returnQuestion = question; - + } - - + + return returnQuestion; } - - + + public void createQuestions() { // check if we need to recreate these questions. block = blockDao.find(3L); @@ -704,9 +725,9 @@ return; } }*/ - // createSubjectGoalQuestionGroup(); + // createSubjectGoalQuestionGroup(); } - + /*private void createSubjectGoalQuestionGroup() { QuestionGroup subjectGoalQuestionGroup = new QuestionGroup(); subjectGoalQuestionGroup.setHeader("<b>What goals did you follow when designing your strategy?</b>"); @@ -716,7 +737,7 @@ subjectGoalQuestionGroup.setDuration(30); subjectGoalQuestionGroup.setBlock(blockDao.find(3L)); subjectGoalQuestionGroup.setSequenceNo(3); - + List<CategoricalOption> categoricalOptions = new ArrayList<CategoricalOption>(); // focus on own earnings option CategoricalOption ownEarningsOption = new CategoricalOption(); @@ -746,15 +767,15 @@ "Act against rules I expect the others to know" )); categoricalOptions.add(othersOption); - + CategoricalQuestion mostImportantGoal = new CategoricalQuestion(); mostImportantGoal.setCategoricalOptions(categoricalOptions); mostImportantGoal.setQuestion("Most important goal:"); mostImportantGoal.setSequenceNo(1); mostImportantGoal.setType("categorical"); subjectGoalQuestionGroup.add(mostImportantGoal); - - + + CategoricalQuestion secondMostImportantGoal = new CategoricalQuestion(); secondMostImportantGoal.setCategoricalOptions(categoricalOptions); secondMostImportantGoal.setQuestion("Second most important goal:"); @@ -762,8 +783,8 @@ secondMostImportantGoal.setType("categorical"); subjectGoalQuestionGroup.add(secondMostImportantGoal); // secondMostImportantGoal.setQuestionGroup(subjectGoalQuestionGroup); - + CategoricalQuestion thirdMostImportantGoal = new CategoricalQuestion(); thirdMostImportantGoal.setCategoricalOptions(categoricalOptions); thirdMostImportantGoal.setQuestion("Third most important goal:"); @@ -773,14 +794,14 @@ // thirdMostImportantGoal.setQuestionGroup(subjectGoalQuestionGroup); // save(thirdMostImportantGoal); //save(subjectGoalQuestionGroup); - - - + + + /*** - * - * create sample psychometric question - */ - /*PsychometricQuestion psychometricQ = new PsychometricQuestion(); + * + * create sample psychometric question + */ + /*PsychometricQuestion psychometricQ = new PsychometricQuestion(); psychometricQ.setScale("Unipolar".toLowerCase()); psychometricQ.setMaxSliderValue(21); List<String> choices = new ArrayList<String>(); @@ -791,46 +812,46 @@ psychometricQ.setQuestion("Compared to the most important goal, this goal is"); psychometricQ.setType("psychometric"); subjectGoalQuestionGroup.add(psychometricQ); - - + + /** - * Create test Sample categorical Simple quesiton - * - - + * Create test Sample categorical Simple quesiton + * + + CategoricalQuestion testSimple = new CategoricalQuestion(); CategoricalOption simple1 = new CategoricalOption(); List<CategoricalOption> OptionsList = new ArrayList<CategoricalOption>(); - + simple1.setOptionKey("choice1"); simple1.setChoices(null); - + CategoricalOption simple2 = new CategoricalOption(); simple2.setOptionKey("choice2"); simple2.setChoices(null); - + CategoricalOption simple3 = new CategoricalOption(); simple3.setOptionKey("choice3"); simple3.setChoices(null); - + OptionsList.add(simple1); OptionsList.add(simple2); OptionsList.add(simple3); - + testSimple.setCategoricalOptions(OptionsList); testSimple.setQuestion("Test Categrical Simple"); testSimple.setSequenceNo(5); testSimple.setType("categorical"); - + subjectGoalQuestionGroup.add(testSimple);*/ - - /*questionGroupDao.save(subjectGoalQuestionGroup); + + /*questionGroupDao.save(subjectGoalQuestionGroup); }*/ - + public void setBlockDao(HibernateBlockDao blockDao) { this.blockDao = blockDao; } - + public void setModuleDao(HibernateModuleDao moduleDao) { this.moduleDao = moduleDao; } @@ -838,12 +859,22 @@ public void setQuestionGroupDao(HibernateQuestionGroupDao questionGroupDao) { this.questionGroupDao = questionGroupDao; } - + public void setPsychometricQuestionDao(HibernatePsychometricQuestionDao psychometricQuestionDao) { this.psychometricQuestionDao = psychometricQuestionDao; } public void setCategoricalQuestionDao(HibernateCategoricalQuestionDao categoricalQuestionDao) { this.categoricalQuestionDao = categoricalQuestionDao; } - + + + public void setCategoricalOptionDao(HibernateCategoricalOptionDao categoricalOptionDao) { + this.categoricalOptionDao = categoricalOptionDao; + } + + + public HibernateCategoricalOptionDao getCategoricalOptionDao() { + return categoricalOptionDao; + } + } Modified: mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf =================================================================== (Binary files differ) Modified: mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf =================================================================== (Binary files differ) Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-12 22:35:58 UTC (rev 248) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-08-13 20:53:14 UTC (rev 249) @@ -60,6 +60,10 @@ </bean> + <bean id='categoricalOptionDao' class='edu.asu.commons.mme.dao.HibernateCategoricalOptionDao'> + <property name='sessionFactory' ref='sessionFactory'/> + </bean> + <bean id='questionGroupDao' class='edu.asu.commons.mme.dao.HibernateQuestionGroupDao'> <property name='sessionFactory' ref='sessionFactory'/> </bean> @@ -119,6 +123,7 @@ <property name='questionGroupDao' ref='questionGroupDao'/> <property name='psychometricQuestionDao' ref='psychometricQuestionDao'/> <property name='categoricalQuestionDao' ref='categoricalQuestionDao'/> + <property name='categoricalOptionDao' ref='categoricalOptionDao'/> </bean> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-08-13 20:22:05
|
I come in to work today at 13:15pm I will be examining the code, and attempting to figure out why eclipse is not showing the compiled files. When eclipse is compiling and jetty will let me run the new files properly, I will be able to continue working on getting the saveStrategy method to work. |
From: Kalin J. <kj...@as...> - 2009-08-12 23:38:59
|
I log off today at 16:30 (5.5hr) I have been speaking with seema about the code. It seems that we cannot get the code to compile and run on server side. the swf files are working as if they have not been updated with recent changes. We will work more on this. On Wed, Aug 12, 2009 at 11:14 AM, Kalin Jonas <kj...@as...> wrote: > Today I work from home at 11:00am > I will be testing the new code that Seema has committed, and ensuring that > it is functional. > After, I will either work on completing the database, or try to make sure > the blocks are coming from the server. > |