Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.Program


  }
 
  @Test
  public void testCompleteProgramDefinition() throws IOException {
    TrafficLight tl = repo.getByID("0");
    Program program = tl.getCompleteDefinitionQuery().get();
   
    assertEquals(1, program.getLogics().length);
    Logic logic = program.getLogics()[0];
   
    assertEquals("0", logic.getSubID());
    assertEquals(0, logic.getCurrentPhaseIndex());
   
    Phase[] phases = logic.getPhases();
View Full Code Here


  }
 
  @Test
  public void testCompleteProgramDefinition() throws IOException {
    TrafficLight tl = repo.getByID("0");
    Program program = tl.queryReadCompleteDefinition().get();
   
    assertEquals(1, program.getLogics().length);
    Logic logic = program.getLogics()[0];
   
    assertEquals("0", logic.getSubID());
    assertEquals(0, logic.getCurrentPhaseIndex());
   
    Phase[] phases = logic.getPhases();
View Full Code Here

      new Phase(55000, new TLState("yyrrGGGGGGyyGyGy"))
    });
    tl.queryChangeCompleteProgramDefinition().setValue(expectedLogic);
    tl.queryChangeCompleteProgramDefinition().run();
   
    Program newProgram = tl.queryReadCompleteDefinition().get();
   
    assertEquals(1, newProgram.getLogics().length);
    Logic actualLogic = newProgram.getLogics()[0];

    assertEquals(
        expectedLogic.getSubID(),
        actualLogic.getSubID());
    assertEquals(
View Full Code Here

TOP

Related Classes of it.polito.appeal.traci.Program

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.