Package net.geco.model

Examples of net.geco.model.Stage


    // "F:\";"Mullaghmeen Results (12 Oct 08)";"F:\";"Mullaghmeen Splits";"[None]";"";"";"";"";
    // "12/10/2008";2;COM1;150;17;false;false;;0
    // Competition ID,Name,Type,Result Type,default start time,true,true,true,true,string,string,
    // result dir,result file,split dir,split file,SI port,csv dir,csv file,string,string,
    // subheading,spool split,spool port,Map DPI,GPS offset time,auto-enter,send server, server address, time format
    Stage stage = factory.createStage();
    stage.setName(record[1].replace("\"", "")); //$NON-NLS-1$ //$NON-NLS-2$
//    stage.setDate(record[]);
//    stage.setDefaultStartTime(record[]);
    this.stage = stage;
    return stage;
  }
View Full Code Here


    super(factory);
    this.registryBuilder = new RegistryBuilder(factory);
  }
 
  public Stage loadStage(String baseDir, PenaltyChecker checker) {
    Stage newStage = factory().createStage();
    loadStageProperties(newStage, baseDir);
    importDataIntoRegistry(newStage);
    checker.postInitialize(newStage); // post initialization
    new RunnerBuilder(factory()).checkGecoData(newStage, checker);
    return newStage;
View Full Code Here

   * Open new stage with data in the provided dir. Clean up previous stages and start autosaving.
   *
   * @param baseDir
   */
  public void openStage(String baseDir) {
    Stage oldStage = null;
    if( current!=null ){
      oldStage = current.stage();
      closeCurrentStage();
    }

View Full Code Here

    announcer.announceChange(oldStage, stage());
    startAutosave();
  }
  private RuntimeStage loadStage(String baseDir, boolean withLogger) {
    Stage stage = stageBuilder.loadStage(baseDir, checker);
//    stageBuilder.backupData(stage.getBaseDir(),
//              backupFilename( new SimpleDateFormat("yyMMdd-HHmmss'i'").format(new Date()) ));
    Logger logger = null;
    if( withLogger ) {
      logger = initializeLogger(stage);
View Full Code Here

  private Registry registry;

  @Before
  public void setUp(){
    registry = Mockito.mock(Registry.class);
    Stage stage = Mockito.mock(Stage.class);
    GecoControl gecoControl = Mockito.mock(GecoControl.class);
    Mockito.when(gecoControl.stage()).thenReturn(stage);
    Mockito.when(stage.registry()).thenReturn(registry);
    runnerControl = new RunnerControl(gecoControl);   
  }
View Full Code Here

  }
 
  public IGecoApp mockGeco(){
    mockGeco = mock(IGecoApp.class);
    Announcer ann = mock(Announcer.class);
    Stage stage = mock(Stage.class);
    SIReaderHandler si = mock(SIReaderHandler.class);
    SingleSplitPrinter splitPrinter = mock(SingleSplitPrinter.class);
    when(mockGeco.announcer()).thenReturn(ann);
    when(mockGeco.stage()).thenReturn(stage);
    when(mockGeco.siHandler()).thenReturn(si);
View Full Code Here

TOP

Related Classes of net.geco.model.Stage

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.