Package net.geco.control

Examples of net.geco.control.PenaltyChecker


 
  public void importStages(Collection<String> poolDirs) {
    poolStages = new Vector<Stage>(poolDirs.size());
    StageBuilder stageBuilder = new StageBuilder(gecoControl.factory());
    for (String dir : poolDirs) {
      poolStages.add( stageBuilder.loadStage(dir, new PenaltyChecker(gecoControl.factory())) );
    }
  }
View Full Code Here


  }

  @Override
  @SuppressWarnings("unchecked")
  public PenaltyChecker createChecker(GecoControl gecoControl) {
    return new PenaltyChecker(gecoControl);
  }
View Full Code Here

  }

  @Override
  @SuppressWarnings("unchecked")
  public PenaltyChecker createChecker(GecoControl gecoControl) {
    return new PenaltyChecker(gecoControl);
  }
View Full Code Here

  }
 
  @Test
  public void testLoadStage() {
    StageBuilder stageBuilder = new StageBuilder(factory);
    stage = stageBuilder.loadStage("testData/belfield", new PenaltyChecker(factory));
    assertStageData(stage, "Belfield", "testData/belfield", "9:00:00", 9, 2);
    Registry registry = stage.registry();
    assertEquals(32, registry.getCategories().size());
    assertEquals(13, registry.getClubs().size());
    assertEquals(2, registry.getCourses().size());
View Full Code Here

  }

  @Test
  public void testLoadStageWithMissingData() {
    StageBuilder stageBuilder = new StageBuilder(factory);
    stage = stageBuilder.loadStage("testData/damaged", new PenaltyChecker(factory));
    Registry registry = stage.registry();
    assertEquals(3, registry.getCategories().size());
    assertEquals(4, registry.getClubs().size());
    assertEquals(2, registry.getCourses().size());
    assertEquals(9, registry.getRunners().size());   
View Full Code Here

  public static final boolean SHOW = false;
 
  @Before
  public void setUp() {
    factory = new POFactory();
    checker = new PenaltyChecker(factory);
    checker.setMPPenalty(30000);
    checker.setMPLimit(5);
    course = factory.createCourse();
    data = factory.createRunnerRaceData();
    Runner runner = factory.createRunner();
View Full Code Here

  private RunnerRaceData data;

  @Before
  public void setUp() {
    factory = new POFactory();
    checker = new PenaltyChecker(factory);
    checker.setMPPenalty(30000);
    checker.setMPLimit(4);
    course = factory.createCourse();
    data = factory.createRunnerRaceData();
    Runner runner = factory.createRunner();
View Full Code Here

TOP

Related Classes of net.geco.control.PenaltyChecker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.