/// <summary> /// This constructor used only when recreating a job from XML saved with a document /// </summary> /// <param name="data"></param> /// <param name="jobNumber"></param> public HumanMacroJob(HumanMacroData data, int jobNumber, bool startTurk) { this.data = data; this.jobNumber = jobNumber; HITView hit = Globals.Soylent.soylentMap[Globals.Soylent.Application.ActiveDocument].addHIT(HIT_TYPE, data, jobNumber); hit.addStage(1, HITData.ResultType.Macro, data.macroStageData, "Running Macro", 10, 0.10, jobNumber); if (startTurk) { data.startTask(); } }
/// <summary> /// This constructor used only when recreating a job from XML saved with a document /// </summary> /// <param name="data"></param> /// <param name="jobNumber"></param> public HumanMacroJob(HumanMacroData data, int jobNumber, bool startTurk) { this.data = data; this.jobNumber = jobNumber; HITView hit = Globals.Soylent.soylentMap[Globals.Soylent.Application.ActiveDocument].addHIT(HIT_TYPE, data, jobNumber); hit.addStage(1, HITData.ResultType.Macro, data.macroStageData, "Running Macro", 10, 0.10, jobNumber); if (startTurk) { data.startTask(); } }
/// <summary> /// The Model for a Crowdproof job. This creates the View elements for this task /// </summary> /// <param name="data">The CrowdproofData instance for this job</param> /// <param name="jobNumber">The unique job number</param> //public HumanMacroJob(HumanMacroData data, int jobNumber) //public HumanMacroJob(int jobNumber, Microsoft.Office.Interop.Word.Range range) public HumanMacroJob(Microsoft.Office.Interop.Word.Range toShorten, int job, HumanMacroData.Separator separator, double reward, int redundancy, string title, string subtitle, string instructions, HumanMacroData.ReturnType type, HumanMacroData.TestOrReal test) { //this.data = data; this.jobNumber = job; Globals.Soylent.jobToDoc[jobNumber] = Globals.Soylent.Application.ActiveDocument; this.data = new HumanMacroData(toShorten, job, separator, reward, redundancy, title, subtitle, instructions, type, test); HITView hit = Globals.Soylent.soylentMap[Globals.Soylent.Application.ActiveDocument].addHIT(HIT_TYPE, data, jobNumber); hit.addStage(1, HITData.ResultType.Macro, data.macroStageData, "Running Macro", 10, 0.10, jobNumber); //hit.addStage(2, HITData.ResultType.Fix, "Fix Errors", 5, 0.05); //hit.addStage(3, HITData.ResultType.Verify, "Quality Control", 5, 0.05); data.startTask(); }
/// <summary> /// The Model for a Crowdproof job. This creates the View elements for this task /// </summary> /// <param name="data">The CrowdproofData instance for this job</param> /// <param name="jobNumber">The unique job number</param> //public HumanMacroJob(HumanMacroData data, int jobNumber) //public HumanMacroJob(int jobNumber, Microsoft.Office.Interop.Word.Range range) public HumanMacroJob(Microsoft.Office.Interop.Word.Range toShorten, int job, HumanMacroData.Separator separator, double reward, int redundancy, string title, string subtitle, string instructions, HumanMacroData.ReturnType type, HumanMacroData.TestOrReal test) { //this.data = data; this.jobNumber = job; Globals.Soylent.jobToDoc[jobNumber] = Globals.Soylent.Application.ActiveDocument; this.data = new HumanMacroData(toShorten, job, separator, reward, redundancy, title, subtitle, instructions, type, test); HITView hit = Globals.Soylent.soylentMap[Globals.Soylent.Application.ActiveDocument].addHIT(HIT_TYPE, data, jobNumber); hit.addStage(1, HITData.ResultType.Macro, data.macroStageData, "Running Macro", 10, 0.10, jobNumber); //hit.addStage(2, HITData.ResultType.Fix, "Fix Errors", 5, 0.05); //hit.addStage(3, HITData.ResultType.Verify, "Quality Control", 5, 0.05); data.startTask(); }