virtualcommons-svn Mailing List for Virtual Commons Experiment Software (Page 47)
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: <vir...@li...> - 2010-07-12 06:24:54
|
Subject: hg.virtualcommons 10 details: http://virtualcommons.hg.sourceforge.net:8000/hgroot/virtualcommons/virtualcommons/hgrepo/v/vi/virtualcommons/virtualcommons/rev/b241d176bef2 changeset: 10:b241d176bef2 user: alllee date: Sun Jul 11 23:24:47 2010 -0700 description: updated data model. starting to form query methods / API for data values and other parameters via DataAccess module. diffstat: vcweb/core/DataAccess.py | 18 ++++++++++++ vcweb/core/models.py | 67 +++++++++++++++++++++++++++++++++++++---------- 2 files changed, 71 insertions(+), 14 deletions(-) diffs (149 lines): diff -r 33b54e8163ff -r b241d176bef2 vcweb/core/DataAccess.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vcweb/core/DataAccess.py Sun Jul 11 23:24:47 2010 -0700 @@ -0,0 +1,18 @@ +''' +Created on Jul 11, 2010 + +Data access interface (if necessary) for interacting with GroupRoundDataValue and ParticipantDataValue +@author: alllee +''' + +class DataAccess(object): + ''' + classdocs + ''' + + + def __init__(self): + ''' + Constructor + ''' + \ No newline at end of file diff -r 33b54e8163ff -r b241d176bef2 vcweb/core/models.py --- a/vcweb/core/models.py Fri Jul 09 16:15:08 2010 -0700 +++ b/vcweb/core/models.py Sun Jul 11 23:24:47 2010 -0700 @@ -18,11 +18,16 @@ class Meta: ordering = ['name', 'date_created'] +class Institution(models.Model): + name = models.CharField(max_length=255) + description = models.TextField(null=True) + url = models.URLField(null=True) + class Experimenter(models.Model): email = models.EmailField() - last_name = models.TextField() - first_name = models.TextField() - institution = models.TextField() + last_name = models.CharField(max_length=64) + first_name = models.CharField(max_length=64) + institution = models.ForeignKey(Institution) password = models.CharField(max_length=255) approved = models.BooleanField() last_login_date = models.DateTimeField() @@ -47,7 +52,11 @@ # an actual instance of a game; represents a concrete # parameterization of this game. class GameInstance(models.Model): - GAME_STATUS_CHOICES = ('INACTIVE', 'ACTIVE', 'COMPLETED') + GAME_STATUS_CHOICES = ( + ('INACTIVE', 'Not active'), + ('ACTIVE', 'Active'), + ('COMPLETED', 'Completed'), + ) authentication_code = models.CharField(max_length=255) current_round_number = models.PositiveIntegerField() experimenter = models.ForeignKey(Experimenter) @@ -58,6 +67,15 @@ start_time = models.TimeField(null=True) end_time = models.TimeField(null=True) + def ___eq___(self, other): + return self.id == other.id + + def ___cmp___(self, other): + return self.id.___cmp___(other.id) + + def ___hash___(self): + return self.id.___hash___() + class RoundConfiguration(models.Model): game_configuration = models.ForeignKey(GameConfiguration) sequence_number = models.PositiveIntegerField(blank=False) @@ -89,6 +107,17 @@ class DataParameter(Parameter): + + def ___eq___(self, other): + return self.name == other.name + + def ___cmp___(self, other): + return self.name.__cmp__(other.name) + + def ___hash___(self): + return self.name.__hash__() + + def __unicode__(self): return 'Data Parameter - [name: ' + self.name + '] [type: ' + self.type + ']' @@ -99,7 +128,7 @@ class RoundParameter(models.Model): round_configuration = models.ForeignKey(RoundConfiguration) parameter = models.ForeignKey(ConfigurationParameter) - parameter_value = models.TextField() + parameter_value = models.CharField(max_length=255) # class Meta: # db_table = 'vcweb_round_parameter' @@ -128,15 +157,25 @@ # class Meta: # db_table = 'vcweb_group_round_data' -class GroupRoundDataParameter(models.Model): - group_round_data = models.ForeignKey(GroupRoundData) +class DataValue(models.Model): parameter = models.ForeignKey(DataParameter) - parameter_value = models.TextField() - time_recorded = models.TimeField() + parameter_value = models.CharField(max_length=255) + time_recorded = models.TimeField(auto_now_add = True) + game_instance = models.ForeignKey(GameInstance) + + @staticmethod + def find(incoming_parameter, incoming_game_instance): + DataValue.objects.filter(parameter=incoming_parameter, game_instance=incoming_game_instance) + class Meta: + abstract = True + +class GroupRoundDataValue(DataValue): + group_round_data = models.ForeignKey(GroupRoundData) + class Meta: ordering = [ 'parameter' ] - + class Participant(models.Model): name = models.CharField(max_length=255) @@ -152,11 +191,11 @@ participant = models.ForeignKey(Participant) round_configuration = models.ForeignKey(RoundConfiguration) -class ParticipantDataParameter(models.Model): +class ParticipantDataValue(DataValue): participant_data = models.ForeignKey(ParticipantData) - parameter = models.ForeignKey(DataParameter) - parameter_value = models.TextField() - time_recorded = models.TimeField() + + class Meta: + ordering = [ 'parameter' ] |
From: <vir...@li...> - 2010-07-09 23:15:12
|
details: http://virtualcommons.hg.sourceforge.net:8000/hgroot/virtualcommons/virtualcommons/hgrepo/v/vi/virtualcommons/virtualcommons/rev/33b54e8163ff changeset: 9:33b54e8163ff user: alllee date: Fri Jul 09 16:15:08 2010 -0700 description: testing emails again and removing abstract ConfigurationParameter from admin interface diffstat: vcweb/core/admin.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diffs (18 lines): diff -r 07f111a878b3 -r 33b54e8163ff vcweb/core/admin.py --- a/vcweb/core/admin.py Fri Jul 09 16:12:58 2010 -0700 +++ b/vcweb/core/admin.py Fri Jul 09 16:15:08 2010 -0700 @@ -8,13 +8,12 @@ from vcweb.core.models import * admin.site.register(GameMetadata) -admin.site.register(ConfigurationParameter) admin.site.register(DataParameter) admin.site.register(RoundParameter) admin.site.register(GameConfiguration) admin.site.register(RoundConfiguration) admin.site.register(Experimenter) +admin.site.register(Participant) admin.site.register(Group) admin.site.register(GameInstance) -admin.site.register(Participant) |
From: Allen L. <All...@as...> - 2010-07-09 20:32:57
|
http://www.orbited.org/ http://code.google.com/p/django-jchat/ (Low level) http://twistedmatrix.com/trac/wiki -- 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: seema t. <see...@gm...> - 2010-07-08 20:55:19
|
http://www.djangobook.com/en/2.0/ |
From: seema t. <see...@gm...> - 2010-07-07 20:25:57
|
Hello, Started work at 1:15pm. Working on Views in Django. Seema |
From: seema t. <see...@gm...> - 2010-07-07 03:23:35
|
Stopped work at 4:45pm Seema On Tue, Jul 6, 2010 at 11:56 AM, seema talele <see...@gm...>wrote: > Hello, > > Started work at 11:45am. > > Seema > > |
From: seema t. <see...@gm...> - 2010-07-06 18:56:48
|
Hello, Started work at 11:45am. Seema |
From: <al...@us...> - 2010-06-30 19:17:54
|
Revision: 522 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=522&view=rev Author: alllee Date: 2010-06-30 19:17:48 +0000 (Wed, 30 Jun 2010) Log Message: ----------- updated svn:keywords and adding quiz response + voting support to ForagingSaveFileConverter Modified Paths: -------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml Property Changed: ---------------- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/CensoredChatRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/FacilitatorCensoredChatRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/MonitorTaxEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionAppliedEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/FacilitatorChatPanel.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/EnforcementMechanism.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ForagingRole.java foraging/trunk/src/main/java/edu/asu/commons/foraging/model/SanctionMechanism.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/AviOutputStream.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/DataAtomOutputStream.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/DataChunkOutputStream.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/FilterImageOutputStream.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreator.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/QuickTimeOutputStream.java foraging/trunk/src/main/java/edu/asu/commons/foraging/util/VideoFormat.java Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java 2010-06-30 19:17:48 UTC (rev 522) @@ -20,12 +20,12 @@ import edu.asu.commons.net.Identifier; /** - * $Id: EnforcementPanel.java 45 2008-08-21 00:47:39Z dbarge $ + * $Id$ * * Enforcement panel is used to vote enforcement mechanism * * @author dbarge - * @version $Revision: 45 $ + * @version $Revision$ */ @SuppressWarnings("serial") Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/EnforcementPanel.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java 2010-06-30 19:17:48 UTC (rev 522) @@ -31,7 +31,7 @@ /** - * $Id: Sanctioning.java 45 2008-08-21 00:47:39Z dbarge $ + * $Id$ * * Sanctioning panel is used to create regulations and * enforcement mechanism @@ -39,7 +39,7 @@ * FIXME: split this functionality out into two different panels, one for submission and the other for voting. * * @author dbarge - * @version $Revision: 45 $ + * @version $Revision$ */ @SuppressWarnings("serial") Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/client/RegulationPanel.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/CensoredChatRequest.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java 2010-06-30 19:17:48 UTC (rev 522) @@ -7,12 +7,12 @@ /** - * $Id: VoteEvent.java 49 2008-09-04 16:57:40Z dbarge $ + * $Id$ * * Sent from the server to all clients about the * updated vote stats * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 49 $ + * @version $Revision$ */ public class EnforcementMechanismUpdateEvent extends AbstractEvent { Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementMechanismUpdateEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java 2010-06-30 19:17:48 UTC (rev 522) @@ -2,16 +2,17 @@ import edu.asu.commons.event.AbstractPersistableEvent; +import edu.asu.commons.foraging.model.SanctionMechanism; import edu.asu.commons.net.Identifier; /** - * $Id: RegulationRequest.java 1 2008-07-23 22:15:18Z dbarge $ + * $Id$ * * Sent from a client to the server signaling that the client * has updated the votes to the given options * - * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 1 $ + * @author <a href='all...@as...'>Allen Lee</a> + * @version $Revision$ */ public class EnforcementRankingRequest extends AbstractPersistableEvent { @@ -28,4 +29,29 @@ public int[] getRankings() { return rankings; } + + @Override + public String toString() { + return String.format("%s, %s, %s", id, "Enforcement Mechanism Ranking", convertRankings()); + } + + private String convertRankings() { + StringBuilder builder = new StringBuilder(); + // FIXME: this will need to be changed after we fix voting which + // needs refactoring + switch (rankings[0]) { + case 0: + // voted for no sanctioning + builder.append("1: no sanctioning, 2: sanctioning"); + break; + case 1: + // voted for sanctioning + builder.append("1: sanctioning, 2: no sanctioning"); + break; + default: + System.err.println("Invalid ranking: " + rankings[0]); + } + return builder.toString(); + } + } Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/EnforcementRankingRequest.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/FacilitatorCensoredChatRequest.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/MonitorTaxEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java 2010-06-30 19:17:48 UTC (rev 522) @@ -8,13 +8,13 @@ import edu.asu.commons.net.Identifier; /** - * $Id: QuizResponseEvent.java 461 2010-02-05 00:28:28Z alllee $ + * $Id$ * * A client's quiz responses for a given quiz page. * * * @author <a href='mailto:All...@as...'>Allen Lee</a> - * @version $Rev: 461 $ + * @version $Rev$ */ public class QuizResponseEvent extends AbstractPersistableEvent implements ClientRequest { @@ -38,7 +38,8 @@ return incorrectAnswers; } + @Override public String toString() { - return id + " quiz page response: " + responses + "\n\t incorrect: " + incorrectAnswers; + return String.format("%s, responses: %s, incorrect answers: %s", id, responses, incorrectAnswers); } } Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/QuizResponseEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java 2010-06-30 19:17:48 UTC (rev 522) @@ -8,12 +8,12 @@ import edu.asu.commons.net.Identifier; /** - * $Id: RegulationRequest.java 1 2008-07-23 22:15:18Z dbarge $ + * $Id$ * * * * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 1 $ + * @version $Revision$ */ public class RegulationRankingRequest extends AbstractPersistableEvent { Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationRankingRequest.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java 2010-06-30 19:17:48 UTC (rev 522) @@ -7,12 +7,12 @@ /** - * $Id: VoteEvent.java 49 2008-09-04 16:57:40Z dbarge $ + * $Id$ * * Sent from the server to all clients about the updated vote stats. * * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 49 $ + * @version $Revision$ */ public class RegulationSubmissionUpdateEvent extends AbstractEvent { Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationSubmissionUpdateEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java 2010-06-30 19:17:48 UTC (rev 522) @@ -7,12 +7,12 @@ /** - * $Id: VoteEvent.java 49 2008-09-04 16:57:40Z dbarge $ + * $Id$ * * Notifices clients of the regulation data receiving the highest vote ranking. * * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 49 $ + * @version $Revision$ */ public class RegulationUpdateEvent extends AbstractEvent { Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/RegulationUpdateEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionAppliedEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SanctionUpdateEvent.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Modified: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java =================================================================== --- foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java 2010-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java 2010-06-30 19:17:48 UTC (rev 522) @@ -5,12 +5,12 @@ import edu.asu.commons.net.Identifier; /** - * $Id: RegulationRequest.java 1 2008-07-23 22:15:18Z dbarge $ + * $Id$ * * * * @author <a href='db...@as...'>Deepak Barge</a> - * @version $Revision: 1 $ + * @version $Revision$ */ public class SubmitRegulationRequest extends AbstractPersistableEvent { Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/event/SubmitRegulationRequest.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/facilitator/FacilitatorChatPanel.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/EnforcementMechanism.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/ForagingRole.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/model/SanctionMechanism.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/AviOutputStream.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/DataAtomOutputStream.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/DataChunkOutputStream.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/FilterImageOutputStream.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id 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-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/java/edu/asu/commons/foraging/util/ForagingSaveFileConverter.java 2010-06-30 19:17:48 UTC (rev 522) @@ -65,8 +65,8 @@ new AggregateTokenSpatialDistributionProcessor(), new CollectedTokenSpatialDistributionProcessor(), new MovementStatisticsProcessor(), - new AggregateCollectedTokenNeighborProcessor(), - new MovieCreatorProcessor() + new AggregateCollectedTokenNeighborProcessor() + // new MovieCreatorProcessor() )); Persister.processSaveFiles(allSaveFilesDirectory, processors); return true; @@ -294,7 +294,7 @@ for (PersistableEvent event : actions) { long elapsedTime = savedRoundData.getElapsedTimeInSeconds(event); if (isIntervalElapsed(elapsedTime)) { - writeData(writer, serverDataModel, clientSpatialDistributionMap); + writeData(writer, serverDataModel, clientSpatialDistributionMap); } if (event instanceof TokenCollectedEvent) { TokenCollectedEvent tokenCollectedEvent = (TokenCollectedEvent) event; @@ -310,11 +310,12 @@ writeData(writer, serverDataModel, clientSpatialDistributionMap); } - private void writeData( - PrintWriter writer, - ServerDataModel serverDataModel, - Map<Identifier, ClientSpatialDistribution> clientSpatialDistributionMap) { - ArrayList<GroupDataModel> groups = new ArrayList<GroupDataModel>(serverDataModel.getGroups()); + private void writeData( + PrintWriter writer, + ServerDataModel serverDataModel, + Map<Identifier, ClientSpatialDistribution> clientSpatialDistributionMap) + { + ArrayList<GroupDataModel> groups = new ArrayList<GroupDataModel>(serverDataModel.getGroups()); for (GroupDataModel group: groups) { // String groupLabel = "Group # " + groups.indexOf(group); String groupLabel = group.toString(); @@ -548,14 +549,16 @@ } else if (event instanceof QuizResponseEvent) { QuizResponseEvent response = (QuizResponseEvent) event; - Identifier source = response.getId(); - - + Identifier id = response.getId(); + String line = String.format("%s, %s", savedRoundData.toSecondString(event), response.toString()); + writer.println(line); } else if (event instanceof EnforcementRankingRequest) { + System.err.println("enforcement ranking request: " + event); EnforcementRankingRequest request = (EnforcementRankingRequest) event; Identifier id = request.getId(); - String line = String.format("%s, %s, %s, %s", savedRoundData.toSecondString(event), id, request.toString(), Arrays.asList(request.getRankings())); + String line = String.format("%s, %s", savedRoundData.toSecondString(event), request.toString()); + writer.println(line); } else { writer.println(String.format("%s, %s", savedRoundData.toSecondString(event), event.toString())); Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/IntervalChecker.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreator.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/MovieCreatorProcessor.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/QuickTimeOutputStream.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id Property changes on: foraging/trunk/src/main/java/edu/asu/commons/foraging/util/VideoFormat.java ___________________________________________________________________ Added: svn:keywords + Date Revision Id 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-06-29 16:08:12 UTC (rev 521) +++ foraging/trunk/src/main/resources/configuration/asu-experiments/voting-fullvision/round1.xml 2010-06-30 19:17:48 UTC (rev 522) @@ -54,12 +54,8 @@ 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 +that displays the remaining time in the round. </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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <al...@us...> - 2010-06-29 16:08:22
|
Revision: 521 http://virtualcommons.svn.sourceforge.net/virtualcommons/?rev=521&view=rev Author: alllee Date: 2010-06-29 16:08:12 +0000 (Tue, 29 Jun 2010) Log Message: ----------- updating round start time logic to use RoundStartedMarkerEvent if it exists. There appears to still be an off-by-one in the interval logic that is causing the intervals to go from 5-245 instead of 0-240, need to fix in later revisions Modified Paths: -------------- csidex/trunk/src/main/java/edu/asu/commons/experiment/SavedRoundData.java Modified: csidex/trunk/src/main/java/edu/asu/commons/experiment/SavedRoundData.java =================================================================== --- csidex/trunk/src/main/java/edu/asu/commons/experiment/SavedRoundData.java 2010-06-15 22:57:30 UTC (rev 520) +++ csidex/trunk/src/main/java/edu/asu/commons/experiment/SavedRoundData.java 2010-06-29 16:08:12 UTC (rev 521) @@ -13,6 +13,7 @@ import edu.asu.commons.conf.ExperimentRoundParameters; import edu.asu.commons.event.ChatRequest; import edu.asu.commons.event.PersistableEvent; +import edu.asu.commons.event.RoundStartedMarkerEvent; /** * $Id$ @@ -191,16 +192,27 @@ } public void setActions(SortedSet<PersistableEvent> actions) { - if (actions != null && ! actions.isEmpty()) { - roundStartTime = actions.iterator().next().getCreationTime(); - this.actions = actions; - } + this.actions = actions; + setRoundStartTime(); } public SortedSet<ChatRequest> getChatRequests() { return chatRequests; } + public void setRoundStartTime() { + if (actions != null && ! actions.isEmpty()) { + roundStartTime = actions.iterator().next().getCreationTime(); + for (PersistableEvent event : actions) { + if (event instanceof RoundStartedMarkerEvent) { + RoundStartedMarkerEvent roundStartedEvent = (RoundStartedMarkerEvent) event; + roundStartTime = roundStartedEvent.getCreationTime(); + return; + } + } + } + } + public void setChatRequests(SortedSet<ChatRequest> chatRequests) { this.chatRequests = chatRequests; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: seema t. <see...@gm...> - 2010-06-24 23:42:34
|
Hello, Checking out at 4:45 Seema On Thu, Jun 24, 2010 at 1:01 PM, seema talele <see...@gm...>wrote: > Hello, > > Checking in after lunch at 1:00pm > > Seema > > > On Thu, Jun 24, 2010 at 11:53 AM, seema talele <see...@gm...>wrote: > >> Hello, >> >> Checking out for lunch at 12:00 >> >> Seema >> >> >> On Thu, Jun 24, 2010 at 11:07 AM, seema talele <see...@gm...>wrote: >> >>> Hello, >>> >>> Started work at 11:00am . >>> >>> >>> Seema >>> >> >> > |
From: seema t. <see...@gm...> - 2010-06-24 20:01:09
|
Hello, Checking in after lunch at 1:00pm Seema On Thu, Jun 24, 2010 at 11:53 AM, seema talele <see...@gm...>wrote: > Hello, > > Checking out for lunch at 12:00 > > Seema > > > On Thu, Jun 24, 2010 at 11:07 AM, seema talele <see...@gm...>wrote: > >> Hello, >> >> Started work at 11:00am . >> >> >> Seema >> > > |
From: seema t. <see...@gm...> - 2010-06-24 18:53:05
|
Hello, Checking out for lunch at 12:00 Seema On Thu, Jun 24, 2010 at 11:07 AM, seema talele <see...@gm...>wrote: > Hello, > > Started work at 11:00am . > > > Seema > |
From: seema t. <see...@gm...> - 2010-06-24 18:07:23
|
Hello, Started work at 11:00am . Seema |
From: seema t. <see...@gm...> - 2010-06-23 23:50:55
|
Hello, Checking out at 4:45pm It seems Zend framework is complicated to understand when URL routing is considered fro module views. Documentation is not good enough to understand some magic it is doing behind the scenes. Started exploring Django. Going to develop similar things which I developed in Zend so that it is easy to compare. Seema |
From: seema t. <see...@gm...> - 2010-06-23 16:50:48
|
Hello, Started work at 9:45am. I am going to explore the zend framework further. Seema |
From: seema t. <see...@gm...> - 2010-06-23 01:50:21
|
Hello, Stopped working at 6:45pm Seema On Tue, Jun 22, 2010 at 11:07 AM, seema talele <see...@gm...>wrote: > Hello, > > I started work at 11:10am. > > As per the discussion with Allen I will work on csid website for logo. > Then I will work on Zend framework. > > Seema > |
From: seema t. <see...@gm...> - 2010-06-22 21:41:19
|
Hello, Django + flex integration - http://djangoamf.sourceforge.jp/index.php?UserManual_en Seema |
From: seema t. <see...@gm...> - 2010-06-22 19:19:50
|
Hello, I started work at 11:10am. As per the discussion with Allen I will work on csid website for logo. Then I will work on Zend framework. Seema |
From: seema t. <see...@gm...> - 2010-06-21 18:44:05
|
Hello, Started work at 11:15am. I am going to continue working on csid test verison. I am going to continue working on Zend framework. Seema |
From: seema t. <see...@gm...> - 2010-06-18 23:46:32
|
Hello Checking out at 4:45pm Discussed following topics with Allen 1) Closure 2) Zend framework Worked on csid new test version 6.0 of the website. Trying to solve some bugs related to themes. Seema On Fri, Jun 18, 2010 at 11:39 AM, seema talele <see...@gm...>wrote: > Hello, > > Started work at 11:30. > > I am going to continue working with Zend framework and finish the rest of > the application. > > Seema > |
From: seema t. <see...@gm...> - 2010-06-18 18:39:50
|
Hello, Started work at 11:30. I am going to continue working with Zend framework and finish the rest of the application. Seema |
From: seema t. <see...@gm...> - 2010-06-17 23:41:43
|
Hello, Started work at 11:30am Checking out at 4:30pm After discussing with Allen about the PHP frameworks. 1) Created a simple ER diagram in Visio which contains 3 entities Game, Experimenter, Participant 2) Started exploring Zend framework Resources - 1) http://framework.zend.com/manual/en/learning.quickstart.html 2) http://akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf Learn about the Zend framework - 1) Does not have ORM like Hibernate which take care of transactions, session factory - data management need to do manually. 2) Easy to install and configure once you have Apache and PHP 3) Need to create Controllers, Model and Views from command line using zf command.... 4) Should know the convention for creating Controllers, Model and Views manually Seema |
From: seema t. <see...@gm...> - 2010-06-16 23:45:57
|
Hello, Checking out at 4:45pm. According to the discussion in the today's meeting I have to finish Participant GUI for Forestry, Fishery and Irrigation. Back end will be PHP . To Do Task- 1) Finish GUI for Forestry 2) Finish GUI for Fishery 3) Finish GUI for Irrigation 4) Study PHP and Flex Completed Task 1) Created the container named as Participant.mxml in which you can add or remove the components according to the type of the game 2) Created Login screen 3) Created Help window Things which are in half way - 1) Integrate Flex login screen with PHP code Seema On Wed, Jun 16, 2010 at 9:31 AM, seema talele <see...@gm...>wrote: > Hello, > > Started work at 9:30am. > > To do - > 1) Find a way to put scroll bar to the wizard panel. There are not any > automatic scroll bar. > 2) Integrate the components with wizard panel. > > > Seema > |
From: seema t. <see...@gm...> - 2010-06-16 16:31:30
|
Hello, Started work at 9:30am. To do - 1) Find a way to put scroll bar to the wizard panel. There are not any automatic scroll bar. 2) Integrate the components with wizard panel. Seema |