/// <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); }
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; }
public StageData(HITData.ResultType type, int job) { this.type = type; this.job = job; }
/// <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; }
public HumanMacroStage(HITData.ResultType type, int redundancy, int job) : base(type, job) { this.redundancy = redundancy; }