virtualcommons-svn Mailing List for Virtual Commons Experiment Software (Page 49)
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: <al...@us...> - 2010-04-29 18:55:16
|
Revision: 514 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=514&view=rev Author: alllee Date: 2010-04-29 18:55:09 +0000 (Thu, 29 Apr 2010) Log Message: ----------- tagging irrigation codebase, version 0.2 Added Paths: ----------- irrigation/tags/irrigation-0.2/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-29 18:53:41
|
Revision: 513 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=513&view=rev Author: alllee Date: 2010-04-29 18:53:35 +0000 (Thu, 29 Apr 2010) Log Message: ----------- tagging foraging codebase at version 0.3 Added Paths: ----------- foraging/tags/foraging-0.3/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-29 18:48:41
|
Revision: 512 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=512&view=rev Author: alllee Date: 2010-04-29 18:48:34 +0000 (Thu, 29 Apr 2010) Log Message: ----------- removing junit from ivy due to https://issues.apache.org/jira/browse/IVY-1148 bug.. Modified Paths: -------------- foraging/trunk/ivy.xml Modified: foraging/trunk/ivy.xml =================================================================== --- foraging/trunk/ivy.xml 2010-04-24 04:15:31 UTC (rev 511) +++ foraging/trunk/ivy.xml 2010-04-29 18:48:34 UTC (rev 512) @@ -5,7 +5,6 @@ <ivy-module version="2.0"> <info organisation="edu.asu.commons" module="foraging"/> <dependencies> - <dependency org="junit" name="junit" rev="latest.integration"/> <dependency org="edu.asu.commons" name="csidex" rev="0.2-SNAPSHOT"/> <dependency org="net.java.dev.jogl" name="jogl" rev="1.1.1-rc6"/> <dependency org="javax.media" name="jmf" rev="2.1.1e"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-24 04:15:37
|
Revision: 511 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=511&view=rev Author: alllee Date: 2010-04-24 04:15:31 +0000 (Sat, 24 Apr 2010) Log Message: ----------- set up for 10 frames / second and only writes a frame if the serverDataModel isDirty() Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-20 04:11:22 UTC (rev 510) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-24 04:15:31 UTC (rev 511) @@ -63,13 +63,13 @@ groupView.setup(roundConfiguration); groupViewList.add(groupView); try { - File groupMovieFile = new File(savedRoundDataFile.getCanonicalPath() + "-group-" + groupViewList.size() + "-" + saveFilePath + ".mov"); + File groupMovieFile = new File(savedRoundDataFile.getCanonicalPath() + "-group-" + groupDataModel.getGroupId() + "-" + saveFilePath + ".mov"); groupViewMap.put(groupView, new QuickTimeOutputStream(groupMovieFile, videoFormat)); } catch (IOException exception) { exception.printStackTrace(); } - JFrame jframe = new JFrame("Group: " + groupViewList.size()); + JFrame jframe = new JFrame("Group: " + groupDataModel.getGroupId()); jframe.add(groupView); jframe.pack(); jframe.setVisible(true); @@ -83,13 +83,14 @@ } } IntervalChecker intervalChecker = new IntervalChecker(); - intervalChecker.setUnitsPerInterval(33); + // 10 frames per second + intervalChecker.setUnitsPerInterval(100); for (PersistableEvent event: savedRoundData.getActions()) { final long elapsedTimeInMillis = savedRoundData.getElapsedTime(event); serverDataModel.apply(event); - if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) || serverDataModel.isDirty()) { + if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) && serverDataModel.isDirty() ) { for (final GroupView groupView: groupViewList) { try { @@ -102,8 +103,9 @@ Graphics2D bufferedImageGraphics = bufferedImage.createGraphics(); groupView.paint(bufferedImageGraphics); try { - // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. - groupViewMap.get(groupView).writeFrame(bufferedImage, 10); + // 600 time scale units = 1 s + // 10 fps = one frame per 60 time scale units + groupViewMap.get(groupView).writeFrame(bufferedImage, 60); } catch (IOException exception) { exception.printStackTrace(); @@ -150,4 +152,4 @@ String videoFormatString = videoFormat.toString().toLowerCase(); return String.format("-%s-movie.%s", videoFormatString, videoFormatString); } -} \ No newline at end of file +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-20 04:11:29
|
Revision: 510 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=510&view=rev Author: alllee Date: 2010-04-20 04:11:22 +0000 (Tue, 20 Apr 2010) Log Message: ----------- minor hygiene on IntervalChecker, tweaking MovieCreatorProcessor and GroupView to display all subjects as scaledOtherSubjectImage Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java 2010-04-20 04:11:22 UTC (rev 510) @@ -45,7 +45,7 @@ Point subjectLocation = clientData.getPosition(); int scaledX = scaleX(subjectLocation.x); int scaledY = scaleY(subjectLocation.y); - graphics2D.drawImage(scaledSelfImage, scaledX, scaledY, this); + graphics2D.drawImage(scaledOtherSubjectImage, scaledX, scaledY, this); // paint subject number graphics2D.setColor(Color.WHITE); String subjectNumber = String.valueOf( clientData.getAssignedNumber() ); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-04-20 04:11:22 UTC (rev 510) @@ -23,7 +23,7 @@ * @author <a href='mailto:All...@as...'>Allen Lee</a>, Deepali Bhagvat * @version $Revision$ */ -public class ClientData implements Serializable, Comparable<ClientData> { +public class ClientData implements Serializable { private static final long serialVersionUID = 5281922601551921005L; @@ -389,17 +389,6 @@ this.explicitCollectionMode = explicitCollectionMode; } - - - /** - * This method only makes sense within the group that this client data is embedded. - */ - public int compareTo(ClientData data) { - Integer a = getAssignedNumber(); - Integer b = data.getAssignedNumber(); - return a.compareTo(b); - } - public void initializePosition() { RoundConfiguration roundConfiguration = getGroupDataModel().getRoundConfiguration(); setExplicitCollectionMode(roundConfiguration.isAlwaysInExplicitCollectionMode()); @@ -555,11 +544,14 @@ } public boolean isTaxReceived() { - return taxReceived; - } + return taxReceived; + } - public void setTaxReceived() { - this.taxReceived = true; - } + public void setTaxReceived() { + this.taxReceived = true; + } + public String toString() { + return String.format("id (%s) number (%d)", id, assignedNumber); + } } Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-04-20 04:11:22 UTC (rev 510) @@ -147,7 +147,7 @@ @Override public void processReplInput(String input, BufferedReader reader) { if (input.equals("clients")) { - System.out.println("Connected Clients:"); + System.out.println("Connected Clients: " + clients.size()); for (Identifier id: clients.keySet()) { getLogger().info("\t" + id); } @@ -775,9 +775,12 @@ Identifier target = request.getTarget(); if (Identifier.ALL.equals(target)) { // relay to all clients in this client's group. - getLogger().info(String.format("%s sending [ %s ] to all group participants", request.getSource(), request)); - for (Identifier targetId : clients.get(source).getGroupDataModel().getClientIdentifiers()) { + ClientData clientData = clients.get(source); + getLogger().info(String.format("chat from %s: [ %s ]", clientData.toString(), request)); + for (Identifier targetId : clientData.getGroupDataModel().getClientIdentifiers()) { if (targetId.equals(source)) { + // don't send a chat event back to the originator of the chat + // request continue; } ChatEvent chatEvent = new ChatEvent(targetId, request.toString(), source, true); @@ -1025,7 +1028,6 @@ for (Map.Entry<Identifier, ClientData> entry : clients.entrySet()) { Identifier id = entry.getKey(); ClientData data = entry.getValue(); - System.out.println("Sending the round started event"); transmit(new RoundStartedEvent(id, data.getGroupDataModel())); } persister.store(new RoundStartedMarkerEvent()); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java 2010-04-20 04:11:22 UTC (rev 510) @@ -26,6 +26,7 @@ import edu.asu.commons.foraging.event.HarvestFruitRequest; import edu.asu.commons.foraging.event.HarvestResourceRequest; import edu.asu.commons.foraging.event.MovementEvent; +import edu.asu.commons.foraging.event.QuizResponseEvent; import edu.asu.commons.foraging.event.RealTimeSanctionRequest; import edu.asu.commons.foraging.event.ResourceAddedEvent; import edu.asu.commons.foraging.event.ResourcesAddedEvent; @@ -545,6 +546,12 @@ String line = String.format("%s, %s, %s, %s", savedRoundData.toSecondString(event), source, target, request.toString()); writer.println(line); } + else if (event instanceof QuizResponseEvent) { + QuizResponseEvent response = (QuizResponseEvent) event; + Identifier source = response.getId(); + + + } else if (event instanceof EnforcementRankingRequest) { EnforcementRankingRequest request = (EnforcementRankingRequest) event; Identifier id = request.getId(); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java 2010-04-20 04:11:22 UTC (rev 510) @@ -1,14 +1,8 @@ package edu.asu.commons.foraging.util; -import edu.asu.commons.experiment.SavedRoundData; public class IntervalChecker { - @SuppressWarnings("unused") - private SavedRoundData savedRoundData; - - private long roundStartTime; - private int currentInterval; private long unitsPerInterval; @@ -29,15 +23,6 @@ this.unitsPerInterval = unitsPerInterval; } - public IntervalChecker(SavedRoundData savedRoundData) { - this(savedRoundData.getRoundStartTime()); - this.savedRoundData = savedRoundData; - } - - public IntervalChecker(long roundStartTime) { - this.roundStartTime = roundStartTime; - } - public boolean isIntervalElapsed(long currentTime) { if (currentTime > (currentInterval * unitsPerInterval)) { currentInterval++; Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-19 15:16:52 UTC (rev 509) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-20 04:11:22 UTC (rev 510) @@ -82,47 +82,47 @@ serverDataModel.apply(event); } } - IntervalChecker intervalChecker = new IntervalChecker(savedRoundData); + IntervalChecker intervalChecker = new IntervalChecker(); intervalChecker.setUnitsPerInterval(33); - + for (PersistableEvent event: savedRoundData.getActions()) { - final long elapsedTimeInMillis = savedRoundData.getElapsedTime(event); + final long elapsedTimeInMillis = savedRoundData.getElapsedTime(event); - serverDataModel.apply(event); - if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) || serverDataModel.isDirty()) { -// System.err.println("elapsed time in seconds: " + elapsedTimeInSeconds + ":" + event); - for (final GroupView groupView: groupViewList) { - try { -// groupView.repaint(); - final Dimension groupViewSize = groupView.getSize(); - SwingUtilities.invokeAndWait(new Runnable() { - public void run() { - Graphics2D graphics = (Graphics2D) groupView.getGraphics(); - BufferedImage bufferedImage = graphics.getDeviceConfiguration().createCompatibleImage(groupViewSize.width, groupViewSize.height); - Graphics2D bufferedImageGraphics = bufferedImage.createGraphics(); - groupView.paint(bufferedImageGraphics); - try { - // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. - groupViewMap.get(groupView).writeFrame(bufferedImage, 10); - } - catch (IOException exception) { - exception.printStackTrace(); - throw new RuntimeException(exception); - } + serverDataModel.apply(event); + if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) || serverDataModel.isDirty()) { + + for (final GroupView groupView: groupViewList) { + try { + // groupView.repaint(); + final Dimension groupViewSize = groupView.getSize(); + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + Graphics2D graphics = (Graphics2D) groupView.getGraphics(); + BufferedImage bufferedImage = graphics.getDeviceConfiguration().createCompatibleImage(groupViewSize.width, groupViewSize.height); + Graphics2D bufferedImageGraphics = bufferedImage.createGraphics(); + groupView.paint(bufferedImageGraphics); + try { + // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. + groupViewMap.get(groupView).writeFrame(bufferedImage, 10); } - }); - } - catch (InterruptedException e) { - e.printStackTrace(); - } - catch (InvocationTargetException e) { - e.printStackTrace(); - } + catch (IOException exception) { + exception.printStackTrace(); + throw new RuntimeException(exception); + } + } + }); + } + catch (InterruptedException e) { + e.printStackTrace(); + } + catch (InvocationTargetException e) { + e.printStackTrace(); } - serverDataModel.setDirty(false); - - } - + } + serverDataModel.setDirty(false); + + } + } for (QuickTimeOutputStream out : groupViewMap.values()) { try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-19 15:17:03
|
Revision: 509 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=509&view=rev Author: alllee Date: 2010-04-19 15:16:52 +0000 (Mon, 19 Apr 2010) Log Message: ----------- fixing careless typo / bug in MovieCreatorProcessor, also writing a frame whenever the server data model is dirty. Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-19 08:02:04 UTC (rev 508) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-19 15:16:52 UTC (rev 509) @@ -89,11 +89,8 @@ final long elapsedTimeInMillis = savedRoundData.getElapsedTime(event); serverDataModel.apply(event); - - if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) ) { - final long elapsedTimeInSeconds = savedRoundData.getElapsedTimeInSeconds(event); + if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) || serverDataModel.isDirty()) { // System.err.println("elapsed time in seconds: " + elapsedTimeInSeconds + ":" + event); - serverDataModel.apply(event); for (final GroupView groupView: groupViewList) { try { // groupView.repaint(); @@ -106,7 +103,7 @@ groupView.paint(bufferedImageGraphics); try { // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. - groupViewMap.get(groupView).writeFrame(bufferedImage, 30); + groupViewMap.get(groupView).writeFrame(bufferedImage, 10); } catch (IOException exception) { exception.printStackTrace(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-19 08:02:12
|
Revision: 508 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=508&view=rev Author: alllee Date: 2010-04-19 08:02:04 +0000 (Mon, 19 Apr 2010) Log Message: ----------- updated movie processor with IntervalChecker helper class. Should have a frame rate of 30 fps. Modified Paths: -------------- foraging/trunk/build.xml foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ServerDataModel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java Added Paths: ----------- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java Modified: foraging/trunk/build.xml =================================================================== --- foraging/trunk/build.xml 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/build.xml 2010-04-19 08:02:04 UTC (rev 508) @@ -51,7 +51,7 @@ <property file="build.properties" /> <!-- default compilation properties --> <property name='src.dir' value='src/main/java'/> - <property name='build.dir' value='target'/> + <property name='build.dir' value='target/classes'/> <!-- default web & deployment properties --> <property name='web.dir' value='src/main/webapp'/> Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/GroupView.java 2010-04-19 08:02:04 UTC (rev 508) @@ -45,12 +45,7 @@ Point subjectLocation = clientData.getPosition(); int scaledX = scaleX(subjectLocation.x); int scaledY = scaleY(subjectLocation.y); - if (clientData.isExplicitCollectionMode()) { - graphics2D.drawImage(scaledSelfExplicitCollectionModeImage, scaledX, scaledY, this); - } - else { - graphics2D.drawImage(scaledSelfImage, scaledX, scaledY, this); - } + graphics2D.drawImage(scaledSelfImage, scaledX, scaledY, this); // paint subject number graphics2D.setColor(Color.WHITE); String subjectNumber = String.valueOf( clientData.getAssignedNumber() ); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-04-19 08:02:04 UTC (rev 508) @@ -304,7 +304,9 @@ } public void resetLatestSanctions() { - latestSanctions.clear(); + if (latestSanctions != null) { + latestSanctions.clear(); + } } private void resetCurrentTokens() { Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ServerDataModel.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ServerDataModel.java 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ServerDataModel.java 2010-04-19 08:02:04 UTC (rev 508) @@ -56,8 +56,11 @@ private transient Random random = new Random(); private transient FractalTerrain terrain; + + private transient boolean dirty = false; - // Maps client Identifiers to the GroupDataModel that the client belongs to + + // Maps client Identifiers to the GroupDataModel that the client belongs to private final Map<Identifier, GroupDataModel> clientsToGroups = new HashMap<Identifier, GroupDataModel>(); public ServerDataModel() { @@ -67,7 +70,16 @@ public ServerDataModel(EventChannel channel) { super(channel); } + + public boolean isDirty() { + return dirty; + } + + public void setDirty(boolean dirty) { + this.dirty = dirty; + } + /** * Invoked when we try to reconstruct a server game state given a time-ordered Set of * PersistableEvents that was previously saved. @@ -89,24 +101,30 @@ else if (event instanceof ResourcesAddedEvent) { ResourcesAddedEvent resourcesAddedEvent = (ResourcesAddedEvent) event; addResources(resourcesAddedEvent.getGroup(), resourcesAddedEvent.getResources()); + setDirty(true); } else if (event instanceof MovementEvent) { MovementEvent movementEvent = (MovementEvent) event; moveClient(movementEvent.getId(), movementEvent.getDirection()); + setDirty(true); } else if (event instanceof ResourceAddedEvent) { ResourceAddedEvent resourceAddedEvent = (ResourceAddedEvent) event; addResource(resourceAddedEvent.getGroup(), resourceAddedEvent.getResource()); + setDirty(true); } else if (event instanceof RealTimeSanctionRequest) { // currently unhandled. + setDirty(true); } else if (event instanceof ResetTokenDistributionRequest) { getGroup(event.getId()).resetResourceDistribution(); + setDirty(true); } else if (event instanceof TokenCollectedEvent) { TokenCollectedEvent tokenCollectedEvent = (TokenCollectedEvent) event; getGroup(event.getId()).removeResource(tokenCollectedEvent.getLocation()); + setDirty(true); } else if (event instanceof ExplicitCollectionModeRequest) { ExplicitCollectionModeRequest request = (ExplicitCollectionModeRequest) event; Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java 2010-04-19 08:02:04 UTC (rev 508) @@ -64,8 +64,8 @@ new AggregateTokenSpatialDistributionProcessor(), new CollectedTokenSpatialDistributionProcessor(), new MovementStatisticsProcessor(), - new AggregateCollectedTokenNeighborProcessor() -// new MovieCreatorProcessor() + new AggregateCollectedTokenNeighborProcessor(), + new MovieCreatorProcessor() )); Persister.processSaveFiles(allSaveFilesDirectory, processors); return true; Added: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java (rev 0) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java 2010-04-19 08:02:04 UTC (rev 508) @@ -0,0 +1,49 @@ +package edu.asu.commons.foraging.util; + +import edu.asu.commons.experiment.SavedRoundData; + +public class IntervalChecker { + + @SuppressWarnings("unused") + private SavedRoundData savedRoundData; + + private long roundStartTime; + + private int currentInterval; + + private long unitsPerInterval; + + public int getCurrentInterval() { + return currentInterval; + } + + public void setCurrentInterval(int currentInterval) { + this.currentInterval = currentInterval; + } + + public long getUnitsPerInterval() { + return unitsPerInterval; + } + + public void setUnitsPerInterval(int unitsPerInterval) { + this.unitsPerInterval = unitsPerInterval; + } + + public IntervalChecker(SavedRoundData savedRoundData) { + this(savedRoundData.getRoundStartTime()); + this.savedRoundData = savedRoundData; + } + + public IntervalChecker(long roundStartTime) { + this.roundStartTime = roundStartTime; + } + + public boolean isIntervalElapsed(long currentTime) { + if (currentTime > (currentInterval * unitsPerInterval)) { + currentInterval++; + return true; + } + return false; + } + +} Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-14 15:46:11 UTC (rev 507) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java 2010-04-19 08:02:04 UTC (rev 508) @@ -75,7 +75,6 @@ jframe.setVisible(true); jframes.add(jframe); } - long secondHasPassedCheck = -1; // grab out all add client events to initialize the state of the game properly. for (PersistableEvent event: savedRoundData.getActions()) { if (event instanceof AddClientEvent) { @@ -83,43 +82,50 @@ serverDataModel.apply(event); } } + IntervalChecker intervalChecker = new IntervalChecker(savedRoundData); + intervalChecker.setUnitsPerInterval(33); + for (PersistableEvent event: savedRoundData.getActions()) { - final long elapsedTimeInSeconds = savedRoundData.getElapsedTimeInSeconds(event); - System.err.println("elapsed time in seconds: " + elapsedTimeInSeconds + ":" + event); - serverDataModel.apply(event); - if (elapsedTimeInSeconds > secondHasPassedCheck) { - secondHasPassedCheck = elapsedTimeInSeconds; - // take a snapshot of each group... - for (final GroupView groupView: groupViewList) { - try { - // groupView.repaint(); - final Dimension groupViewSize = groupView.getSize(); - SwingUtilities.invokeAndWait(new Runnable() { - public void run() { - Graphics2D graphics = (Graphics2D) groupView.getGraphics(); + final long elapsedTimeInMillis = savedRoundData.getElapsedTime(event); - BufferedImage bufferedImage = graphics.getDeviceConfiguration().createCompatibleImage(groupViewSize.width, groupViewSize.height); - Graphics2D bufferedImageGraphics = bufferedImage.createGraphics(); - groupView.paint(bufferedImageGraphics); - try { - // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. - groupViewMap.get(groupView).writeFrame(bufferedImage, 600); + serverDataModel.apply(event); + + if ( intervalChecker.isIntervalElapsed(elapsedTimeInMillis) ) { + final long elapsedTimeInSeconds = savedRoundData.getElapsedTimeInSeconds(event); +// System.err.println("elapsed time in seconds: " + elapsedTimeInSeconds + ":" + event); + serverDataModel.apply(event); + for (final GroupView groupView: groupViewList) { + try { +// groupView.repaint(); + final Dimension groupViewSize = groupView.getSize(); + SwingUtilities.invokeAndWait(new Runnable() { + public void run() { + Graphics2D graphics = (Graphics2D) groupView.getGraphics(); + BufferedImage bufferedImage = graphics.getDeviceConfiguration().createCompatibleImage(groupViewSize.width, groupViewSize.height); + Graphics2D bufferedImageGraphics = bufferedImage.createGraphics(); + groupView.paint(bufferedImageGraphics); + try { + // currently each frame is 1 second.. maybe we can divvy this up so it's .5 seconds instead. + groupViewMap.get(groupView).writeFrame(bufferedImage, 30); + } + catch (IOException exception) { + exception.printStackTrace(); + throw new RuntimeException(exception); + } } - catch (IOException exception) { - exception.printStackTrace(); - throw new RuntimeException(exception); - } - } - }); - } - catch (InterruptedException e) { - e.printStackTrace(); - } - catch (InvocationTargetException e) { - e.printStackTrace(); + }); + } + catch (InterruptedException e) { + e.printStackTrace(); + } + catch (InvocationTargetException e) { + e.printStackTrace(); + } } - } - } + serverDataModel.setDirty(false); + + } + } for (QuickTimeOutputStream out : groupViewMap.values()) { try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-14 15:46:17
|
Revision: 507 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=507&view=rev Author: alllee Date: 2010-04-14 15:46:11 +0000 (Wed, 14 Apr 2010) Log Message: ----------- voting 3 rounds then no voting, full vision treatment Added Paths: ----------- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round2.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/server.xml Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="resource-width">13</entry> +<entry key="resource-depth">13</entry> +<entry key="practice-round">true</entry> +<entry key="private-property">true</entry> +<entry key="duration">240</entry> + +<entry key="quiz">true</entry> +<entry key="q1">C</entry> +<entry key="q2">B</entry> + +<entry key='instructions'> +<![CDATA[ +<h3>Practice Round Instructions</h3> +<hr> +<p> +You will now have four minutes to practice with the experimental environment. +The decisions you make in this round will NOT influence your earnings. At the +At the beginning of the practice round half of the cells are occupied +with green tokens. The environment is a 13 x 13 grid of cells. +</p> +<p> +During this practice round, and <b>only during</b> this practice round, you are able +to reset the tokens displayed on the screen by pressing the <b>R</b> key. When you +press the <b>R</b> key you will reset the resource to its initial distribution, +randomly filling half of the cells. +</p> +<p><b>Please do not communicate with any other participant.</b></p> +<p>If you have any questions please raise your hand. <b>Do you have any questions so far?</b></p> +]]> +</entry> + +<entry key="quiz-instructions"> +<![CDATA[ +<p> +Before we begin the practice round you need to answer the following questions +correctly. You can only continue when you have answered all questions +correctly. If an error is made you will need to answer the questions again. +</p> +<br> +<form> +<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> +<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> +<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> +<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the +screen.<br> +<input type="radio" name="q1" value="D">D. In order to collect a token you need +to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> +<br><br> + +<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> +<img src="@CODEBASE_URL@/images/question2.jpg"><br> +<input type="radio" name="q2" value="A">A<br> +<input type="radio" name="q2" value="B">B<br> +<input type="radio" name="q2" value="C">C<br> +<br> +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,173 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<!-- enable quiz --> +<entry key='quiz'>true</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 1 Instructions</h3> +<hr> +<p> +This is the first round of the experiment. The length of the round is 4 +minutes. As in the practice round you can collect green tokens but now +you will earn <b>two cents</b> for each token collected. You <b>cannot</b> +reset the distribution of green tokens. +</p> +<p> +In this round the renewable resource will become five times bigger. You will +share this larger environment with four other players in this room that have +been randomly selected. Each group's resource environment is distinct from the +other groups. +</p> +<p> +Each of you has been assigned a number from 1 to 5. These numbers will remain +the same throughout the experiment but you will not be able to identify which +person in the room has been assigned which number, so your anonymity is +guaranteed. +</p> +<p> +The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the +dot. On the top right corner of the screen you can see how many tokens each +player has collected. On the top left corner of the screen you can see a clock +that displays the remaining time in the round. Since you can only see the +resource within your vision you may neither see all the other participants nor +all the resource units. The figure below indicates the vision range compared +to the whole environment +</p> +<img src="@CODEBASE_URL@/images/vision-range.jpg"> +<p><b>Do you have any questions so far?</b></p> +<p> +Before the next round starts you can anonymously communicate by text messages +for four minutes with the other participants in your group. You can use this +opportunity to discuss the experiment and coordinate your actions to improve +your earnings. You may not promise side-payments after the experiment is +completed or make any threats. You are also not allowed to reveal your real +identity. We are monitoring the chat traffic while you chat. +</p> +<p> +During the next round you will have the option to reduce the earnings of another +participant at a cost to your own earnings. +</p> +<ul> +<li>If you press the numeric key 1-5 corresponding to another participant, you +will reduce the number of tokens they have collected in this round by two +tokens. This will also reduce your own token amount by one token. The decision +whether or when to use this option is up to you. +<li>When you reduce the number of tokens of another participant, they will +receive a message stating that you have reduced their tokens. Likewise, if +another participant reduces your number of tokens, you will also receive a +message. These messages will be displayed on the bottom of your screen. +<li>If your tokens are being reduced or you are reducing another participant's +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are +tokens remaining on the screen and while both you and the other participant +have a positive number of tokens collected during the round. <b>Each time</b> +you press the numeric key corresponding to another participant your token +amount is reduced by <b>one</b>, and their token amount is reduced by +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is +visible to you. +</ul> +<p> + +<p> +The length of this round is four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> +<entry key="quiz-instructions"> +<![CDATA[ +<p>Before the next round begins you must complete the quiz below. You can +only continue when you have answered all questions correctly. If an error is +made you will need to answer the questions again. +</p> + +<form> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> +<br><br> + +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> +<br><br> + +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two +tokens from you<br> +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another +participant<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> +<br><br> + +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +momentarily<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> + +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round2.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round2.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 2 Instructions</h3> +<hr> +<p> +Round 2 is the same as round 1.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> + +<entry key='private-chat-instructions'> +<![CDATA[ +You may send private messages to a specific participant by clicking on the +appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in +the chat box and sending it. By default you are communicating with all +members of your group. +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 3 Instructions</h3> +<hr> +<p> +Round 3 is the same as round 2.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we detect that somebody has revealed their identity, we will have to stop the +experiment and remove that person's entire group from the experiment. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key. </p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 4 Instructions</h3> +<hr> + +<p> +Round 4 is the same as the previous three rounds with two exceptions: +</p> + +<ul> +<li>You cannot chat with the other members of your group before the round starts. +<li>You cannot vote in favor of or against the use of sanctioning. No sanctioning will be allowed. +</ul> + +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + + +<!-- enable field of vision for tokens and subjects --> +<entry key='initial-distribution'>.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 5 Instructions</h3> +<hr> +<p> +Round 5 is the same as round 4. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- resource regrowth parameters --> +<entry key="initial-distribution">.25</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 6 Instructions</h3> +<hr> +<p> +Round 6 is the same as round 5. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="last-round-debriefing"> +<![CDATA[ +<p> +This was the last round, but not the end of the experiment. We will now +determine your payments. While we are doing this, we request that you +carefully fill out a brief survey. +</p> +<p> +When we are ready we will call you one by one to the room next door. We will +pay you there in private. Please wait until your computer number is called, +and then proceed to the room next door to turn in your computer number and +your survey. +</p> +<p> +Please answer the survey carefully and thank you for participating. +</p> +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/server.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/server.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/server.xml 2010-04-14 15:46:11 UTC (rev 507) @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Costly Sanctioning XML-ized experiment round configuration</comment> +<entry key="hostname">@SERVER_ADDRESS@</entry> +<entry key="port">@PORT_NUMBER@</entry> +<entry key="round0">round0.xml</entry> +<entry key="round1">round1.xml</entry> +<entry key="round2">round2.xml</entry> +<entry key="round3">round3.xml</entry> +<entry key="round4">round4.xml</entry> +<entry key="round5">round5.xml</entry> +<entry key="round6">round6.xml</entry> +<entry key="wait-for-participants">true</entry> +<entry key="number-of-rounds">7</entry> +<entry key="facilitator-instructions"> +<![CDATA[ +<h3>Facilitator Instructions</h3> +<p> +Welcome to the facilitator interface. This interface allows you to control +the experiment. You may only modify configuration parameters <b>before</b> +you start the experiment by selecting the Configuration menu. When all the +participants are ready to begin the experiment, you can start the experiment +by selecting Experiment -> Start. After a round has been completed you +will be able to view the statistics for all of the participants. You can +begin the next round by selecting Round -> Start. +</p> +]]> +</entry> + +<entry key='field-of-vision-instructions'> +<![CDATA[ +Your vision is limited in this experiment. The area that is visible to you will be +shaded. +]]> +</entry> + +<entry key="welcome-instructions"> +<![CDATA[ +<h3>Welcome to the experiment. The experiment will begin shortly after everyone has been +assigned a station.</h3> +<p> +Please <b>wait quietly</b> and <b>do not close this window or open any other applications</b>. +</p> +]]> +</entry> + +<entry key="general-instructions"> +<![CDATA[ +<h3>General Instructions</h3> +<p> +Welcome. You have already earned 5 dollars by showing up at this experiment. You can +earn more, up to a maximum of 40 dollars, by participating in this experiment, which +will take about an hour to an hour and a half. The amount of money you earn depends +on your decisions as well as the decisions of other people in this room during the +six rounds of the experiment. +</p> +<p> +You appear on the screen as a yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif">. +You move by pressing the four arrow keys on your keyboard. You can move up, down, +left, or right. You have to press a key for each and every move of your yellow dot. +In this experiment you can collect green diamond shaped tokens +<img src="@CODEBASE_URL@/images/gem-token.gif"> and earn two cents for each collected token. +To collect a token, move your yellow dot over a green token and press the <b>space +bar</b>. If you move over a token without pressing the <b>space bar</> you do NOT +collect that token. +</p> + +<p> +The tokens that you collect have the potential to regenerate. After you have +collected a green token, a new token can re-appear on that empty cell. +However, the rate at which new tokens will appear depends on the number of +adjacent cells with tokens. The more tokens in the eight cells around +an empty cell, the faster a new token will appear on that empty cell. In other +words, <b>existing tokens can generate new tokens</b>. To illustrate this, please +refer to Image 1 and Image 2. The middle cell in Image 1 denoted with an X has +a greater chance of regeneration than the middle cell in Image 2. When all +neighboring cells are empty, there is <b>no chance for regeneration</b>. + +<table width="100%"> +<tr> +<td align="center"><b>Image 1</b></td> +<td align="center"><b>Image 2</b></td> +</tr> +<tr> +<td align="center"> +<img src="@CODEBASE_URL@/images/8neighbors.jpg" alt="image 1"> +</td> +<td align="center"> +<img src="@CODEBASE_URL@/images/5neighbors.jpg" alt="image 2"> +</td> +</tr> +</table> +]]> +</entry> + + +</properties> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-04-07 20:09:42
|
Revision: 506 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=506&view=rev Author: alllee Date: 2010-04-07 20:09:35 +0000 (Wed, 07 Apr 2010) Log Message: ----------- minor updates to configuration instructions and removed errant comma in quiz feedback Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml Removed Paths: ------------- foraging/trunk/src/main/resources/configuration/round0.xml foraging/trunk/src/main/resources/configuration/round1.xml foraging/trunk/src/main/resources/configuration/round2.xml foraging/trunk/src/main/resources/configuration/round3.xml foraging/trunk/src/main/resources/configuration/round4.xml foraging/trunk/src/main/resources/configuration/round5.xml foraging/trunk/src/main/resources/configuration/round6.xml foraging/trunk/src/main/resources/configuration/server.xml Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-04-07 20:09:35 UTC (rev 506) @@ -197,6 +197,11 @@ } } + private String createStyleString(String questionNumber, String color) { + return String.format(".%s { color: %s; }", questionNumber, color); + } + + private ActionListener createQuizListener(final RoundConfiguration configuration) { return new ActionListener() { public void actionPerformed(ActionEvent e) { @@ -243,14 +248,14 @@ if (! correctAnswers.isEmpty()) { correctString.append("<h3>Correctly answered questions</h3><ul>"); // FIXME: extract style modifications to method - for (String correctQuestionNumber : correctAnswers) { + for (String correctQuestionNumber : correctAnswers) { String styleString = String.format(".%s { color: black; }", correctQuestionNumber); styleSheet.addRule(styleString); - correctString.append(String.format("<li>Your answer, [ %s ] was correct for question %s.", - actualAnswers.get(correctQuestionNumber), - correctQuestionNumber)); - } - correctString.append("</ul>"); + correctString.append(String.format("<li>Your answer [ %s ] was correct for question %s.", + actualAnswers.get(correctQuestionNumber), + correctQuestionNumber)); + } + correctString.append("</ul>"); } correctString.append("<h3>Incorrectly answered questions</h3><ul>"); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java 2010-04-07 20:09:35 UTC (rev 506) @@ -4,7 +4,7 @@ import edu.asu.commons.foraging.model.GroupDataModel; import edu.asu.commons.net.Identifier; -public class SanctionUpdateEvent extends AbstractEvent{ +public class SanctionUpdateEvent extends AbstractEvent { private static final long serialVersionUID = 3456876534653456891L; Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -20,20 +20,22 @@ <hr> <p> This is the first round of the experiment. The length of the round is 4 -minutes. Like in the practice round you can collect green tokens. This time -you earn <b>two cents</b> for each token collected. This time you -<b>cannot</b> reset the distribution of green tokens. +minutes. As in the practice round you can collect green tokens but now +you will earn <b>two cents</b> for each token collected. You <b>cannot</b> +reset the distribution of green tokens. </p> <p> In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly -selected. One group's resource environment is distinct from the other groups. +selected. Each group's resource environment is distinct from the other groups. </p> <p> Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will <b>not</b> be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. +</p> +<p> The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -23,7 +23,6 @@ <entry key="sanction-cost">1</entry> <entry key="sanction-multiplier">2</entry> - <entry key="initial-distribution">.25</entry> <!-- enable quiz --> @@ -38,17 +37,31 @@ <h3>Round 1 Instructions</h3> <hr> <p> -This is the first round of the experiment. The length of the round is 4 minutes. Like in the practice round you can collect green tokens. This time you earn two cents for each token collected. This time you cannot reset the distribution of green tokens. +This is the first round of the experiment. The length of the round is 4 +minutes. As in the practice round you can collect green tokens but now +you will earn <b>two cents</b> for each token collected. You <b>cannot</b> +reset the distribution of green tokens. </p> <p> -In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly selected. One group's resource environment is distinct from the other groups. +In this round the renewable resource will become five times bigger. You will +share this larger environment with four other players in this room that have +been randomly selected. Each group's resource environment is distinct from the +other groups. </p> <p> -Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will not be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. +Each of you has been assigned a number from 1 to 5. These numbers will remain +the same throughout the experiment but you will not be able to identify which +person in the room has been assigned which number, so your anonymity is +guaranteed. </p> <p> -The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round. -Since you can only see the resource within your vision you may neither see all the other participants nor all the resource units. The figure below indicates the vision range compared to the whole environment +The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the +dot. On the top right corner of the screen you can see how many tokens each +player has collected. On the top left corner of the screen you can see a clock +that displays the remaining time in the round. Since you can only see the +resource within your vision you may neither see all the other participants nor +all the resource units. The figure below indicates the vision range compared +to the whole environment </p> <img src="@CODEBASE_URL@/images/vision-range.jpg"> <p><b>Do you have any questions so far?</b></p> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -21,11 +21,12 @@ <p> Round 4 is the same as the previous three rounds with two exceptions: +</p> + <ul> -<li>You cannot chat with other participants of your group before the round start. -<li>You cannot vote in favor or against the use of sanctioning. No sanctioning will be allowed. +<li>You cannot chat with the other members of your group before the round starts. +<li>You cannot vote in favor of or against the use of sanctioning. No sanctioning will be allowed. </ul> -</p> <p> If you have any questions please raise your hand. <b>Do you have any Deleted: foraging/trunk/src/main/resources/configuration/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round0.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round0.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="resource-width">13</entry> -<entry key="resource-depth">13</entry> -<entry key="practice-round">true</entry> -<entry key="private-property">true</entry> -<entry key="duration">240</entry> - -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<entry key="quiz">true</entry> -<entry key="q1">C</entry> -<entry key="q2">B</entry> - -<entry key='instructions'> -<![CDATA[ -<h3>Practice Round Instructions</h3> -<hr> -<p> -You will now have four minutes to practice with the experimental environment. -The decisions you make in this round will NOT influence your earnings. At the -At the beginning of the practice round half of the cells are occupied -with green tokens. The environment is a 13 x 13 grid of cells. -</p> -<p> -During this practice round, and <b>only during</b> this practice round, you are able -to reset the tokens displayed on the screen by pressing the <b>R</b> key. When you -press the <b>R</b> key you will reset the resource to its initial distribution, -randomly filling half of the cells. -</p> -<p><b>Please do not communicate with any other participant.</b></p> -<p>If you have any questions please raise your hand. <b>Do you have any questions so far?</b></p> -]]> -</entry> - -<entry key="quiz-instructions"> -<![CDATA[ -<p> -Before we begin the practice round you need to answer the following questions -correctly. You can only continue when you have answered all questions -correctly. If an error is made you will need to answer the questions again. -</p> -<br> -<form> -<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> -<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> -<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> -<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the -screen.<br> -<input type="radio" name="q1" value="D">D. In order to collect a token you need -to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> -<br><br> - -<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> -<img src="@CODEBASE_URL@/images/question2.jpg"><br> -<input type="radio" name="q2" value="A">A<br> -<input type="radio" name="q2" value="B">B<br> -<input type="radio" name="q2" value="C">C<br> -<br> -<input type="submit" name="submit" value="Submit"> -</form> -]]> -</entry> - -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round1.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round1.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,164 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> -<entry key="duration">240</entry> - -<!-- enable field of vision for tokens and subjects --> -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> - -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> - - -<entry key="initial-distribution">.25</entry> - -<!-- enable quiz --> -<entry key='quiz'>true</entry> -<entry key='q1'>B</entry> -<entry key='q2'>C</entry> -<entry key='q3'>B</entry> -<entry key='q4'>B</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 1 Instructions</h3> -<hr> -<p> -This is the first round of the experiment. The length of the round is 4 minutes. Like in the practice round you can collect green tokens. This time you earn two cents for each token collected. This time you cannot reset the distribution of green tokens. -</p> -<p> -In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly selected. One group's resource environment is distinct from the other groups. -</p> -<p> -Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will not be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. -</p> -<p> -The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round. -Since you can only see the resource within your vision you may neither see all the other participants nor all the resource units. The figure below indicates the vision range compared to the whole environment -</p> -<img src="@CODEBASE_URL@/images/vision-range.jpg"> -<p><b>Do you have any questions so far?</b></p> -<p> -Before the next round starts you can anonymously communicate by text messages -for four minutes with the other participants in your group. You can use this -opportunity to discuss the experiment and coordinate your actions to improve -your earnings. You may not promise side-payments after the experiment is -completed or make any threats. You are also not allowed to reveal your real -identity. We are monitoring the chat traffic while you chat. -</p> -<p> -During the next round you will have the option to reduce the earnings of another -participant at a cost to your own earnings. -</p> -<ul> -<li>If you press the numeric key 1-5 corresponding to another participant, you -will reduce the number of tokens they have collected in this round by two -tokens. This will also reduce your own token amount by one token. The decision -whether or when to use this option is up to you. -<li>When you reduce the number of tokens of another participant, they will -receive a message stating that you have reduced their tokens. Likewise, if -another participant reduces your number of tokens, you will also receive a -message. These messages will be displayed on the bottom of your screen. -<li>If your tokens are being reduced or you are reducing another participant's -tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. -<li>You may sanction other participants as long as there are -tokens remaining on the screen and while both you and the other participant -have a positive number of tokens collected during the round. <b>Each time</b> -you press the numeric key corresponding to another participant your token -amount is reduced by <b>one</b>, and their token amount is reduced by -<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is -visible to you. -</ul> -<p> - -<p> -The length of this round is four minutes. -</p> -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> - -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we see that somebody reveals his or her identity, we have to stop the -experiment and remove the whole group from which this person is a member out -of this room. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key on your keyboard. -</p> -]]> -</entry> -<entry key="quiz-instructions"> -<![CDATA[ -<p>Before the next round begins you must complete the quiz below. You can -only continue when you have answered all questions correctly. If an error is -made you will need to answer the questions again. -</p> - -<form> -<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced -by:</span><br> -<input type="radio" name="q1" value="A">A. 0 tokens<br> -<input type="radio" name="q1" value="B">B. 1 token<br> -<input type="radio" name="q1" value="C">C. 2 tokens<br> -<input type="radio" name="q1" value="D">D. 4 tokens<br> -<br><br> - -<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the -corresponding participant is reduced by:</span><br> -<input type="radio" name="q2" value="A">A. 0 tokens<br> -<input type="radio" name="q2" value="B">B. 1 token<br> -<input type="radio" name="q2" value="C">C. 2 tokens<br> -<input type="radio" name="q2" value="D">D. 4 tokens<br> -<br><br> - -<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> -<input type="radio" name="q3" value="A">A. You collected a token<br> -<input type="radio" name="q3" value="B">B. Another participant is subtracting two -tokens from you<br> -<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another -participant<br> -<input type="radio" name="q3" value="D">D. You are moving too fast<br> -<br><br> - -<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> -<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens -collected this round<br> -<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens -collected this round<br> -<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue -momentarily<br> -<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> - -<input type="submit" name="submit" value="Submit"> -</form> -]]> -</entry> -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round2.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round2.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> -<entry key="duration">240</entry> - -<!-- enable field of vision for tokens and subjects --> -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> - -<entry key="initial-distribution">.25</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 2 Instructions</h3> -<hr> -<p> -Round 2 is the same as round 1.</p> -<p> -The length of this round is again four minutes. -</p> -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> - -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we see that somebody reveals his or her identity, we have to stop the -experiment and remove the whole group from which this person is a member out -of this room. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key on your keyboard. -</p> -]]> -</entry> - -<entry key='private-chat-instructions'> -<![CDATA[ -You may send private messages to a specific participant by clicking on the -appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in -the chat box and sending it. By default you are communicating with all -members of your group. -]]> -</entry> - -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round3.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round3.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> -<entry key="duration">240</entry> - -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> - -<entry key="initial-distribution">.25</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 3 Instructions</h3> -<hr> -<p> -Round 3 is the same as round 2.</p> -<p> -The length of this round is again four minutes. -</p> -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> - - -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we detect that somebody has revealed their identity, we will have to stop the -experiment and remove that person's entire group from the experiment. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key. </p> -]]> -</entry> -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round4.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round4.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> - -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 4 Instructions</h3> -<hr> - -<p> -Round 4 is the same as the previous three rounds with two exceptions: -<ul> -<li>You cannot chat with other participants of your group before the round start. -<li>You cannot vote in favor or against the use of sanctioning. No sanctioning will be allowed. -</ul> -</p> - -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round5.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round5.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,34 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> - - -<!-- enable field of vision for tokens and subjects --> -<entry key='initial-distribution'>.25</entry> - -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 5 Instructions</h3> -<hr> -<p> -Round 5 is the same as round 4. -</p> -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> -</properties> Deleted: foraging/trunk/src/main/resources/configuration/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round6.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/round6.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Foraging XML-ized experiment round configuration</comment> -<entry key="display-group-tokens">true</entry> -<entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> -<entry key="resource-depth">29</entry> -<entry key="resource-width">29</entry> - -<!-- enable field of vision for tokens and subjects --> -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - -<entry key='always-explicit'>true</entry> -<entry key='max-cell-occupancy'>1</entry> - -<!-- resource regrowth parameters --> -<entry key="initial-distribution">.25</entry> - -<entry key="instructions"> -<![CDATA[ -<h3>Round 6 Instructions</h3> -<hr> -<p> -Round 6 is the same as round 5. -</p> -<p> -If you have any questions please raise your hand. <b>Do you have any -questions so far?</b> -</p> -]]> -</entry> - -<entry key="last-round-debriefing"> -<![CDATA[ -<p> -This was the last round, but not the end of the experiment. We will now -determine your payments. While we are doing this, we request that you -carefully fill out a brief survey. -</p> -<p> -When we are ready we will call you one by one to the room next door. We will -pay you there in private. Please wait until your computer number is called, -and then proceed to the room next door to turn in your computer number and -your survey. -</p> -<p> -Please answer the survey carefully and thank you for participating. -</p> -]]> -</entry> - -</properties> Deleted: foraging/trunk/src/main/resources/configuration/server.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/server.xml 2010-04-07 19:46:57 UTC (rev 505) +++ foraging/trunk/src/main/resources/configuration/server.xml 2010-04-07 20:09:35 UTC (rev 506) @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> -<properties> -<comment>Costly Sanctioning XML-ized experiment round configuration</comment> -<entry key="hostname">@SERVER_ADDRESS@</entry> -<entry key="port">@PORT_NUMBER@</entry> -<entry key="round0">round0.xml</entry> -<entry key="round1">round1.xml</entry> -<entry key="round2">round2.xml</entry> -<entry key="round3">round3.xml</entry> -<entry key="round4">round4.xml</entry> -<entry key="round5">round5.xml</entry> -<entry key="round6">round6.xml</entry> -<entry key="wait-for-participants">true</entry> -<entry key="number-of-rounds">7</entry> -<entry key="facilitator-instructions"> -<![CDATA[ -<h3>Facilitator Instructions</h3> -<p> -Welcome to the facilitator interface. This interface allows you to control -the experiment. You may only modify configuration parameters <b>before</b> -you start the experiment by selecting the Configuration menu. When all the -participants are ready to begin the experiment, you can start the experiment -by selecting Experiment -> Start. After a round has been completed you -will be able to view the statistics for all of the participants. You can -begin the next round by selecting Round -> Start. -</p> -]]> -</entry> - -<entry key='field-of-vision-instructions'> -<![CDATA[ -Your vision is limited in this experiment. The area that is visible to you will be -shaded. -]]> -</entry> - -<entry key="welcome-instructions"> -<![CDATA[ -<h3>Welcome to the experiment. The experiment will begin shortly after everyone has been -assigned a station.</h3> -<p> -Please <b>wait quietly</b> and <b>do not close this window or open any other applications</b>. -</p> -]]> -</entry> - -<entry key="general-instructions"> -<![CDATA[ -<h3>General Instructions</h3> -<p> -Welcome. You have already earned 5 dollars by showing up at this experiment. You can -earn more, up to a maximum of 40 dollars, by participating in this experiment, which -will take about an hour to an hour and a half. The amount of money you earn depends -on your decisions as well as the decisions of other people in this room during the -six rounds of the experiment. -</p> -<p> -You appear on the screen as a yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif">. -You move by pressing the four arrow keys on your keyboard. You can move up, down, -left, or right. You have to press a key for each and every move of your yellow dot. -In this experiment you can collect green diamond shaped tokens -<img src="@CODEBASE_URL@/images/gem-token.gif"> and earn two cents for each collected token. -To collect a token, move your yellow dot over a green token and press the <b>space -bar</b>. If you move over a token without pressing the <b>space bar</> you do NOT -collect that token. -</p> - -<p> -The tokens that you collect have the potential to regenerate. After you have -collected a green token, a new token can re-appear on that empty cell. -However, the rate at which new tokens will appear depends on the number of -adjacent cells with tokens. The more tokens in the eight cells around -an empty cell, the faster a new token will appear on that empty cell. In other -words, <b>existing tokens can generate new tokens</b>. To illustrate this, please -refer to Image 1 and Image 2. The middle cell in Image 1 denoted with an X has -a greater chance of regeneration than the middle cell in Image 2. When all -neighboring cells are empty, there is <b>no chance for regeneration</b>. - -<table width="100%"> -<tr> -<td align="center"><b>Image 1</b></td> -<td align="center"><b>Image 2</b></td> -</tr> -<tr> -<td align="center"> -<img src="@CODEBASE_URL@/images/8neighbors.jpg" alt="image 1"> -</td> -<td align="center"> -<img src="@CODEBASE_URL@/images/5neighbors.jpg" alt="image 2"> -</td> -</tr> -</table> -]]> -</entry> - - -</properties> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Allen L. <All...@as...> - 2010-04-07 19:51:05
|
Deepak, 1. Stop committing the configuration files into src/main/resources/configuration and double check what you are committing before they go to the server. You can do this in Eclipse via Team -> Synchronize with Repository or by being careful on the command-line. 2. When we have changes in experiment treatment, create a new, appropriately named, configuration folder under asu-experiments and add the configuration files there. Do not modify the configuration files for a previous treatment. So in this case, instead of modifying the configuration files in voting-limitedvision, create a new folder, for example, 'voting-limitedvision-reversed' and add the configuration files there. Is that clear? On Wed, Apr 7, 2010 at 12:03 PM, <db...@us...> wrote: > Revision: 504 > http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=504&view=rev > Author: dbarge > Date: 2010-04-07 19:03:02 +0000 (Wed, 07 Apr 2010) > > Log Message: > ----------- > Changes the configuration files for 04/07 experiments > - Rounds are reversed starting with 3 communication and voting rounds > - Instructions are also changes accordingly. > > Modified Paths: > -------------- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -31,9 +31,8 @@ > press the <b>R</b> key you will reset the resource to its initial distribution, > randomly filling half of the cells. > </p> > -<p><b> Please do not communicate with any other participant.</b></p> > -<p>If you have any questions please raise your hand. <b>Do you have any > -questions so far?</b></p> > +<p><b>Please do not communicate with any other participant.</b></p> > +<p>If you have any questions please raise your hand. <b>Do you have any questions so far?</b></p> > ]]> > </entry> > > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -1,52 +1,164 @@ > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > <properties> > -<comment>Foraging XML experiment round configuration</comment> > +<comment>Foraging XML-ized experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > -<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > +<entry key="duration">240</entry> > > +<!-- enable field of vision for tokens and subjects --> > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > +<!-- before this round begins, we have a chat session --> > +<entry key="chat-enabled">true</entry> > + > +<!-- enable sanctioning --> > +<entry key="sanction-type">real-time</entry> > +<entry key="sanction-cost">1</entry> > +<entry key="sanction-multiplier">2</entry> > + > + > +<entry key="initial-distribution">.25</entry> > + > +<!-- enable quiz --> > +<entry key='quiz'>true</entry> > +<entry key='q1'>B</entry> > +<entry key='q2'>C</entry> > +<entry key='q3'>B</entry> > +<entry key='q4'>B</entry> > + > <entry key="instructions"> > <![CDATA[ > <h3>Round 1 Instructions</h3> > <hr> > <p> > -This is the first round of the experiment. The length of the round is 4 > -minutes. Like in the practice round you can collect green tokens. This time > -you earn <b>two cents</b> for each token collected. This time you > -<b>cannot</b> reset the distribution of green tokens. > +This is the first round of the experiment. The length of the round is 4 minutes. Like in the practice round you can collect green tokens. This time you earn two cents for each token collected. This time you cannot reset the distribution of green tokens. > </p> > <p> > -In this round the renewable resource will become five times bigger. You will share this > -larger environment with four other players in this room that have been randomly > -selected. One group's resource environment is distinct from the other groups. > +In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly selected. One group's resource environment is distinct from the other groups. > </p> > <p> > -Each of you has been assigned a number from 1 to 5. These numbers will remain the > -same throughout the experiment but you will <b>not</b> be able to identify which > -person in the room has been assigned which number, so your anonymity is guaranteed. > - > -The other four players will appear on the screen as blue dots > -<img src="@CODEBASE_URL@/images/gem-other.gif"> with a white > -number embedded in the dot. On the top right corner of the screen you can see > -how many tokens each player has collected. On the top left corner of the screen you can see > -a clock that displays the remaining time in the round.</p> > -<p>Since you can only see the resource within your vision you may neither see all > -the other participants nor all the resource units. The figure below indicates the > -vision range compared to the whole environment</p> > +Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will not be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. > +</p> > +<p> > +The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round. > +Since you can only see the resource within your vision you may neither see all the other participants nor all the resource units. The figure below indicates the vision range compared to the whole environment > +</p> > <img src="@CODEBASE_URL@/images/vision-range.jpg"> > +<p><b>Do you have any questions so far?</b></p> > <p> > +Before the next round starts you can anonymously communicate by text messages > +for four minutes with the other participants in your group. You can use this > +opportunity to discuss the experiment and coordinate your actions to improve > +your earnings. You may not promise side-payments after the experiment is > +completed or make any threats. You are also not allowed to reveal your real > +identity. We are monitoring the chat traffic while you chat. > +</p> > +<p> > +During the next round you will have the option to reduce the earnings of another > +participant at a cost to your own earnings. > +</p> > +<ul> > +<li>If you press the numeric key 1-5 corresponding to another participant, you > +will reduce the number of tokens they have collected in this round by two > +tokens. This will also reduce your own token amount by one token. The decision > +whether or when to use this option is up to you. > +<li>When you reduce the number of tokens of another participant, they will > +receive a message stating that you have reduced their tokens. Likewise, if > +another participant reduces your number of tokens, you will also receive a > +message. These messages will be displayed on the bottom of your screen. > +<li>If your tokens are being reduced or you are reducing another participant's > +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. > +<li>You may sanction other participants as long as there are > +tokens remaining on the screen and while both you and the other participant > +have a positive number of tokens collected during the round. <b>Each time</b> > +you press the numeric key corresponding to another participant your token > +amount is reduced by <b>one</b>, and their token amount is reduced by > +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is > +visible to you. > +</ul> > +<p> > + > +<p> > +The length of this round is four minutes. > +</p> > +<p> > If you have any questions please raise your hand. <b>Do you have any > questions so far?</b> > </p> > ]]> > </entry> > + > +<entry key="chat-instructions"> > +<![CDATA[ > +<p> > +You can now chat with the other participants in your group for 4 minutes > +total. During the chat round, you may communicate about any aspect of the > +experiment that you would like to discuss with other participants with whom > +you have been matched. You may not promise them side-payments after the > +experiment is completed or threaten them with any consequence after the > +experiment is finished. We are monitoring the chat traffic while you chat. If > +we see that somebody reveals his or her identity, we have to stop the > +experiment and remove the whole group from which this person is a member out > +of this room. > +</p> > +<p> > +You will see other participants labeled as "1", "2","3", "4", or "5" in the > +chat box. You can send a chat message by typing into the textfield at the > +bottom of the screen and pressing the "enter" key on your keyboard. > +</p> > +]]> > +</entry> > +<entry key="quiz-instructions"> > +<![CDATA[ > +<p>Before the next round begins you must complete the quiz below. You can > +only continue when you have answered all questions correctly. If an error is > +made you will need to answer the questions again. > +</p> > + > +<form> > +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced > +by:</span><br> > +<input type="radio" name="q1" value="A">A. 0 tokens<br> > +<input type="radio" name="q1" value="B">B. 1 token<br> > +<input type="radio" name="q1" value="C">C. 2 tokens<br> > +<input type="radio" name="q1" value="D">D. 4 tokens<br> > +<br><br> > + > +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the > +corresponding participant is reduced by:</span><br> > +<input type="radio" name="q2" value="A">A. 0 tokens<br> > +<input type="radio" name="q2" value="B">B. 1 token<br> > +<input type="radio" name="q2" value="C">C. 2 tokens<br> > +<input type="radio" name="q2" value="D">D. 4 tokens<br> > +<br><br> > + > +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> > +<input type="radio" name="q3" value="A">A. You collected a token<br> > +<input type="radio" name="q3" value="B">B. Another participant is subtracting two > +tokens from you<br> > +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another > +participant<br> > +<input type="radio" name="q3" value="D">D. You are moving too fast<br> > +<br><br> > + > +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> > +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens > +collected this round<br> > +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens > +collected this round<br> > +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue > +momentarily<br> > +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> > + > +<input type="submit" name="submit" value="Submit"> > +</form> > +]]> > +</entry> > </properties> > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -4,26 +4,35 @@ > <comment>Foraging XML-ized experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > -<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > +<entry key="duration">240</entry> > > - > <!-- enable field of vision for tokens and subjects --> > -<entry key='initial-distribution'>.25</entry> > - > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > > +<!-- enable sanctioning --> > +<entry key="sanction-type">real-time</entry> > +<entry key="sanction-cost">1</entry> > +<entry key="sanction-multiplier">2</entry> > + > +<entry key="initial-distribution">.25</entry> > + > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > +<!-- before this round begins, we have a chat session --> > +<entry key="chat-enabled">true</entry> > + > <entry key="instructions"> > <![CDATA[ > <h3>Round 2 Instructions</h3> > <hr> > <p> > -Round 2 is the same as round 1. > +Round 2 is the same as round 1.</p> > +<p> > +The length of this round is again four minutes. > </p> > <p> > If you have any questions please raise your hand. <b>Do you have any > @@ -31,4 +40,35 @@ > </p> > ]]> > </entry> > + > +<entry key="chat-instructions"> > +<![CDATA[ > +<p> > +You can now chat with the other participants in your group for 4 minutes > +total. During the chat round, you may communicate about any aspect of the > +experiment that you would like to discuss with other participants with whom > +you have been matched. You may not promise them side-payments after the > +experiment is completed or threaten them with any consequence after the > +experiment is finished. We are monitoring the chat traffic while you chat. If > +we see that somebody reveals his or her identity, we have to stop the > +experiment and remove the whole group from which this person is a member out > +of this room. > +</p> > +<p> > +You will see other participants labeled as "1", "2","3", "4", or "5" in the > +chat box. You can send a chat message by typing into the textfield at the > +bottom of the screen and pressing the "enter" key on your keyboard. > +</p> > +]]> > +</entry> > + > +<entry key='private-chat-instructions'> > +<![CDATA[ > +You may send private messages to a specific participant by clicking on the > +appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in > +the chat box and sending it. By default you are communicating with all > +members of your group. > +]]> > +</entry> > + > </properties> > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -4,26 +4,33 @@ > <comment>Foraging XML-ized experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > -<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > +<entry key="duration">240</entry> > > -<!-- enable field of vision for tokens and subjects --> > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > +<!-- enable sanctioning --> > +<entry key="sanction-type">real-time</entry> > +<entry key="sanction-cost">1</entry> > +<entry key="sanction-multiplier">2</entry> > > +<entry key="initial-distribution">.25</entry> > + > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > -<!-- resource regrowth parameters --> > -<entry key="initial-distribution">.25</entry> > +<!-- before this round begins, we have a chat session --> > +<entry key="chat-enabled">true</entry> > > <entry key="instructions"> > <![CDATA[ > <h3>Round 3 Instructions</h3> > <hr> > <p> > -Round 3 is the same as round 2. > +Round 3 is the same as round 2.</p> > +<p> > +The length of this round is again four minutes. > </p> > <p> > If you have any questions please raise your hand. <b>Do you have any > @@ -31,4 +38,24 @@ > </p> > ]]> > </entry> > + > + > +<entry key="chat-instructions"> > +<![CDATA[ > +<p> > +You can now chat with the other participants in your group for 4 minutes > +total. During the chat round, you may communicate about any aspect of the > +experiment that you would like to discuss with other participants with whom > +you have been matched. You may not promise them side-payments after the > +experiment is completed or threaten them with any consequence after the > +experiment is finished. We are monitoring the chat traffic while you chat. If > +we detect that somebody has revealed their identity, we will have to stop the > +experiment and remove that person's entire group from the experiment. > +</p> > +<p> > +You will see other participants labeled as "1", "2","3", "4", or "5" in the > +chat box. You can send a chat message by typing into the textfield at the > +bottom of the screen and pressing the "enter" key. </p> > +]]> > +</entry> > </properties> > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -1,152 +1,36 @@ > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > <properties> > -<comment>Foraging XML-ized experiment round configuration</comment> > +<comment>Foraging XML experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > +<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > -<entry key="duration">240</entry> > > -<!-- enable field of vision for tokens and subjects --> > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > -<!-- before this round begins, we have a chat session --> > -<entry key="chat-enabled">true</entry> > - > -<!-- enable sanctioning --> > -<entry key="sanction-type">real-time</entry> > -<entry key="sanction-cost">1</entry> > -<entry key="sanction-multiplier">2</entry> > - > - > -<entry key="initial-distribution">.25</entry> > - > -<!-- enable quiz --> > -<entry key='quiz'>true</entry> > -<entry key='q1'>B</entry> > -<entry key='q2'>C</entry> > -<entry key='q3'>B</entry> > -<entry key='q4'>B</entry> > - > <entry key="instructions"> > <![CDATA[ > <h3>Round 4 Instructions</h3> > <hr> > + > <p> > -Round 4 is the same as the previous two rounds with two exceptions. > -</p> > -<p> > -Before the next round starts you can anonymously communicate by text messages > -for four minutes with the other participants in your group. You can use this > -opportunity to discuss the experiment and coordinate your actions to improve > -your earnings. You may not promise side-payments after the experiment is > -completed or make any threats. You are also not allowed to reveal your real > -identity. We are monitoring the chat traffic while you chat. > -</p> > -<p> > -During the next round you will have the option to reduce the earnings of another > -participant at a cost to your own earnings. > -</p> > +Round 4 is the same as the previous three rounds with two exceptions: > <ul> > -<li>If you press the numeric key 1-5 corresponding to another participant, you > -will reduce the number of tokens they have collected in this round by two > -tokens. This will also reduce your own token amount by one token. The decision > -whether or when to use this option is up to you. > -<li>When you reduce the number of tokens of another participant, they will > -receive a message stating that you have reduced their tokens. Likewise, if > -another participant reduces your number of tokens, you will also receive a > -message. These messages will be displayed on the bottom of your screen. > -<li>If your tokens are being reduced or you are reducing another participant's > -tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. > -<li>You may sanction other participants as long as there are > -tokens remaining on the screen and while both you and the other participant > -have a positive number of tokens collected during the round. <b>Each time</b> > -you press the numeric key corresponding to another participant your token > -amount is reduced by <b>one</b>, and their token amount is reduced by > -<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is > -visible to you. > +<li>You cannot chat with other participants of your group before the round start. > +<li>You cannot vote in favor or against the use of sanctioning. No sanctioning will be allowed. > </ul> > -<p> > +</p> > > <p> > -The length of this round is four minutes. > -</p> > -<p> > If you have any questions please raise your hand. <b>Do you have any > questions so far?</b> > </p> > ]]> > </entry> > - > -<entry key="chat-instructions"> > -<![CDATA[ > -<p> > -You can now chat with the other participants in your group for 4 minutes > -total. During the chat round, you may communicate about any aspect of the > -experiment that you would like to discuss with other participants with whom > -you have been matched. You may not promise them side-payments after the > -experiment is completed or threaten them with any consequence after the > -experiment is finished. We are monitoring the chat traffic while you chat. If > -we see that somebody reveals his or her identity, we have to stop the > -experiment and remove the whole group from which this person is a member out > -of this room. > -</p> > -<p> > -You will see other participants labeled as "1", "2","3", "4", or "5" in the > -chat box. You can send a chat message by typing into the textfield at the > -bottom of the screen and pressing the "enter" key on your keyboard. > -</p> > -]]> > -</entry> > -<entry key="quiz-instructions"> > -<![CDATA[ > -<p>Before the next round begins you must complete the quiz below. You can > -only continue when you have answered all questions correctly. If an error is > -made you will need to answer the questions again. > -</p> > - > -<form> > -<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced > -by:</span><br> > -<input type="radio" name="q1" value="A">A. 0 tokens<br> > -<input type="radio" name="q1" value="B">B. 1 token<br> > -<input type="radio" name="q1" value="C">C. 2 tokens<br> > -<input type="radio" name="q1" value="D">D. 4 tokens<br> > -<br><br> > - > -<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the > -corresponding participant is reduced by:</span><br> > -<input type="radio" name="q2" value="A">A. 0 tokens<br> > -<input type="radio" name="q2" value="B">B. 1 token<br> > -<input type="radio" name="q2" value="C">C. 2 tokens<br> > -<input type="radio" name="q2" value="D">D. 4 tokens<br> > -<br><br> > - > -<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> > -<input type="radio" name="q3" value="A">A. You collected a token<br> > -<input type="radio" name="q3" value="B">B. Another participant is subtracting two > -tokens from you<br> > -<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another > -participant<br> > -<input type="radio" name="q3" value="D">D. You are moving too fast<br> > -<br><br> > - > -<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> > -<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens > -collected this round<br> > -<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens > -collected this round<br> > -<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue > -momentarily<br> > -<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> > - > -<input type="submit" name="submit" value="Submit"> > -</form> > -]]> > -</entry> > </properties> > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -4,35 +4,26 @@ > <comment>Foraging XML-ized experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > +<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > -<entry key="duration">240</entry> > > + > <!-- enable field of vision for tokens and subjects --> > +<entry key='initial-distribution'>.25</entry> > + > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > > -<!-- enable sanctioning --> > -<entry key="sanction-type">real-time</entry> > -<entry key="sanction-cost">1</entry> > -<entry key="sanction-multiplier">2</entry> > - > -<entry key="initial-distribution">.25</entry> > - > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > -<!-- before this round begins, we have a chat session --> > -<entry key="chat-enabled">true</entry> > - > <entry key="instructions"> > <![CDATA[ > <h3>Round 5 Instructions</h3> > <hr> > <p> > -Round 5 is the same as round 4.</p> > -<p> > -The length of this round is again four minutes. > +Round 5 is the same as round 4. > </p> > <p> > If you have any questions please raise your hand. <b>Do you have any > @@ -40,35 +31,4 @@ > </p> > ]]> > </entry> > - > -<entry key="chat-instructions"> > -<![CDATA[ > -<p> > -You can now chat with the other participants in your group for 4 minutes > -total. During the chat round, you may communicate about any aspect of the > -experiment that you would like to discuss with other participants with whom > -you have been matched. You may not promise them side-payments after the > -experiment is completed or threaten them with any consequence after the > -experiment is finished. We are monitoring the chat traffic while you chat. If > -we see that somebody reveals his or her identity, we have to stop the > -experiment and remove the whole group from which this person is a member out > -of this room. > -</p> > -<p> > -You will see other participants labeled as "1", "2","3", "4", or "5" in the > -chat box. You can send a chat message by typing into the textfield at the > -bottom of the screen and pressing the "enter" key on your keyboard. > -</p> > -]]> > -</entry> > - > -<entry key='private-chat-instructions'> > -<![CDATA[ > -You may send private messages to a specific participant by clicking on the > -appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in > -the chat box and sending it. By default you are communicating with all > -members of your group. > -]]> > -</entry> > - > </properties> > > Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > =================================================================== > --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-04-07 18:59:56 UTC (rev 503) > +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-04-07 19:03:02 UTC (rev 504) > @@ -4,33 +4,26 @@ > <comment>Foraging XML-ized experiment round configuration</comment> > <entry key="display-group-tokens">true</entry> > <entry key="clients-per-group">5</entry> > +<entry key="duration">240</entry> > <entry key="resource-depth">29</entry> > <entry key="resource-width">29</entry> > -<entry key="duration">240</entry> > > +<!-- enable field of vision for tokens and subjects --> > <entry key='tokens-field-of-vision'>true</entry> > <entry key='subjects-field-of-vision'>true</entry> > -<!-- enable sanctioning --> > -<entry key="sanction-type">real-time</entry> > -<entry key="sanction-cost">1</entry> > -<entry key="sanction-multiplier">2</entry> > > -<entry key="initial-distribution">.25</entry> > - > <entry key='always-explicit'>true</entry> > <entry key='max-cell-occupancy'>1</entry> > > -<!-- before this round begins, we have a chat session --> > -<entry key="chat-enabled">true</entry> > +<!-- resource regrowth parameters --> > +<entry key="initial-distribution">.25</entry> > > <entry key="instructions"> > <![CDATA[ > <h3>Round 6 Instructions</h3> > <hr> > <p> > -Round 6 is the same as round 5.</p> > -<p> > -The length of this round is again four minutes. > +Round 6 is the same as round 5. > </p> > <p> > If you have any questions please raise your hand. <b>Do you have any > @@ -58,22 +51,4 @@ > ]]> > </entry> > > -<entry key="chat-instructions"> > -<![CDATA[ > -<p> > -You can now chat with the other participants in your group for 4 minutes > -total. During the chat round, you may communicate about any aspect of the > -experiment that you would like to discuss with other participants with whom > -you have been matched. You may not promise them side-payments after the > -experiment is completed or threaten them with any consequence after the > -experiment is finished. We are monitoring the chat traffic while you chat. If > -we detect that somebody has revealed their identity, we will have to stop the > -experiment and remove that person's entire group from the experiment. > -</p> > -<p> > -You will see other participants labeled as "1", "2","3", "4", or "5" in the > -chat box. You can send a chat message by typing into the textfield at the > -bottom of the screen and pressing the "enter" key. </p> > -]]> > -</entry> > </properties> > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > 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: <al...@us...> - 2010-04-07 19:47:10
|
Revision: 505 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=505&view=rev Author: alllee Date: 2010-04-07 19:46:57 +0000 (Wed, 07 Apr 2010) Log Message: ----------- created new limitedvision-voting configuration set for the treatment that has limitedvision open access and then voting, in that order. Added Paths: ----------- foraging/trunk/src/main/resources/configuration/asu-experiments/fullvision-voting/ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round2.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round3.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round4.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round5.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round6.xml foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/server.xml Removed Paths: ------------- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fov/ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/ Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round0.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round0.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="resource-width">13</entry> +<entry key="resource-depth">13</entry> +<entry key="practice-round">true</entry> +<entry key="private-property">true</entry> +<entry key="duration">240</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key="quiz">true</entry> +<entry key="q1">C</entry> +<entry key="q2">B</entry> + +<entry key='instructions'> +<![CDATA[ +<h3>Practice Round Instructions</h3> +<hr> +<p> +You will now have four minutes to practice with the experimental environment. +The decisions you make in this round will NOT influence your earnings. At the +At the beginning of the practice round half of the cells are occupied +with green tokens. The environment is a 13 x 13 grid of cells. +</p> +<p> +During this practice round, and <b>only during</b> this practice round, you are able +to reset the tokens displayed on the screen by pressing the <b>R</b> key. When you +press the <b>R</b> key you will reset the resource to its initial distribution, +randomly filling half of the cells. +</p> +<p><b> Please do not communicate with any other participant.</b></p> +<p>If you have any questions please raise your hand. <b>Do you have any +questions so far?</b></p> +]]> +</entry> + +<entry key="quiz-instructions"> +<![CDATA[ +<p> +Before we begin the practice round you need to answer the following questions +correctly. You can only continue when you have answered all questions +correctly. If an error is made you will need to answer the questions again. +</p> +<br> +<form> +<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> +<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> +<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> +<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the +screen.<br> +<input type="radio" name="q1" value="D">D. In order to collect a token you need +to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> +<br><br> + +<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> +<img src="@CODEBASE_URL@/images/question2.jpg"><br> +<input type="radio" name="q2" value="A">A<br> +<input type="radio" name="q2" value="B">B<br> +<input type="radio" name="q2" value="C">C<br> +<br> +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round1.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 1 Instructions</h3> +<hr> +<p> +This is the first round of the experiment. The length of the round is 4 +minutes. Like in the practice round you can collect green tokens. This time +you earn <b>two cents</b> for each token collected. This time you +<b>cannot</b> reset the distribution of green tokens. +</p> +<p> +In this round the renewable resource will become five times bigger. You will share this +larger environment with four other players in this room that have been randomly +selected. One group's resource environment is distinct from the other groups. +</p> +<p> +Each of you has been assigned a number from 1 to 5. These numbers will remain the +same throughout the experiment but you will <b>not</b> be able to identify which +person in the room has been assigned which number, so your anonymity is guaranteed. + +The other four players will appear on the screen as blue dots +<img src="@CODEBASE_URL@/images/gem-other.gif"> with a white +number embedded in the dot. On the top right corner of the screen you can see +how many tokens each player has collected. On the top left corner of the screen you can see +a clock that displays the remaining time in the round.</p> +<p>Since you can only see the resource within your vision you may neither see all +the other participants nor all the resource units. The figure below indicates the +vision range compared to the whole environment</p> +<img src="@CODEBASE_URL@/images/vision-range.jpg"> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round2.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round2.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + + +<!-- enable field of vision for tokens and subjects --> +<entry key='initial-distribution'>.25</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 2 Instructions</h3> +<hr> +<p> +Round 2 is the same as round 1. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round3.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round3.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- resource regrowth parameters --> +<entry key="initial-distribution">.25</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 3 Instructions</h3> +<hr> +<p> +Round 3 is the same as round 2. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round4.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round4.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + + +<entry key="initial-distribution">.25</entry> + +<!-- enable quiz --> +<entry key='quiz'>true</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 4 Instructions</h3> +<hr> +<p> +Round 4 is the same as the previous two rounds with two exceptions. +</p> +<p> +Before the next round starts you can anonymously communicate by text messages +for four minutes with the other participants in your group. You can use this +opportunity to discuss the experiment and coordinate your actions to improve +your earnings. You may not promise side-payments after the experiment is +completed or make any threats. You are also not allowed to reveal your real +identity. We are monitoring the chat traffic while you chat. +</p> +<p> +During the next round you will have the option to reduce the earnings of another +participant at a cost to your own earnings. +</p> +<ul> +<li>If you press the numeric key 1-5 corresponding to another participant, you +will reduce the number of tokens they have collected in this round by two +tokens. This will also reduce your own token amount by one token. The decision +whether or when to use this option is up to you. +<li>When you reduce the number of tokens of another participant, they will +receive a message stating that you have reduced their tokens. Likewise, if +another participant reduces your number of tokens, you will also receive a +message. These messages will be displayed on the bottom of your screen. +<li>If your tokens are being reduced or you are reducing another participant's +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are +tokens remaining on the screen and while both you and the other participant +have a positive number of tokens collected during the round. <b>Each time</b> +you press the numeric key corresponding to another participant your token +amount is reduced by <b>one</b>, and their token amount is reduced by +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is +visible to you. +</ul> +<p> + +<p> +The length of this round is four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> +<entry key="quiz-instructions"> +<![CDATA[ +<p>Before the next round begins you must complete the quiz below. You can +only continue when you have answered all questions correctly. If an error is +made you will need to answer the questions again. +</p> + +<form> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> +<br><br> + +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> +<br><br> + +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two +tokens from you<br> +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another +participant<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> +<br><br> + +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +momentarily<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> + +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round5.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round5.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 5 Instructions</h3> +<hr> +<p> +Round 5 is the same as round 4.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> + +<entry key='private-chat-instructions'> +<![CDATA[ +You may send private messages to a specific participant by clicking on the +appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in +the chat box and sending it. By default you are communicating with all +members of your group. +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round6.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/round6.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 6 Instructions</h3> +<hr> +<p> +Round 6 is the same as round 5.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="last-round-debriefing"> +<![CDATA[ +<p> +This was the last round, but not the end of the experiment. We will now +determine your payments. While we are doing this, we request that you +carefully fill out a brief survey. +</p> +<p> +When we are ready we will call you one by one to the room next door. We will +pay you there in private. Please wait until your computer number is called, +and then proceed to the room next door to turn in your computer number and +your survey. +</p> +<p> +Please answer the survey carefully and thank you for participating. +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we detect that somebody has revealed their identity, we will have to stop the +experiment and remove that person's entire group from the experiment. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key. </p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/server.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/server.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/limitedvision-voting/server.xml 2010-04-07 19:46:57 UTC (rev 505) @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Costly Sanctioning XML-ized experiment round configuration</comment> +<entry key="hostname">@SERVER_ADDRESS@</entry> +<entry key="port">@PORT_NUMBER@</entry> +<entry key="round0">round0.xml</entry> +<entry key="round1">round1.xml</entry> +<entry key="round2">round2.xml</entry> +<entry key="round3">round3.xml</entry> +<entry key="round4">round4.xml</entry> +<entry key="round5">round5.xml</entry> +<entry key="round6">round6.xml</entry> +<entry key="wait-for-participants">true</entry> +<entry key="number-of-rounds">7</entry> +<entry key="facilitator-instructions"> +<![CDATA[ +<h3>Facilitator Instructions</h3> +<p> +Welcome to the facilitator interface. This interface allows you to control +the experiment. You may only modify configuration parameters <b>before</b> +you start the experiment by selecting the Configuration menu. When all the +participants are ready to begin the experiment, you can start the experiment +by selecting Experiment -> Start. After a round has been completed you +will be able to view the statistics for all of the participants. You can +begin the next round by selecting Round -> Start. +</p> +]]> +</entry> + +<entry key='field-of-vision-instructions'> +<![CDATA[ +Your vision is limited in this experiment. The area that is visible to you will be +shaded. +]]> +</entry> + +<entry key="welcome-instructions"> +<![CDATA[ +<h3>Welcome to the experiment. The experiment will begin shortly after everyone has been +assigned a station.</h3> +<p> +Please <b>wait quietly</b> and <b>do not close this window or open any other applications</b>. +</p> +]]> +</entry> + +<entry key="general-instructions"> +<![CDATA[ +<h3>General Instructions</h3> +<p> +Welcome. You have already earned 5 dollars by showing up at this experiment. You can +earn more, up to a maximum of 40 dollars, by participating in this experiment, which +will take about an hour to an hour and a half. The amount of money you earn depends +on your decisions as well as the decisions of other people in this room during the +six rounds of the experiment. +</p> +<p> +You appear on the screen as a yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif">. +You move by pressing the four arrow keys on your keyboard. You can move up, down, +left, or right. You have to press a key for each and every move of your yellow dot. +In this experiment you can collect green diamond shaped tokens +<img src="@CODEBASE_URL@/images/gem-token.gif"> and earn two cents for each collected token. +To collect a token, move your yellow dot over a green token and press the <b>space +bar</b>. If you move over a token without pressing the <b>space bar</> you do NOT +collect that token. +</p> + +<p> +The tokens that you collect have the potential to regenerate. After you have +collected a green token, a new token can re-appear on that empty cell. +However, the rate at which new tokens will appear depends on the number of +adjacent cells with tokens. The more tokens in the eight cells around +an empty cell, the faster a new token will appear on that empty cell. In other +words, <b>existing tokens can generate new tokens</b>. To illustrate this, please +refer to Image 1 and Image 2. The middle cell in Image 1 denoted with an X has +a greater chance of regeneration than the middle cell in Image 2. When all +neighboring cells are empty, there is <b>no chance for regeneration</b>. + +<table width="100%"> +<tr> +<td align="center"><b>Image 1</b></td> +<td align="center"><b>Image 2</b></td> +</tr> +<tr> +<td align="center"> +<img src="@CODEBASE_URL@/images/8neighbors.jpg" alt="image 1"> +</td> +<td align="center"> +<img src="@CODEBASE_URL@/images/5neighbors.jpg" alt="image 2"> +</td> +</tr> +</table> +]]> +</entry> + + +</properties> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Allen L. <All...@as...> - 2010-04-07 19:36:49
|
Are you being serious? Unfortunately, you are mistaken. Look at the codebase. It is 100% clear that you committed a set of configuration files to src/main/resources/configuration and modified the voting-limitedvision treatment directory files in place. It's not a big problem and perhaps I didn't make these conventions explicit enough beforehand - I just want you to be more careful in the future when you commit your changes, it'll save me time and help us be more consistent. On Wed, Apr 7, 2010 at 12:26 PM, DEEPAK BARGE <db...@as...> wrote: > Allen, > I have followed the same thing. I have not changed the files in the > src/main/configuration. I have created a new folder and added the new files > to them. I have not changed the files of the previous treatment. > > On Wed, Apr 7, 2010 at 12:22 PM, Allen Lee <All...@as...> wrote: >> >> Deepak, >> >> 1. Stop committing the configuration files into >> src/main/resources/configuration and double check what you are >> committing before they go to the server. You can do this in Eclipse >> via Team -> Synchronize with Repository or by being careful on the >> command-line. >> >> 2. When we have changes in experiment treatment, create a new, >> appropriately named, configuration folder under asu-experiments and >> add the configuration files there. Do not modify the configuration >> files for a previous treatment. So in this case, instead of modifying >> the configuration files in voting-limitedvision, create a new folder, >> for example, 'voting-limitedvision-reversed' and add the configuration >> files there. Is that clear? >> >> >> On Wed, Apr 7, 2010 at 12:03 PM, <db...@us...> wrote: >> > Revision: 504 >> > >> > http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=504&view=rev >> > Author: dbarge >> > Date: 2010-04-07 19:03:02 +0000 (Wed, 07 Apr 2010) >> > >> > Log Message: >> > ----------- >> > Changes the configuration files for 04/07 experiments >> > - Rounds are reversed starting with 3 communication and voting rounds >> > - Instructions are also changes accordingly. >> > >> > Modified Paths: >> > -------------- >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml >> > >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -31,9 +31,8 @@ >> > press the <b>R</b> key you will reset the resource to its initial >> > distribution, >> > randomly filling half of the cells. >> > </p> >> > -<p><b> Please do not communicate with any other >> > participant.</b></p> >> > -<p>If you have any questions please raise your hand. <b>Do you have any >> > -questions so far?</b></p> >> > +<p><b>Please do not communicate with any other participant.</b></p> >> > +<p>If you have any questions please raise your hand. <b>Do you have any >> > questions so far?</b></p> >> > ]]> >> > </entry> >> > >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -1,52 +1,164 @@ >> > <?xml version="1.0" encoding="UTF-8"?> >> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> >> > <properties> >> > -<comment>Foraging XML experiment round configuration</comment> >> > +<comment>Foraging XML-ized experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > -<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > +<entry key="duration">240</entry> >> > >> > +<!-- enable field of vision for tokens and subjects --> >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > +<!-- before this round begins, we have a chat session --> >> > +<entry key="chat-enabled">true</entry> >> > + >> > +<!-- enable sanctioning --> >> > +<entry key="sanction-type">real-time</entry> >> > +<entry key="sanction-cost">1</entry> >> > +<entry key="sanction-multiplier">2</entry> >> > + >> > + >> > +<entry key="initial-distribution">.25</entry> >> > + >> > +<!-- enable quiz --> >> > +<entry key='quiz'>true</entry> >> > +<entry key='q1'>B</entry> >> > +<entry key='q2'>C</entry> >> > +<entry key='q3'>B</entry> >> > +<entry key='q4'>B</entry> >> > + >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 1 Instructions</h3> >> > <hr> >> > <p> >> > -This is the first round of the experiment. The length of the round is 4 >> > -minutes. Like in the practice round you can collect green tokens. This >> > time >> > -you earn <b>two cents</b> for each token collected. This time you >> > -<b>cannot</b> reset the distribution of green tokens. >> > +This is the first round of the experiment. The length of the round is 4 >> > minutes. Like in the practice round you can collect green tokens. This time >> > you earn two cents for each token collected. This time you cannot reset the >> > distribution of green tokens. >> > </p> >> > <p> >> > -In this round the renewable resource will become five times bigger. >> > You will share this >> > -larger environment with four other players in this room that have been >> > randomly >> > -selected. One group's resource environment is distinct from the other >> > groups. >> > +In this round the renewable resource will become five times bigger. >> > You will share this larger environment with four other players in this room >> > that have been randomly selected. One group's resource environment is >> > distinct from the other groups. >> > </p> >> > <p> >> > -Each of you has been assigned a number from 1 to 5. These numbers will >> > remain the >> > -same throughout the experiment but you will <b>not</b> be able to >> > identify which >> > -person in the room has been assigned which number, so your anonymity is >> > guaranteed. >> > - >> > -The other four players will appear on the screen as blue dots >> > -<img src="@CODEBASE_URL@/images/gem-other.gif"> with a white >> > -number embedded in the dot. On the top right corner of the screen you >> > can see >> > -how many tokens each player has collected. On the top left corner of >> > the screen you can see >> > -a clock that displays the remaining time in the round.</p> >> > -<p>Since you can only see the resource within your vision you may >> > neither see all >> > -the other participants nor all the resource units. The figure below >> > indicates the >> > -vision range compared to the whole environment</p> >> > +Each of you has been assigned a number from 1 to 5. These numbers will >> > remain the same throughout the experiment but you will not be able to >> > identify which person in the room has been assigned which number, so your >> > anonymity is guaranteed. >> > +</p> >> > +<p> >> > +The other four players will appear on the screen as blue dots <img >> > src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in >> > the dot. On the top right corner of the screen you can see how many tokens >> > each player has collected. On the top left corner of the screen you can see >> > a clock that displays the remaining time in the round. >> > +Since you can only see the resource within your vision you may neither >> > see all the other participants nor all the resource units. The figure below >> > indicates the vision range compared to the whole environment >> > +</p> >> > <img src="@CODEBASE_URL@/images/vision-range.jpg"> >> > +<p><b>Do you have any questions so far?</b></p> >> > <p> >> > +Before the next round starts you can anonymously communicate by text >> > messages >> > +for four minutes with the other participants in your group. You can use >> > this >> > +opportunity to discuss the experiment and coordinate your actions to >> > improve >> > +your earnings. You may not promise side-payments after the experiment >> > is >> > +completed or make any threats. You are also not allowed to reveal your >> > real >> > +identity. We are monitoring the chat traffic while you chat. >> > +</p> >> > +<p> >> > +During the next round you will have the option to reduce the earnings >> > of another >> > +participant at a cost to your own earnings. >> > +</p> >> > +<ul> >> > +<li>If you press the numeric key 1-5 corresponding to another >> > participant, you >> > +will reduce the number of tokens they have collected in this round by >> > two >> > +tokens. This will also reduce your own token amount by one token. The >> > decision >> > +whether or when to use this option is up to you. >> > +<li>When you reduce the number of tokens of another participant, they >> > will >> > +receive a message stating that you have reduced their tokens. Likewise, >> > if >> > +another participant reduces your number of tokens, you will also >> > receive a >> > +message. These messages will be displayed on the bottom of your screen. >> > +<li>If your tokens are being reduced or you are reducing another >> > participant's >> > +tokens, you will receive some visual cues. When you are sanctioned >> > your yellow dot will turn red briefly with a blue background. The >> > participant sanctioning you will turn purple with a white background. >> > +<li>You may sanction other participants as long as there are >> > +tokens remaining on the screen and while both you and the other >> > participant >> > +have a positive number of tokens collected during the round. <b>Each >> > time</b> >> > +you press the numeric key corresponding to another participant your >> > token >> > +amount is reduced by <b>one</b>, and their token amount is reduced by >> > +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant >> > that is >> > +visible to you. >> > +</ul> >> > +<p> >> > + >> > +<p> >> > +The length of this round is four minutes. >> > +</p> >> > +<p> >> > If you have any questions please raise your hand. <b>Do you have any >> > questions so far?</b> >> > </p> >> > ]]> >> > </entry> >> > + >> > +<entry key="chat-instructions"> >> > +<![CDATA[ >> > +<p> >> > +You can now chat with the other participants in your group for 4 >> > minutes >> > +total. During the chat round, you may communicate about any aspect of >> > the >> > +experiment that you would like to discuss with other participants with >> > whom >> > +you have been matched. You may not promise them side-payments after the >> > +experiment is completed or threaten them with any consequence after the >> > +experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > +we see that somebody reveals his or her identity, we have to stop the >> > +experiment and remove the whole group from which this person is a >> > member out >> > +of this room. >> > +</p> >> > +<p> >> > +You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > +chat box. You can send a chat message by typing into the textfield at >> > the >> > +bottom of the screen and pressing the "enter" key on your keyboard. >> > +</p> >> > +]]> >> > +</entry> >> > +<entry key="quiz-instructions"> >> > +<![CDATA[ >> > +<p>Before the next round begins you must complete the quiz below. You >> > can >> > +only continue when you have answered all questions correctly. If an >> > error is >> > +made you will need to answer the questions again. >> > +</p> >> > + >> > +<form> >> > +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my >> > tokens will be reduced >> > +by:</span><br> >> > +<input type="radio" name="q1" value="A">A. 0 tokens<br> >> > +<input type="radio" name="q1" value="B">B. 1 token<br> >> > +<input type="radio" name="q1" value="C">C. 2 tokens<br> >> > +<input type="radio" name="q1" value="D">D. 4 tokens<br> >> > +<br><br> >> > + >> > +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the >> > number of tokens of the >> > +corresponding participant is reduced by:</span><br> >> > +<input type="radio" name="q2" value="A">A. 0 tokens<br> >> > +<input type="radio" name="q2" value="B">B. 1 token<br> >> > +<input type="radio" name="q2" value="C">C. 2 tokens<br> >> > +<input type="radio" name="q2" value="D">D. 4 tokens<br> >> > +<br><br> >> > + >> > +<span class='q3'>Q3. The background of your yellow dot <img >> > src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this >> > represent?</span><br> >> > +<input type="radio" name="q3" value="A">A. You collected a token<br> >> > +<input type="radio" name="q3" value="B">B. Another participant is >> > subtracting two >> > +tokens from you<br> >> > +<input type="radio" name="q3" value="C">C. You are subtracting two >> > tokens from another >> > +participant<br> >> > +<input type="radio" name="q3" value="D">D. You are moving too fast<br> >> > +<br><br> >> > + >> > +<span class='q4'>Q4. Every time I press the numeric keys between >> > 1-5:</span><br> >> > +<input type="radio" name="q4" value="A">A. Two tokens are subtracted >> > from my tokens >> > +collected this round<br> >> > +<input type="radio" name="q4" value="B">B. One token is subtracted from >> > my tokens >> > +collected this round<br> >> > +<input type="radio" name="q4" value="C">C. The background of my yellow >> > dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue >> > +momentarily<br> >> > +<input type="radio" name="q4" value="D">D. My yellow dot <img >> > src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> >> > + >> > +<input type="submit" name="submit" value="Submit"> >> > +</form> >> > +]]> >> > +</entry> >> > </properties> >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -4,26 +4,35 @@ >> > <comment>Foraging XML-ized experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > -<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > +<entry key="duration">240</entry> >> > >> > - >> > <!-- enable field of vision for tokens and subjects --> >> > -<entry key='initial-distribution'>.25</entry> >> > - >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > >> > +<!-- enable sanctioning --> >> > +<entry key="sanction-type">real-time</entry> >> > +<entry key="sanction-cost">1</entry> >> > +<entry key="sanction-multiplier">2</entry> >> > + >> > +<entry key="initial-distribution">.25</entry> >> > + >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > +<!-- before this round begins, we have a chat session --> >> > +<entry key="chat-enabled">true</entry> >> > + >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 2 Instructions</h3> >> > <hr> >> > <p> >> > -Round 2 is the same as round 1. >> > +Round 2 is the same as round 1.</p> >> > +<p> >> > +The length of this round is again four minutes. >> > </p> >> > <p> >> > If you have any questions please raise your hand. <b>Do you have any >> > @@ -31,4 +40,35 @@ >> > </p> >> > ]]> >> > </entry> >> > + >> > +<entry key="chat-instructions"> >> > +<![CDATA[ >> > +<p> >> > +You can now chat with the other participants in your group for 4 >> > minutes >> > +total. During the chat round, you may communicate about any aspect of >> > the >> > +experiment that you would like to discuss with other participants with >> > whom >> > +you have been matched. You may not promise them side-payments after the >> > +experiment is completed or threaten them with any consequence after the >> > +experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > +we see that somebody reveals his or her identity, we have to stop the >> > +experiment and remove the whole group from which this person is a >> > member out >> > +of this room. >> > +</p> >> > +<p> >> > +You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > +chat box. You can send a chat message by typing into the textfield at >> > the >> > +bottom of the screen and pressing the "enter" key on your keyboard. >> > +</p> >> > +]]> >> > +</entry> >> > + >> > +<entry key='private-chat-instructions'> >> > +<![CDATA[ >> > +You may send private messages to a specific participant by clicking on >> > the >> > +appropriately labeled button (1, 2, 3, 4, or 5) before typing your >> > message in >> > +the chat box and sending it. By default you are communicating with all >> > +members of your group. >> > +]]> >> > +</entry> >> > + >> > </properties> >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -4,26 +4,33 @@ >> > <comment>Foraging XML-ized experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > -<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > +<entry key="duration">240</entry> >> > >> > -<!-- enable field of vision for tokens and subjects --> >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > +<!-- enable sanctioning --> >> > +<entry key="sanction-type">real-time</entry> >> > +<entry key="sanction-cost">1</entry> >> > +<entry key="sanction-multiplier">2</entry> >> > >> > +<entry key="initial-distribution">.25</entry> >> > + >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > -<!-- resource regrowth parameters --> >> > -<entry key="initial-distribution">.25</entry> >> > +<!-- before this round begins, we have a chat session --> >> > +<entry key="chat-enabled">true</entry> >> > >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 3 Instructions</h3> >> > <hr> >> > <p> >> > -Round 3 is the same as round 2. >> > +Round 3 is the same as round 2.</p> >> > +<p> >> > +The length of this round is again four minutes. >> > </p> >> > <p> >> > If you have any questions please raise your hand. <b>Do you have any >> > @@ -31,4 +38,24 @@ >> > </p> >> > ]]> >> > </entry> >> > + >> > + >> > +<entry key="chat-instructions"> >> > +<![CDATA[ >> > +<p> >> > +You can now chat with the other participants in your group for 4 >> > minutes >> > +total. During the chat round, you may communicate about any aspect of >> > the >> > +experiment that you would like to discuss with other participants with >> > whom >> > +you have been matched. You may not promise them side-payments after the >> > +experiment is completed or threaten them with any consequence after the >> > +experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > +we detect that somebody has revealed their identity, we will have to >> > stop the >> > +experiment and remove that person's entire group from the experiment. >> > +</p> >> > +<p> >> > +You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > +chat box. You can send a chat message by typing into the textfield at >> > the >> > +bottom of the screen and pressing the "enter" key. </p> >> > +]]> >> > +</entry> >> > </properties> >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -1,152 +1,36 @@ >> > <?xml version="1.0" encoding="UTF-8"?> >> > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> >> > <properties> >> > -<comment>Foraging XML-ized experiment round configuration</comment> >> > +<comment>Foraging XML experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > +<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > -<entry key="duration">240</entry> >> > >> > -<!-- enable field of vision for tokens and subjects --> >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > -<!-- before this round begins, we have a chat session --> >> > -<entry key="chat-enabled">true</entry> >> > - >> > -<!-- enable sanctioning --> >> > -<entry key="sanction-type">real-time</entry> >> > -<entry key="sanction-cost">1</entry> >> > -<entry key="sanction-multiplier">2</entry> >> > - >> > - >> > -<entry key="initial-distribution">.25</entry> >> > - >> > -<!-- enable quiz --> >> > -<entry key='quiz'>true</entry> >> > -<entry key='q1'>B</entry> >> > -<entry key='q2'>C</entry> >> > -<entry key='q3'>B</entry> >> > -<entry key='q4'>B</entry> >> > - >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 4 Instructions</h3> >> > <hr> >> > + >> > <p> >> > -Round 4 is the same as the previous two rounds with two exceptions. >> > -</p> >> > -<p> >> > -Before the next round starts you can anonymously communicate by text >> > messages >> > -for four minutes with the other participants in your group. You can use >> > this >> > -opportunity to discuss the experiment and coordinate your actions to >> > improve >> > -your earnings. You may not promise side-payments after the experiment >> > is >> > -completed or make any threats. You are also not allowed to reveal your >> > real >> > -identity. We are monitoring the chat traffic while you chat. >> > -</p> >> > -<p> >> > -During the next round you will have the option to reduce the earnings >> > of another >> > -participant at a cost to your own earnings. >> > -</p> >> > +Round 4 is the same as the previous three rounds with two exceptions: >> > <ul> >> > -<li>If you press the numeric key 1-5 corresponding to another >> > participant, you >> > -will reduce the number of tokens they have collected in this round by >> > two >> > -tokens. This will also reduce your own token amount by one token. The >> > decision >> > -whether or when to use this option is up to you. >> > -<li>When you reduce the number of tokens of another participant, they >> > will >> > -receive a message stating that you have reduced their tokens. Likewise, >> > if >> > -another participant reduces your number of tokens, you will also >> > receive a >> > -message. These messages will be displayed on the bottom of your screen. >> > -<li>If your tokens are being reduced or you are reducing another >> > participant's >> > -tokens, you will receive some visual cues. When you are sanctioned >> > your yellow dot will turn red briefly with a blue background. The >> > participant sanctioning you will turn purple with a white background. >> > -<li>You may sanction other participants as long as there are >> > -tokens remaining on the screen and while both you and the other >> > participant >> > -have a positive number of tokens collected during the round. <b>Each >> > time</b> >> > -you press the numeric key corresponding to another participant your >> > token >> > -amount is reduced by <b>one</b>, and their token amount is reduced by >> > -<b>two</b>. <b>Note:</b> You can only remove tokens from a participant >> > that is >> > -visible to you. >> > +<li>You cannot chat with other participants of your group before the >> > round start. >> > +<li>You cannot vote in favor or against the use of sanctioning. No >> > sanctioning will be allowed. >> > </ul> >> > -<p> >> > +</p> >> > >> > <p> >> > -The length of this round is four minutes. >> > -</p> >> > -<p> >> > If you have any questions please raise your hand. <b>Do you have any >> > questions so far?</b> >> > </p> >> > ]]> >> > </entry> >> > - >> > -<entry key="chat-instructions"> >> > -<![CDATA[ >> > -<p> >> > -You can now chat with the other participants in your group for 4 >> > minutes >> > -total. During the chat round, you may communicate about any aspect of >> > the >> > -experiment that you would like to discuss with other participants with >> > whom >> > -you have been matched. You may not promise them side-payments after the >> > -experiment is completed or threaten them with any consequence after the >> > -experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > -we see that somebody reveals his or her identity, we have to stop the >> > -experiment and remove the whole group from which this person is a >> > member out >> > -of this room. >> > -</p> >> > -<p> >> > -You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > -chat box. You can send a chat message by typing into the textfield at >> > the >> > -bottom of the screen and pressing the "enter" key on your keyboard. >> > -</p> >> > -]]> >> > -</entry> >> > -<entry key="quiz-instructions"> >> > -<![CDATA[ >> > -<p>Before the next round begins you must complete the quiz below. You >> > can >> > -only continue when you have answered all questions correctly. If an >> > error is >> > -made you will need to answer the questions again. >> > -</p> >> > - >> > -<form> >> > -<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my >> > tokens will be reduced >> > -by:</span><br> >> > -<input type="radio" name="q1" value="A">A. 0 tokens<br> >> > -<input type="radio" name="q1" value="B">B. 1 token<br> >> > -<input type="radio" name="q1" value="C">C. 2 tokens<br> >> > -<input type="radio" name="q1" value="D">D. 4 tokens<br> >> > -<br><br> >> > - >> > -<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the >> > number of tokens of the >> > -corresponding participant is reduced by:</span><br> >> > -<input type="radio" name="q2" value="A">A. 0 tokens<br> >> > -<input type="radio" name="q2" value="B">B. 1 token<br> >> > -<input type="radio" name="q2" value="C">C. 2 tokens<br> >> > -<input type="radio" name="q2" value="D">D. 4 tokens<br> >> > -<br><br> >> > - >> > -<span class='q3'>Q3. The background of your yellow dot <img >> > src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this >> > represent?</span><br> >> > -<input type="radio" name="q3" value="A">A. You collected a token<br> >> > -<input type="radio" name="q3" value="B">B. Another participant is >> > subtracting two >> > -tokens from you<br> >> > -<input type="radio" name="q3" value="C">C. You are subtracting two >> > tokens from another >> > -participant<br> >> > -<input type="radio" name="q3" value="D">D. You are moving too fast<br> >> > -<br><br> >> > - >> > -<span class='q4'>Q4. Every time I press the numeric keys between >> > 1-5:</span><br> >> > -<input type="radio" name="q4" value="A">A. Two tokens are subtracted >> > from my tokens >> > -collected this round<br> >> > -<input type="radio" name="q4" value="B">B. One token is subtracted from >> > my tokens >> > -collected this round<br> >> > -<input type="radio" name="q4" value="C">C. The background of my yellow >> > dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue >> > -momentarily<br> >> > -<input type="radio" name="q4" value="D">D. My yellow dot <img >> > src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> >> > - >> > -<input type="submit" name="submit" value="Submit"> >> > -</form> >> > -]]> >> > -</entry> >> > </properties> >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -4,35 +4,26 @@ >> > <comment>Foraging XML-ized experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > +<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > -<entry key="duration">240</entry> >> > >> > + >> > <!-- enable field of vision for tokens and subjects --> >> > +<entry key='initial-distribution'>.25</entry> >> > + >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > >> > -<!-- enable sanctioning --> >> > -<entry key="sanction-type">real-time</entry> >> > -<entry key="sanction-cost">1</entry> >> > -<entry key="sanction-multiplier">2</entry> >> > - >> > -<entry key="initial-distribution">.25</entry> >> > - >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > -<!-- before this round begins, we have a chat session --> >> > -<entry key="chat-enabled">true</entry> >> > - >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 5 Instructions</h3> >> > <hr> >> > <p> >> > -Round 5 is the same as round 4.</p> >> > -<p> >> > -The length of this round is again four minutes. >> > +Round 5 is the same as round 4. >> > </p> >> > <p> >> > If you have any questions please raise your hand. <b>Do you have any >> > @@ -40,35 +31,4 @@ >> > </p> >> > ]]> >> > </entry> >> > - >> > -<entry key="chat-instructions"> >> > -<![CDATA[ >> > -<p> >> > -You can now chat with the other participants in your group for 4 >> > minutes >> > -total. During the chat round, you may communicate about any aspect of >> > the >> > -experiment that you would like to discuss with other participants with >> > whom >> > -you have been matched. You may not promise them side-payments after the >> > -experiment is completed or threaten them with any consequence after the >> > -experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > -we see that somebody reveals his or her identity, we have to stop the >> > -experiment and remove the whole group from which this person is a >> > member out >> > -of this room. >> > -</p> >> > -<p> >> > -You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > -chat box. You can send a chat message by typing into the textfield at >> > the >> > -bottom of the screen and pressing the "enter" key on your keyboard. >> > -</p> >> > -]]> >> > -</entry> >> > - >> > -<entry key='private-chat-instructions'> >> > -<![CDATA[ >> > -You may send private messages to a specific participant by clicking on >> > the >> > -appropriately labeled button (1, 2, 3, 4, or 5) before typing your >> > message in >> > -the chat box and sending it. By default you are communicating with all >> > -members of your group. >> > -]]> >> > -</entry> >> > - >> > </properties> >> > >> > Modified: >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml >> > =================================================================== >> > --- >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml >> > 2010-04-07 18:59:56 UTC (rev 503) >> > +++ >> > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml >> > 2010-04-07 19:03:02 UTC (rev 504) >> > @@ -4,33 +4,26 @@ >> > <comment>Foraging XML-ized experiment round configuration</comment> >> > <entry key="display-group-tokens">true</entry> >> > <entry key="clients-per-group">5</entry> >> > +<entry key="duration">240</entry> >> > <entry key="resource-depth">29</entry> >> > <entry key="resource-width">29</entry> >> > -<entry key="duration">240</entry> >> > >> > +<!-- enable field of vision for tokens and subjects --> >> > <entry key='tokens-field-of-vision'>true</entry> >> > <entry key='subjects-field-of-vision'>true</entry> >> > -<!-- enable sanctioning --> >> > -<entry key="sanction-type">real-time</entry> >> > -<entry key="sanction-cost">1</entry> >> > -<entry key="sanction-multiplier">2</entry> >> > >> > -<entry key="initial-distribution">.25</entry> >> > - >> > <entry key='always-explicit'>true</entry> >> > <entry key='max-cell-occupancy'>1</entry> >> > >> > -<!-- before this round begins, we have a chat session --> >> > -<entry key="chat-enabled">true</entry> >> > +<!-- resource regrowth parameters --> >> > +<entry key="initial-distribution">.25</entry> >> > >> > <entry key="instructions"> >> > <![CDATA[ >> > <h3>Round 6 Instructions</h3> >> > <hr> >> > <p> >> > -Round 6 is the same as round 5.</p> >> > -<p> >> > -The length of this round is again four minutes. >> > +Round 6 is the same as round 5. >> > </p> >> > <p> >> > If you have any questions please raise your hand. <b>Do you have any >> > @@ -58,22 +51,4 @@ >> > ]]> >> > </entry> >> > >> > -<entry key="chat-instructions"> >> > -<![CDATA[ >> > -<p> >> > -You can now chat with the other participants in your group for 4 >> > minutes >> > -total. During the chat round, you may communicate about any aspect of >> > the >> > -experiment that you would like to discuss with other participants with >> > whom >> > -you have been matched. You may not promise them side-payments after the >> > -experiment is completed or threaten them with any consequence after the >> > -experiment is finished. We are monitoring the chat traffic while you >> > chat. If >> > -we detect that somebody has revealed their identity, we will have to >> > stop the >> > -experiment and remove that person's entire group from the experiment. >> > -</p> >> > -<p> >> > -You will see other participants labeled as "1", "2","3", "4", or "5" in >> > the >> > -chat box. You can send a chat message by typing into the textfield at >> > the >> > -bottom of the screen and pressing the "enter" key. </p> >> > -]]> >> > -</entry> >> > </properties> >> > >> > >> > This was sent by the SourceForge.net collaborative development platform, >> > the world's largest Open Source development site. >> > >> > >> > ------------------------------------------------------------------------------ >> > Download Intel® Parallel Studio Eval >> > Try the new software tools for yourself. Speed compiling, find bugs >> > proactively, and fine-tune applications for parallel performance. >> > See why Intel Parallel Studio got high marks during beta. >> > http://p.sf.net/sfu/intel-sw-dev >> > _______________________________________________ >> > 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 > > > > -- > Thanks and Regards, > Deepak Barge > Graduate Student > Master of Science in Computer Science > School of Computing and Informatics > Arizona State University > Contact: Cell No:480-208-8619 > > -- 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: DEEPAK B. <db...@as...> - 2010-04-07 19:26:42
|
Allen, I have followed the same thing. I have not changed the files in the src/main/configuration. I have created a new folder and added the new files to them. I have not changed the files of the previous treatment. On Wed, Apr 7, 2010 at 12:22 PM, Allen Lee <All...@as...> wrote: > Deepak, > > 1. Stop committing the configuration files into > src/main/resources/configuration and double check what you are > committing before they go to the server. You can do this in Eclipse > via Team -> Synchronize with Repository or by being careful on the > command-line. > > 2. When we have changes in experiment treatment, create a new, > appropriately named, configuration folder under asu-experiments and > add the configuration files there. Do not modify the configuration > files for a previous treatment. So in this case, instead of modifying > the configuration files in voting-limitedvision, create a new folder, > for example, 'voting-limitedvision-reversed' and add the configuration > files there. Is that clear? > > > On Wed, Apr 7, 2010 at 12:03 PM, <db...@us...> wrote: > > Revision: 504 > > > http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=504&view=rev > > Author: dbarge > > Date: 2010-04-07 19:03:02 +0000 (Wed, 07 Apr 2010) > > > > Log Message: > > ----------- > > Changes the configuration files for 04/07 experiments > > - Rounds are reversed starting with 3 communication and voting rounds > > - Instructions are also changes accordingly. > > > > Modified Paths: > > -------------- > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > > > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -31,9 +31,8 @@ > > press the <b>R</b> key you will reset the resource to its initial > distribution, > > randomly filling half of the cells. > > </p> > > -<p><b> Please do not communicate with any other > participant.</b></p> > > -<p>If you have any questions please raise your hand. <b>Do you have any > > -questions so far?</b></p> > > +<p><b>Please do not communicate with any other participant.</b></p> > > +<p>If you have any questions please raise your hand. <b>Do you have any > questions so far?</b></p> > > ]]> > > </entry> > > > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -1,52 +1,164 @@ > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > > <properties> > > -<comment>Foraging XML experiment round configuration</comment> > > +<comment>Foraging XML-ized experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > -<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > +<entry key="duration">240</entry> > > > > +<!-- enable field of vision for tokens and subjects --> > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > +<!-- before this round begins, we have a chat session --> > > +<entry key="chat-enabled">true</entry> > > + > > +<!-- enable sanctioning --> > > +<entry key="sanction-type">real-time</entry> > > +<entry key="sanction-cost">1</entry> > > +<entry key="sanction-multiplier">2</entry> > > + > > + > > +<entry key="initial-distribution">.25</entry> > > + > > +<!-- enable quiz --> > > +<entry key='quiz'>true</entry> > > +<entry key='q1'>B</entry> > > +<entry key='q2'>C</entry> > > +<entry key='q3'>B</entry> > > +<entry key='q4'>B</entry> > > + > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 1 Instructions</h3> > > <hr> > > <p> > > -This is the first round of the experiment. The length of the round is 4 > > -minutes. Like in the practice round you can collect green tokens. This > time > > -you earn <b>two cents</b> for each token collected. This time you > > -<b>cannot</b> reset the distribution of green tokens. > > +This is the first round of the experiment. The length of the round is 4 > minutes. Like in the practice round you can collect green tokens. This time > you earn two cents for each token collected. This time you cannot reset the > distribution of green tokens. > > </p> > > <p> > > -In this round the renewable resource will become five times bigger. You > will share this > > -larger environment with four other players in this room that have been > randomly > > -selected. One group's resource environment is distinct from the other > groups. > > +In this round the renewable resource will become five times bigger. You > will share this larger environment with four other players in this room that > have been randomly selected. One group's resource environment is distinct > from the other groups. > > </p> > > <p> > > -Each of you has been assigned a number from 1 to 5. These numbers will > remain the > > -same throughout the experiment but you will <b>not</b> be able to > identify which > > -person in the room has been assigned which number, so your anonymity is > guaranteed. > > - > > -The other four players will appear on the screen as blue dots > > -<img src="@CODEBASE_URL@/images/gem-other.gif"> with a white > > -number embedded in the dot. On the top right corner of the screen you > can see > > -how many tokens each player has collected. On the top left corner of the > screen you can see > > -a clock that displays the remaining time in the round.</p> > > -<p>Since you can only see the resource within your vision you may > neither see all > > -the other participants nor all the resource units. The figure below > indicates the > > -vision range compared to the whole environment</p> > > +Each of you has been assigned a number from 1 to 5. These numbers will > remain the same throughout the experiment but you will not be able to > identify which person in the room has been assigned which number, so your > anonymity is guaranteed. > > +</p> > > +<p> > > +The other four players will appear on the screen as blue dots <img > src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in > the dot. On the top right corner of the screen you can see how many tokens > each player has collected. On the top left corner of the screen you can see > a clock that displays the remaining time in the round. > > +Since you can only see the resource within your vision you may neither > see all the other participants nor all the resource units. The figure below > indicates the vision range compared to the whole environment > > +</p> > > <img src="@CODEBASE_URL@/images/vision-range.jpg"> > > +<p><b>Do you have any questions so far?</b></p> > > <p> > > +Before the next round starts you can anonymously communicate by text > messages > > +for four minutes with the other participants in your group. You can use > this > > +opportunity to discuss the experiment and coordinate your actions to > improve > > +your earnings. You may not promise side-payments after the experiment is > > +completed or make any threats. You are also not allowed to reveal your > real > > +identity. We are monitoring the chat traffic while you chat. > > +</p> > > +<p> > > +During the next round you will have the option to reduce the earnings of > another > > +participant at a cost to your own earnings. > > +</p> > > +<ul> > > +<li>If you press the numeric key 1-5 corresponding to another > participant, you > > +will reduce the number of tokens they have collected in this round by > two > > +tokens. This will also reduce your own token amount by one token. The > decision > > +whether or when to use this option is up to you. > > +<li>When you reduce the number of tokens of another participant, they > will > > +receive a message stating that you have reduced their tokens. Likewise, > if > > +another participant reduces your number of tokens, you will also receive > a > > +message. These messages will be displayed on the bottom of your screen. > > +<li>If your tokens are being reduced or you are reducing another > participant's > > +tokens, you will receive some visual cues. When you are sanctioned your > yellow dot will turn red briefly with a blue background. The participant > sanctioning you will turn purple with a white background. > > +<li>You may sanction other participants as long as there are > > +tokens remaining on the screen and while both you and the other > participant > > +have a positive number of tokens collected during the round. <b>Each > time</b> > > +you press the numeric key corresponding to another participant your > token > > +amount is reduced by <b>one</b>, and their token amount is reduced by > > +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant > that is > > +visible to you. > > +</ul> > > +<p> > > + > > +<p> > > +The length of this round is four minutes. > > +</p> > > +<p> > > If you have any questions please raise your hand. <b>Do you have any > > questions so far?</b> > > </p> > > ]]> > > </entry> > > + > > +<entry key="chat-instructions"> > > +<![CDATA[ > > +<p> > > +You can now chat with the other participants in your group for 4 minutes > > +total. During the chat round, you may communicate about any aspect of > the > > +experiment that you would like to discuss with other participants with > whom > > +you have been matched. You may not promise them side-payments after the > > +experiment is completed or threaten them with any consequence after the > > +experiment is finished. We are monitoring the chat traffic while you > chat. If > > +we see that somebody reveals his or her identity, we have to stop the > > +experiment and remove the whole group from which this person is a member > out > > +of this room. > > +</p> > > +<p> > > +You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > +chat box. You can send a chat message by typing into the textfield at > the > > +bottom of the screen and pressing the "enter" key on your keyboard. > > +</p> > > +]]> > > +</entry> > > +<entry key="quiz-instructions"> > > +<![CDATA[ > > +<p>Before the next round begins you must complete the quiz below. You > can > > +only continue when you have answered all questions correctly. If an > error is > > +made you will need to answer the questions again. > > +</p> > > + > > +<form> > > +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my > tokens will be reduced > > +by:</span><br> > > +<input type="radio" name="q1" value="A">A. 0 tokens<br> > > +<input type="radio" name="q1" value="B">B. 1 token<br> > > +<input type="radio" name="q1" value="C">C. 2 tokens<br> > > +<input type="radio" name="q1" value="D">D. 4 tokens<br> > > +<br><br> > > + > > +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the > number of tokens of the > > +corresponding participant is reduced by:</span><br> > > +<input type="radio" name="q2" value="A">A. 0 tokens<br> > > +<input type="radio" name="q2" value="B">B. 1 token<br> > > +<input type="radio" name="q2" value="C">C. 2 tokens<br> > > +<input type="radio" name="q2" value="D">D. 4 tokens<br> > > +<br><br> > > + > > +<span class='q3'>Q3. The background of your yellow dot <img > src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this > represent?</span><br> > > +<input type="radio" name="q3" value="A">A. You collected a token<br> > > +<input type="radio" name="q3" value="B">B. Another participant is > subtracting two > > +tokens from you<br> > > +<input type="radio" name="q3" value="C">C. You are subtracting two > tokens from another > > +participant<br> > > +<input type="radio" name="q3" value="D">D. You are moving too fast<br> > > +<br><br> > > + > > +<span class='q4'>Q4. Every time I press the numeric keys between > 1-5:</span><br> > > +<input type="radio" name="q4" value="A">A. Two tokens are subtracted > from my tokens > > +collected this round<br> > > +<input type="radio" name="q4" value="B">B. One token is subtracted from > my tokens > > +collected this round<br> > > +<input type="radio" name="q4" value="C">C. The background of my yellow > dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue > > +momentarily<br> > > +<input type="radio" name="q4" value="D">D. My yellow dot <img > src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> > > + > > +<input type="submit" name="submit" value="Submit"> > > +</form> > > +]]> > > +</entry> > > </properties> > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -4,26 +4,35 @@ > > <comment>Foraging XML-ized experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > -<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > +<entry key="duration">240</entry> > > > > - > > <!-- enable field of vision for tokens and subjects --> > > -<entry key='initial-distribution'>.25</entry> > > - > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > > > +<!-- enable sanctioning --> > > +<entry key="sanction-type">real-time</entry> > > +<entry key="sanction-cost">1</entry> > > +<entry key="sanction-multiplier">2</entry> > > + > > +<entry key="initial-distribution">.25</entry> > > + > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > +<!-- before this round begins, we have a chat session --> > > +<entry key="chat-enabled">true</entry> > > + > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 2 Instructions</h3> > > <hr> > > <p> > > -Round 2 is the same as round 1. > > +Round 2 is the same as round 1.</p> > > +<p> > > +The length of this round is again four minutes. > > </p> > > <p> > > If you have any questions please raise your hand. <b>Do you have any > > @@ -31,4 +40,35 @@ > > </p> > > ]]> > > </entry> > > + > > +<entry key="chat-instructions"> > > +<![CDATA[ > > +<p> > > +You can now chat with the other participants in your group for 4 minutes > > +total. During the chat round, you may communicate about any aspect of > the > > +experiment that you would like to discuss with other participants with > whom > > +you have been matched. You may not promise them side-payments after the > > +experiment is completed or threaten them with any consequence after the > > +experiment is finished. We are monitoring the chat traffic while you > chat. If > > +we see that somebody reveals his or her identity, we have to stop the > > +experiment and remove the whole group from which this person is a member > out > > +of this room. > > +</p> > > +<p> > > +You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > +chat box. You can send a chat message by typing into the textfield at > the > > +bottom of the screen and pressing the "enter" key on your keyboard. > > +</p> > > +]]> > > +</entry> > > + > > +<entry key='private-chat-instructions'> > > +<![CDATA[ > > +You may send private messages to a specific participant by clicking on > the > > +appropriately labeled button (1, 2, 3, 4, or 5) before typing your > message in > > +the chat box and sending it. By default you are communicating with all > > +members of your group. > > +]]> > > +</entry> > > + > > </properties> > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -4,26 +4,33 @@ > > <comment>Foraging XML-ized experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > -<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > +<entry key="duration">240</entry> > > > > -<!-- enable field of vision for tokens and subjects --> > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > +<!-- enable sanctioning --> > > +<entry key="sanction-type">real-time</entry> > > +<entry key="sanction-cost">1</entry> > > +<entry key="sanction-multiplier">2</entry> > > > > +<entry key="initial-distribution">.25</entry> > > + > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > -<!-- resource regrowth parameters --> > > -<entry key="initial-distribution">.25</entry> > > +<!-- before this round begins, we have a chat session --> > > +<entry key="chat-enabled">true</entry> > > > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 3 Instructions</h3> > > <hr> > > <p> > > -Round 3 is the same as round 2. > > +Round 3 is the same as round 2.</p> > > +<p> > > +The length of this round is again four minutes. > > </p> > > <p> > > If you have any questions please raise your hand. <b>Do you have any > > @@ -31,4 +38,24 @@ > > </p> > > ]]> > > </entry> > > + > > + > > +<entry key="chat-instructions"> > > +<![CDATA[ > > +<p> > > +You can now chat with the other participants in your group for 4 minutes > > +total. During the chat round, you may communicate about any aspect of > the > > +experiment that you would like to discuss with other participants with > whom > > +you have been matched. You may not promise them side-payments after the > > +experiment is completed or threaten them with any consequence after the > > +experiment is finished. We are monitoring the chat traffic while you > chat. If > > +we detect that somebody has revealed their identity, we will have to > stop the > > +experiment and remove that person's entire group from the experiment. > > +</p> > > +<p> > > +You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > +chat box. You can send a chat message by typing into the textfield at > the > > +bottom of the screen and pressing the "enter" key. </p> > > +]]> > > +</entry> > > </properties> > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -1,152 +1,36 @@ > > <?xml version="1.0" encoding="UTF-8"?> > > <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> > > <properties> > > -<comment>Foraging XML-ized experiment round configuration</comment> > > +<comment>Foraging XML experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > +<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > -<entry key="duration">240</entry> > > > > -<!-- enable field of vision for tokens and subjects --> > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > -<!-- before this round begins, we have a chat session --> > > -<entry key="chat-enabled">true</entry> > > - > > -<!-- enable sanctioning --> > > -<entry key="sanction-type">real-time</entry> > > -<entry key="sanction-cost">1</entry> > > -<entry key="sanction-multiplier">2</entry> > > - > > - > > -<entry key="initial-distribution">.25</entry> > > - > > -<!-- enable quiz --> > > -<entry key='quiz'>true</entry> > > -<entry key='q1'>B</entry> > > -<entry key='q2'>C</entry> > > -<entry key='q3'>B</entry> > > -<entry key='q4'>B</entry> > > - > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 4 Instructions</h3> > > <hr> > > + > > <p> > > -Round 4 is the same as the previous two rounds with two exceptions. > > -</p> > > -<p> > > -Before the next round starts you can anonymously communicate by text > messages > > -for four minutes with the other participants in your group. You can use > this > > -opportunity to discuss the experiment and coordinate your actions to > improve > > -your earnings. You may not promise side-payments after the experiment is > > -completed or make any threats. You are also not allowed to reveal your > real > > -identity. We are monitoring the chat traffic while you chat. > > -</p> > > -<p> > > -During the next round you will have the option to reduce the earnings of > another > > -participant at a cost to your own earnings. > > -</p> > > +Round 4 is the same as the previous three rounds with two exceptions: > > <ul> > > -<li>If you press the numeric key 1-5 corresponding to another > participant, you > > -will reduce the number of tokens they have collected in this round by > two > > -tokens. This will also reduce your own token amount by one token. The > decision > > -whether or when to use this option is up to you. > > -<li>When you reduce the number of tokens of another participant, they > will > > -receive a message stating that you have reduced their tokens. Likewise, > if > > -another participant reduces your number of tokens, you will also receive > a > > -message. These messages will be displayed on the bottom of your screen. > > -<li>If your tokens are being reduced or you are reducing another > participant's > > -tokens, you will receive some visual cues. When you are sanctioned your > yellow dot will turn red briefly with a blue background. The participant > sanctioning you will turn purple with a white background. > > -<li>You may sanction other participants as long as there are > > -tokens remaining on the screen and while both you and the other > participant > > -have a positive number of tokens collected during the round. <b>Each > time</b> > > -you press the numeric key corresponding to another participant your > token > > -amount is reduced by <b>one</b>, and their token amount is reduced by > > -<b>two</b>. <b>Note:</b> You can only remove tokens from a participant > that is > > -visible to you. > > +<li>You cannot chat with other participants of your group before the > round start. > > +<li>You cannot vote in favor or against the use of sanctioning. No > sanctioning will be allowed. > > </ul> > > -<p> > > +</p> > > > > <p> > > -The length of this round is four minutes. > > -</p> > > -<p> > > If you have any questions please raise your hand. <b>Do you have any > > questions so far?</b> > > </p> > > ]]> > > </entry> > > - > > -<entry key="chat-instructions"> > > -<![CDATA[ > > -<p> > > -You can now chat with the other participants in your group for 4 minutes > > -total. During the chat round, you may communicate about any aspect of > the > > -experiment that you would like to discuss with other participants with > whom > > -you have been matched. You may not promise them side-payments after the > > -experiment is completed or threaten them with any consequence after the > > -experiment is finished. We are monitoring the chat traffic while you > chat. If > > -we see that somebody reveals his or her identity, we have to stop the > > -experiment and remove the whole group from which this person is a member > out > > -of this room. > > -</p> > > -<p> > > -You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > -chat box. You can send a chat message by typing into the textfield at > the > > -bottom of the screen and pressing the "enter" key on your keyboard. > > -</p> > > -]]> > > -</entry> > > -<entry key="quiz-instructions"> > > -<![CDATA[ > > -<p>Before the next round begins you must complete the quiz below. You > can > > -only continue when you have answered all questions correctly. If an > error is > > -made you will need to answer the questions again. > > -</p> > > - > > -<form> > > -<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my > tokens will be reduced > > -by:</span><br> > > -<input type="radio" name="q1" value="A">A. 0 tokens<br> > > -<input type="radio" name="q1" value="B">B. 1 token<br> > > -<input type="radio" name="q1" value="C">C. 2 tokens<br> > > -<input type="radio" name="q1" value="D">D. 4 tokens<br> > > -<br><br> > > - > > -<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the > number of tokens of the > > -corresponding participant is reduced by:</span><br> > > -<input type="radio" name="q2" value="A">A. 0 tokens<br> > > -<input type="radio" name="q2" value="B">B. 1 token<br> > > -<input type="radio" name="q2" value="C">C. 2 tokens<br> > > -<input type="radio" name="q2" value="D">D. 4 tokens<br> > > -<br><br> > > - > > -<span class='q3'>Q3. The background of your yellow dot <img > src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this > represent?</span><br> > > -<input type="radio" name="q3" value="A">A. You collected a token<br> > > -<input type="radio" name="q3" value="B">B. Another participant is > subtracting two > > -tokens from you<br> > > -<input type="radio" name="q3" value="C">C. You are subtracting two > tokens from another > > -participant<br> > > -<input type="radio" name="q3" value="D">D. You are moving too fast<br> > > -<br><br> > > - > > -<span class='q4'>Q4. Every time I press the numeric keys between > 1-5:</span><br> > > -<input type="radio" name="q4" value="A">A. Two tokens are subtracted > from my tokens > > -collected this round<br> > > -<input type="radio" name="q4" value="B">B. One token is subtracted from > my tokens > > -collected this round<br> > > -<input type="radio" name="q4" value="C">C. The background of my yellow > dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue > > -momentarily<br> > > -<input type="radio" name="q4" value="D">D. My yellow dot <img > src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> > > - > > -<input type="submit" name="submit" value="Submit"> > > -</form> > > -]]> > > -</entry> > > </properties> > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -4,35 +4,26 @@ > > <comment>Foraging XML-ized experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > +<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > -<entry key="duration">240</entry> > > > > + > > <!-- enable field of vision for tokens and subjects --> > > +<entry key='initial-distribution'>.25</entry> > > + > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > > > -<!-- enable sanctioning --> > > -<entry key="sanction-type">real-time</entry> > > -<entry key="sanction-cost">1</entry> > > -<entry key="sanction-multiplier">2</entry> > > - > > -<entry key="initial-distribution">.25</entry> > > - > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > -<!-- before this round begins, we have a chat session --> > > -<entry key="chat-enabled">true</entry> > > - > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 5 Instructions</h3> > > <hr> > > <p> > > -Round 5 is the same as round 4.</p> > > -<p> > > -The length of this round is again four minutes. > > +Round 5 is the same as round 4. > > </p> > > <p> > > If you have any questions please raise your hand. <b>Do you have any > > @@ -40,35 +31,4 @@ > > </p> > > ]]> > > </entry> > > - > > -<entry key="chat-instructions"> > > -<![CDATA[ > > -<p> > > -You can now chat with the other participants in your group for 4 minutes > > -total. During the chat round, you may communicate about any aspect of > the > > -experiment that you would like to discuss with other participants with > whom > > -you have been matched. You may not promise them side-payments after the > > -experiment is completed or threaten them with any consequence after the > > -experiment is finished. We are monitoring the chat traffic while you > chat. If > > -we see that somebody reveals his or her identity, we have to stop the > > -experiment and remove the whole group from which this person is a member > out > > -of this room. > > -</p> > > -<p> > > -You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > -chat box. You can send a chat message by typing into the textfield at > the > > -bottom of the screen and pressing the "enter" key on your keyboard. > > -</p> > > -]]> > > -</entry> > > - > > -<entry key='private-chat-instructions'> > > -<![CDATA[ > > -You may send private messages to a specific participant by clicking on > the > > -appropriately labeled button (1, 2, 3, 4, or 5) before typing your > message in > > -the chat box and sending it. By default you are communicating with all > > -members of your group. > > -]]> > > -</entry> > > - > > </properties> > > > > Modified: > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > > =================================================================== > > --- > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > 2010-04-07 18:59:56 UTC (rev 503) > > +++ > foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml > 2010-04-07 19:03:02 UTC (rev 504) > > @@ -4,33 +4,26 @@ > > <comment>Foraging XML-ized experiment round configuration</comment> > > <entry key="display-group-tokens">true</entry> > > <entry key="clients-per-group">5</entry> > > +<entry key="duration">240</entry> > > <entry key="resource-depth">29</entry> > > <entry key="resource-width">29</entry> > > -<entry key="duration">240</entry> > > > > +<!-- enable field of vision for tokens and subjects --> > > <entry key='tokens-field-of-vision'>true</entry> > > <entry key='subjects-field-of-vision'>true</entry> > > -<!-- enable sanctioning --> > > -<entry key="sanction-type">real-time</entry> > > -<entry key="sanction-cost">1</entry> > > -<entry key="sanction-multiplier">2</entry> > > > > -<entry key="initial-distribution">.25</entry> > > - > > <entry key='always-explicit'>true</entry> > > <entry key='max-cell-occupancy'>1</entry> > > > > -<!-- before this round begins, we have a chat session --> > > -<entry key="chat-enabled">true</entry> > > +<!-- resource regrowth parameters --> > > +<entry key="initial-distribution">.25</entry> > > > > <entry key="instructions"> > > <![CDATA[ > > <h3>Round 6 Instructions</h3> > > <hr> > > <p> > > -Round 6 is the same as round 5.</p> > > -<p> > > -The length of this round is again four minutes. > > +Round 6 is the same as round 5. > > </p> > > <p> > > If you have any questions please raise your hand. <b>Do you have any > > @@ -58,22 +51,4 @@ > > ]]> > > </entry> > > > > -<entry key="chat-instructions"> > > -<![CDATA[ > > -<p> > > -You can now chat with the other participants in your group for 4 minutes > > -total. During the chat round, you may communicate about any aspect of > the > > -experiment that you would like to discuss with other participants with > whom > > -you have been matched. You may not promise them side-payments after the > > -experiment is completed or threaten them with any consequence after the > > -experiment is finished. We are monitoring the chat traffic while you > chat. If > > -we detect that somebody has revealed their identity, we will have to > stop the > > -experiment and remove that person's entire group from the experiment. > > -</p> > > -<p> > > -You will see other participants labeled as "1", "2","3", "4", or "5" in > the > > -chat box. You can send a chat message by typing into the textfield at > the > > -bottom of the screen and pressing the "enter" key. </p> > > -]]> > > -</entry> > > </properties> > > > > > > This was sent by the SourceForge.net collaborative development platform, > the world's largest Open Source development site. > > > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > _______________________________________________ > > 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 > -- Thanks and Regards, Deepak Barge Graduate Student Master of Science in Computer Science School of Computing and Informatics Arizona State University Contact: Cell No:480-208-8619 |
From: <db...@us...> - 2010-04-07 19:03:17
|
Revision: 504 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=504&view=rev Author: dbarge Date: 2010-04-07 19:03:02 +0000 (Wed, 07 Apr 2010) Log Message: ----------- Changes the configuration files for 04/07 experiments - Rounds are reversed starting with 3 communication and voting rounds - Instructions are also changes accordingly. Modified Paths: -------------- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -31,9 +31,8 @@ press the <b>R</b> key you will reset the resource to its initial distribution, randomly filling half of the cells. </p> -<p><b> Please do not communicate with any other participant.</b></p> -<p>If you have any questions please raise your hand. <b>Do you have any -questions so far?</b></p> +<p><b>Please do not communicate with any other participant.</b></p> +<p>If you have any questions please raise your hand. <b>Do you have any questions so far?</b></p> ]]> </entry> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round1.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -1,52 +1,164 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> -<comment>Foraging XML experiment round configuration</comment> +<comment>Foraging XML-ized experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> +<entry key="duration">240</entry> +<!-- enable field of vision for tokens and subjects --> <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + + +<entry key="initial-distribution">.25</entry> + +<!-- enable quiz --> +<entry key='quiz'>true</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> + <entry key="instructions"> <![CDATA[ <h3>Round 1 Instructions</h3> <hr> <p> -This is the first round of the experiment. The length of the round is 4 -minutes. Like in the practice round you can collect green tokens. This time -you earn <b>two cents</b> for each token collected. This time you -<b>cannot</b> reset the distribution of green tokens. +This is the first round of the experiment. The length of the round is 4 minutes. Like in the practice round you can collect green tokens. This time you earn two cents for each token collected. This time you cannot reset the distribution of green tokens. </p> <p> -In this round the renewable resource will become five times bigger. You will share this -larger environment with four other players in this room that have been randomly -selected. One group's resource environment is distinct from the other groups. +In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly selected. One group's resource environment is distinct from the other groups. </p> <p> -Each of you has been assigned a number from 1 to 5. These numbers will remain the -same throughout the experiment but you will <b>not</b> be able to identify which -person in the room has been assigned which number, so your anonymity is guaranteed. - -The other four players will appear on the screen as blue dots -<img src="@CODEBASE_URL@/images/gem-other.gif"> with a white -number embedded in the dot. On the top right corner of the screen you can see -how many tokens each player has collected. On the top left corner of the screen you can see -a clock that displays the remaining time in the round.</p> -<p>Since you can only see the resource within your vision you may neither see all -the other participants nor all the resource units. The figure below indicates the -vision range compared to the whole environment</p> +Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will not be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. +</p> +<p> +The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round. +Since you can only see the resource within your vision you may neither see all the other participants nor all the resource units. The figure below indicates the vision range compared to the whole environment +</p> <img src="@CODEBASE_URL@/images/vision-range.jpg"> +<p><b>Do you have any questions so far?</b></p> <p> +Before the next round starts you can anonymously communicate by text messages +for four minutes with the other participants in your group. You can use this +opportunity to discuss the experiment and coordinate your actions to improve +your earnings. You may not promise side-payments after the experiment is +completed or make any threats. You are also not allowed to reveal your real +identity. We are monitoring the chat traffic while you chat. +</p> +<p> +During the next round you will have the option to reduce the earnings of another +participant at a cost to your own earnings. +</p> +<ul> +<li>If you press the numeric key 1-5 corresponding to another participant, you +will reduce the number of tokens they have collected in this round by two +tokens. This will also reduce your own token amount by one token. The decision +whether or when to use this option is up to you. +<li>When you reduce the number of tokens of another participant, they will +receive a message stating that you have reduced their tokens. Likewise, if +another participant reduces your number of tokens, you will also receive a +message. These messages will be displayed on the bottom of your screen. +<li>If your tokens are being reduced or you are reducing another participant's +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are +tokens remaining on the screen and while both you and the other participant +have a positive number of tokens collected during the round. <b>Each time</b> +you press the numeric key corresponding to another participant your token +amount is reduced by <b>one</b>, and their token amount is reduced by +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is +visible to you. +</ul> +<p> + +<p> +The length of this round is four minutes. +</p> +<p> If you have any questions please raise your hand. <b>Do you have any questions so far?</b> </p> ]]> </entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> +<entry key="quiz-instructions"> +<![CDATA[ +<p>Before the next round begins you must complete the quiz below. You can +only continue when you have answered all questions correctly. If an error is +made you will need to answer the questions again. +</p> + +<form> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> +<br><br> + +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> +<br><br> + +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two +tokens from you<br> +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another +participant<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> +<br><br> + +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +momentarily<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> + +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> </properties> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -4,26 +4,35 @@ <comment>Foraging XML-ized experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> +<entry key="duration">240</entry> - <!-- enable field of vision for tokens and subjects --> -<entry key='initial-distribution'>.25</entry> - <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + <entry key="instructions"> <![CDATA[ <h3>Round 2 Instructions</h3> <hr> <p> -Round 2 is the same as round 1. +Round 2 is the same as round 1.</p> +<p> +The length of this round is again four minutes. </p> <p> If you have any questions please raise your hand. <b>Do you have any @@ -31,4 +40,35 @@ </p> ]]> </entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> + +<entry key='private-chat-instructions'> +<![CDATA[ +You may send private messages to a specific participant by clicking on the +appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in +the chat box and sending it. By default you are communicating with all +members of your group. +]]> +</entry> + </properties> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round3.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -4,26 +4,33 @@ <comment>Foraging XML-ized experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> -<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> +<entry key="duration">240</entry> -<!-- enable field of vision for tokens and subjects --> <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> +<entry key="initial-distribution">.25</entry> + <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> -<!-- resource regrowth parameters --> -<entry key="initial-distribution">.25</entry> +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> <entry key="instructions"> <![CDATA[ <h3>Round 3 Instructions</h3> <hr> <p> -Round 3 is the same as round 2. +Round 3 is the same as round 2.</p> +<p> +The length of this round is again four minutes. </p> <p> If you have any questions please raise your hand. <b>Do you have any @@ -31,4 +38,24 @@ </p> ]]> </entry> + + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we detect that somebody has revealed their identity, we will have to stop the +experiment and remove that person's entire group from the experiment. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key. </p> +]]> +</entry> </properties> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -1,152 +1,36 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> -<comment>Foraging XML-ized experiment round configuration</comment> +<comment>Foraging XML experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> -<entry key="duration">240</entry> -<!-- enable field of vision for tokens and subjects --> <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> - -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> - - -<entry key="initial-distribution">.25</entry> - -<!-- enable quiz --> -<entry key='quiz'>true</entry> -<entry key='q1'>B</entry> -<entry key='q2'>C</entry> -<entry key='q3'>B</entry> -<entry key='q4'>B</entry> - <entry key="instructions"> <![CDATA[ <h3>Round 4 Instructions</h3> <hr> + <p> -Round 4 is the same as the previous two rounds with two exceptions. -</p> -<p> -Before the next round starts you can anonymously communicate by text messages -for four minutes with the other participants in your group. You can use this -opportunity to discuss the experiment and coordinate your actions to improve -your earnings. You may not promise side-payments after the experiment is -completed or make any threats. You are also not allowed to reveal your real -identity. We are monitoring the chat traffic while you chat. -</p> -<p> -During the next round you will have the option to reduce the earnings of another -participant at a cost to your own earnings. -</p> +Round 4 is the same as the previous three rounds with two exceptions: <ul> -<li>If you press the numeric key 1-5 corresponding to another participant, you -will reduce the number of tokens they have collected in this round by two -tokens. This will also reduce your own token amount by one token. The decision -whether or when to use this option is up to you. -<li>When you reduce the number of tokens of another participant, they will -receive a message stating that you have reduced their tokens. Likewise, if -another participant reduces your number of tokens, you will also receive a -message. These messages will be displayed on the bottom of your screen. -<li>If your tokens are being reduced or you are reducing another participant's -tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. -<li>You may sanction other participants as long as there are -tokens remaining on the screen and while both you and the other participant -have a positive number of tokens collected during the round. <b>Each time</b> -you press the numeric key corresponding to another participant your token -amount is reduced by <b>one</b>, and their token amount is reduced by -<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is -visible to you. +<li>You cannot chat with other participants of your group before the round start. +<li>You cannot vote in favor or against the use of sanctioning. No sanctioning will be allowed. </ul> -<p> +</p> <p> -The length of this round is four minutes. -</p> -<p> If you have any questions please raise your hand. <b>Do you have any questions so far?</b> </p> ]]> </entry> - -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we see that somebody reveals his or her identity, we have to stop the -experiment and remove the whole group from which this person is a member out -of this room. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key on your keyboard. -</p> -]]> -</entry> -<entry key="quiz-instructions"> -<![CDATA[ -<p>Before the next round begins you must complete the quiz below. You can -only continue when you have answered all questions correctly. If an error is -made you will need to answer the questions again. -</p> - -<form> -<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced -by:</span><br> -<input type="radio" name="q1" value="A">A. 0 tokens<br> -<input type="radio" name="q1" value="B">B. 1 token<br> -<input type="radio" name="q1" value="C">C. 2 tokens<br> -<input type="radio" name="q1" value="D">D. 4 tokens<br> -<br><br> - -<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the -corresponding participant is reduced by:</span><br> -<input type="radio" name="q2" value="A">A. 0 tokens<br> -<input type="radio" name="q2" value="B">B. 1 token<br> -<input type="radio" name="q2" value="C">C. 2 tokens<br> -<input type="radio" name="q2" value="D">D. 4 tokens<br> -<br><br> - -<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> -<input type="radio" name="q3" value="A">A. You collected a token<br> -<input type="radio" name="q3" value="B">B. Another participant is subtracting two -tokens from you<br> -<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another -participant<br> -<input type="radio" name="q3" value="D">D. You are moving too fast<br> -<br><br> - -<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> -<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens -collected this round<br> -<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens -collected this round<br> -<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue -momentarily<br> -<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> - -<input type="submit" name="submit" value="Submit"> -</form> -]]> -</entry> </properties> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -4,35 +4,26 @@ <comment>Foraging XML-ized experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> -<entry key="duration">240</entry> + <!-- enable field of vision for tokens and subjects --> +<entry key='initial-distribution'>.25</entry> + <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> - -<entry key="initial-distribution">.25</entry> - <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> - <entry key="instructions"> <![CDATA[ <h3>Round 5 Instructions</h3> <hr> <p> -Round 5 is the same as round 4.</p> -<p> -The length of this round is again four minutes. +Round 5 is the same as round 4. </p> <p> If you have any questions please raise your hand. <b>Do you have any @@ -40,35 +31,4 @@ </p> ]]> </entry> - -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we see that somebody reveals his or her identity, we have to stop the -experiment and remove the whole group from which this person is a member out -of this room. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key on your keyboard. -</p> -]]> -</entry> - -<entry key='private-chat-instructions'> -<![CDATA[ -You may send private messages to a specific participant by clicking on the -appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in -the chat box and sending it. By default you are communicating with all -members of your group. -]]> -</entry> - </properties> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-04-07 18:59:56 UTC (rev 503) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-04-07 19:03:02 UTC (rev 504) @@ -4,33 +4,26 @@ <comment>Foraging XML-ized experiment round configuration</comment> <entry key="display-group-tokens">true</entry> <entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> -<entry key="duration">240</entry> +<!-- enable field of vision for tokens and subjects --> <entry key='tokens-field-of-vision'>true</entry> <entry key='subjects-field-of-vision'>true</entry> -<!-- enable sanctioning --> -<entry key="sanction-type">real-time</entry> -<entry key="sanction-cost">1</entry> -<entry key="sanction-multiplier">2</entry> -<entry key="initial-distribution">.25</entry> - <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> -<!-- before this round begins, we have a chat session --> -<entry key="chat-enabled">true</entry> +<!-- resource regrowth parameters --> +<entry key="initial-distribution">.25</entry> <entry key="instructions"> <![CDATA[ <h3>Round 6 Instructions</h3> <hr> <p> -Round 6 is the same as round 5.</p> -<p> -The length of this round is again four minutes. +Round 6 is the same as round 5. </p> <p> If you have any questions please raise your hand. <b>Do you have any @@ -58,22 +51,4 @@ ]]> </entry> -<entry key="chat-instructions"> -<![CDATA[ -<p> -You can now chat with the other participants in your group for 4 minutes -total. During the chat round, you may communicate about any aspect of the -experiment that you would like to discuss with other participants with whom -you have been matched. You may not promise them side-payments after the -experiment is completed or threaten them with any consequence after the -experiment is finished. We are monitoring the chat traffic while you chat. If -we detect that somebody has revealed their identity, we will have to stop the -experiment and remove that person's entire group from the experiment. -</p> -<p> -You will see other participants labeled as "1", "2","3", "4", or "5" in the -chat box. You can send a chat message by typing into the textfield at the -bottom of the screen and pressing the "enter" key. </p> -]]> -</entry> </properties> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <db...@us...> - 2010-04-07 19:00:17
|
Revision: 503 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=503&view=rev Author: dbarge Date: 2010-04-07 18:59:56 +0000 (Wed, 07 Apr 2010) Log Message: ----------- Changes the configuration files for 04/07 experiments - Rounds are reversed starting with 3 communication and voting rounds - Instructions are also changes accordingly. Added Paths: ----------- foraging/trunk/src/main/resources/configuration/round0.xml foraging/trunk/src/main/resources/configuration/round1.xml foraging/trunk/src/main/resources/configuration/round2.xml foraging/trunk/src/main/resources/configuration/round3.xml foraging/trunk/src/main/resources/configuration/round4.xml foraging/trunk/src/main/resources/configuration/round5.xml foraging/trunk/src/main/resources/configuration/round6.xml foraging/trunk/src/main/resources/configuration/server.xml Added: foraging/trunk/src/main/resources/configuration/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round0.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round0.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="resource-width">13</entry> +<entry key="resource-depth">13</entry> +<entry key="practice-round">true</entry> +<entry key="private-property">true</entry> +<entry key="duration">240</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key="quiz">true</entry> +<entry key="q1">C</entry> +<entry key="q2">B</entry> + +<entry key='instructions'> +<![CDATA[ +<h3>Practice Round Instructions</h3> +<hr> +<p> +You will now have four minutes to practice with the experimental environment. +The decisions you make in this round will NOT influence your earnings. At the +At the beginning of the practice round half of the cells are occupied +with green tokens. The environment is a 13 x 13 grid of cells. +</p> +<p> +During this practice round, and <b>only during</b> this practice round, you are able +to reset the tokens displayed on the screen by pressing the <b>R</b> key. When you +press the <b>R</b> key you will reset the resource to its initial distribution, +randomly filling half of the cells. +</p> +<p><b>Please do not communicate with any other participant.</b></p> +<p>If you have any questions please raise your hand. <b>Do you have any questions so far?</b></p> +]]> +</entry> + +<entry key="quiz-instructions"> +<![CDATA[ +<p> +Before we begin the practice round you need to answer the following questions +correctly. You can only continue when you have answered all questions +correctly. If an error is made you will need to answer the questions again. +</p> +<br> +<form> +<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> +<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> +<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> +<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the +screen.<br> +<input type="radio" name="q1" value="D">D. In order to collect a token you need +to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> +<br><br> + +<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> +<img src="@CODEBASE_URL@/images/question2.jpg"><br> +<input type="radio" name="q2" value="A">A<br> +<input type="radio" name="q2" value="B">B<br> +<input type="radio" name="q2" value="C">C<br> +<br> +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round1.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round1.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + + +<entry key="initial-distribution">.25</entry> + +<!-- enable quiz --> +<entry key='quiz'>true</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 1 Instructions</h3> +<hr> +<p> +This is the first round of the experiment. The length of the round is 4 minutes. Like in the practice round you can collect green tokens. This time you earn two cents for each token collected. This time you cannot reset the distribution of green tokens. +</p> +<p> +In this round the renewable resource will become five times bigger. You will share this larger environment with four other players in this room that have been randomly selected. One group's resource environment is distinct from the other groups. +</p> +<p> +Each of you has been assigned a number from 1 to 5. These numbers will remain the same throughout the experiment but you will not be able to identify which person in the room has been assigned which number, so your anonymity is guaranteed. +</p> +<p> +The other four players will appear on the screen as blue dots <img src="@CODEBASE_URL@/images/gem-other.gif"> with a white number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round. +Since you can only see the resource within your vision you may neither see all the other participants nor all the resource units. The figure below indicates the vision range compared to the whole environment +</p> +<img src="@CODEBASE_URL@/images/vision-range.jpg"> +<p><b>Do you have any questions so far?</b></p> +<p> +Before the next round starts you can anonymously communicate by text messages +for four minutes with the other participants in your group. You can use this +opportunity to discuss the experiment and coordinate your actions to improve +your earnings. You may not promise side-payments after the experiment is +completed or make any threats. You are also not allowed to reveal your real +identity. We are monitoring the chat traffic while you chat. +</p> +<p> +During the next round you will have the option to reduce the earnings of another +participant at a cost to your own earnings. +</p> +<ul> +<li>If you press the numeric key 1-5 corresponding to another participant, you +will reduce the number of tokens they have collected in this round by two +tokens. This will also reduce your own token amount by one token. The decision +whether or when to use this option is up to you. +<li>When you reduce the number of tokens of another participant, they will +receive a message stating that you have reduced their tokens. Likewise, if +another participant reduces your number of tokens, you will also receive a +message. These messages will be displayed on the bottom of your screen. +<li>If your tokens are being reduced or you are reducing another participant's +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are +tokens remaining on the screen and while both you and the other participant +have a positive number of tokens collected during the round. <b>Each time</b> +you press the numeric key corresponding to another participant your token +amount is reduced by <b>one</b>, and their token amount is reduced by +<b>two</b>. <b>Note:</b> You can only remove tokens from a participant that is +visible to you. +</ul> +<p> + +<p> +The length of this round is four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> +<entry key="quiz-instructions"> +<![CDATA[ +<p>Before the next round begins you must complete the quiz below. You can +only continue when you have answered all questions correctly. If an error is +made you will need to answer the questions again. +</p> + +<form> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> +<br><br> + +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> +<br><br> + +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two +tokens from you<br> +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another +participant<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> +<br><br> + +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens +collected this round<br> +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +momentarily<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> + +<input type="submit" name="submit" value="Submit"> +</form> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round2.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round2.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 2 Instructions</h3> +<hr> +<p> +Round 2 is the same as round 1.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we see that somebody reveals his or her identity, we have to stop the +experiment and remove the whole group from which this person is a member out +of this room. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key on your keyboard. +</p> +]]> +</entry> + +<entry key='private-chat-instructions'> +<![CDATA[ +You may send private messages to a specific participant by clicking on the +appropriately labeled button (1, 2, 3, 4, or 5) before typing your message in +the chat box and sending it. By default you are communicating with all +members of your group. +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round3.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round3.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> +<entry key="duration">240</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> +<!-- enable sanctioning --> +<entry key="sanction-type">real-time</entry> +<entry key="sanction-cost">1</entry> +<entry key="sanction-multiplier">2</entry> + +<entry key="initial-distribution">.25</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- before this round begins, we have a chat session --> +<entry key="chat-enabled">true</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 3 Instructions</h3> +<hr> +<p> +Round 3 is the same as round 2.</p> +<p> +The length of this round is again four minutes. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + + +<entry key="chat-instructions"> +<![CDATA[ +<p> +You can now chat with the other participants in your group for 4 minutes +total. During the chat round, you may communicate about any aspect of the +experiment that you would like to discuss with other participants with whom +you have been matched. You may not promise them side-payments after the +experiment is completed or threaten them with any consequence after the +experiment is finished. We are monitoring the chat traffic while you chat. If +we detect that somebody has revealed their identity, we will have to stop the +experiment and remove that person's entire group from the experiment. +</p> +<p> +You will see other participants labeled as "1", "2","3", "4", or "5" in the +chat box. You can send a chat message by typing into the textfield at the +bottom of the screen and pressing the "enter" key. </p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round4.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round4.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 4 Instructions</h3> +<hr> + +<p> +Round 4 is the same as the previous three rounds with two exceptions: +<ul> +<li>You cannot chat with other participants of your group before the round start. +<li>You cannot vote in favor or against the use of sanctioning. No sanctioning will be allowed. +</ul> +</p> + +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round5.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round5.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + + +<!-- enable field of vision for tokens and subjects --> +<entry key='initial-distribution'>.25</entry> + +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 5 Instructions</h3> +<hr> +<p> +Round 5 is the same as round 4. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> +</properties> Added: foraging/trunk/src/main/resources/configuration/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/round6.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/round6.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Foraging XML-ized experiment round configuration</comment> +<entry key="display-group-tokens">true</entry> +<entry key="clients-per-group">5</entry> +<entry key="duration">240</entry> +<entry key="resource-depth">29</entry> +<entry key="resource-width">29</entry> + +<!-- enable field of vision for tokens and subjects --> +<entry key='tokens-field-of-vision'>true</entry> +<entry key='subjects-field-of-vision'>true</entry> + +<entry key='always-explicit'>true</entry> +<entry key='max-cell-occupancy'>1</entry> + +<!-- resource regrowth parameters --> +<entry key="initial-distribution">.25</entry> + +<entry key="instructions"> +<![CDATA[ +<h3>Round 6 Instructions</h3> +<hr> +<p> +Round 6 is the same as round 5. +</p> +<p> +If you have any questions please raise your hand. <b>Do you have any +questions so far?</b> +</p> +]]> +</entry> + +<entry key="last-round-debriefing"> +<![CDATA[ +<p> +This was the last round, but not the end of the experiment. We will now +determine your payments. While we are doing this, we request that you +carefully fill out a brief survey. +</p> +<p> +When we are ready we will call you one by one to the room next door. We will +pay you there in private. Please wait until your computer number is called, +and then proceed to the room next door to turn in your computer number and +your survey. +</p> +<p> +Please answer the survey carefully and thank you for participating. +</p> +]]> +</entry> + +</properties> Added: foraging/trunk/src/main/resources/configuration/server.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/server.xml (rev 0) +++ foraging/trunk/src/main/resources/configuration/server.xml 2010-04-07 18:59:56 UTC (rev 503) @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> +<properties> +<comment>Costly Sanctioning XML-ized experiment round configuration</comment> +<entry key="hostname">@SERVER_ADDRESS@</entry> +<entry key="port">@PORT_NUMBER@</entry> +<entry key="round0">round0.xml</entry> +<entry key="round1">round1.xml</entry> +<entry key="round2">round2.xml</entry> +<entry key="round3">round3.xml</entry> +<entry key="round4">round4.xml</entry> +<entry key="round5">round5.xml</entry> +<entry key="round6">round6.xml</entry> +<entry key="wait-for-participants">true</entry> +<entry key="number-of-rounds">7</entry> +<entry key="facilitator-instructions"> +<![CDATA[ +<h3>Facilitator Instructions</h3> +<p> +Welcome to the facilitator interface. This interface allows you to control +the experiment. You may only modify configuration parameters <b>before</b> +you start the experiment by selecting the Configuration menu. When all the +participants are ready to begin the experiment, you can start the experiment +by selecting Experiment -> Start. After a round has been completed you +will be able to view the statistics for all of the participants. You can +begin the next round by selecting Round -> Start. +</p> +]]> +</entry> + +<entry key='field-of-vision-instructions'> +<![CDATA[ +Your vision is limited in this experiment. The area that is visible to you will be +shaded. +]]> +</entry> + +<entry key="welcome-instructions"> +<![CDATA[ +<h3>Welcome to the experiment. The experiment will begin shortly after everyone has been +assigned a station.</h3> +<p> +Please <b>wait quietly</b> and <b>do not close this window or open any other applications</b>. +</p> +]]> +</entry> + +<entry key="general-instructions"> +<![CDATA[ +<h3>General Instructions</h3> +<p> +Welcome. You have already earned 5 dollars by showing up at this experiment. You can +earn more, up to a maximum of 40 dollars, by participating in this experiment, which +will take about an hour to an hour and a half. The amount of money you earn depends +on your decisions as well as the decisions of other people in this room during the +six rounds of the experiment. +</p> +<p> +You appear on the screen as a yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif">. +You move by pressing the four arrow keys on your keyboard. You can move up, down, +left, or right. You have to press a key for each and every move of your yellow dot. +In this experiment you can collect green diamond shaped tokens +<img src="@CODEBASE_URL@/images/gem-token.gif"> and earn two cents for each collected token. +To collect a token, move your yellow dot over a green token and press the <b>space +bar</b>. If you move over a token without pressing the <b>space bar</> you do NOT +collect that token. +</p> + +<p> +The tokens that you collect have the potential to regenerate. After you have +collected a green token, a new token can re-appear on that empty cell. +However, the rate at which new tokens will appear depends on the number of +adjacent cells with tokens. The more tokens in the eight cells around +an empty cell, the faster a new token will appear on that empty cell. In other +words, <b>existing tokens can generate new tokens</b>. To illustrate this, please +refer to Image 1 and Image 2. The middle cell in Image 1 denoted with an X has +a greater chance of regeneration than the middle cell in Image 2. When all +neighboring cells are empty, there is <b>no chance for regeneration</b>. + +<table width="100%"> +<tr> +<td align="center"><b>Image 1</b></td> +<td align="center"><b>Image 2</b></td> +</tr> +<tr> +<td align="center"> +<img src="@CODEBASE_URL@/images/8neighbors.jpg" alt="image 1"> +</td> +<td align="center"> +<img src="@CODEBASE_URL@/images/5neighbors.jpg" alt="image 2"> +</td> +</tr> +</table> +]]> +</entry> + + +</properties> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Allen L. (JIRA) <jef...@as...> - 2010-03-31 20:16:12
|
[ http://opensource.asu.edu/jira/browse/COMMONS-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Lee resolved COMMONS-8. ----------------------------- Resolution: Won't Fix Simplified voting has been implemented instead. > regulation and voting panel display improvements > ------------------------------------------------ > > Key: COMMONS-8 > URL: http://opensource.asu.edu/jira/browse/COMMONS-8 > Project: The Virtual Commons > Issue Type: Improvement > Reporter: Allen Lee > Assignee: Deepak Barge > > regulation panel and enforcement panel / voting display needs a lot of UI enhancement to make them readable / usable. > get rid of side-scrolling text. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.asu.edu/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Allen L. (JIRA) <jef...@as...> - 2010-03-31 20:14:13
|
[ http://opensource.asu.edu/jira/browse/COMMONS-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Lee resolved COMMONS-28. ------------------------------ Resolution: Fixed Fixed, QuizResponseEvent is generated for each quiz response. > persist all quiz responses > -------------------------- > > Key: COMMONS-28 > URL: http://opensource.asu.edu/jira/browse/COMMONS-28 > Project: The Virtual Commons > Issue Type: Task > Components: foraging > Affects Versions: enhanced foraging > Reporter: Allen Lee > Assignee: Allen Lee > Fix For: enhanced foraging > > > All quiz responses should be sent to the server and saved so we can keep track of incorrect responses, etc. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.asu.edu/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Allen L. (JIRA) <jef...@as...> - 2010-03-31 20:14:12
|
[ http://opensource.asu.edu/jira/browse/COMMONS-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Lee resolved COMMONS-27. ------------------------------ Resolution: Fixed Fixed in r502. > station ids need to be updated on server side > --------------------------------------------- > > Key: COMMONS-27 > URL: http://opensource.asu.edu/jira/browse/COMMONS-27 > Project: The Virtual Commons > Issue Type: Bug > Components: foraging > Affects Versions: enhanced foraging > Reporter: Allen Lee > Assignee: Allen Lee > Fix For: enhanced foraging > > > The station identifiers need to be updated via SocketIdentifierUpdateRequest for the foraging experiment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.asu.edu/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Allen L. (JIRA) <jef...@as...> - 2010-03-31 20:12:41
|
[ http://opensource.asu.edu/jira/browse/COMMONS-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Lee resolved COMMONS-26. ------------------------------ Resolution: Fixed Fixed. Sanction animation is always triggered from the server side now. > refactor how the client determines whether or not it can sanction > ----------------------------------------------------------------- > > Key: COMMONS-26 > URL: http://opensource.asu.edu/jira/browse/COMMONS-26 > Project: The Virtual Commons > Issue Type: Bug > Components: foraging > Reporter: Allen Lee > Assignee: Allen Lee > > Currently in the voting treatment if sanctioning is enabled but the participants decided to vote against it, they can get the sanction animation even though the sanction isn't going through. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.asu.edu/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Allen L. (JIRA) <jef...@as...> - 2010-03-31 20:12:41
|
[ http://opensource.asu.edu/jira/browse/COMMONS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Lee resolved COMMONS-29. ------------------------------ Assignee: Allen Lee (was: Deepak Barge) Resolution: Fixed Fixed, split up initializeRound() to initialize the persister before the server blocks on roundSignal. Some shuffling was necessary to handle first round semantics. > persist SanctionRankingRequest and SanctionUpdateEvent > ------------------------------------------------------- > > Key: COMMONS-29 > URL: http://opensource.asu.edu/jira/browse/COMMONS-29 > Project: The Virtual Commons > Issue Type: Task > Components: foraging > Affects Versions: enhanced foraging > Reporter: Allen Lee > Assignee: Allen Lee > > summary says it all. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.asu.edu/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <al...@us...> - 2010-03-31 18:41:57
|
Revision: 502 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=502&view=rev Author: alllee Date: 2010-03-31 18:41:49 +0000 (Wed, 31 Mar 2010) Log Message: ----------- adding SocketIdentifierUpdateRequest support for foraging client / server Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java 2010-03-31 18:29:56 UTC (rev 501) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java 2010-03-31 18:41:49 UTC (rev 502) @@ -16,6 +16,7 @@ import edu.asu.commons.event.EventChannel; import edu.asu.commons.event.EventTypeProcessor; import edu.asu.commons.event.SetConfigurationEvent; +import edu.asu.commons.event.SocketIdentifierUpdateRequest; import edu.asu.commons.foraging.conf.RoundConfiguration; import edu.asu.commons.foraging.conf.ServerConfiguration; import edu.asu.commons.foraging.event.AgentInfoRequest; @@ -36,6 +37,7 @@ import edu.asu.commons.foraging.event.SanctionUpdateEvent; import edu.asu.commons.foraging.event.ShowInstructionsRequest; import edu.asu.commons.foraging.event.SynchronizeClientEvent; +import edu.asu.commons.net.SocketIdentifier; import edu.asu.commons.util.Duration; import edu.asu.commons.util.Utils; @@ -95,6 +97,8 @@ @Override protected void postConnect() { + SocketIdentifier socketId = (SocketIdentifier) getId(); + transmit(new SocketIdentifierUpdateRequest(socketId, socketId.getStationNumber())); state = ClientState.WAITING; } Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-31 18:29:56 UTC (rev 501) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-31 18:41:49 UTC (rev 502) @@ -24,6 +24,7 @@ import edu.asu.commons.event.RoundEndedMarkerEvent; import edu.asu.commons.event.RoundStartedMarkerEvent; import edu.asu.commons.event.SetConfigurationEvent; +import edu.asu.commons.event.SocketIdentifierUpdateRequest; import edu.asu.commons.experiment.AbstractExperiment; import edu.asu.commons.experiment.StateMachine; import edu.asu.commons.foraging.conf.RoundConfiguration; @@ -74,6 +75,7 @@ import edu.asu.commons.foraging.util.ForagingSaveFileConverter; import edu.asu.commons.net.Dispatcher; import edu.asu.commons.net.Identifier; +import edu.asu.commons.net.SocketIdentifier; import edu.asu.commons.net.event.ConnectionEvent; import edu.asu.commons.net.event.DisconnectionRequest; import edu.asu.commons.util.Duration; @@ -234,6 +236,22 @@ } private void initializeClientHandlers() { + addEventProcessor(new EventTypeProcessor<SocketIdentifierUpdateRequest>(SocketIdentifierUpdateRequest.class) { + @Override + public void handle(SocketIdentifierUpdateRequest request) { + SocketIdentifier socketId = request.getSocketIdentifier(); + //getLogger().info("socket id from client: " + socketId); + //getLogger().info("station number from client: " + socketId.getStationNumber()); + //getLogger().info("station number from event: " + request.getStationNumber()); + ClientData clientData = clients.get(socketId); + if (clientData == null) { + getLogger().warning("No client data available for socket: " + socketId); + return; + } + SocketIdentifier clientSocketId = (SocketIdentifier) clientData.getId(); + clientSocketId.setStationNumber(request.getStationNumber()); + } + }); // client handlers addEventProcessor(new EventTypeProcessor<ConnectionEvent>(ConnectionEvent.class) { @Override This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-03-31 18:30:04
|
Revision: 501 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=501&view=rev Author: alllee Date: 2010-03-31 18:29:56 +0000 (Wed, 31 Mar 2010) Log Message: ----------- resetting quiz questions style / font color to black once they've been submitted correctly Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-03-31 02:29:38 UTC (rev 500) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-03-31 18:29:56 UTC (rev 501) @@ -16,16 +16,10 @@ import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStreamReader; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.Enumeration; -import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Properties; @@ -194,6 +188,14 @@ } + private void setQuestionColors(List<String> questionNumbers, String color) { + HTMLEditorKit editorKit = (HTMLEditorKit) instructionsEditorPane.getEditorKit(); + StyleSheet styleSheet = editorKit.getStyleSheet(); + for (String questionNumber : questionNumbers) { + String styleString = String.format(".%s { color: %s; }", questionNumber, color); + styleSheet.addRule(styleString); + } + } private ActionListener createQuizListener(final RoundConfiguration configuration) { return new ActionListener() { @@ -227,6 +229,7 @@ builder.append("<br><b>Congratulations!</b> You have answered all questions correctly."); setInstructions(builder.toString()); client.transmit(new QuizCompletedEvent(client.getId())); + setQuestionColors(correctAnswers, "black"); } else { // FIXME: highlight the incorrect answers? @@ -236,11 +239,10 @@ HTMLEditorKit editorKit = (HTMLEditorKit) instructionsEditorPane.getEditorKit(); StyleSheet styleSheet = editorKit.getStyleSheet(); - - StringBuilder correctString = new StringBuilder(); if (! correctAnswers.isEmpty()) { correctString.append("<h3>Correctly answered questions</h3><ul>"); + // FIXME: extract style modifications to method for (String correctQuestionNumber : correctAnswers) { String styleString = String.format(".%s { color: black; }", correctQuestionNumber); styleSheet.addRule(styleString); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <db...@us...> - 2010-03-31 02:29:45
|
Revision: 500 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=500&view=rev Author: dbarge Date: 2010-03-31 02:29:38 +0000 (Wed, 31 Mar 2010) Log Message: ----------- - changed the configuration files to alter some text in the instructions of round4.xml. - changed the configuration files for limited and full vision. Modified Paths: -------------- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml Added Paths: ----------- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fov/ Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round0.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -7,7 +7,6 @@ <entry key="practice-round">true</entry> <entry key="private-property">true</entry> <entry key="duration">240</entry> - <entry key="quiz">true</entry> <entry key="q1">C</entry> <entry key="q2">B</entry> @@ -43,17 +42,16 @@ </p> <br> <form> -Which of the statements is <b><u>incorrect</u></b>? <br> -<input type="radio" name="q1" value="A">Your decisions of where to collect tokens affects the regeneration of tokens.<br> -<input type="radio" name="q1" value="B">When you have collected all tokens on -the screen, no new tokens will appear.<br> -<input type="radio" name="q1" value="C">Tokens grow from the middle of the +<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> +<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> +<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> +<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the screen.<br> -<input type="radio" name="q1" value="D">In order to collect a token you need +<input type="radio" name="q1" value="D">D. In order to collect a token you need to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> <br><br> -Which sequence of situations is not possible? <br> +<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> <img src="@CODEBASE_URL@/images/question2.jpg"><br> <input type="radio" name="q2" value="A">A<br> <input type="radio" name="q2" value="B">B<br> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -7,7 +7,6 @@ <entry key="duration">240</entry> <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> - <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> @@ -36,10 +35,6 @@ number embedded in the dot. On the top right corner of the screen you can see how many tokens each player has collected. On the top left corner of the screen you can see a clock that displays the remaining time in the round.</p> -<p>Since you can only see the resource within your vision you may neither see all -the other participants nor all the resource units. The figure below indicates the -vision range compared to the whole environment</p> -<img src="@CODEBASE_URL@/images/vision-range.jpg"> <p> If you have any questions please raise your hand. <b>Do you have any questions so far?</b> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round3.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -8,6 +8,9 @@ <entry key="resource-depth">29</entry> <entry key="resource-width">29</entry> +<!-- enable field of vision for tokens and subjects --> + + <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round4.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -8,12 +8,13 @@ <entry key="resource-width">29</entry> <entry key="duration">240</entry> +<!-- enable field of vision for tokens and subjects --> + <entry key='always-explicit'>true</entry> <entry key='max-cell-occupancy'>1</entry> <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <!-- enable sanctioning --> <entry key="sanction-type">real-time</entry> @@ -25,10 +26,10 @@ <!-- enable quiz --> <entry key='quiz'>true</entry> -<entry key='q1'>1</entry> -<entry key='q2'>2</entry> -<entry key='q3'>1</entry> -<entry key='q4'>1</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> <entry key="instructions"> <![CDATA[ @@ -59,10 +60,8 @@ another participant reduces your number of tokens, you will also receive a message. These messages will be displayed on the bottom of your screen. <li>If your tokens are being reduced or you are reducing another participant's -tokens, you will receive some visual cues. When your tokens are being reduced -your yellow dot will turn red briefly with a blue background. The participant -currently reducing your tokens will turn purple with a white background. -<li>You may reduce the earnings of other participants as long as there are +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are tokens remaining on the screen and while both you and the other participant have a positive number of tokens collected during the round. <b>Each time</b> you press the numeric key corresponding to another participant your token @@ -110,39 +109,39 @@ </p> <form> -Each time I press the numeric keys between 1-5 my tokens will be reduced -by:<br> -<input type="radio" name="q1" value="0">0 tokens<br> -<input type="radio" name="q1" value="1">1 token<br> -<input type="radio" name="q1" value="2">2 tokens<br> -<input type="radio" name="q1" value="4">4 tokens<br> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> <br><br> -Each time I press the numeric keys between 1-5 the number of tokens of the -corresponding participant is reduced by:<br> -<input type="radio" name="q2" value="0">0 tokens<br> -<input type="radio" name="q2" value="1">1 token<br> -<input type="radio" name="q2" value="2">2 tokens<br> -<input type="radio" name="q2" value="4">4 tokens<br> +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> <br><br> -The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?<br> -<input type="radio" name="q3" value="0">You collected a token<br> -<input type="radio" name="q3" value="1">Another participant is subtracting two +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two tokens from you<br> -<input type="radio" name="q3" value="2">You are subtracting two tokens from another +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another participant<br> -<input type="radio" name="q3" value="3">You are moving too fast<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> <br><br> -Every time I press the numeric keys between 1-5:<br> -<input type="radio" name="q4" value="0">Two tokens are subtracted from my tokens +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens collected this round<br> -<input type="radio" name="q4" value="1">One token is subtracted from my tokens +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens collected this round<br> -<input type="radio" name="q4" value="2">The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue momentarily<br> -<input type="radio" name="q4" value="3">My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> <input type="submit" name="submit" value="Submit"> </form> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round5.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -8,6 +8,9 @@ <entry key="resource-width">29</entry> <entry key="duration">240</entry> +<!-- enable field of vision for tokens and subjects --> + + <!-- enable sanctioning --> <entry key="sanction-type">real-time</entry> <entry key="sanction-cost">1</entry> @@ -20,7 +23,6 @@ <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <entry key="instructions"> <![CDATA[ Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round6.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -8,6 +8,7 @@ <entry key="resource-width">29</entry> <entry key="duration">240</entry> + <!-- enable sanctioning --> <entry key="sanction-type">real-time</entry> <entry key="sanction-cost">1</entry> @@ -20,7 +21,6 @@ <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <entry key="instructions"> <![CDATA[ Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -55,7 +55,7 @@ to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> <br><br> -<span class='q2'>Q2. Which sequence of situations is not possible?</span> <br> +<span class='q2'>Q2. Which sequence of situations is <b><u>not possible</u></b>?</span> <br> <img src="@CODEBASE_URL@/images/question2.jpg"><br> <input type="radio" name="q2" value="A">A<br> <input type="radio" name="q2" value="B">B<br> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round2.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -10,9 +10,6 @@ <!-- enable field of vision for tokens and subjects --> -<entry key='tokens-field-of-vision'>true</entry> -<entry key='subjects-field-of-vision'>true</entry> - <entry key='initial-distribution'>.25</entry> <entry key='tokens-field-of-vision'>true</entry> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-03-31 00:58:49 UTC (rev 499) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-03-31 02:29:38 UTC (rev 500) @@ -62,10 +62,8 @@ another participant reduces your number of tokens, you will also receive a message. These messages will be displayed on the bottom of your screen. <li>If your tokens are being reduced or you are reducing another participant's -tokens, you will receive some visual cues. When your tokens are being reduced -your yellow dot will turn red briefly with a blue background. The participant -currently reducing your tokens will turn purple with a white background. -<li>You may reduce the earnings of other participants as long as there are +tokens, you will receive some visual cues. When you are sanctioned your yellow dot will turn red briefly with a blue background. The participant sanctioning you will turn purple with a white background. +<li>You may sanction other participants as long as there are tokens remaining on the screen and while both you and the other participant have a positive number of tokens collected during the round. <b>Each time</b> you press the numeric key corresponding to another participant your token This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-03-31 00:58:55
|
Revision: 499 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=499&view=rev Author: alllee Date: 2010-03-31 00:58:49 +0000 (Wed, 31 Mar 2010) Log Message: ----------- - fixed a number of bugs with sanction animation - implemented quiz feedback - updated configuration for upcoming experiment runs Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ClientDataModel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ClientDataModel.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ClientDataModel.java 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ClientDataModel.java 2010-03-31 00:58:49 UTC (rev 499) @@ -70,8 +70,10 @@ return Identifier.NULL; } + // FIXME: the logic here is getting complex, refactor later public boolean isSanctioningAllowed() { - return getClientData().isSanctioningAllowed() || isSanctioningEnabled(); + return groupDataModel.getActiveSanctionMechanism() == SanctionMechanism.EVERYBODY_CAN_SANCTION; +// && getClientData().isSanctioningAllowed() || isSanctioningEnabled(); } public boolean isHarvestingAllowed() { @@ -86,9 +88,6 @@ * public Map<Identifier, Duration> getSanctioned() { return sanctioned; } */ public void sanction(Identifier source, Identifier target) { - if (groupDataModel.getClientData(target).getCurrentTokens() < 2) { - return; - } Duration duration = Duration.create(getRoundConfiguration().getSanctionFlashDuration()); sanctioners.put(source, duration); sanctioned.put(target, duration); @@ -185,9 +184,6 @@ * hot-spot, 9% of time spent here. */ public void updateDiffs(ClientPositionUpdateEvent event, GameWindow2D window) { - if (event.getCurrentTokens() > currentTokens) { - window.collectToken(getClientData().getPosition()); - } currentTokens = event.getCurrentTokens(); groupDataModel.updateDiffs(event); handleRealTimeSanctions(event.getLatestSanctions()); @@ -210,16 +206,17 @@ } private synchronized void handleRealTimeSanctions(Queue<RealTimeSanctionRequest> latestSanctions) { - if (!getRoundConfiguration().isRealTimeSanctioningEnabled()) { - return; - } - for (RealTimeSanctionRequest sanctionEvent : latestSanctions) { - if (getId().equals(sanctionEvent.getTarget())) { +// if (!getRoundConfiguration().isRealTimeSanctioningEnabled()) { +// return; +// } + for (RealTimeSanctionRequest sanctionRequest : latestSanctions) { + System.err.println("Processing real time sanction: from " + sanctionRequest.getSource() + " to " + sanctionRequest.getTarget()); + sanction(sanctionRequest.getSource(), sanctionRequest.getTarget()); +// if (getId().equals(sanctionEvent.getTarget())) { // received a penalty, change colors for the duration of the // sanction. - sanction(sanctionEvent.getSource(), getId()); - - } +// sanction(sanctionEvent.getSource(), getId()); +// } } } Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/GameWindow2D.java 2010-03-31 00:58:49 UTC (rev 499) @@ -16,10 +16,15 @@ import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; +import java.io.BufferedReader; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStreamReader; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; +import java.util.Enumeration; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -42,6 +47,8 @@ import javax.swing.text.StyleConstants; import javax.swing.text.StyleContext; import javax.swing.text.StyledDocument; +import javax.swing.text.html.HTMLEditorKit; +import javax.swing.text.html.StyleSheet; import edu.asu.commons.event.Event; import edu.asu.commons.event.EventChannel; @@ -136,7 +143,8 @@ subjectView = new SubjectView(subjectViewSize, dataModel); // subjectView.addKeyListener(this); this.currentRankingInformation = new int [2]; - this.currentRankingInformation[0] = this.currentRankingInformation[1] = -1; + Arrays.fill(currentRankingInformation, -1); +// this.currentRankingInformation[0] = this.currentRankingInformation[1] = -1; initGuiComponents(); } @@ -226,32 +234,39 @@ Collections.sort(correctAnswers); StringBuilder builder = new StringBuilder().append(instructionsBuilder); + HTMLEditorKit editorKit = (HTMLEditorKit) instructionsEditorPane.getEditorKit(); + StyleSheet styleSheet = editorKit.getStyleSheet(); + + StringBuilder correctString = new StringBuilder(); - if (!correctAnswers.isEmpty()) { - correctString.append("<br>Correctly answered questions"); - for (Iterator<String> itr = correctAnswers.iterator(); itr.hasNext();) { - String correctSelected = itr.next(); - String correctValue = configuration.getQuizAnswers().get(correctSelected); - correctString.append("<br>"+correctSelected+": Option "+correctValue); + if (! correctAnswers.isEmpty()) { + correctString.append("<h3>Correctly answered questions</h3><ul>"); + for (String correctQuestionNumber : correctAnswers) { + String styleString = String.format(".%s { color: black; }", correctQuestionNumber); + styleSheet.addRule(styleString); + correctString.append(String.format("<li>Your answer, [ %s ] was correct for question %s.", + actualAnswers.get(correctQuestionNumber), + correctQuestionNumber)); } - correctString.append("<br>"); + correctString.append("</ul>"); } - StringBuilder incorrectString = new StringBuilder(); - incorrectString.append("<br>Incorrectly answered questions"); - for (Iterator<String> itr = incorrectAnswers.iterator(); itr.hasNext();) { - String incorrectSelected = itr.next(); - incorrectString.append("<br>"+incorrectSelected); + correctString.append("<h3>Incorrectly answered questions</h3><ul>"); + for (String incorrectQuestionNumber : incorrectAnswers) { + String styleString = String.format(".%s { color: red; }", incorrectQuestionNumber); + styleSheet.addRule(styleString); + correctString.append(String.format("<li>Your answer [ %s ] was incorrect for question %s.", + actualAnswers.get(incorrectQuestionNumber), + incorrectQuestionNumber)); } - incorrectString.append("<br>"); - - builder.append("<br><b><font color='red'>"+correctString.toString()+incorrectString.toString()+".<br> Please select again and resubmit.</font></b>"); + correctString.append("</ul>"); + builder.append(correctString); setInstructions(builder.toString()); } } }; } - + /** * Invoked when a subject collected a token at Point p. * @@ -616,7 +631,7 @@ // System.out.println("sanctioning event sent"); event = new RealTimeSanctionRequest(dataModel.getId(), sanctionee); // below function must be used for enforcement type4 - dataModel.sanction(dataModel.getId(), sanctionee); +// dataModel.sanction(dataModel.getId(), sanctionee); } else { displayErrorMessage("The participant is out of range ", 1); @@ -859,10 +874,9 @@ public void displaySanctionMechanism() { SwingUtilities.invokeLater(new Runnable() { public void run() { - System.out.println("Inside display sanction"); instructionsBuilder.delete(0, instructionsBuilder.length()); - instructionsBuilder.append("<hr/><h2>Sanction choice voted : </h2><hr/><p>").append(dataModel.getActiveSanctionMechanism().getDescription()).append("</p>"); - instructionsBuilder.append("<hr/><h2>Active enforcement mechanism</h2><hr/><p>").append(dataModel.getActiveEnforcementMechanism().getDescription()).append("</p>"); + instructionsBuilder.append("<h2>Your group voted for the following enforcement mechanism: </h2><hr/><p>").append(dataModel.getActiveSanctionMechanism().getDescription()).append("</p>"); +// instructionsBuilder.append("<hr/><h2>Active enforcement mechanism</h2><hr/><p>").append(dataModel.getActiveEnforcementMechanism().getDescription()).append("</p>"); setInstructions(instructionsBuilder.toString()); addCenterComponent(instructionsScrollPane); } @@ -981,9 +995,9 @@ JPanel rankPanel = new JPanel(); rankPanel.setBackground(Color.WHITE); rankPanel.setLayout(new BoxLayout (rankPanel, BoxLayout.Y_AXIS)); - rankPanel.setBorder(BorderFactory.createTitledBorder("Voting Options")); + rankPanel.setBorder(BorderFactory.createTitledBorder("Voting")); - JLabel sanctionText = new JLabel("Please select one of the below voting options"); + JLabel sanctionText = new JLabel("Please select one of the options below: "); rankPanel.add(Box.createVerticalStrut(5)); @@ -991,7 +1005,7 @@ rankPanel.add(Box.createVerticalStrut(8)); - noSanction = new JRadioButton("No Sanctioning [No one can sanction/reduce tokens]"); + noSanction = new JRadioButton("No penalties [No one can subtract tokens from anyone]"); noSanction.setActionCommand("0"); group.add(noSanction); noSanction.addActionListener(this); @@ -999,7 +1013,7 @@ rankPanel.add(Box.createVerticalStrut(8)); - sanction = new JRadioButton("Allow Sanctioning [Everyone can sanction each other]"); + sanction = new JRadioButton("Allow penalties [Everyone can subtract tokens from each other]"); sanction.setActionCommand("1"); group.add(sanction); sanction.addActionListener(this); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java 2010-03-31 00:58:49 UTC (rev 499) @@ -316,7 +316,7 @@ } public int getChatDuration() { - return getIntProperty("chat-duration", 120); + return getIntProperty("chat-duration", 240); } public int getSanctionVotingDuration() { @@ -344,7 +344,11 @@ } public String getSanctionInstructions() { - return getProperty("sanction-instructions","<h2>Please read the below mentioned instructions</h2>.<ul> <li> Please make your choice within the next 30 seconds. <li>The votes of all group participants will determine the outcome.</ul>"); + return getProperty("sanction-instructions","<h2>Voting instructions</h2>" + + "<ul> " + + "<li> You must make a choice within the next 30 seconds. " + + "<li>The votes of all participants in your group will determine the outcome." + + "</ul>"); } public boolean isAlwaysInExplicitCollectionMode() { Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ClientData.java 2010-03-31 00:58:49 UTC (rev 499) @@ -249,6 +249,10 @@ } } + /** + * Returns a queue of sanction requests that have been most recently applied to this client. + * @return + */ public Queue<RealTimeSanctionRequest> getLatestSanctions() { return latestSanctions; } Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-31 00:58:49 UTC (rev 499) @@ -278,11 +278,11 @@ public void handle(final EnforcementRankingRequest request) { logger.info("received enforcement ranking request: " + Arrays.asList(request.getRankings())); GroupDataModel group = serverDataModel.getGroup(request.getId()); - group.submitEnforcementRanking(request); - if (group.hasReceivedAllEnforcementRankings()) { - sendEnforcementUpdate(group); - } - // FIXME: this is duplicated. +// group.submitEnforcementRanking(request); +// if (group.hasReceivedAllEnforcementRankings()) { +// sendEnforcementUpdate(group); +// } + // FIXME: this is duplicated with above logic, fix later group.submitSanctionRanking(request); if (group.hasReceivedAllSanctionRankings()) { sendSanctionRankingUpdate(group); @@ -506,6 +506,7 @@ // monitors don't get any sanction costs. targetClient.sanctionPenalty(); // add sanction request to the target client so they can figure out who just sanctioned them + sourceClient.getLatestSanctions().add(request); targetClient.getLatestSanctions().add(request); transmit(new ClientMessageEvent(sourceClient.getId(), String.format("Subtracting %d tokens from # %d at the cost of 0 to yourself." , @@ -613,27 +614,31 @@ return; } sourceClient.sanctionCost(); + int sanctionCost = getCurrentRoundConfiguration().getSanctionCost(); int subtractedTokens = targetClient.sanctionPenalty(); // generate sanction applied event SanctionAppliedEvent sanctionAppliedEvent = new SanctionAppliedEvent(sourceClient.getId()); // the sanction cost should always be set since the client should prevent any sanction requests from being emitted // if the user doesn't have enough tokens to issue the request. - sanctionAppliedEvent.setSanctionCost(getCurrentRoundConfiguration().getSanctionCost()); + sanctionAppliedEvent.setSanctionCost(sanctionCost); // the sanction penalty may be in the range [1, RoundConfiguration.getSanctionPenalty()] - // if target has less than the actual sanction penalty they just get their tokens reduced to 0. sanctionAppliedEvent.setSanctionPenalty(subtractedTokens); sanctionAppliedEvent.setTarget(targetClient.getId()); persister.store(sanctionAppliedEvent); - // add sanction request to the target client so they can figure out who just sanctioned them + sourceClient.getLatestSanctions().add(request); targetClient.getLatestSanctions().add(request); + logger.info("target client " + targetClient.getId() + " has sanctions: " + targetClient.getLatestSanctions()); transmit(new ClientMessageEvent(sourceClient.getId(), String.format("Subtracting %d tokens from # %d at the cost of %d to yourself." , - getCurrentRoundConfiguration().getSanctionPenalty(), + subtractedTokens, targetClient.getAssignedNumber(), - getCurrentRoundConfiguration().getSanctionCost()))); + sanctionCost))); transmit(new ClientMessageEvent(targetClient.getId(), - String.format("# %d subtracted %d tokens from you.", sourceClient.getAssignedNumber(), getCurrentRoundConfiguration().getSanctionPenalty()))); + String.format("# %d subtracted %d tokens from you.", + sourceClient.getAssignedNumber(), + subtractedTokens))); } private void initializeFacilitatorHandlers() { @@ -684,7 +689,7 @@ // set up the Client Group relationships ONLY IF we are in the first round... // kind of a hack. shuffleParticipants(); - initializeRound(); + initializeResourceDispenser(); } logger.info("Begin round request from facilitator - starting round."); experimentStarted = true; @@ -714,6 +719,11 @@ addEventProcessor(new EventTypeProcessor<BeginChatRoundRequest>(BeginChatRoundRequest.class) { public void handle(BeginChatRoundRequest request) { if (getCurrentRoundConfiguration().isChatEnabled()) { + + if (getCurrentRoundConfiguration().isFirstRound()) { + shuffleParticipants(); + initializeResourceDispenser(); + } // FIXME: need to handle properly corner case where chat is enabled before the first round // at that point the clients haven't been added to any groups yet. @@ -784,9 +794,11 @@ Utils.sleep(SERVER_SLEEP_INTERVAL); break; case WAITING: - // initialize the round so that - // the persister is set up for this next round. + // initialize persister first so we store all relevant events. + // persister MUST be initialized early so that we store pre-round events like QuizResponseEvent, ChatEvent, and the various Ranking requests. initializeRound(); + + getLogger().info("Round is initialized: now waiting for facilitator signal to start next round."); if (getCurrentRoundConfiguration().isQuizEnabled()) { getLogger().info("Waiting for all quizzes to be submitted."); @@ -979,12 +991,11 @@ } private void initializeRound() { - // pre-round initialization - // current round configuration should be set. - RoundConfiguration roundConfiguration = getCurrentRoundConfiguration(); - // initialize persister first so we store all relevant events. - // persister MUST be initialized early so that we store AddClientEvents etc.. - persister.initialize(roundConfiguration); + persister.initialize(getCurrentRoundConfiguration()); + initializeResourceDispenser(); + } + + private void initializeResourceDispenser() { // set up the resource dispenser, generates the initial resource distributions for the // groups, must be done after creating the client group relationships. resourceDispenser.initialize(); Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round0.xml 2010-03-31 00:58:49 UTC (rev 499) @@ -46,17 +46,16 @@ </p> <br> <form> -Which of the statements is <b><u>incorrect</u></b>? <br> -<input type="radio" name="q1" value="A">Your decisions of where to collect tokens affects the regeneration of tokens.<br> -<input type="radio" name="q1" value="B">When you have collected all tokens on -the screen, no new tokens will appear.<br> -<input type="radio" name="q1" value="C">Tokens grow from the middle of the +<span class='q1'>Q1. Which of the statements is <b><u>incorrect</u></b>?</span> <br> +<input type="radio" name="q1" value="A">A. Your decisions of where to collect tokens affects the regeneration of tokens.<br> +<input type="radio" name="q1" value="B">B. When you have collected all tokens on the screen, no new tokens will appear.<br> +<input type="radio" name="q1" value="C">C. Tokens grow from the middle of the screen.<br> -<input type="radio" name="q1" value="D">In order to collect a token you need +<input type="radio" name="q1" value="D">D. In order to collect a token you need to press the space bar while your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is on a cell with a token.<br> <br><br> -Which sequence of situations is not possible? <br> +<span class='q2'>Q2. Which sequence of situations is not possible?</span> <br> <img src="@CODEBASE_URL@/images/question2.jpg"><br> <input type="radio" name="q2" value="A">A<br> <input type="radio" name="q2" value="B">B<br> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round4.xml 2010-03-31 00:58:49 UTC (rev 499) @@ -17,7 +17,6 @@ <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <!-- enable sanctioning --> <entry key="sanction-type">real-time</entry> @@ -29,10 +28,10 @@ <!-- enable quiz --> <entry key='quiz'>true</entry> -<entry key='q1'>1</entry> -<entry key='q2'>2</entry> -<entry key='q3'>1</entry> -<entry key='q4'>1</entry> +<entry key='q1'>B</entry> +<entry key='q2'>C</entry> +<entry key='q3'>B</entry> +<entry key='q4'>B</entry> <entry key="instructions"> <![CDATA[ @@ -114,39 +113,39 @@ </p> <form> -Each time I press the numeric keys between 1-5 my tokens will be reduced -by:<br> -<input type="radio" name="q1" value="0">0 tokens<br> -<input type="radio" name="q1" value="1">1 token<br> -<input type="radio" name="q1" value="2">2 tokens<br> -<input type="radio" name="q1" value="4">4 tokens<br> +<span class='q1'>Q1. Each time I press the numeric keys between 1-5 my tokens will be reduced +by:</span><br> +<input type="radio" name="q1" value="A">A. 0 tokens<br> +<input type="radio" name="q1" value="B">B. 1 token<br> +<input type="radio" name="q1" value="C">C. 2 tokens<br> +<input type="radio" name="q1" value="D">D. 4 tokens<br> <br><br> -Each time I press the numeric keys between 1-5 the number of tokens of the -corresponding participant is reduced by:<br> -<input type="radio" name="q2" value="0">0 tokens<br> -<input type="radio" name="q2" value="1">1 token<br> -<input type="radio" name="q2" value="2">2 tokens<br> -<input type="radio" name="q2" value="4">4 tokens<br> +<span class='q2'>Q2. Each time I press the numeric keys between 1-5 the number of tokens of the +corresponding participant is reduced by:</span><br> +<input type="radio" name="q2" value="A">A. 0 tokens<br> +<input type="radio" name="q2" value="B">B. 1 token<br> +<input type="radio" name="q2" value="C">C. 2 tokens<br> +<input type="radio" name="q2" value="D">D. 4 tokens<br> <br><br> -The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?<br> -<input type="radio" name="q3" value="0">You collected a token<br> -<input type="radio" name="q3" value="1">Another participant is subtracting two +<span class='q3'>Q3. The background of your yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue. What does this represent?</span><br> +<input type="radio" name="q3" value="A">A. You collected a token<br> +<input type="radio" name="q3" value="B">B. Another participant is subtracting two tokens from you<br> -<input type="radio" name="q3" value="2">You are subtracting two tokens from another +<input type="radio" name="q3" value="C">C. You are subtracting two tokens from another participant<br> -<input type="radio" name="q3" value="3">You are moving too fast<br> +<input type="radio" name="q3" value="D">D. You are moving too fast<br> <br><br> -Every time I press the numeric keys between 1-5:<br> -<input type="radio" name="q4" value="0">Two tokens are subtracted from my tokens +<span class='q4'>Q4. Every time I press the numeric keys between 1-5:</span><br> +<input type="radio" name="q4" value="A">A. Two tokens are subtracted from my tokens collected this round<br> -<input type="radio" name="q4" value="1">One token is subtracted from my tokens +<input type="radio" name="q4" value="B">B. One token is subtracted from my tokens collected this round<br> -<input type="radio" name="q4" value="2">The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue +<input type="radio" name="q4" value="C">C. The background of my yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> turns blue momentarily<br> -<input type="radio" name="q4" value="3">My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> +<input type="radio" name="q4" value="D">D. My yellow dot <img src="@CODEBASE_URL@/images/gem-self.gif"> is paused for two seconds<br> <input type="submit" name="submit" value="Submit"> </form> Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round5.xml 2010-03-31 00:58:49 UTC (rev 499) @@ -24,7 +24,6 @@ <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <entry key="instructions"> <![CDATA[ Modified: foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml =================================================================== --- foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-03-30 02:00:29 UTC (rev 498) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-limitedvision/round6.xml 2010-03-31 00:58:49 UTC (rev 499) @@ -22,7 +22,6 @@ <!-- before this round begins, we have a chat session --> <entry key="chat-enabled">true</entry> -<entry key="chat-duration">240</entry> <entry key="instructions"> <![CDATA[ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-03-30 02:00:35
|
Revision: 498 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=498&view=rev Author: alllee Date: 2010-03-30 02:00:29 +0000 (Tue, 30 Mar 2010) Log Message: ----------- fixing round initialization bugs stemming from moving initializeRound() above the Utils.wait(roundSignal) - initializeRound was being invoked afterwards so that after all the clients connect we then shuffle the participants to generate the groups and initialize the resource dispenser. Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java foraging/trunk/src/main/webapp/client.jnlp foraging/trunk/src/main/webapp/facilitator.jnlp Removed Paths: ------------- foraging/trunk/src/main/webapp/client.jar foraging/trunk/src/main/webapp/csidex.jar foraging/trunk/src/main/webapp/facilitator.jar Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java 2010-03-29 20:10:49 UTC (rev 497) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/ForagingClient.java 2010-03-30 02:00:29 UTC (rev 498) @@ -35,9 +35,7 @@ import edu.asu.commons.foraging.event.RoundStartedEvent; import edu.asu.commons.foraging.event.SanctionUpdateEvent; import edu.asu.commons.foraging.event.ShowInstructionsRequest; -import edu.asu.commons.foraging.event.TreatmentTypeRequest; import edu.asu.commons.foraging.event.SynchronizeClientEvent; -import edu.asu.commons.foraging.model.TreatmentType; import edu.asu.commons.util.Duration; import edu.asu.commons.util.Utils; @@ -71,7 +69,6 @@ private ClientDataModel dataModel; - private TreatmentType treatmentType = TreatmentType.FULLVISION; private MessageQueue messageQueue; @@ -128,14 +125,6 @@ gameWindow3D.removeAgentDesigner(); } - private void setTreatmentType(TreatmentType treatmentType) { - this.treatmentType = treatmentType; - } - - private TreatmentType getTreatmentType() { - return treatmentType; - } - @Override @SuppressWarnings("unchecked") protected void initializeEventProcessors() { @@ -143,7 +132,6 @@ public void handle(SetConfigurationEvent event) { RoundConfiguration configuration = (RoundConfiguration) event.getParameters(); dataModel.setRoundConfiguration(configuration); - dataModel.getRoundConfiguration().setTreatmentType(getTreatmentType()); SwingUtilities.invokeLater(new Runnable() { public void run() { clientPanel.removeAll(); @@ -172,13 +160,6 @@ } }); - addEventProcessor(new EventTypeProcessor<TreatmentTypeRequest>(TreatmentTypeRequest.class) { - public void handle(TreatmentTypeRequest request) { - setTreatmentType(request.getTreatmentType()); - dataModel.getRoundConfiguration().setTreatmentType(getTreatmentType()); - } - }); - addEventProcessor(new EventTypeProcessor<RoundStartedEvent>(RoundStartedEvent.class) { public void handle(RoundStartedEvent event) { System.err.println("client starting round: " + dataModel.is2dExperiment()); Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java 2010-03-29 20:10:49 UTC (rev 497) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/conf/RoundConfiguration.java 2010-03-30 02:00:29 UTC (rev 498) @@ -10,7 +10,6 @@ import edu.asu.commons.foraging.graphics.Point3D; import edu.asu.commons.foraging.model.ClientData; import edu.asu.commons.foraging.model.EnforcementMechanism; -import edu.asu.commons.foraging.model.TreatmentType; public class RoundConfiguration extends ExperimentRoundParameters.Base<ServerConfiguration> { @@ -28,7 +27,6 @@ private static final double DEFAULT_TOKEN_BIRTH_PROBABILITY = 0.01d; - private TreatmentType treatmentType; private final static Map<String, SanctionType> sanctionTypeMap = new HashMap<String, SanctionType>(3); public enum SanctionType { @@ -118,15 +116,6 @@ || getBooleanProperty("randomize-group", false); } - public void setTreatmentType (TreatmentType treatmentType) { - this.treatmentType = treatmentType; - } - - public TreatmentType getTreatmentType () { - return treatmentType; - } - - /** * Returns the number of seconds that the flashing visualization of * sanctioning should occur. @@ -146,24 +135,11 @@ } public boolean isTokensFieldOfVisionEnabled() { - if (getTreatmentType()== TreatmentType.FULLVISION){ - return false; - } - - else { - return true; - } - //return getBooleanProperty("tokens-field-of-vision", false); + return getBooleanProperty("tokens-field-of-vision", false); } public boolean isSubjectsFieldOfVisionEnabled() { - if (getTreatmentType()== TreatmentType.FULLVISION){ - return false; - } - else { - return true; - } - //return getBooleanProperty("subjects-field-of-vision", false); + return getBooleanProperty("subjects-field-of-vision", false); } public double getViewSubjectsRadius() { Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-29 20:10:49 UTC (rev 497) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/server/ForagingServer.java 2010-03-30 02:00:29 UTC (rev 498) @@ -679,6 +679,13 @@ addEventProcessor(new EventTypeProcessor<BeginRoundRequest>(BeginRoundRequest.class) { public void handle(BeginRoundRequest event) { if (event.getId().equals(facilitatorId)) { + if (getCurrentRoundConfiguration().isFirstRound()) { + // shuffle groups + // set up the Client Group relationships ONLY IF we are in the first round... + // kind of a hack. + shuffleParticipants(); + initializeRound(); + } logger.info("Begin round request from facilitator - starting round."); experimentStarted = true; Utils.notify(roundSignal); @@ -978,11 +985,6 @@ // initialize persister first so we store all relevant events. // persister MUST be initialized early so that we store AddClientEvents etc.. persister.initialize(roundConfiguration); - // set up the Client Group relationships ONLY IF we are in the first round... - // kind of a hack. - if (roundConfiguration.isFirstRound()) { - shuffleParticipants(); - } // set up the resource dispenser, generates the initial resource distributions for the // groups, must be done after creating the client group relationships. resourceDispenser.initialize(); Deleted: foraging/trunk/src/main/webapp/client.jar =================================================================== (Binary files differ) Modified: foraging/trunk/src/main/webapp/client.jnlp =================================================================== --- foraging/trunk/src/main/webapp/client.jnlp 2010-03-29 20:10:49 UTC (rev 497) +++ foraging/trunk/src/main/webapp/client.jnlp 2010-03-30 02:00:29 UTC (rev 498) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- JNLP file for foraging client --> -<jnlp spec="1.6+" codebase="http://localhost:8080/" href="client.jnlp"> +<jnlp spec="1.6+" codebase="http://localhost:8080" href="client.jnlp"> <information> <title>Virtual Commons Experiment</title> <vendor>The Virtual Commons, Center for the Study of Institutional Diversity, School of Human Evolution and Social Change, Dr. Marco Janssen, Allen Lee, Deepali Bhagvat</vendor> Deleted: foraging/trunk/src/main/webapp/csidex.jar =================================================================== (Binary files differ) Deleted: foraging/trunk/src/main/webapp/facilitator.jar =================================================================== (Binary files differ) Modified: foraging/trunk/src/main/webapp/facilitator.jnlp =================================================================== --- foraging/trunk/src/main/webapp/facilitator.jnlp 2010-03-29 20:10:49 UTC (rev 497) +++ foraging/trunk/src/main/webapp/facilitator.jnlp 2010-03-30 02:00:29 UTC (rev 498) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- JNLP File for CSAN 2D Facilitator --> -<jnlp spec="1.6+" codebase="http://localhost:8080/" href="facilitator.jnlp"> +<jnlp spec="1.6+" codebase="http://localhost:8080" href="facilitator.jnlp"> <information> <title>Virtual Commons Experiment</title> <vendor>The Virtual Commons, Center for the Study of Institutional Diversity, School of Human Evolution and Social Change, Dr. Marco Janssen, Allen Lee, Deepali Bhagvat</vendor> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |