Package gld.infra.Node

Examples of gld.infra.Node.NodeStatistics


  */
  protected String[] getTableData(NodeStatistics[][] nodeStats, int row)
  {
    int id = (verScroll + row) / nodeStats[0].length;
    int statIndex = (verScroll + row) % nodeStats[0].length;
    NodeStatistics ns = nodeStats[id][statIndex];
     
    String[] data = new String[numCols];
    for(int i=0; i<numCols; i++)
      data[i] = getCellData(horScroll + i, id, statIndex, ns);
    return data;
View Full Code Here


    out.println("#"); out.println("# EdgeNodes");
    out.println("# Data format: " + "<id"+SEP+"ruType"+SEP+"roadusersArrived"+SEP+"avgTripWaitingTimeAllTime"+SEP+"avgTripWaitingTimeLast" + Node.STAT_NUM_DATA + ">"); out.println("#");
    for(int id=0; id<numNodes; id++) {
      if(id==numSpecial) { out.println("#"); out.println("# Junctions"); out.println("#"); }
      for(int statIndex=0; statIndex<nodeStats[id].length; statIndex++) {
        NodeStatistics ns = nodeStats[id][statIndex];
        out.println(id + SEP + ruTypes[statIndex] + SEP + ns.getTotalRoadusers() + SEP +
          ns.getAvgWaitingTime(true) + SEP + ns.getAvgWaitingTime(false));
      }
    }
    out.close();
 
View Full Code Here

TOP

Related Classes of gld.infra.Node.NodeStatistics

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.