Package it.polito.appeal.traci

Examples of it.polito.appeal.traci.ControlledLinks


  };
 
  @Test
  public void testControlledLinks() throws IOException {
    TrafficLight tl = repo.getByID("0");
    ControlledLinks links = tl.getReadControlledLinksQuery().get();
   
    assertEquals(linksLaneIDs.length, links.getLinks().length);
    for (int i=0; i<linksLaneIDs.length; i++) {
      ControlledLink[] linksForSignal = links.getLinks()[i];
      assertEquals(1, linksForSignal.length);
      ControlledLink link = linksForSignal[0];
      assertEquals(linksLaneIDs[i][0], link.getIncomingLane().getID());
      assertEquals(linksLaneIDs[i][1], link.getAcrossLane().getID());
      assertEquals(linksLaneIDs[i][2], link.getOutgoingLane().getID());
View Full Code Here


  };
 
  @Test
  public void testControlledLinks() throws IOException {
    TrafficLight tl = repo.getByID("0");
    ControlledLinks links = tl.queryReadControlledLinks().get();
   
    assertEquals(linksLaneIDs.length, links.getLinks().length);
    for (int i=0; i<linksLaneIDs.length; i++) {
      ControlledLink[] linksForSignal = links.getLinks()[i];
      assertEquals(1, linksForSignal.length);
      ControlledLink link = linksForSignal[0];
      assertEquals(linksLaneIDs[i][0], link.getIncomingLane().getID());
      assertEquals(linksLaneIDs[i][1], link.getAcrossLane().getID());
      assertEquals(linksLaneIDs[i][2], link.getOutgoingLane().getID());
View Full Code Here

TOP

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

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.