Java 类com.amazonaws.mturk.util.PropertiesClientConfig 实例源码

项目:lense    文件:MTurkSystem.java   
/**
 * Instantiating an MTurkSystem should be enough to handle your human worker issues. It handles the rest, as in
 * booting up the jetty server, the API server, and a payments thread to go through and make payments to workers.
 */
public MTurkSystem() {
    humanSourceServer = new HumanSourceServer();
    new Thread(humanSourceServer).start();

    jettyServer = new JettyServer();
    new Thread(jettyServer).start();

    paymentsThread = new PaymentsThread(((jobRecord, amountOwed) -> payWorker(jobRecord.workerID, jobRecord.assignmentID, amountOwed)));
    new Thread(paymentsThread).start();

    try {
        mturkService = new RequesterService(new PropertiesClientConfig("/home/keenon/.aws/mturk.properties"));
    }
    catch (Exception e) {

    }

    mTurkServer = new MTurkServer(this::hireWorkers, this::numWorkersPaidFor);
    new Thread(mTurkServer).start();
}
项目:gort-public    文件:AbstractCrowdTask.java   
public AbstractCrowdTask(FileObject resultsFO, FileObject mTurkPropertiesFO,
        FileObject questionFO, FileObject propertiesFO, FileObject inputFO,
        List<CrowdTask> crowdTasks, GortEntityManager gem, EntityManager em) {
    this.resultsFO = resultsFO;
    this.mTurkPropertiesFO = mTurkPropertiesFO;
    this.questionFO = questionFO;
    this.taskPropertiesFO = propertiesFO;
    this.inputFO = inputFO;
    this.gem = gem;
    this.em = em;
    this.crowdTasks = crowdTasks;

    //instead of the aws requester serivce use the Gort reviewer service
    //that allows the use of assignment and hit review policies
    //service = new RequesterService(new PropertiesClientConfig(mTurkPropertiesFO.getPath()));
    service = new GortRequesterService(new PropertiesClientConfig(mTurkPropertiesFO.getPath()));
}
项目:gort-public    文件:BestImage.java   
/**
 * Constructor
 *
 */
public BestImage(String mTurkProperties) {

  //service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
    Path currentRelativePath = Paths.get("");
    String s = currentRelativePath.toAbsolutePath().toString();
    System.out.println("Current relative path is: " + s);
    System.out.println(mTurkProperties);
    service = new RequesterService(new PropertiesClientConfig(mTurkProperties));
}
项目:java-aws-mturk    文件:RequesterServiceRaw.java   
@Deprecated
protected RequesterServiceRaw() {
  this(new PropertiesClientConfig());
}
项目:java-aws-mturk    文件:MyHIT.java   
public MyHIT() {
    service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:SiteCategory.java   
public SiteCategory() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturk-screening-presurvey    文件:FullSurvey.java   
public FullSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturk-screening-presurvey    文件:ScreenerQuestion.java   
public ScreenerQuestion() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturk-screening-presurvey    文件:Responses.java   
public Responses() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturk-screening-presurvey    文件:QualifyScreenerRespondents.java   
public QualifyScreenerRespondents() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:RequesterServiceRaw.java   
@Deprecated
protected RequesterServiceRaw() {
  this(new PropertiesClientConfig());
}
项目:mturksdk-java-code-maven    文件:MyHIT.java   
public MyHIT() {
    service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:SiteCategory.java   
public SiteCategory() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:Runner    文件:MturkResponseManager.java   
public MturkResponseManager(MturkLibrary lib)
{
    this.config = new PropertiesClientConfig(lib.CONFIG);
    this.config.setServiceURL(lib.MTURK_URL);
    this.service = new RequesterService(config);
}
项目:hiding    文件:Reviewer.java   
/**
 * Constructor
 *
 */
public Reviewer() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
  filenames = Utils.getAuthors40();
}
项目:hiding    文件:ReadabilityPusher.java   
/** Constructor. */
public ReadabilityPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
项目:hiding    文件:TranslationFixReadabilityPusher.java   
/** Constructor. */
public TranslationFixReadabilityPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
}
项目:hiding    文件:TranslationFixPusher.java   
/** Constructor. */
public TranslationFixPusher() {
  service = new RequesterService(new PropertiesClientConfig("mturk.properties"));
  hittypes = new String[5];
}
项目:gort-public    文件:MovieSurvey.java   
/**
* Constructor
*/
public MovieSurvey()
{
      service = new RequesterService(new PropertiesClientConfig());
}
项目:gort-public    文件:MyHIT.java   
public MyHIT() {
    service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:gort-public    文件:SiteCategory.java   
public SiteCategory() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:MTurkHelloWorld.java   
/**
 * Constructor
 * 
 */
public MTurkHelloWorld() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:SimpleSurvey.java   
/**
 * Constructor
 *
 */
public SimpleSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:ReviewPolicyExample.java   
/**
 * Constructor
 * 
 */
public ReviewPolicyExample() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:BestImage.java   
/**
 * Constructor
 *
 */
public BestImage() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:java-aws-mturk    文件:Reviewer.java   
/**
 * Constructor
 *
 */
public Reviewer() {
  service = new RequesterService(new PropertiesClientConfig("samples/mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:MTurkHelloWorld.java   
/**
 * Constructor
 * 
 */
public MTurkHelloWorld() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:SimpleSurvey.java   
/**
 * Constructor
 *
 */
public SimpleSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:ReviewPolicyExample.java   
/**
 * Constructor
 * 
 */
public ReviewPolicyExample() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:BestImage.java   
/**
 * Constructor
 *
 */
public BestImage() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:mturksdk-java-code-maven    文件:Reviewer.java   
/**
 * Constructor
 *
 */
public Reviewer() {
  service = new RequesterService(new PropertiesClientConfig("samples/mturk.properties"));
}
项目:gort-public    文件:MTurkHelloWorld.java   
/**
 * Constructor
 * 
 */
public MTurkHelloWorld() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:gort-public    文件:SimpleSurvey.java   
/**
 * Constructor
 *
 */
public SimpleSurvey() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:gort-public    文件:ReviewPolicyExample.java   
/**
 * Constructor
 * 
 */
public ReviewPolicyExample() {
  service = new RequesterService(new PropertiesClientConfig("../mturk.properties"));
}
项目:gort-public    文件:Reviewer.java   
/**
 * Constructor
 *
 */
public Reviewer() {
  service = new RequesterService(new PropertiesClientConfig("samples/mturk.properties"));
}