virtualcommons-svn Mailing List for Virtual Commons Experiment Software (Page 64)
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: <kj...@us...> - 2009-09-16 21:14:55
|
Revision: 280 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=280&view=rev Author: kjonas Date: 2009-09-16 21:14:48 +0000 (Wed, 16 Sep 2009) Log Message: ----------- comitting newest swf files Modified Paths: -------------- mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf mentalmodels/trunk/src/main/webapp/StartGame.swf mentalmodels/trunk/src/main/webapp/test.swf 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) Modified: mentalmodels/trunk/src/main/webapp/test.swf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kj...@us...> - 2009-09-16 21:09:54
|
Revision: 279 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=279&view=rev Author: kjonas Date: 2009-09-16 21:09:44 +0000 (Wed, 16 Sep 2009) Log Message: ----------- Implementing BlockInformationWindow.as Modified Paths: -------------- mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml mentalmodels/trunk/flex/src/custom/questions/strategyDesign/PlannerRow.mxml mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml Added Paths: ----------- mentalmodels/trunk/flex/src/actionscript/BlockInformationWindow.as Modified: mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml =================================================================== --- mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml 2009-09-11 22:14:03 UTC (rev 278) +++ mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml 2009-09-16 21:09:44 UTC (rev 279) @@ -70,6 +70,7 @@ <mx:Script> <![CDATA[ + import actionscript.BlockInformationWindow; import mx.messaging.events.MessageEvent; import mx.messaging.MessageAgent; import mx.messaging.messages.IMessage; @@ -272,23 +273,31 @@ if(block != null) { currentBlock = block; + var tempArray:ArrayCollection = new ArrayCollection(); var i:int = 0; + var temp:Object = null; var str:String = currentBlock.informationWindows.length + " of them.\n"; for(i = 0; i < currentBlock.informationWindows.length; i++) { - str += "["+(currentBlock.informationWindows.getItemAt(i) as InformationWindow).id+"]"; + temp = currentBlock.informationWindows.getItemAt(i); + + str += "<" + i + ":" + temp.toString(); + if((temp as BlockInformationWindow) == null) + { + str += "(as BIW = null)"; + } + else + { + var windowID:int = (temp as BlockInformationWindow).infoWindowID; + tempArray.addItem(windowID); + str += "(id:" + windowID + ")"; + } + str += ">\n"; } + selectCurrentWindows( tempArray ); Alert.show(str,"Information Windows:"); - - var tempArray:ArrayCollection = new ArrayCollection(); - for(i = 0; i<currentBlock.informationWindows.length; i++) - { - var temp:InformationWindow = (currentBlock.informationWindows.getItemAt(i) as InformationWindow); - tempArray.addItem(temp.id - 1); - } - selectCurrentWindows( tempArray ); } } Added: mentalmodels/trunk/flex/src/actionscript/BlockInformationWindow.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/BlockInformationWindow.as (rev 0) +++ mentalmodels/trunk/flex/src/actionscript/BlockInformationWindow.as 2009-09-16 21:09:44 UTC (rev 279) @@ -0,0 +1,15 @@ +package actionscript +{ + + [Bindable] + [RemoteClass(alias="edu.asu.commons.mme.entity.BlockInformationWindow")] + public class BlockInformationWindow + { + + public var id:Number; + public var sequenceNo:int; + public var infoWindowID:int; + public var infoWindow:InformationWindow; + + } +} \ No newline at end of file Modified: mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-09-11 22:14:03 UTC (rev 278) +++ mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-09-16 21:09:44 UTC (rev 279) @@ -135,11 +135,10 @@ } private function setBlock(block:Block):void { - Alert.show(currentState); +// Alert.show(currentState); if(currentState == "none") { Alert.show("Block received in End of Game state.","Unexpected Block"); - return; } else if(currentState == "wait") { @@ -147,7 +146,7 @@ } else if(currentState == "instructions") { - Alert.show("FORCING"); +// Alert.show("FORCING"); accept(true); loadNextBlock(block); } @@ -337,8 +336,10 @@ || currentBlock.questionGroups.length < 1) { currentState = "none"; + return; } - else if(!instructionsLoaded) + + if(!instructionsLoaded) { currentState = "instructionsLoad"; } @@ -347,6 +348,8 @@ gotoInstructions(); } + shell.loadBlock(currentBlock); + // start timer to alert students to hurry shell.setProgressBarTime(0,0,currentBlock.duration); shell.progressBarInit(); Modified: mentalmodels/trunk/flex/src/custom/questions/strategyDesign/PlannerRow.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/strategyDesign/PlannerRow.mxml 2009-09-11 22:14:03 UTC (rev 278) +++ mentalmodels/trunk/flex/src/custom/questions/strategyDesign/PlannerRow.mxml 2009-09-16 21:09:44 UTC (rev 279) @@ -86,7 +86,7 @@ { if(location.selectedIndex == 0) { - return -1; + return 0; } return threshold.value; } Modified: mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-09-11 22:14:03 UTC (rev 278) +++ mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-09-16 21:09:44 UTC (rev 279) @@ -66,7 +66,7 @@ public function roundResultHandler(event:ResultEvent):void { repeated.round = notRepeated.round = event.result as Round; - Alert.show("Round received in StrategyDesign"); +// Alert.show("Round received in StrategyDesign"); } public function faultHandler(event:FaultEvent):void { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-09-16 20:53:11
|
I came in today at 13:30pm I have spoken to Seema about required changes to the server, and she tells me she is working on getting multiple games running at the same time. I will be getting the exact errors copied down, and try to figure out what exactly needs to be altered to repair the client-server communications in that respect |
From: seema t. <see...@gm...> - 2009-09-14 17:50:28
|
Dear Allen, I am not able to log in to the opensource.asu.edu website using ASURITE ID (stalele). I tried following things - Initially I thought I am putting the wrong password so I clicked on Forgot Password. At that time it asked me for username. It could not recognize the username , when I clicked on forgot user name, it asked me for email. It could not recognized my email address. I even tried to log in on dev.commons.asu.edu website just to make sure if my login informationi valid. It did not work at all. I was wondering is it possible for you to give me my log in information. Kalin are you able to log in using ASURITE id? Thank you Seema On Fri, Sep 11, 2009 at 2:08 PM, Allen Lee <All...@as...> wrote: > Seema and Kalin, > > Just a quick note to let you all know that the documentation wiki is > back up again at http://opensource.asu.edu/display/COMMONS/Home - > please sign up for an account there (you can use your ASURITE ID) and > start generating documentation there. I've started copy/pasting the > wiki markup from http://dev.commons.asu.edu:8081/ over there, but > might have missed a few pages - if you see anything missing please do > the same. > > Please clean up the Flex Documentation and Mental Models pages and > reorganize it to reflect the current design and implementation of > what's going on in the Mental Models experiment. > > On Fri, Sep 11, 2009 at 12:24 PM, Kalin Jonas <kj...@as...> wrote: > > I am working from home today at 12:15pm. > > I will try and see what kind of objexts are being sent across as > information > > windows > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Virtualcommons-svn mailing list > > Vir...@li... > > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > > > > > > > > -- > Allen Lee > Center for the Study of Institutional Diversity [http://csid.asu.edu] > Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 > Office: 480.727.0401 | Fax: 480.965.7671 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Virtualcommons-svn mailing list > Vir...@li... > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > |
From: seema t. <see...@gm...> - 2009-09-14 17:25:23
|
Thanks a lot Allen. Seema On Fri, Sep 11, 2009 at 2:08 PM, Allen Lee <All...@as...> wrote: > Seema and Kalin, > > Just a quick note to let you all know that the documentation wiki is > back up again at http://opensource.asu.edu/display/COMMONS/Home - > please sign up for an account there (you can use your ASURITE ID) and > start generating documentation there. I've started copy/pasting the > wiki markup from http://dev.commons.asu.edu:8081/ over there, but > might have missed a few pages - if you see anything missing please do > the same. > > Please clean up the Flex Documentation and Mental Models pages and > reorganize it to reflect the current design and implementation of > what's going on in the Mental Models experiment. > > On Fri, Sep 11, 2009 at 12:24 PM, Kalin Jonas <kj...@as...> wrote: > > I am working from home today at 12:15pm. > > I will try and see what kind of objexts are being sent across as > information > > windows > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Virtualcommons-svn mailing list > > Vir...@li... > > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > > > > > > > > -- > Allen Lee > Center for the Study of Institutional Diversity [http://csid.asu.edu] > Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 > Office: 480.727.0401 | Fax: 480.965.7671 > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Virtualcommons-svn mailing list > Vir...@li... > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > |
From: <see...@us...> - 2009-09-11 23:22:25
|
Revision: 278 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=278&view=rev Author: seematalele Date: 2009-09-11 22:14:03 +0000 (Fri, 11 Sep 2009) Log Message: ----------- 1) Written code for fish population calculation needs testing 2) Created the array list for storing the current games but has lot of errors Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/DayByDayDecisions.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Location.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/LocationService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-09-11 22:14:03 UTC (rev 278) @@ -405,31 +405,8 @@ -- Table structure for table `location` -- -DROP TABLE IF EXISTS `location`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `location` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `current_population` int(11) DEFAULT NULL, - `growth_rate` double NOT NULL, - `initial_population` int(11) NOT NULL, - `location_name` varchar(255) NOT NULL, - `max_capacity` int(11) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -- --- Dumping data for table `location` --- - -LOCK TABLES `location` WRITE; -/*!40000 ALTER TABLE `location` DISABLE KEYS */; -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; - --- -- Table structure for table `module` -- Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/DayByDayDecisions.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/DayByDayDecisions.java 2009-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/DayByDayDecisions.java 2009-09-11 22:14:03 UTC (rev 278) @@ -36,7 +36,6 @@ @Column(nullable=false) private Double earnings; - @Column(nullable=false) private Double money; Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Location.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Location.java 2009-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Location.java 2009-09-11 22:14:03 UTC (rev 278) @@ -7,6 +7,7 @@ import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; +import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; @@ -27,21 +28,30 @@ private String locationName; @Column(nullable=false,name="max_capacity") - private Integer maxCapacity; + private Double maxCapacity; @Column(nullable=false,name="growth_rate", scale=2) private Double growthRate; @Column(nullable=false,name="initial_population") - private Integer initialPopulation; + private Double initialPopulation; @Column(name="current_population") - private Integer currentPopulation; + private Double currentPopulation; + @Column(name="fish_leaving") + private Double fishLeaving; + @Column(name="fish_return") + private Double fishReturned; + + @ManyToOne + private Game game; + public void setId(Long id) { this.id = id; } + public Long getId() { return id; } @@ -58,23 +68,23 @@ public void setLocationName(String locationName) { this.locationName = locationName; } - public Integer getMaxCapacity() { + public Double getMaxCapacity() { return maxCapacity; } - public void setMaxCapacity(Integer maxCapacity) { + public void setMaxCapacity(Double maxCapacity) { this.maxCapacity = maxCapacity; } - public Integer getInitialPopulation() { + public Double getInitialPopulation() { return initialPopulation; } - public void setInitialPopulation(Integer initialPopulation) { + public void setInitialPopulation(Double initialPopulation) { this.initialPopulation = initialPopulation; } - public void setCurrentPopulation(Integer currentPopulation) { + public void setCurrentPopulation(Double currentPopulation) { this.currentPopulation = currentPopulation; } - public Integer getCurrentPopulation() { + public Double getCurrentPopulation() { return currentPopulation; } public void setRoundLocations(List<RoundLocation> roundLocations) { @@ -84,4 +94,28 @@ return roundLocations; } + public void setFishLeaving(Double fishLeaving) { + this.fishLeaving = fishLeaving; + } + + public Double getFishLeaving() { + return fishLeaving; + } + + public void setFishReturned(Double fishReturned) { + this.fishReturned = fishReturned; + } + + public Double getFishReturned() { + return fishReturned; + } + + public void setGame(Game game) { + this.game = game; + } + + public Game getGame() { + return game; + } + } 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-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/AnsweringService.java 2009-09-11 22:14:03 UTC (rev 278) @@ -41,7 +41,7 @@ studentResponse.setStudent(clientStudentResponse.getStudent()); getDao().save(studentResponse); } - //return moduleService.getBlock(); + } public void saveStrategy(List<StudentStrategy> studentStrategies) @@ -94,6 +94,4 @@ public HibernateStudentStrategyDao getStudentStrategyDao() { return studentStrategyDao; } - - } 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-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java 2009-09-11 22:14:03 UTC (rev 278) @@ -1,20 +1,74 @@ package edu.asu.commons.mme.service; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; +import java.util.Map; import org.springframework.transaction.annotation.Transactional; import edu.asu.commons.mme.dao.HibernateDayByDayDecisionsDao; import edu.asu.commons.mme.entity.DayByDayDecisions; +import edu.asu.commons.mme.entity.Group; import edu.asu.commons.mme.entity.Location; +/*** + 1) Harvesting - Find out the amount of fish per agent and calculate the current population after harvesting + Fishing capacity: All agents have the same limit of what they can maximally catch on a day. + fish_cap = 5 + amount_per_agent_i = Fish_cap \xD7 actualPopulation_i / capacity_i + IF number_of_agents_i \xD7 amount_per_agent > actualPopulation + amount_per_agent = actualPopulation / number_of_agents_i + actualPopulation_i = acutalPopulation_i \x96 number_of_agents_i \xD7 amount_per_agent + +2)Growth: Growth is calculated based on the fish population after harvesting. Thus, for Bay i: + growth_i = actualPopulation_i \xD7 growthRate _i + +3)Fish leaving location: The decrease of growth and reproduction with increasing population size is modeled here as fish leaving the bays. The amount of fish leaving the bay is set exactly to the same value as the reduction of growth/reproduction in the traditional logistic growth function. (It is assumed that fish do not simply stay in a bay even though there is not enough food to grow and they feel too uncomfortable to reproduce, but they leave the bay to look for a better place. Even though this tendency makes sense, it is not exactly what is commonly modeled with a logistic growth. To come closer to the traditional concept of a logistic growth the loss parameter can be set to higher values. However, the diffusion not only makes sense in an evolutionary sense but also is easy to explain to the subjects. Further, this leads to a psychologically much more interest-ing system behavior.) The amount of fish leaving the bays is calculated based on the population after har-vesting, i.e. still without considering the increase of the population due to regrowth. Thus the population of Bay i is reduced as follows: + leaving_i = actualPopulation_i \xD7 growthRate _i \xD7 actualPopulation_i / capacity_i + + 4)Population during diffusion: The fish population in Bay i after harvesting, growth and the leaving of the fish is + actualPopulation_i = actualPopulation_i + growth_i \x96 leaving_i + + 5) Redistribution: The fish that left their bays due to overcrowding now return to the bays. However, two processes lead to changes of the fish populations in the different bays compared to if the fish never would have left their bays: + + 6) Loss: Some fish are lost in the process (e.g. eaten by predatory fish or died in the open ocean). These losses also model reduction of the growth/reproduction rate of overcrowded locations according to a tradi-tional concept of the logistic growth. + However, for the pilot experiments the losses are set to 0. + For the pilot experiments the losses will be set to 0. To simulate the one-location condition, this parameter can be set to 1. + + totalLeaving = leaving_1 + leaving_2 + leaving_3 + totalLoss = totalLeaving \xD7 lossRate + totalReturn = totalLeaving \x96 totalLoss + +7)Redistribution: Fish that survive the diffusion process try to enter the three bays again. Fish will preferably go to the less crowded bays, what leads to a redistribution of the fish. Further, the more crowded a bay is, the less fish can enter. Into bays with a fish population near its capacity no fish can enter while all fish can escape in a completely empty bay. Fish that cannot enter a bay are also eliminated from the system, i.e. they die in the ocean. Thus, the amount of fish returning is calcu-lated as follows: + + FOR i = 1 TO 3 + receptivity_i = 1 \x96 actualPopulation_i / capacity_i + END FOR + + receptivity_total = receptivity_1 + receptivity_2 + receptivity_3 + + FOR i = 1 TO 3 + IF receptivity_total = 0 + returning_i = 0 + ELSE + returning_i = receptivity_i \xD7 totalReturn \xD7 receptivity_i / receptivity_total + END FOR + +8) New population: The new fish population, with which the next simulation day starts, is calculated as + actualPopulation_i = actualPopulation_i + returning_i + +*/ + @Transactional public class DayByDayDecisionsService extends Service.Base<DayByDayDecisions, HibernateDayByDayDecisionsDao> { LocationService locationService; - + StudentService studentService; + private List<DayByDayDecisions> studentDecisions = new ArrayList<DayByDayDecisions>(); + private double totalFishLeaving; + public void setStudentDecisions(List<DayByDayDecisions> studentDecisions) { this.studentDecisions = studentDecisions; } @@ -22,7 +76,23 @@ public List<DayByDayDecisions> getStudentDecisions() { return studentDecisions; } + + public double getTotalFishLeaving() { + return totalFishLeaving; + } + + public void setTotalFishLeaving(double totalFishLeaving) { + this.totalFishLeaving = totalFishLeaving; + } + public StudentService getStudentService() { + return studentService; + } + + public void setStudentService(StudentService studentService) { + this.studentService = studentService; + } + public void saveStudentDecision(DayByDayDecisions studentDecision) { if (studentDecisions == null) @@ -42,49 +112,205 @@ } } } - + public void allocateStudentForEachBay() { DayByDayDecisions studentDecision = new DayByDayDecisions(); - List<DayByDayDecisions> bay1 = new ArrayList<DayByDayDecisions>(); - List<DayByDayDecisions> bay2 = new ArrayList<DayByDayDecisions>(); - List<DayByDayDecisions> bay3 = new ArrayList<DayByDayDecisions>(); - List<DayByDayDecisions> harbor = new ArrayList<DayByDayDecisions>(); - - + List<DayByDayDecisions> bay1Students = new ArrayList<DayByDayDecisions>(); + List<DayByDayDecisions> bay2Students = new ArrayList<DayByDayDecisions>(); + List<DayByDayDecisions> bay3Students = new ArrayList<DayByDayDecisions>(); + List<DayByDayDecisions> harborStudents = new ArrayList<DayByDayDecisions>(); + for(int i = 0; i < studentDecisions.size(); i++) { studentDecision = studentDecisions.get(i); if(studentDecision.getLocation().getLocationName().equalsIgnoreCase("Bay1")) { - bay1.add(studentDecision); + bay1Students.add(studentDecision); } else if(studentDecision.getLocation().getLocationName().equalsIgnoreCase("Bay2")) { - bay2.add(studentDecision); + bay2Students.add(studentDecision); } else if(studentDecision.getLocation().getLocationName().equalsIgnoreCase("Bay3")) { - bay3.add(studentDecision); + bay3Students.add(studentDecision); } else if(studentDecision.getLocation().getLocationName().equalsIgnoreCase("Harbor")) { - harbor.add(studentDecision); + harborStudents.add(studentDecision); } } - executeStrategy(bay1,"Bay1"); - executeStrategy(bay2,"Bay2"); - executeStrategy(bay3,"Bay3"); - executeStrategy(harbor,"Harbor"); + + /** + * Calculate the following in the order it is mention + * 1) The actual population of each bay after growth and fish leaving and assign the harvest to each agent. + * 2) Total fish leaving = leaving from bay1 + leaving from bay2 + leaving from bay3 + * 2) Receptivity for each bay + * 3) Total receptivity + * 4) Fish Return for each bay + * 5) New population at each bay + */ + + + calculateHarvest(bay1Students,"Bay1"); + calculateHarvest(bay2Students,"Bay2"); + calculateHarvest(bay3Students,"Bay3"); + calculateHarvest(harborStudents,"Harbor"); + + calculateTotalFishLeaving(); + + calculateFishReturned(); + + calculateNewPopulation(); + } + + //FIXME: max_fish_capacity is hard coded to 5 but actually this value should get from game object + - public void executeStrategy(List<DayByDayDecisions> bay,String locationName) + + public void calculateHarvest(List<DayByDayDecisions> bayStudents,String locationName) { - Location location = locationService.getLocation(locationName); - location.getCurrentPopulation(); - + double maxFishCapacity = 5.0; + double amountPerAgent = 0.0; + double actualPopulation = 0.0; + double growth = 0.0; + double fishLeaving = 0.0; + + try + { + Location location = locationService.getLocation(locationName); + + actualPopulation = location.getCurrentPopulation(); + + //1)Harvesting + //Find out the amount of fish per agent + + amountPerAgent = maxFishCapacity * location.getCurrentPopulation() / location.getMaxCapacity(); + + if((bayStudents.size() * amountPerAgent) > actualPopulation) + { + amountPerAgent = actualPopulation / bayStudents.size(); + } + //FIXME: allocate this amountPerAgent to each student + + //calculate the current population after harvesting + actualPopulation = actualPopulation - bayStudents.size() * amountPerAgent; + + location.setCurrentPopulation(actualPopulation); + + //2)Growth + growth = actualPopulation * location.getGrowthRate(); + getLogger().info("Fish growth at " + locationName + " is: " + growth); + + //3) Fish leaving location + fishLeaving = actualPopulation * growth / location.getMaxCapacity(); + getLogger().info("Fish leaving at " + locationName + " is: " + fishLeaving); + + location.setFishLeaving(fishLeaving); + + //4) Population after diffusion + actualPopulation = actualPopulation + growth - fishLeaving; + getLogger().info("Fish population at " + locationName + " after diffusion is: " + actualPopulation); + locationService.save(location); + + for(DayByDayDecisions dayByDayDecisions : bayStudents) + { + dayByDayDecisions.setEarnings(amountPerAgent); + Group group = dayByDayDecisions.getStudent().getGroup(); + + } + + }catch(Exception e) + { + getLogger().error(e.fillInStackTrace()); + } } + + private void calculateTotalFishLeaving() { + + double totalFishLeaving = 0; + + for(Location location : locationService.getAllLocations()) + { + totalFishLeaving = totalFishLeaving + location.getFishLeaving(); + } + setTotalFishLeaving(totalFishLeaving); + + } + +/**INFO: loss rate is 0 - according to the Dr Tobias' document, loss rate for the pilot experiment is 0 + but for single location it will be 1 */ + + private void calculateFishReturned() { + + double totalLoss = 0.0; + double lossRate = 0.0; + double totalReturn = 0.0; + double maxFishCapacity = 5.0; + double totalReceptivity = 0.0; + double receptivity = 0.0; + + + Map<String,Double> bayReceptivity = new HashMap<String, Double>(); + try + { + + //calculate loss + totalLoss = getTotalFishLeaving() * lossRate; + totalReturn = getTotalFishLeaving() - totalLoss; + + getLogger().info("Total Return is: " + totalReturn); + + //calculate the receptivity for each bay and total receptivity + for(Location location : locationService.getAllLocations()) + { + receptivity = 1 - location.getCurrentPopulation() / maxFishCapacity; + getLogger().info(location.getLocationName() + " receptivity is: " + receptivity); + bayReceptivity.put(location.getLocationName(), receptivity); + totalReceptivity = receptivity + totalReceptivity; + } + getLogger().info("Total receptivity is: " + totalReceptivity); + + //calculte the returning for each bay + /**FOR i = 1 TO 3 + IF receptivity_total = 0 + returning_i = 0 + ELSE + returning_i = receptivity_i \xD7 totalReturn \xD7 receptivity_i / receptivity_total + END FOR */ + receptivity = 0.0; + for(Location location : locationService.getAllLocations()) + { + if(totalReceptivity == 0) + { + location.setFishReturned(0.0); + } + else + { + receptivity = bayReceptivity.get(location.getLocationName()); + location.setFishReturned(receptivity * totalReturn * receptivity / totalReceptivity); + getLogger().debug("Fish returned to " + location.getLocationName() + "is " + location.getFishReturned()); + } + } + + }catch(Exception e) + { + e.printStackTrace(); + } + } + private void calculateNewPopulation() { + + for(Location location:locationService.getAllLocations()) + { + location.setCurrentPopulation(location.getCurrentPopulation() + location.getFishReturned()); + getLogger().debug("New population at " + location.getLocationName() + " is: " + location.getCurrentPopulation()); + } + + } + public LocationService getLocationService() { return locationService; } @@ -92,5 +318,5 @@ public void setLocationService(LocationService locationService) { this.locationService = locationService; } - + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/LocationService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/LocationService.java 2009-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/LocationService.java 2009-09-11 22:14:03 UTC (rev 278) @@ -7,12 +7,15 @@ import org.springframework.transaction.annotation.Transactional; import edu.asu.commons.mme.dao.HibernateLocationDao; +import edu.asu.commons.mme.entity.Game; import edu.asu.commons.mme.entity.Location; @Transactional public class LocationService extends Service.Base<Location, HibernateLocationDao>{ - + + double totalFishLeaving; + public List<Location> getAllLocations() { List<Location> locations = new ArrayList<Location>(); @@ -22,9 +25,8 @@ { initLocation = locations.get(i); Hibernate.initialize(initLocation); - Hibernate.initialize(initLocation.getRoundLocations()); - + } return locations; } @@ -34,7 +36,7 @@ // TODO Auto-generated method stub List<Location>locations = getAllLocations(); Location location =new Location(); - + for(int i=0; i<locations.size(); i++) { if(locations.get(i).getLocationName().equalsIgnoreCase(locationName)) @@ -44,5 +46,53 @@ } return location; } - + //FIXME: For the pilot experiment locations are set manually but in future might want to take inputs from user + public void setAllLocations(Game game) + { + Location harbor = new Location(); + harbor.setLocationName("Harbor"); + harbor.setCurrentPopulation(0.0); + harbor.setGrowthRate(0.0); + harbor.setInitialPopulation(0.0); + harbor.setMaxCapacity(0.0); + harbor.setGame(game); + getDao().save(harbor); + + getLogger().info("Saved Location "+harbor.getLocationName()+" with id " + harbor.getId()); + + Location bay1 = new Location(); + bay1.setLocationName("Bay1"); + bay1.setCurrentPopulation(5.0); + bay1.setInitialPopulation(5.0); + bay1.setGrowthRate(0.5); + bay1.setMaxCapacity(10.0); + bay1.setGame(game); + getDao().save(bay1); + + getLogger().info("Saved Location " + bay1.getLocationName() +" with id "+ bay1.getId()); + + Location bay2 = new Location(); + bay2.setLocationName("Bay2"); + bay2.setCurrentPopulation(10.0); + bay2.setInitialPopulation(10.0); + bay2.setGrowthRate(0.15); + bay2.setMaxCapacity(20.0); + bay2.setGame(game); + getDao().save(bay2); + + getLogger().info("Saved Location " + bay2.getLocationName() +" with id "+ bay2.getId()); + + Location bay3 = new Location(); + bay3.setLocationName("Bay3"); + bay3.setCurrentPopulation(15.0); + bay3.setInitialPopulation(15.0); + bay3.setGrowthRate(0.05); + bay3.setMaxCapacity(30.0); + bay3.setGame(game); + getDao().save(bay3); + + getLogger().info("Saved Location " + bay3.getLocationName() +" with id "+ bay3.getId()); + + } + } 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-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-09-11 22:14:03 UTC (rev 278) @@ -32,11 +32,13 @@ private HibernateGameDao gameDao; private HibernateModuleRoundConfigDao moduleRoundDao; + private LocationService locationService; + private Module currentModule; //private boolean startGame = true; private Round currentRound; private Block currentBlock; - private Game currentGame; + private List<Game> currentGames; private int blockSeqNo; private ModuleRoundConfig currentModuleRoundConfig; @@ -57,42 +59,47 @@ public Game createGame(Game game) { - - currentGame = new Game(); + Game newGame = new Game(); //currentGame = game; - - currentGame.setDescription(game.getDescription()); - currentGame.setMaxDays(game.getMaxDays()); - currentGame.setMaxFishHarvest(game.getMaxFishHarvest()); - currentGame.setMoney(game.getMoney()); - currentGame.setNumberOfRounds(game.getNumberOfRounds()); - currentGame.setNumberOfLocations(game.getNumberOfLocations()); - currentGame.setTimestamp(game.getTimestamp()); - currentGame.setTitle(game.getTitle()); - currentGame.setImageLocation("null"); + newGame.setDescription(game.getDescription()); + newGame.setMaxDays(game.getMaxDays()); + newGame.setMaxFishHarvest(game.getMaxFishHarvest()); + newGame.setMoney(game.getMoney()); + newGame.setNumberOfRounds(game.getNumberOfRounds()); + newGame.setNumberOfLocations(game.getNumberOfLocations()); + newGame.setTimestamp(game.getTimestamp()); + newGame.setTitle(game.getTitle()); + newGame.setImageLocation("null"); + // currentGame.setro// - getGameDao().save(currentGame); - String str = currentGame.getDescription()+currentGame.getId(); + getGameDao().save(newGame); + String str = newGame.getDescription()+newGame.getId(); if(getGameDao().findAllByProperty("description", str).size() != 0) { getLogger().debug("in if loop "); - currentGame = null; - setCurrentGame(currentGame); + newGame = null; + setCurrentGame(newGame); } else { - currentGame.setDescription(str); - getGameDao().save(currentGame); - getLogger().debug("in else loop 1 " + str); - setCurrentGame(currentGame); - getLogger().debug("in else loop 2 " + str); - //initializeGame(currentGame); - getLogger().debug("in else loop 3 " + str); + newGame.setDescription(str); + getGameDao().save(newGame); + setCurrentGame(newGame); + + //initializeGame(newGame); + getLogger().info("Created the game: " + newGame.getId()); + initializeLocations(newGame); } - getLogger().debug("current game from flex is: " + currentGame.getDescription()); - return currentGame; + getLogger().debug("current game from flex is: " + newGame.getDescription()); + return newGame; } + + private void initializeLocations(Game newGame) + { + locationService.setAllLocations(newGame); + } + private void initializeGame(Game game) { // TODO Auto-generated method stub Hibernate.initialize(game); @@ -115,16 +122,17 @@ getLogger().debug("test to check if module service is working...." ); } + /* + *1) Check if the current module round config is null, this object keeps track of which round + * and which module in that round is going on + *2) Find out the current module number + *3) check if it is finished, if yes find out the current round number + *4) Find out the current block number + *5) Return the next block + */ + public Block getBlock() { - /* - *1) Check if the current module round config is null, this object keeps track of which round - * and which module in that round is going on - *2) Find out the current module number - *3) check if it is finished, if yes find out the current round number - *4) Find out the current block number - *5) Return the next block - */ //getLogger().debug("in getBlock "); //setCurrentModuleRoundConfig(currentModuleRoundConfig); @@ -165,8 +173,6 @@ setCurrentBlock(new Block()); currentBlock = getBlock(1); } - - } } else @@ -494,11 +500,8 @@ } } - - } - public Block getCurrentBlock() { //FIXEME: game id 1 is hard coded, it should be dynamic // Game game = gameDao.find(1L); @@ -509,22 +512,18 @@ return block; } - public void setCurrentModule(Module currentModule) { this.currentModule = currentModule; } - public Module getCurrentModule() { return currentModule; } - public void setCurrentRound(Round currentRound) { this.currentRound = currentRound; } - public Round getCurrentRound() { getLogger().debug("in get current round funciton"); /*Round round = currentGame.getCurrentRound(); @@ -535,7 +534,6 @@ return currentRound; } - private void initializeRound(Round round) { // TODO Auto-generated method stub Hibernate.initialize(round); @@ -578,22 +576,18 @@ return blockDao; } - public void setModuleRoundConfig(ModuleRoundConfig moduleRoundConfig) { this.currentModuleRoundConfig = moduleRoundConfig; } - public ModuleRoundConfig getModuleRoundConfig() { return currentModuleRoundConfig; } - public void setGameFinished(boolean gameFinished) { this.gameFinished = gameFinished; } - public boolean isGameFinished() { if(getCurrentGame().getCurrentRound().getRoundNo() < currentRound.getRoundNo()) { @@ -602,7 +596,6 @@ return false; } - public void setCurrentBlock(Block currentBlock) { this.currentBlock = currentBlock; } @@ -611,7 +604,6 @@ return currentModuleRoundConfig; } - public void setCurrentModuleRoundConfig( ModuleRoundConfig currentModuleRoundConfig) { this.currentModuleRoundConfig = currentModuleRoundConfig; @@ -623,6 +615,19 @@ return currentGame; } + public void setLocationService(LocationService locationService) { + this.locationService = locationService; + } + public LocationService getLocationService() { + return locationService; + } + public void setCurrentGames(List<Game> currentGames) { + this.currentGames = currentGames; + } + + public List<Game> getCurrentGames() { + return currentGames; + } } 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-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/StartupService.java 2009-09-11 22:14:03 UTC (rev 278) @@ -74,7 +74,6 @@ startGame = null; } - @Override public void setApplicationContext(ApplicationContext context) throws BeansException { @@ -82,7 +81,6 @@ this.ctx = context; } - public void setStartGame() { try{ if (startGame == null) { @@ -99,6 +97,4 @@ return startGame; } - - } Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-09-04 01:12:28 UTC (rev 277) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/applicationContext.xml 2009-09-11 22:14:03 UTC (rev 278) @@ -113,6 +113,7 @@ <property name='moduleDao' ref='moduleDao'/> <property name='gameDao' ref='gameDao' /> <property name='moduleRoundDao' ref='moduleRoundDao' /> + <property name='locationService' ref='locationService'/> <!-- <property name='blockDao' ref='blockDao'/> --> </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-09-11 21:38:48
|
I am checking out today at 14:30 pm (2.25hr) On Fri, Sep 11, 2009 at 2:30 PM, Kalin Jonas <kj...@as...> wrote: > Alright, cool. > Right now, I'm stuck in at least two major spots due to problems with the > server, or my code trying to use the server. > I've fixed the problem with the information windows; the > BlockInformationWindow.as class was being mapped to the Block.java entity. > I will work on the documentation for now, until I manage to get in and work > with Seema to resolve the problems with our code communicating. > > > On Fri, Sep 11, 2009 at 2:08 PM, Allen Lee <All...@as...> wrote: > >> Seema and Kalin, >> >> Just a quick note to let you all know that the documentation wiki is >> back up again at http://opensource.asu.edu/display/COMMONS/Home - >> please sign up for an account there (you can use your ASURITE ID) and >> start generating documentation there. I've started copy/pasting the >> wiki markup from http://dev.commons.asu.edu:8081/ over there, but >> might have missed a few pages - if you see anything missing please do >> the same. >> >> Please clean up the Flex Documentation and Mental Models pages and >> reorganize it to reflect the current design and implementation of >> what's going on in the Mental Models experiment. >> >> On Fri, Sep 11, 2009 at 12:24 PM, Kalin Jonas <kj...@as...> wrote: >> > I am working from home today at 12:15pm. >> > I will try and see what kind of objexts are being sent across as >> information >> > windows >> > >> > >> ------------------------------------------------------------------------------ >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> > trial. Simplify your report design, integration and deployment - and >> focus >> > on >> > what you do best, core application coding. Discover what's new with >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july >> > _______________________________________________ >> > Virtualcommons-svn mailing list >> > Vir...@li... >> > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn >> > >> > >> >> >> >> -- >> Allen Lee >> Center for the Study of Institutional Diversity [http://csid.asu.edu] >> Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 >> Office: 480.727.0401 | Fax: 480.965.7671 >> > > |
From: Kalin J. <kj...@as...> - 2009-09-11 21:30:45
|
Alright, cool. Right now, I'm stuck in at least two major spots due to problems with the server, or my code trying to use the server. I've fixed the problem with the information windows; the BlockInformationWindow.as class was being mapped to the Block.java entity. I will work on the documentation for now, until I manage to get in and work with Seema to resolve the problems with our code communicating. On Fri, Sep 11, 2009 at 2:08 PM, Allen Lee <All...@as...> wrote: > Seema and Kalin, > > Just a quick note to let you all know that the documentation wiki is > back up again at http://opensource.asu.edu/display/COMMONS/Home - > please sign up for an account there (you can use your ASURITE ID) and > start generating documentation there. I've started copy/pasting the > wiki markup from http://dev.commons.asu.edu:8081/ over there, but > might have missed a few pages - if you see anything missing please do > the same. > > Please clean up the Flex Documentation and Mental Models pages and > reorganize it to reflect the current design and implementation of > what's going on in the Mental Models experiment. > > On Fri, Sep 11, 2009 at 12:24 PM, Kalin Jonas <kj...@as...> wrote: > > I am working from home today at 12:15pm. > > I will try and see what kind of objexts are being sent across as > information > > windows > > > > > ------------------------------------------------------------------------------ > > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > > trial. Simplify your report design, integration and deployment - and > focus > > on > > what you do best, core application coding. Discover what's new with > > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > _______________________________________________ > > Virtualcommons-svn mailing list > > Vir...@li... > > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > > > > > > > > -- > Allen Lee > Center for the Study of Institutional Diversity [http://csid.asu.edu] > Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 > Office: 480.727.0401 | Fax: 480.965.7671 > |
From: Allen L. <All...@as...> - 2009-09-11 21:08:31
|
Seema and Kalin, Just a quick note to let you all know that the documentation wiki is back up again at http://opensource.asu.edu/display/COMMONS/Home - please sign up for an account there (you can use your ASURITE ID) and start generating documentation there. I've started copy/pasting the wiki markup from http://dev.commons.asu.edu:8081/ over there, but might have missed a few pages - if you see anything missing please do the same. Please clean up the Flex Documentation and Mental Models pages and reorganize it to reflect the current design and implementation of what's going on in the Mental Models experiment. On Fri, Sep 11, 2009 at 12:24 PM, Kalin Jonas <kj...@as...> wrote: > I am working from home today at 12:15pm. > I will try and see what kind of objexts are being sent across as information > windows > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Virtualcommons-svn mailing list > Vir...@li... > https://lists.sourceforge.net/lists/listinfo/virtualcommons-svn > > -- Allen Lee Center for the Study of Institutional Diversity [http://csid.asu.edu] Arizona State University | P.O. Box 872402 | Tempe, Arizona 85287-2402 Office: 480.727.0401 | Fax: 480.965.7671 |
From: Kalin J. <kj...@as...> - 2009-09-11 19:25:00
|
I am working from home today at 12:15pm. I will try and see what kind of objexts are being sent across as information windows |
From: Kalin J. <kj...@as...> - 2009-09-06 23:59:50
|
I am checking out today at 16:00pm (3hr) I have moved some of the code around to avoid fatal errors, but I am still getting null instead of BlockInformationWindow objects attached to the blocks. (I get the right number, but all null or something) I am not sure if they are null or if they are supposed to be some other class, but Seema told me to use BlockInformationWindow. I have been occasionally noticing an intermittent problem when you start the game that on rare occasions, the first block does not successfully push to all the clients. It sometimes only pushes to some of the running clients, or not at all. The StartGame.swf sends the next block, but the first block might not ever come. The second and further blocks show up just fine after 20 seconds though. I propose that we add a little bit of a delay after clicking StartGame before anything actually happens, so that in the real testing environment, we can make sure we wont have to accidentally drop students out of the first block. On Sun, Sep 6, 2009 at 1:11 PM, Kalin Jonas <kj...@as...> wrote: > I work Sunday from 13:00pm at home. > I am checking if the information windows are getting to client side, and > work on updating them if they are showing up. > > > On Sun, Sep 6, 2009 at 2:28 AM, Kalin Jonas <kj...@as...> wrote: > >> I am signing out here at 2:00 am. >> I may have fixed a little glitch that seems to have been making the server >> cause errors when the threshold value is -1 >> I can't figure out exactly why this is happening. >> My code should be using the new BlockInformationWindow class for >> actionscript. >> >> I will be testing it again in the morning. >> >> >> On Sun, Sep 6, 2009 at 12:25 AM, Kalin Jonas <kj...@as...> wrote: >> >>> I started working from home tonight at around 12:00am. >>> I have been creating a class for the client to use for >>> BlockInformationWindow, and changing code to implement it >>> >> >> > |
From: Kalin J. <kj...@as...> - 2009-09-06 20:11:57
|
I work Sunday from 13:00pm at home. I am checking if the information windows are getting to client side, and work on updating them if they are showing up. On Sun, Sep 6, 2009 at 2:28 AM, Kalin Jonas <kj...@as...> wrote: > I am signing out here at 2:00 am. > I may have fixed a little glitch that seems to have been making the server > cause errors when the threshold value is -1 > I can't figure out exactly why this is happening. > My code should be using the new BlockInformationWindow class for > actionscript. > > I will be testing it again in the morning. > > > On Sun, Sep 6, 2009 at 12:25 AM, Kalin Jonas <kj...@as...> wrote: > >> I started working from home tonight at around 12:00am. >> I have been creating a class for the client to use for >> BlockInformationWindow, and changing code to implement it >> > > |
From: Kalin J. <kj...@as...> - 2009-09-06 09:28:46
|
I am signing out here at 2:00 am. I may have fixed a little glitch that seems to have been making the server cause errors when the threshold value is -1 I can't figure out exactly why this is happening. My code should be using the new BlockInformationWindow class for actionscript. I will be testing it again in the morning. On Sun, Sep 6, 2009 at 12:25 AM, Kalin Jonas <kj...@as...> wrote: > I started working from home tonight at around 12:00am. > I have been creating a class for the client to use for > BlockInformationWindow, and changing code to implement it > |
From: Kalin J. <kj...@as...> - 2009-09-06 07:25:56
|
I started working from home tonight at around 12:00am. I have been creating a class for the client to use for BlockInformationWindow, and changing code to implement it |
From: Kalin J. <kj...@as...> - 2009-09-04 19:55:06
|
I'm leaving today at 12:45pm (1.25hr) I will make up the extra time tonight or on the weekend. I have been trying to work with the new information window system, and make sure they are A) showing up at the right time B) leaving at the right time On Fri, Sep 4, 2009 at 11:31 AM, Kalin Jonas <kj...@as...> wrote: > Today I came in at 10:30am, and have been testing the game under different > circumstances. > It looks like we can still only run one game at a time > If we have multiple students, it seems to push to all students, but when I > test it, the first block does not come. The second block comes at 20 seconds > later, but the first does not show up on any screen. > > |
From: Kalin J. <kj...@as...> - 2009-09-04 18:32:10
|
Today I came in at 10:30am, and have been testing the game under different circumstances. It looks like we can still only run one game at a time If we have multiple students, it seems to push to all students, but when I test it, the first block does not come. The second block comes at 20 seconds later, but the first does not show up on any screen. |
From: <see...@us...> - 2009-09-04 01:12:35
|
Revision: 277 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=277&view=rev Author: seematalele Date: 2009-09-04 01:12:28 +0000 (Fri, 04 Sep 2009) Log Message: ----------- Changed the initializeModule so that it can initialize blockinformationWindow as well as informationWindow whenever it initializes the block Modified Paths: -------------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java 2009-09-04 00:53:14 UTC (rev 276) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java 2009-09-04 01:12:28 UTC (rev 277) @@ -186,10 +186,11 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); - while(infoWindow.hasNext()) + List<BlockInformationWindow> infoWindow = block.getInformationWindows(); + for(int j = 0; j < infoWindow.size(); j++) { - Hibernate.initialize(infoWindow.next()); + Hibernate.initialize(infoWindow.get(j)); + Hibernate.initialize(infoWindow.get(j).getInfoWindow()); } Iterator<QuestionGroup> iteratorquestionGrp = block.getQuestionGroups().iterator(); { 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-09-04 00:53:14 UTC (rev 276) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java 2009-09-04 01:12:28 UTC (rev 277) @@ -401,10 +401,11 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); - while(infoWindow.hasNext()) + List<BlockInformationWindow> infoWindow = block.getInformationWindows(); + for(int j = 0; j < infoWindow.size(); j++) { - Hibernate.initialize(infoWindow.next()); + Hibernate.initialize(infoWindow.get(j)); + Hibernate.initialize(infoWindow.get(j).getInfoWindow()); } Iterator<QuestionGroup> iteratorquestionGrp = block.getQuestionGroups().iterator(); { 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-09-04 00:53:14 UTC (rev 276) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-09-04 01:12:28 UTC (rev 277) @@ -465,10 +465,11 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); - while(infoWindow.hasNext()) + List<BlockInformationWindow> infoWindow = block.getInformationWindows(); + for(int j = 0; j < infoWindow.size(); j++) { - Hibernate.initialize(infoWindow.next()); + Hibernate.initialize(infoWindow.get(j)); + Hibernate.initialize(infoWindow.get(j).getInfoWindow()); } Iterator<QuestionGroup> iteratorquestionGrp = block.getQuestionGroups().iterator(); { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-09-04 00:59:09
|
Today I leave at 17:45pm (3.15 hr) I've been working with Seema to fix errors with the information windows We have changed the structure again, so we have to re-test and rewrite a lot of code again. On Thu, Sep 3, 2009 at 2:35 PM, Kalin Jonas <kj...@as...> wrote: > Today I come in at 2:30 pm > I will be messing with the server pushing, see it the information windows > are coming across right. > |
From: <see...@us...> - 2009-09-04 00:53:27
|
Revision: 276 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=276&view=rev Author: seematalele Date: 2009-09-04 00:53:14 +0000 (Fri, 04 Sep 2009) Log Message: ----------- - Created BlockInformationWindow.java which will associate block with information window. - Added BlockInformationWindow.java into the hibernate.cfg.xml file. - Changed InformationWindow.java so that it will store only title, indexId (which will be used by Client to manipulate the information windows) - Populated the block_information_window and information_window tables manually.Changed the init-mme.sql to reflect the changes. Modified Paths: -------------- mentalmodels/trunk/src/main/db/init-mme.sql mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Block.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Game.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/InformationWindow.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Round.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java mentalmodels/trunk/src/main/webapp/WEB-INF/hibernate.cfg.xml Added Paths: ----------- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/BlockInformationWindow.java Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-09-04 00:53:14 UTC (rev 276) @@ -45,6 +45,36 @@ UNLOCK TABLES; -- +-- Table structure for table `block_information_window` +-- + +DROP TABLE IF EXISTS `block_information_window`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `block_information_window` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `sequence_no` int(11) NOT NULL, + `block_id` bigint(20) NOT NULL, + `infoWindow_id` bigint(20) NOT NULL, + PRIMARY KEY (`id`), + KEY `FK50228F55734F3CBF` (`infoWindow_id`), + KEY `FK50228F551F51CEC1` (`block_id`), + CONSTRAINT `FK50228F551F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`), + CONSTRAINT `FK50228F55734F3CBF` FOREIGN KEY (`infoWindow_id`) REFERENCES `information_window` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=92 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `block_information_window` +-- + +LOCK TABLES `block_information_window` WRITE; +/*!40000 ALTER TABLE `block_information_window` DISABLE KEYS */; +INSERT INTO `block_information_window` VALUES (4,1,1,1),(5,2,1,2),(6,3,1,3),(7,4,1,4),(8,1,2,1),(9,2,2,3),(10,3,2,4),(11,4,2,5),(12,1,3,1),(13,2,3,3),(14,3,3,4),(15,4,3,6),(16,1,4,1),(17,2,4,3),(18,3,4,4),(19,4,4,6),(20,5,4,5),(21,6,4,7),(22,7,4,8),(23,1,5,1),(24,2,5,3),(25,3,5,4),(26,4,5,6),(27,1,6,1),(28,2,6,3),(29,3,6,4),(30,4,6,6),(31,5,6,7),(32,6,6,8),(33,7,6,9),(34,8,6,10),(35,1,7,1),(36,2,7,3),(37,3,7,4),(38,4,7,6),(39,1,8,1),(40,2,8,3),(41,3,8,4),(42,4,8,6),(43,5,8,5),(44,6,8,8),(45,7,8,9),(46,8,8,10),(47,9,8,11),(48,10,8,12),(49,1,9,1),(50,2,9,3),(51,3,9,4),(52,4,9,6),(53,5,9,8),(54,6,9,9),(55,7,9,10),(56,8,9,11),(57,9,9,12),(58,1,10,1),(59,2,10,3),(60,3,10,4),(61,4,10,5),(62,5,10,6),(63,6,10,7),(64,7,10,8),(65,8,10,9),(66,9,10,10),(67,10,10,11),(68,11,10,12),(69,1,12,1),(70,2,12,3),(71,3,12,4),(72,4,12,5),(73,5,12,6),(74,6,12,7),(75,7,12,8),(76,8,12,9),(77,9,12,10),(78,10,12,11),(79,11,12,12),(80,1,13,1),(81,2,13,3),(82,3,13,4),(83,4,13,6),(84,5,13,9),(85,6,13,10),(86,1,14,1),(87,2,14,3),(88,3,14,4),(89,4,14,6),(90,5,14,9),(91,6,14,10); +/*!40000 ALTER TABLE `block_information_window` ENABLE KEYS */; +UNLOCK TABLES; + +-- -- Table structure for table `categorical_option` -- @@ -355,13 +385,10 @@ /*!40101 SET character_set_client = utf8 */; CREATE TABLE `information_window` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, - `sequence_no` int(11) NOT NULL, + `indexId` bigint(20) NOT NULL, `title` varchar(255) NOT NULL, - `block_id` bigint(20) NOT NULL, - PRIMARY KEY (`id`), - KEY `FK349B7A631F51CEC1` (`block_id`), - CONSTRAINT `FK349B7A631F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=latin1; + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -370,7 +397,7 @@ LOCK TABLES `information_window` WRITE; /*!40000 ALTER TABLE `information_window` DISABLE KEYS */; -INSERT INTO `information_window` VALUES (1,1,'Dummy',1),(2,2,'Problem Presentation',1),(3,1,'Problem Presentation',2),(4,2,'Help For Strategy Design',2),(5,1,'Problem Presentation',3),(6,2,'Own Strategy',3),(7,1,'Problem Presentation',4),(8,2,'Own Strategy',4),(9,3,'Help For Strategy Design',4),(10,4,'Own Goals',4),(11,5,'Forecast',4),(12,1,'Problem Presentation',5),(13,2,'Own Strategy',5),(14,1,'Problem Presentation',6),(15,2,'Own Strategy',6),(16,3,'Own Goals',6),(17,4,'Forecast',6),(18,5,'Results of Day-By-Day decisions',6),(19,6,'Results of strategy',6),(20,1,'Problem Presentation',7),(21,2,'Own Strategy',7),(22,1,'Problem Presentation',8),(23,2,'Own Strategy',8),(24,3,'Help For Strategy Design',8),(25,4,'Forecast',8),(26,5,'Results of Day-By-Day decisions',8),(27,6,'Results of strategy',8),(28,7,'Planned changes to strategy',8),(29,8,'Conclusions from communication',8),(30,2,'Problem Presentation',1),(31,1,'Problem Presentation',2),(32,2,'Help For Strategy Design',2),(33,1,'Problem Presentation',3),(34,2,'Own Strategy',3),(35,1,'Problem Presentation',4),(36,2,'Own Strategy',4),(37,3,'Help For Strategy Design',4),(38,4,'Own Goals',4),(39,5,'Forecast',4),(40,1,'Problem Presentation',5),(41,2,'Own Strategy',5),(42,1,'Problem Presentation',6),(43,2,'Own Strategy',6),(44,3,'Own Goals',6),(45,4,'Forecast',6),(46,5,'Results of Day-By-Day decisions',6),(47,6,'Results of strategy',6),(48,1,'Problem Presentation',7),(49,2,'Own Strategy',7),(50,1,'Problem Presentation',8),(51,2,'Own Strategy',8),(52,3,'Help For Strategy Design',8),(53,4,'Forecast',8),(54,5,'Results of Day-By-Day decisions',8),(55,6,'Results of strategy',8),(56,7,'Planned changes to strategy',8),(57,8,'Conclusions from communication',8),(58,1,'Problem Presentation',9),(59,2,'Own Strategy',9),(60,3,'Forecast',9),(61,4,'Results of Day-By-Day decisions',9),(62,5,'Results of strategy',9),(63,6,'Planned changes to strategy',9),(64,7,'Conclusions from communication',9),(65,1,'Problem Presentation',10),(66,2,'Help For Strategy Design',10),(67,3,'Own Strategy',10),(68,4,'Own Goals',10),(69,5,'Forecast',10),(70,6,'Results of Day-By-Day decisions',10),(71,7,'Results of strategy',10),(72,8,'Planned changes to strategy',10),(73,9,'Conclusions from communication',10),(74,1,'Problem Presentation',12),(75,2,'Help For Strategy Design',12),(76,3,'Own Strategy',12),(77,4,'Own Goals',12),(78,5,'Forecast',12),(79,6,'Results of Day-By-Day decisions',12),(80,7,'Results of strategy',12),(81,8,'Planned changes to strategy',12),(82,9,'Conclusions from communication',12),(83,1,'Problem Presentation',13),(84,2,'Own Strategy',13),(85,3,'Results of Day-By-Day decisions',13),(86,4,'Results of strategy',13),(87,1,'Problem Presentation',14),(88,2,'Own Strategy',14),(89,3,'Results of Day-By-Day decisions',14),(90,4,'Results of strategy',14); +INSERT INTO `information_window` VALUES (1,0,'How To Navigate The Program (Help)'),(2,1,'This is an Information Window'),(3,2,'Model of the fishing ground'),(4,3,'Important Formulas'),(5,4,'Help For Strategy Design'),(6,5,'Own Strategy'),(7,6,'Own Goals'),(8,7,'Forecast'),(9,8,'Results of Day-By-Day decisions'),(10,9,'Results of strategy'),(11,10,'Planned changes to strategy'),(12,11,'Conclusions from communication'); /*!40000 ALTER TABLE `information_window` ENABLE KEYS */; UNLOCK TABLES; @@ -818,4 +845,4 @@ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2009-08-31 22:25:00 +-- Dump completed on 2009-09-04 0:47:19 Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Block.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Block.java 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Block.java 2009-09-04 00:53:14 UTC (rev 276) @@ -51,7 +51,7 @@ @OneToMany(mappedBy="block",fetch = FetchType.EAGER) @OrderBy("sequenceNo") - private List<InformationWindow> informationWindows; + private List<BlockInformationWindow> informationWindows; public void setId(Long id) { @@ -102,14 +102,15 @@ return duration; } - public void setInformationWindows(List<InformationWindow> informationWindows) { + public void setInformationWindows(List<BlockInformationWindow> informationWindows) { this.informationWindows = informationWindows; } - public List<InformationWindow> getInformationWindows() { + public List<BlockInformationWindow> getInformationWindows() { return informationWindows; } + /*public void setInformationWindows(List<Integer> informationWindows) { this.informationWindows = informationWindows; } Added: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/BlockInformationWindow.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/BlockInformationWindow.java (rev 0) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/BlockInformationWindow.java 2009-09-04 00:53:14 UTC (rev 276) @@ -0,0 +1,68 @@ +package edu.asu.commons.mme.entity; + +import java.io.Serializable; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.Table; + +@Entity +@Table(name="block_information_window") +public class BlockInformationWindow implements Serializable{ + /** + * + */ + private static final long serialVersionUID = 5728067454617945622L; + + @Id + @GeneratedValue + private Long id; + + @Column(name="sequence_no",nullable=false) + private Integer sequenceNo; + + @ManyToOne + @JoinColumn(nullable=false) + private InformationWindow infoWindow; + + @ManyToOne + @JoinColumn(nullable=false) + private Block block; + + public void setId(Long id) { + this.id = id; + } + + public Long getId() { + return id; + } + + public void setSequenceNo(Integer sequenceNo) { + this.sequenceNo = sequenceNo; + } + + public Integer getSequenceNo() { + return sequenceNo; + } + + public void setBlock(Block block) { + this.block = block; + } + + public Block getBlock() { + return block; + } + + public void setInfoWindow(InformationWindow infoWindow) { + this.infoWindow = infoWindow; + } + + public InformationWindow getInfoWindow() { + return infoWindow; + } + +} Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Game.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Game.java 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Game.java 2009-09-04 00:53:14 UTC (rev 276) @@ -6,7 +6,6 @@ import javax.persistence.Column; import javax.persistence.Entity; -import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/InformationWindow.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/InformationWindow.java 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/InformationWindow.java 2009-09-04 00:53:14 UTC (rev 276) @@ -1,13 +1,15 @@ package edu.asu.commons.mme.entity; import java.io.Serializable; +import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import javax.persistence.OneToMany; +import javax.persistence.OrderBy; import javax.persistence.Table; @Entity @@ -20,16 +22,16 @@ @GeneratedValue private Long id; - @Column(name="sequence_no",nullable=false) - private Integer sequenceNo; + @Column(name="indexId",nullable=false) + private Long indexId; @Column(name="title",nullable=false) private String title; - @ManyToOne - @JoinColumn(nullable=false) - private Block block; - + @OneToMany(mappedBy="infoWindow",fetch = FetchType.EAGER) + @OrderBy("sequenceNo") + private List<BlockInformationWindow> blockInfoWindows; + public void setId(Long id) { this.id = id; } @@ -38,14 +40,6 @@ return id; } - public void setSequenceNo(Integer sequenceNo) { - this.sequenceNo = sequenceNo; - } - - public Integer getSequenceNo() { - return sequenceNo; - } - public void setTitle(String title) { this.title = title; } @@ -54,11 +48,20 @@ return title; } - public void setBlock(Block block) { - this.block = block; + public void setBlockInfoWindows(List<BlockInformationWindow> blockInfoWindows) { + this.blockInfoWindows = blockInfoWindows; } - public Block getBlock() { - return block; + public List<BlockInformationWindow> getBlockInfoWindows() { + return blockInfoWindows; } + + public void setIndexId(Long indexId) { + this.indexId = indexId; + } + + public Long getIndexId() { + return indexId; + } + } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Round.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Round.java 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/entity/Round.java 2009-09-04 00:53:14 UTC (rev 276) @@ -8,7 +8,6 @@ import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; -import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Table; 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-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/DayByDayDecisionsService.java 2009-09-04 00:53:14 UTC (rev 276) @@ -13,9 +13,6 @@ public class DayByDayDecisionsService extends Service.Base<DayByDayDecisions, HibernateDayByDayDecisionsDao> { LocationService locationService; - - - private List<DayByDayDecisions> studentDecisions = new ArrayList<DayByDayDecisions>(); public void setStudentDecisions(List<DayByDayDecisions> studentDecisions) { @@ -84,6 +81,7 @@ public void executeStrategy(List<DayByDayDecisions> bay,String locationName) { Location location = locationService.getLocation(locationName); + location.getCurrentPopulation(); } Modified: mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java =================================================================== --- mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/ModuleService.java 2009-09-04 00:53:14 UTC (rev 276) @@ -10,6 +10,7 @@ import edu.asu.commons.mme.dao.HibernateModuleDao; import edu.asu.commons.mme.dao.HibernateModuleRoundConfigDao; import edu.asu.commons.mme.entity.Block; +import edu.asu.commons.mme.entity.BlockInformationWindow; import edu.asu.commons.mme.entity.CategoricalOption; import edu.asu.commons.mme.entity.CategoricalQuestion; import edu.asu.commons.mme.entity.Game; @@ -185,7 +186,7 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<InformationWindow> infoWindow = block.getInformationWindows().iterator(); + Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); while(infoWindow.hasNext()) { Hibernate.initialize(infoWindow.next()); 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-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/QuestionCreatorService.java 2009-09-04 00:53:14 UTC (rev 276) @@ -15,6 +15,7 @@ import edu.asu.commons.mme.dao.HibernateQuestionDao; import edu.asu.commons.mme.dao.HibernateQuestionGroupDao; import edu.asu.commons.mme.entity.Block; +import edu.asu.commons.mme.entity.BlockInformationWindow; import edu.asu.commons.mme.entity.CategoricalOption; import edu.asu.commons.mme.entity.CategoricalQuestion; import edu.asu.commons.mme.entity.InformationWindow; @@ -400,7 +401,7 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<InformationWindow> infoWindow = block.getInformationWindows().iterator(); + Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); while(infoWindow.hasNext()) { Hibernate.initialize(infoWindow.next()); 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-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/java/edu/asu/commons/mme/service/RoundService.java 2009-09-04 00:53:14 UTC (rev 276) @@ -13,6 +13,7 @@ import edu.asu.commons.mme.dao.HibernateModuleRoundConfigDao; import edu.asu.commons.mme.dao.HibernateRoundConfigDao; import edu.asu.commons.mme.entity.Block; +import edu.asu.commons.mme.entity.BlockInformationWindow; import edu.asu.commons.mme.entity.CategoricalOption; import edu.asu.commons.mme.entity.CategoricalQuestion; import edu.asu.commons.mme.entity.Game; @@ -464,7 +465,7 @@ { Block block = iterateBlock.next(); Hibernate.initialize(block); - Iterator<InformationWindow> infoWindow = block.getInformationWindows().iterator(); + Iterator<BlockInformationWindow> infoWindow = block.getInformationWindows().iterator(); while(infoWindow.hasNext()) { Hibernate.initialize(infoWindow.next()); Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/hibernate.cfg.xml =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/hibernate.cfg.xml 2009-09-04 00:52:31 UTC (rev 275) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/hibernate.cfg.xml 2009-09-04 00:53:14 UTC (rev 276) @@ -35,7 +35,9 @@ <mapping class='edu.asu.commons.mme.entity.Block'/> <mapping class='edu.asu.commons.mme.entity.ModuleRoundConfig'/> <mapping class='edu.asu.commons.mme.entity.InformationWindow'/> + <mapping class='edu.asu.commons.mme.entity.BlockInformationWindow'/> <mapping class='edu.asu.commons.mme.entity.DayByDayDecisions'/> + </session-factory> </hibernate-configuration> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <kj...@us...> - 2009-09-04 00:52:49
|
Revision: 275 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=275&view=rev Author: kjonas Date: 2009-09-04 00:52:31 +0000 (Fri, 04 Sep 2009) Log Message: ----------- Adjusted to use server pushing Trying to get round via strategy design only Fixing errors with pushing and initializing components/information windows Modified Paths: -------------- mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml mentalmodels/trunk/flex/src/actionscript/InformationWindowCreator.as mentalmodels/trunk/flex/src/actionscript/PageDisplay.as mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml mentalmodels/trunk/flex/src/custom/InstructionPage.mxml mentalmodels/trunk/flex/src/custom/questions/dayByDayDecisions/DayByDayDecisionsQuestionC.mxml mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingFishQuestionC.mxml mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingPeopleQuestionC.mxml mentalmodels/trunk/flex/src/custom/questions/psychometric/PsychometricQuestionC.mxml mentalmodels/trunk/flex/src/custom/questions/strategyDesign/Planner.mxml mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml mentalmodels/trunk/flex/src/test.mxml mentalmodels/trunk/src/main/webapp/FisheryExperimentShell.swf mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf mentalmodels/trunk/src/main/webapp/StartGame.swf mentalmodels/trunk/src/main/webapp/WEB-INF/classes/log4j.properties mentalmodels/trunk/src/main/webapp/test.swf Modified: mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml =================================================================== --- mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/FisheryExperimentShell.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -57,12 +57,6 @@ <mx:VBox id="vbxContent" horizontalAlign="center" verticalAlign="middle"> <mx:VBox id="progressBars" x="0" y="0" verticalGap="0"> - <!--<mx:HBox> - <mx:Label text="Time for Module:" width="130" textAlign="right"/> - <mx:HBox width="{progressBarWidth+2}" borderStyle="solid"> - <mx:HBox id="progressBarModule" height="10" backgroundColor="#00FF00"/> - </mx:HBox> - </mx:HBox>--> <mx:HBox> <mx:Label text="Time for Block:" width="130" textAlign="right"/> <mx:HBox width="{progressBarWidth+2}" borderStyle="solid"> @@ -83,7 +77,6 @@ import mx.controls.Alert; import mx.controls.Label; import actionscript.Block; - import actionscript.Module; import actionscript.InformationWindowCreator; import mx.collections.ArrayCollection; import custom.InformationWindowPopup; @@ -103,8 +96,7 @@ public var currInfoWindowsB:ArrayCollection = null; public var currInfoWindowsDescriptions:ArrayCollection = null; - public var currModule:Module = null; - public var currBlock:Block = null; + public var currentBlock:Block = null; public function faultMsgHandler(msgevent:MessageFaultEvent):void { @@ -275,25 +267,29 @@ } } - public function loadBlock(block:Block, module:Module=null):void + public function loadBlock(block:Block):void { if(block != null) { - currBlock = block; + currentBlock = block; + var i:int = 0; + + var str:String = currentBlock.informationWindows.length + " of them.\n"; + for(i = 0; i < currentBlock.informationWindows.length; i++) + { + str += "["+(currentBlock.informationWindows.getItemAt(i) as InformationWindow).id+"]"; + } + Alert.show(str,"Information Windows:"); + var tempArray:ArrayCollection = new ArrayCollection(); - for(var i:int = 0; i<currBlock.informationWindows.length; i++) + for(i = 0; i<currentBlock.informationWindows.length; i++) { - var temp:InformationWindow = (currBlock.informationWindows.getItemAt(i) as InformationWindow); - tempArray.addItem(temp.id); + var temp:InformationWindow = (currentBlock.informationWindows.getItemAt(i) as InformationWindow); + tempArray.addItem(temp.id - 1); } selectCurrentWindows( tempArray ); } - - if(module != null) - { - currModule = module; - } } ]]> Modified: mentalmodels/trunk/flex/src/actionscript/InformationWindowCreator.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/InformationWindowCreator.as 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/actionscript/InformationWindowCreator.as 2009-09-04 00:52:31 UTC (rev 275) @@ -105,7 +105,7 @@ tempWindow.addItem(temp); allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Help"); + allInfoWindowsDescriptions.addItem("How to Navigate the Program (Help)"); //// // Window 1 @@ -123,7 +123,7 @@ tempWindow.addItem(temp); allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Dummy Window"); + allInfoWindowsDescriptions.addItem("This is an Information Window"); //// // Window 2 @@ -329,7 +329,7 @@ tempWindow = new ArrayCollection(); temp = new Label(); - (temp as Label).text = "The 30-Day Strategy you Designed"; + (temp as Label).text = "Own Strategy"; (temp as Label).setStyle("fontSize",14); (temp as Label).setStyle("fontWeight","bold"); tempWindow.addItem(temp); @@ -341,14 +341,14 @@ updateObject.strategy = temp as StrategyDesignQuestionC; allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Your Strategy"); + allInfoWindowsDescriptions.addItem("Own Strategy"); //// // Window 6 tempWindow = new ArrayCollection(); temp = new Label(); - (temp as Label).text = "The Goals You Specified"; + (temp as Label).text = "Own Goals"; (temp as Label).setStyle("fontSize",14); (temp as Label).setStyle("fontWeight","bold"); tempWindow.addItem(temp); @@ -383,7 +383,7 @@ updateObject.goals.addItem(temp as CategoricalQuestionC); allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Your Goals"); + allInfoWindowsDescriptions.addItem("Own Goals"); //// // Window 7 @@ -401,7 +401,7 @@ updateObject.forecasting = temp as ForecastingFishQuestionC; allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Your Forecast"); + allInfoWindowsDescriptions.addItem("Forecast"); //// // Window 8 @@ -419,14 +419,14 @@ updateObject.dayByDayResults = temp as DayByDayDecisionsQuestionC; allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Day-by-Day Results"); + allInfoWindowsDescriptions.addItem("Results of Day-by-Day Decisions"); //// // Window 9 tempWindow = new ArrayCollection(); temp = new Label(); - (temp as Label).text = "Results of Your 30-Day Strategy"; + (temp as Label).text = "Results of Strategy"; (temp as Label).setStyle("fontSize",14); (temp as Label).setStyle("fontWeight","bold"); tempWindow.addItem(temp); @@ -437,7 +437,7 @@ updateObject.strategyResults = temp as DayByDayDecisionsQuestionC; allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Strategy Results"); + allInfoWindowsDescriptions.addItem("Results of Strategy"); //// // Window 10 @@ -474,7 +474,7 @@ updateObject.learned.addItem(temp as TextQuestionC); allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Notes - Yourself"); + allInfoWindowsDescriptions.addItem("Planned Changes to Strategy"); //// // Window 11 @@ -519,7 +519,7 @@ updateObject.learnedComm.addItem(temp as TextQuestionC); allInfoWindows.addItem(tempWindow); - allInfoWindowsDescriptions.addItem("Notes - With Group"); + allInfoWindowsDescriptions.addItem("Conclusions from Communication"); /* Modified: mentalmodels/trunk/flex/src/actionscript/PageDisplay.as =================================================================== --- mentalmodels/trunk/flex/src/actionscript/PageDisplay.as 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/actionscript/PageDisplay.as 2009-09-04 00:52:31 UTC (rev 275) @@ -112,6 +112,7 @@ { var sdq:StrategyDesignQuestionC = new StrategyDesignQuestionC(); sdq.locations = locations; + sdq.roundService.getCurrentRound(); sdq.loadFromQuestion(Question(tempQuestion)); sdq.id = "q"+question; @@ -176,7 +177,7 @@ } - public function componentsNotFinished():Boolean + public function componentsNotFinished(force:Boolean=false):Boolean { var returnValue:Boolean = false; var curr:VBox; @@ -214,10 +215,10 @@ } // Alert.show(messages + returnValue); } - return returnValue; + return returnValue && !force; } - public function finished():Boolean - { return highestPageReached >= minPagesRead - 1; } + public function finished(force:Boolean=false):Boolean + { return highestPageReached >= minPagesRead - 1 || force; } public function get length():int { return pages.length; } Modified: mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/FisheryExperimentCore.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -57,10 +57,6 @@ </mx:HBox> - <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:RemoteObject> @@ -112,8 +108,6 @@ 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 shell:FisheryExperimentShell = null; @@ -133,8 +127,15 @@ private function messageHandler(event:MessageEvent):void { - Alert.show("Block from server came.."); - + setBlock(event.message.body as actionscript.Block); + } + private function blockResultHandler(event:ResultEvent):void + { + setBlock(event.result as actionscript.Block); + } + private function setBlock(block:Block):void + { + Alert.show(currentState); if(currentState == "none") { Alert.show("Block received in End of Game state.","Unexpected Block"); @@ -142,12 +143,13 @@ } else if(currentState == "wait") { - loadNextBlock(event.message.body as actionscript.Block); + loadNextBlock(block); } else if(currentState == "instructions") { - finishBlockEarly(); - loadNextBlock(event.message.body as actionscript.Block); + Alert.show("FORCING"); + accept(true); + loadNextBlock(block); } else if(currentState == "socioDemographic") { @@ -159,7 +161,6 @@ currentState = "none"; Alert.show("Block received in Instructions (load) state.","Unexpected Block"); } - } private function newLocation(maxCapacity:Number,growth:Number):Location @@ -281,6 +282,8 @@ var strategy:StrategyDesignQuestionC = StrategyDesignQuestionC(curr.getChildAt(j)); var tempDBObjects:ArrayCollection = strategy.toDatabaseObject(); + roundObject = strategy.notRepeated.round; + for(var k:int=0;k<tempDBObjects.length;k++) { (tempDBObjects.getItemAt(k) as StudentStrategy).student = studentObject; @@ -304,47 +307,7 @@ { locationService.getAllLocations(); } - private function getNextBlock():void - { - currentBlock = null; - currentBlockNumber++; - - //server request - //roundService.getBlock(); - } - private function blockResultHandler(event:ResultEvent):void - { - if(currentState == "none") - { - Alert.show("Block received in End of Game state.","Unexpected Block"); - return; - } - else if(currentState == "wait") - { - loadNextBlock(event.result as actionscript.Block); - } - else if(currentState == "instructions") - { - finishBlockEarly(); - loadNextBlock(event.result as actionscript.Block); - } - else if(currentState == "socioDemographic") - { - currentState = "none"; - Alert.show("Block received in Socio Demographic state.","Unexpected Block"); - } - else if(currentState == "instructionsLoad") - { - currentState = "none"; - Alert.show("Block received in Instructions (load) state.","Unexpected Block"); - } - } - private function finishBlockEarly():void - { - - } - private function saveDataToShell():void { shell.updateObjectA.updateDayByDayDecisions(instructions.savedDayByDayDecisions); @@ -387,9 +350,6 @@ // 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 { @@ -415,11 +375,6 @@ gotoInstructions(); } } - private function roundResultHandler(event:ResultEvent):void - { - currentRound = event.result as Round; - currentRoundNumber = currentRound.id; - } public function getLocation():void { @@ -491,7 +446,7 @@ return false; } - public function accept():Boolean + public function accept(force:Boolean=false):Boolean { if(content.numChildren == 0) { return false; } @@ -526,7 +481,7 @@ { try { - var instructionPageAcceptValue:Boolean = (InstructionPage)(obj).accept(); + var instructionPageAcceptValue:Boolean = (InstructionPage)(obj).accept(force); if( instructionPageAcceptValue ) { obj.visible = false; Modified: mentalmodels/trunk/flex/src/custom/InstructionPage.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/InstructionPage.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/InstructionPage.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -147,15 +147,15 @@ } - public function accept():Boolean + public function accept(force:Boolean=false):Boolean { try { - if(pageDisplay.componentsNotFinished()) + if(pageDisplay.componentsNotFinished(force)) { Alert.show("You must complete all required sections of the Block.","Cannot Advance"); } - else if(pageDisplay.finished()) + else if(pageDisplay.finished(force)) { return true; } Modified: mentalmodels/trunk/flex/src/custom/questions/dayByDayDecisions/DayByDayDecisionsQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/dayByDayDecisions/DayByDayDecisionsQuestionC.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/dayByDayDecisions/DayByDayDecisionsQuestionC.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -172,6 +172,7 @@ public function load(loadArray:ArrayCollection):void { + if(dayByDayContent == null) return; dayByDayContent.removeAllChildren(); cumTotal = 0; @@ -227,6 +228,7 @@ public function loadFromStrategy(saved:ArrayCollection):void { + if(dayByDayContent == null) return; dayByDayContent.removeAllChildren(); cumTotal = 0; Modified: mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingFishQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingFishQuestionC.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingFishQuestionC.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -51,6 +51,7 @@ public function init():void { + if(fishEntry == null || peopleDisplay == null || calculated == null) return; fishEntry.initialize(); fishEntry.init(); peopleDisplay.initialize(); peopleDisplay.init(); calculated.initialize(); calculated.init(); Modified: mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingPeopleQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingPeopleQuestionC.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/forecasting/ForecastingPeopleQuestionC.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -46,6 +46,7 @@ public function init():void { + if(peopleEntry == null) return; peopleEntry.initialize(); peopleEntry.init(); if(loadPeople != null) Modified: mentalmodels/trunk/flex/src/custom/questions/psychometric/PsychometricQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/psychometric/PsychometricQuestionC.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/psychometric/PsychometricQuestionC.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -87,6 +87,7 @@ public function load(loadArray:ArrayCollection):void { + if(slider1 == null || slider1.sliderButton == null) return; slider1.sliderButton.visible = loadArray.getItemAt(0) as Boolean; slider1.sliderButton.move(loadArray.getItemAt(1) as Number, 0); } Modified: mentalmodels/trunk/flex/src/custom/questions/strategyDesign/Planner.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/strategyDesign/Planner.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/strategyDesign/Planner.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -5,6 +5,7 @@ <mx:Script> <![CDATA[ + import actionscript.Round; import actionscript.Location; import mx.collections.ArrayCollection; import mx.controls.Label; @@ -12,6 +13,7 @@ public var valueRequired:Boolean = false; public var hasBeenChanged:Boolean = false; [Bindable] public var locations:ArrayCollection = new ArrayCollection([newLocation(0, 0)]); + public var round:Round = null; private function newLocation(maxCapacity:Number,growth:Number):Location { Modified: mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/custom/questions/strategyDesign/StrategyDesignQuestionC.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -33,8 +33,15 @@ <mx:Label text="days before starting the next repetition."/> </mx:HBox> + <mx:RemoteObject id="roundService" destination="roundService" fault="faultHandler(event)"> + <mx:method name="getCurrentRound" result="roundResultHandler(event)"/> + </mx:RemoteObject> + <mx:Script> <![CDATA[ + import mx.controls.Alert; + import mx.rpc.events.FaultEvent; + import mx.rpc.events.ResultEvent; import actionscript.Round; import actionscript.Location; import actionscript.StudentStrategy; @@ -56,6 +63,17 @@ { } + public function roundResultHandler(event:ResultEvent):void + { + repeated.round = notRepeated.round = event.result as Round; + Alert.show("Round received in StrategyDesign"); + } + public function faultHandler(event:FaultEvent):void + { + Alert.show("Error finding round for Strategy Design!"); + repeated.round = notRepeated.round = null; + } + public function getNotRepeated():ArrayCollection { return notRepeated.save(); } @@ -79,6 +97,7 @@ public function load(loadArray:ArrayCollection):void { + if(notRepeated == null || repeated == null || loadArray == null) return; notRepeated.load(loadArray.getItemAt(0) as ArrayCollection); repeated.load(loadArray.getItemAt(1) as ArrayCollection); suspendWeight.value = loadArray.getItemAt(2) as Number; @@ -116,6 +135,7 @@ tempObject.location = strToLocation(tempArray.getItemAt(0) as String); tempObject.days = int(tempArray.getItemAt(1) as Number); tempObject.threshold = (tempArray.getItemAt(2) as Number); + tempObject.round = notRepeated.round; tempObject.allocationSeqNo = i; tempObject.repeatedDecisions = false; @@ -129,6 +149,7 @@ tempObject.location = strToLocation(tempArray.getItemAt(0) as String); tempObject.days = int(tempArray.getItemAt(1) as Number); tempObject.threshold = (tempArray.getItemAt(2) as Number); + tempObject.round = repeated.round; tempObject.allocationSeqNo = i+notRepeatedArray.length; tempObject.repeatedDecisions = true; Modified: mentalmodels/trunk/flex/src/test.mxml =================================================================== --- mentalmodels/trunk/flex/src/test.mxml 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/flex/src/test.mxml 2009-09-04 00:52:31 UTC (rev 275) @@ -1,16 +1,35 @@ <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:actionscript="actionscript.*"> - <actionscript:Student id="stu" gameCode="test1" birthYear="1991" gender="M" major="cse"/> + <actionscript:Student id="stu" birthYear="1991" gender="M" major="cse" gameCode="{gc.text}"/> + <mx:TextInput id="gc" text="test3"/> + <mx:ArrayCollection id="strat"> + <actionscript:StudentStrategy days="1" repeatedDecisions="true" location="{locs.getItemAt(0) as Location}"/> + </mx:ArrayCollection> + + <mx:ArrayCollection id="locs"> + </mx:ArrayCollection> + <mx:HBox> <mx:Button label="roundService.getBlock()" click="roundService.getBlock()"/> <mx:Button label="roundService.getCurrentRound()" click="roundService.getCurrentRound()"/> <mx:Button label="startupService.createStudent()" click="startupService.createStudent(stu)"/> - <mx:Button label="answeringService.saveStrategy()" click="answeringService.saveStrategy()"/> + <mx:Button label="answeringService.saveStrategy()" click="answeringService.saveStrategy(strat)"/> <mx:Button label="locationService.getAllLocations()" click="locationService.getAllLocations()"/> </mx:HBox> + <mx:HBox> + <mx:VBox> + <mx:Label text="location"/> + <mx:NumericStepper stepSize="1" value="0" enabled="{locs.length != 0}"/> + </mx:VBox> + <mx:VBox> + <mx:Label text="???"/> + <mx:NumericStepper stepSize="1" value="0"/> + </mx:VBox> + </mx:HBox> + <mx:RemoteObject id="roundService" destination="roundService" fault="faultHandler(event)"> <mx:method name="getBlock" result="resultHandler(event)"/> <mx:method name="getCurrentRound" result="resultHandler(event)"/> @@ -27,6 +46,7 @@ <mx:Script> <![CDATA[ + import actionscript.Location; import actionscript.Round; import mx.core.UIComponent; import mx.controls.Alert; @@ -40,8 +60,21 @@ str += "event.result == null : " + (event.result == null) + "\n"; Alert.show(str, "resultHandler()"); - var round:actionscript.Round = event.result as actionscript.Round; - Alert.show("round no is : " + round.roundNo + " " + round.id); + + var array:ArrayCollection = (event.result as ArrayCollection); + if(array != null) + { + Alert.show("ArrayCollection"); + var first:Object = array.getItemAt(0); + if((first as Location) != null) + { + Alert.show("ArrayCollection of Locations"); + locs = array; + } + } + +// var round:actionscript.Round = event.result as actionscript.Round; +// Alert.show("round no is : " + round.roundNo + " " + round.id); //Alert.show } 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) Modified: mentalmodels/trunk/src/main/webapp/WEB-INF/classes/log4j.properties =================================================================== --- mentalmodels/trunk/src/main/webapp/WEB-INF/classes/log4j.properties 2009-08-31 22:30:50 UTC (rev 274) +++ mentalmodels/trunk/src/main/webapp/WEB-INF/classes/log4j.properties 2009-09-04 00:52:31 UTC (rev 275) @@ -1,15 +1,16 @@ -# Set root category priority to ERROR and its only appender to A1. -log4j.rootCategory=ERROR, A1 - -# A1 is set to be a ConsoleAppender. -log4j.appender.A1=org.apache.log4j.ConsoleAppender - -# A1 uses PatternLayout. -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%-4r [%t] (%F:%L) %-5p %c %x - %m%n - -# Add packages to log -log4j.logger.edu.asu.commons=DEBUG - -log4j.logger.org.springframework=DEBUG -log4j.logger.org.hibernate=ERROR +# Set root category priority to ERROR and its only appender to A1. +log4j.rootCategory=ERROR, A1 + +# A1 is set to be a ConsoleAppender. +log4j.appender.A1=org.apache.log4j.ConsoleAppender + +# A1 uses PatternLayout. +log4j.appender.A1.layout=org.apache.log4j.PatternLayout +log4j.appender.A1.layout.ConversionPattern=%-4r [%t] (%F:%L) %-5p %c %x - %m%n + +# Add packages to log +log4j.logger.edu.asu.commons=DEBUG + +#log4j.logger.org.springframework=DEBUG +log4j.logger.org.springframework=ERROR +log4j.logger.org.hibernate=ERROR Modified: mentalmodels/trunk/src/main/webapp/test.swf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Kalin J. <kj...@as...> - 2009-09-03 21:35:22
|
Today I come in at 2:30 pm I will be messing with the server pushing, see it the information windows are coming across right. |
From: Kalin J. <kj...@as...> - 2009-09-02 21:23:21
|
I am going to check out for today at 13:45pm (1.75hr) I have been testing the new server pushing and trying to implement information windows in the program. I'll work to finish this later. On Wed, Sep 2, 2009 at 12:14 PM, Kalin Jonas <kj...@as...> wrote: > I come in today at 12:00pm > |
From: Kalin J. <kj...@as...> - 2009-09-02 19:14:18
|
I come in today at 12:00pm |
From: <see...@us...> - 2009-08-31 22:30:59
|
Revision: 274 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=274&view=rev Author: seematalele Date: 2009-08-31 22:30:50 +0000 (Mon, 31 Aug 2009) Log Message: ----------- -- Was getting error so, removed the code in createBlock function in InitialiseDatabase.mxml. -- Added a block (day by day decision game interface) for Module 1 and removed the question group and also question associated for the node Day by Day decisions. Now Module 1 contains 2 blocks. 1 is Introduction while other is Day-by-day decisions. Added question group and question for newly added block. -- init-mme is changed accordingly. Modified Paths: -------------- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml mentalmodels/trunk/src/main/db/init-mme.sql mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf Modified: mentalmodels/trunk/flex/src/InitialiseDatabase.mxml =================================================================== --- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-31 21:30:14 UTC (rev 273) +++ mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-31 22:30:50 UTC (rev 274) @@ -190,7 +190,7 @@ newBlockNode.@sec = block.getSeconds(); newBlockNode.@id = block.id; - var infoWindowTitles:String = ""; + /* var infoWindowTitles:String = ""; for(var i:int = 0; i < block.informationWindows.length; i++) { if(infoWindowTitles == "") @@ -206,7 +206,7 @@ infoWindowTitles = infoWindowTitles + ","; } - newBlockNode.@informaitionWindows = infoWindowTitles; + newBlockNode.@informaitionWindows = infoWindowTitles; */ return newBlockNode; } Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-31 21:30:14 UTC (rev 273) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-31 22:30:50 UTC (rev 274) @@ -31,7 +31,7 @@ PRIMARY KEY (`id`), KEY `FK597C48D4D4A8AF3` (`module_id`), CONSTRAINT `FK597C48D4D4A8AF3` FOREIGN KEY (`module_id`) REFERENCES `module` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -40,7 +40,7 @@ LOCK TABLES `block` WRITE; /*!40000 ALTER TABLE `block` DISABLE KEYS */; -INSERT INTO `block` VALUES (1,'Introduction',1080,1,1),(2,'Design Strategy',1080,1,2),(3,'Characterizing own strategy',1020,2,2),(4,'Editing strategy',300,3,2),(5,'Day-by-day decisions game',360,4,2),(6,'Evaluation of Outcomes',660,5,2),(7,'Communication',360,1,3),(8,'Design Strategy',300,1,4),(9,'Characterizing own strategy',540,2,4),(10,'Editing strategy',180,3,4),(11,'Day-by-day decisions game',360,4,4),(12,'Evaluation of Outcomes',360,5,4),(13,'Final data gathering',120,1,5),(14,'Debriefing',120,2,5),(15,'Communication - Questions',480,2,3); +INSERT INTO `block` VALUES (1,'Introduction',1080,1,1),(2,'Design Strategy',1080,1,2),(3,'Characterizing own strategy',1020,2,2),(4,'Editing strategy',300,3,2),(5,'Day-by-day decisions game',360,4,2),(6,'Evaluation of Outcomes',660,5,2),(7,'Communication',360,1,3),(8,'Design Strategy',300,1,4),(9,'Characterizing own strategy',540,2,4),(10,'Editing strategy',180,3,4),(11,'Day-by-day decisions game',360,4,4),(12,'Evaluation of Outcomes',360,5,4),(13,'Final data gathering',120,1,5),(14,'Debriefing',120,2,5),(15,'Communication - Questions',480,2,3),(16,'Day-by-day decisions game',345,2,1); /*!40000 ALTER TABLE `block` ENABLE KEYS */; UNLOCK TABLES; @@ -527,7 +527,7 @@ PRIMARY KEY (`id`), KEY `FKBA823BE6CA626674` (`question_group_id`), CONSTRAINT `FKBA823BE6CA626674` FOREIGN KEY (`question_group_id`) REFERENCES `question_group` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -536,7 +536,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),(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); +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),(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),(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),(153,0,'',1,'daybydaydecisions',67); /*!40000 ALTER TABLE `question` ENABLE KEYS */; UNLOCK TABLES; @@ -557,7 +557,7 @@ PRIMARY KEY (`id`), KEY `FK8F8090E61F51CEC1` (`block_id`), CONSTRAINT `FK8F8090E61F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -566,7 +566,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>After seeing the results of your first strategy design and having chatted with your fellow fishermen, you might want to change some aspects of your strategy. On the next page you find the same interface you already used for designing your strategy. The explanation will not be repeated but if you forgot certain functionalities you can refer to the <b>information window \"Help for strategy design\".</b></p>',480,'<b>Improve your Strategy</b>',1,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>',2,8),(42,'<p>Please explain your strategy with a few sentences. Particularly consider the following aspects:</p>',120,'<b>Explain the strategy in your own words</b>',1,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>',2,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>',3,9),(45,'',30,'<b>How do you perceive your group?</b>',4,9),(46,'',30,'<b>How much do you count on others and how much can they count on you?</b>',5,9),(47,'',30,'<b>What else influenced your strategy design?</b>',6,9),(48,'',30,'<b>How confident are you in reaching the outcomes you are expecting?</b>',7,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>',8,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>',9,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>',10,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),(59,'',30,'<b>What is your evaluation of the outcome</b>',3,6),(60,'',60,'<b>What might be the causes for the outcome?</b>',4,6),(61,'If you open the results of the day-by-day decisions in one information window and your strategy in the other, you can compare the actions and developments.',120,'<b>Comparing your strategy with your day-by-day decisions</b>',5,6),(62,'In the fields below you can note what you have learned from the results of your strategy and the day-by-day decisions 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 we offer you a separate field. 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.',300,'<b>Lessons Learned</b>',6,6),(63,'',30,'<b>What is your evaluation of the outcome</b>',3,12),(64,'',60,'<b>What might be the causes for the outcome?</b>',4,12),(65,'If you open the results of the day-by-day decisions in one information window and your strategy... [truncated message content] |
From: <see...@us...> - 2009-08-31 21:30:28
|
Revision: 273 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=273&view=rev Author: seematalele Date: 2009-08-31 21:30:14 +0000 (Mon, 31 Aug 2009) Log Message: ----------- 1) Changed the text editor layouts in Block, Question, QuestionGroup. 2) Tried putting the interface for adding information window into the block section but it is not finished. 3) Entered the information windows into the database manually. 4) Updated init-mme.sql Modified Paths: -------------- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml mentalmodels/trunk/flex/src/custom/db/Block.mxml mentalmodels/trunk/flex/src/custom/db/Question.mxml mentalmodels/trunk/flex/src/custom/db/QuestionGroup.mxml mentalmodels/trunk/src/main/db/init-mme.sql mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf Modified: mentalmodels/trunk/flex/src/InitialiseDatabase.mxml =================================================================== --- mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-31 18:50:59 UTC (rev 272) +++ mentalmodels/trunk/flex/src/InitialiseDatabase.mxml 2009-08-31 21:30:14 UTC (rev 273) @@ -4,6 +4,7 @@ width="100%" height="100%" clipContent="false" layout="absolute" currentState="none" initialize="init()" xmlns:custom="custom.*"> <mx:Script> <![CDATA[ + import actionscript.InformationWindow; import mx.binding.utils.BindingUtils; import actionscript.Block; @@ -26,7 +27,7 @@ /**** * Sample exmaple of Survey Questions structure * <module title="Preexperiment" sequenceNo="1" hours="0" min="3" sec="0" id="1"> - <block name="Introduction" sequenceNo="1" hours="0" min="3" sec="0" id="1"> + <block name="Introduction" sequenceNo="1" hours="0" min="3" sec="0" id="1" informationWindows="Help,Dummy Window,Model of the Fishing Ground"> <questiongroup header="Welcome to E-Fishery Experiment" description="In this experiment you will design..." sequenceNo="1" hours="0" min="3" sec="0" id="1" /> @@ -189,6 +190,23 @@ newBlockNode.@sec = block.getSeconds(); newBlockNode.@id = block.id; + var infoWindowTitles:String = ""; + for(var i:int = 0; i < block.informationWindows.length; i++) + { + if(infoWindowTitles == "") + { + var infoWindow:actionscript.InformationWindow = actionscript.InformationWindow(block.informationWindows.getItemAt(i)); + infoWindowTitles = infoWindow.title; + } + else + { + infoWindow = actionscript.InformationWindow(block.informationWindows.getItemAt(i)); + infoWindowTitles = infoWindowTitles + infoWindow.title; + } + infoWindowTitles = infoWindowTitles + ","; + } + + newBlockNode.@informaitionWindows = infoWindowTitles; return newBlockNode; } @@ -691,6 +709,7 @@ blockXML[0].@hours = block.getHours(); blockXML[0].@min = block.getMinutes(); blockXML[0].@sec = block.getSeconds(); + } } else Modified: mentalmodels/trunk/flex/src/custom/db/Block.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/db/Block.mxml 2009-08-31 18:50:59 UTC (rev 272) +++ mentalmodels/trunk/flex/src/custom/db/Block.mxml 2009-08-31 21:30:14 UTC (rev 273) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" > +<mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:custom="custom.*" > <mx:Script> <![CDATA[ import mx.validators.NumberValidator; @@ -83,8 +83,6 @@ } - - public function validateForm(event:Event):Boolean { // Save a reference to the currently focussed form control @@ -157,7 +155,7 @@ <mx:Spacer height="20" /> <mx:FormItem label="Description:"> <!-- <mx:TextArea id="txtName" change="{validateForm(event)}"/> --> - <mx:RichTextEditor id="rchtxtDescription" change="{validateForm(event)}" title="Block Description" width="500" height="500" /> + <mx:RichTextEditor id="rchtxtDescription" change="{validateForm(event)}" title="Block Description" width="100%" height="300" /> </mx:FormItem> <mx:Spacer height="20" /> <mx:FormItem label="Duration(hr:min:sec):"> @@ -170,10 +168,14 @@ <mx:NumericStepper id="seconds" minimum="0" maximum="60" stepSize="1" change="{getSeconds()}"/> </mx:HBox> - - - </mx:FormItem> +<mx:FormItem label="Available Information Windows"> + <custom:InformationWindowButton superParent="{this}"/> +</mx:FormItem> + +<mx:FormItem label="Associated Information Windows"> + <custom:InformationWindowButton superParent="{this}"/> +</mx:FormItem> <mx:NumberValidator id ="validateSeqNo" source="{txtSeqNo}" property="text" minValue="1" maxValue="1000" domain="int"/> </mx:Form> Modified: mentalmodels/trunk/flex/src/custom/db/Question.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/db/Question.mxml 2009-08-31 18:50:59 UTC (rev 272) +++ mentalmodels/trunk/flex/src/custom/db/Question.mxml 2009-08-31 21:30:14 UTC (rev 273) @@ -204,7 +204,7 @@ <mx:Spacer height="20" /> <mx:FormItem label="Question:"> <!-- <mx:TextArea id="rchtxtQuestion" change="{validateForm(event)}"/> --> - <mx:RichTextEditor id="rchtxtQuestion" change="{validateForm(event)}" title="Question Editor" width="500" height="500" /> + <mx:RichTextEditor id="rchtxtQuestion" change="{validateForm(event)}" title="Question Editor" width="100%" height="300" /> </mx:FormItem> <mx:Spacer height="20" /> <mx:FormItem label= "Is this question for communication Round?"> Modified: mentalmodels/trunk/flex/src/custom/db/QuestionGroup.mxml =================================================================== --- mentalmodels/trunk/flex/src/custom/db/QuestionGroup.mxml 2009-08-31 18:50:59 UTC (rev 272) +++ mentalmodels/trunk/flex/src/custom/db/QuestionGroup.mxml 2009-08-31 21:30:14 UTC (rev 273) @@ -183,8 +183,8 @@ <mx:FormItem label="Decsription:"> - <!-- <mx:TextArea id="txtDescription" change="{validateForm(event)}" width="100%" height="100"/> --> - <mx:RichTextEditor id="rchtxtDescription" change="{validateForm(event)}" title="Question Group Description" width="500" height="500" /> + <!-- <mx:TextArea id="txtDescription" change="{validateForm(event)}" width="300" height="300"/> --> + <mx:RichTextEditor id="rchtxtDescription" change="{validateForm(event)}" title="Question Group Description" width="100%" height="300" /> </mx:FormItem> Modified: mentalmodels/trunk/src/main/db/init-mme.sql =================================================================== --- mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-31 18:50:59 UTC (rev 272) +++ mentalmodels/trunk/src/main/db/init-mme.sql 2009-08-31 21:30:14 UTC (rev 273) @@ -361,7 +361,7 @@ PRIMARY KEY (`id`), KEY `FK349B7A631F51CEC1` (`block_id`), CONSTRAINT `FK349B7A631F51CEC1` FOREIGN KEY (`block_id`) REFERENCES `block` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -370,6 +370,7 @@ LOCK TABLES `information_window` WRITE; /*!40000 ALTER TABLE `information_window` DISABLE KEYS */; +INSERT INTO `information_window` VALUES (1,1,'Dummy',1),(2,2,'Problem Presentation',1),(3,1,'Problem Presentation',2),(4,2,'Help For Strategy Design',2),(5,1,'Problem Presentation',3),(6,2,'Own Strategy',3),(7,1,'Problem Presentation',4),(8,2,'Own Strategy',4),(9,3,'Help For Strategy Design',4),(10,4,'Own Goals',4),(11,5,'Forecast',4),(12,1,'Problem Presentation',5),(13,2,'Own Strategy',5),(14,1,'Problem Presentation',6),(15,2,'Own Strategy',6),(16,3,'Own Goals',6),(17,4,'Forecast',6),(18,5,'Results of Day-By-Day decisions',6),(19,6,'Results of strategy',6),(20,1,'Problem Presentation',7),(21,2,'Own Strategy',7),(22,1,'Problem Presentation',8),(23,2,'Own Strategy',8),(24,3,'Help For Strategy Design',8),(25,4,'Forecast',8),(26,5,'Results of Day-By-Day decisions',8),(27,6,'Results of strategy',8),(28,7,'Planned changes to strategy',8),(29,8,'Conclusions from communication',8),(30,2,'Problem Presentation',1),(31,1,'Problem Presentation',2),(32,2,'Help For Strategy Design',2),(33,1,'Problem Presentation',3),(34,2,'Own Strategy',3),(35,1,'Problem Presentation',4),(36,2,'Own Strategy',4),(37,3,'Help For Strategy Design',4),(38,4,'Own Goals',4),(39,5,'Forecast',4),(40,1,'Problem Presentation',5),(41,2,'Own Strategy',5),(42,1,'Problem Presentation',6),(43,2,'Own Strategy',6),(44,3,'Own Goals',6),(45,4,'Forecast',6),(46,5,'Results of Day-By-Day decisions',6),(47,6,'Results of strategy',6),(48,1,'Problem Presentation',7),(49,2,'Own Strategy',7),(50,1,'Problem Presentation',8),(51,2,'Own Strategy',8),(52,3,'Help For Strategy Design',8),(53,4,'Forecast',8),(54,5,'Results of Day-By-Day decisions',8),(55,6,'Results of strategy',8),(56,7,'Planned changes to strategy',8),(57,8,'Conclusions from communication',8),(58,1,'Problem Presentation',9),(59,2,'Own Strategy',9),(60,3,'Forecast',9),(61,4,'Results of Day-By-Day decisions',9),(62,5,'Results of strategy',9),(63,6,'Planned changes to strategy',9),(64,7,'Conclusions from communication',9),(65,1,'Problem Presentation',10),(66,2,'Help For Strategy Design',10),(67,3,'Own Strategy',10),(68,4,'Own Goals',10),(69,5,'Forecast',10),(70,6,'Results of Day-By-Day decisions',10),(71,7,'Results of strategy',10),(72,8,'Planned changes to strategy',10),(73,9,'Conclusions from communication',10),(74,1,'Problem Presentation',12),(75,2,'Help For Strategy Design',12),(76,3,'Own Strategy',12),(77,4,'Own Goals',12),(78,5,'Forecast',12),(79,6,'Results of Day-By-Day decisions',12),(80,7,'Results of strategy',12),(81,8,'Planned changes to strategy',12),(82,9,'Conclusions from communication',12),(83,1,'Problem Presentation',13),(84,2,'Own Strategy',13),(85,3,'Results of Day-By-Day decisions',13),(86,4,'Results of strategy',13),(87,1,'Problem Presentation',14),(88,2,'Own Strategy',14),(89,3,'Results of Day-By-Day decisions',14),(90,4,'Results of strategy',14); /*!40000 ALTER TABLE `information_window` ENABLE KEYS */; UNLOCK TABLES; @@ -817,4 +818,4 @@ /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2009-08-21 22:03:41 +-- Dump completed on 2009-08-31 21:27:49 Modified: mentalmodels/trunk/src/main/webapp/InitialiseDatabase.swf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |