예제 #1
0
        /// <summary>
        /// Add a stage to this container
        /// </summary>
        /// <param name="stageNum"></param>
        /// <param name="type"></param>
        /// <param name="stageType"></param>
        /// <param name="totalTurkers"></param>
        /// <param name="totalCost"></param>
        public void addStage(int stageNum, HITData.ResultType type, StageData sdata, string stageType, int totalTurkers, double totalCost, int job)
        {
            StageData stagedata = sdata;
            StageView newStage  = new StageView(stageNum, type, stagedata, stageType, totalTurkers, totalCost, job);

            stages.Children.Insert(stages.Children.IndexOf(cancelBtn), newStage);
            stageList[type] = newStage;
            //stageList.Add(newStage);
        }
예제 #2
0
        public StageView(int stageNum, HITData.ResultType type, StageData stagedata, string stageType, int totalTurkers, double totalCost, int job)
        {
            InitializeComponent();

            this.stagedata    = stagedata;
            this.type         = type;
            this.totalTurkers = totalTurkers;
            this.totalCost    = totalCost;
            stagedata.registerListener(this);

            stageName.Content = String.Format("Stage {0}: {1:c}", stageNum, stageType);

            updateProgress(0, 0);

            this.job = job;
        }
예제 #3
0
        public StageView(int stageNum, HITData.ResultType type, StageData stagedata, string stageType, int totalTurkers, double totalCost, int job)
        {
            InitializeComponent();

            this.stagedata = stagedata;
            this.type = type;
            this.totalTurkers = totalTurkers;
            this.totalCost = totalCost;
            stagedata.registerListener(this);

            stageName.Content = String.Format("Stage {0}: {1:c}", stageNum, stageType);

            updateProgress(0, 0);

            this.job = job;
        }
예제 #4
0
 public StageData(HITData.ResultType type, int job)
 {
     this.type = type;
     this.job = job;
 }
예제 #5
0
 /// <summary>
 /// Represents the data from a specific stage in a job.  For example: the Find, Fix, or Verify stage.
 /// </summary>
 /// <param name="type">The type of the stage.  For example, Find, Fix, or Verify</param>
 /// <param name="numParagraphs">The number of paragraphs in this job</param>
 public StageData(HITData.ResultType type, int numParagraphs, int job)
 {
     this.type = type;
     this.FixParagraphNumber(numParagraphs);
     this.job = job;
 }
예제 #6
0
 public HumanMacroStage(HITData.ResultType type, int redundancy, int job)
     : base(type, job)
 {
     this.redundancy = redundancy;
 }
예제 #7
0
 public StageData(HITData.ResultType type, int job)
 {
     this.type = type;
     this.job  = job;
 }
예제 #8
0
 /// <summary>
 /// Represents the data from a specific stage in a job.  For example: the Find, Fix, or Verify stage.
 /// </summary>
 /// <param name="type">The type of the stage.  For example, Find, Fix, or Verify</param>
 /// <param name="numParagraphs">The number of paragraphs in this job</param>
 public StageData(HITData.ResultType type, int numParagraphs, int job)
 {
     this.type = type;
     this.FixParagraphNumber(numParagraphs);
     this.job = job;
 }