public ActivityDatabase(ScoreSummarizer happinessSummarizer, ScoreSummarizer efficiencySummarizer)
 {
     this.activitiesByName     = new StatList <string, IEnumerable <Activity> >(this, this);
     this.allActivities        = new List <Activity>();
     this.happinessSummarizer  = happinessSummarizer;
     this.efficiencySummarizer = efficiencySummarizer;
     this.rootActivity         = new Category("Activity", happinessSummarizer, efficiencySummarizer);
     this.rootActivity.setSuggestible(false);
     this.AddActivity(this.rootActivity);
     this.todoCategory = new Category("ToDo", happinessSummarizer, efficiencySummarizer);
     this.todoCategory.setSuggestible(false);
     this.todoCategory.AddParent(this.rootActivity);
     this.AddActivity(this.todoCategory);
     this.problemCategory = new Category("Problem", happinessSummarizer, efficiencySummarizer);
     this.problemCategory.setSuggestible(false);
     this.problemCategory.AddParent(this.rootActivity);
     this.AddActivity(this.problemCategory);
 }
        public ActivityVisualizationView(IProgression participationXAxis, Activity yAxisActivity, ScoreSummarizer overallRating_summarizer, ScoreSummarizer overallEfficiency_summarizer, LayoutStack layoutStack)
        {
            this.layoutStack = layoutStack;
            this.overallRating_summarizer     = overallRating_summarizer;
            this.overallEfficiency_summarizer = overallEfficiency_summarizer;

            this.xAxisProgression = participationXAxis;
            this.yAxisActivity    = yAxisActivity;

            // setup the title
            this.SetTitle(this.YAxisLabel + " vs. " + this.XAxisLabel);

            GridLayout fixedGrid = GridLayout.New(new BoundProperty_List(1), BoundProperty_List.Uniform(2), LayoutScore.Zero);

            this.SetContent(fixedGrid);

            GridLayout graphGrid = GridLayout.New(BoundProperty_List.Uniform(2), new BoundProperty_List(1), LayoutScore.Zero);

            // setup a graph of the ratings
            this.ratingsView = new TitledControl("Ratings vs. Time");
            graphGrid.AddLayout(this.ratingsView);

            // setup a graph of the participations
            this.participationsView = new TitledControl("Participations vs. " + this.XAxisLabel);
            graphGrid.AddLayout(this.participationsView);

            //flexibleGrid.AddLayout(graphGrid);
            fixedGrid.AddLayout(graphGrid);

            this.statsLayoutHolder           = new ContainerLayout();
            this.statsLayoutHolder.SubLayout = this.Make_StatsView();

            fixedGrid.AddLayout(this.statsLayoutHolder);

            this.UpdateDrawing();
        }
Exemplo n.º 3
0
 public Participation_NetPresentHappiness_Comparer(ScoreSummarizer scoreSummarizer)
 {
     this.scoreSummarizer = scoreSummarizer;
 }
Exemplo n.º 4
0
 // public
 public Category(string activityName, ScoreSummarizer overallRatings_summarizer, ScoreSummarizer efficiencySummarizer) : base(activityName, overallRatings_summarizer, efficiencySummarizer)
 {
 }
Exemplo n.º 5
0
 // public
 public Problem(string activityName, ScoreSummarizer overallRatings_summarizer, ScoreSummarizer overallEfficiency_summarizer) : base(activityName, overallRatings_summarizer, overallEfficiency_summarizer)
 {
     this.AddIntrinsicMetric(new ProblemMetric(this));
 }