Package hu.u_szeged.nbo.res_alloc.model.container

Examples of hu.u_szeged.nbo.res_alloc.model.container.TrafficProperties


  }
 
  private void loadTrafficDensities(String filename)
  throws FileNotFoundException, IOException {
    try {
      TrafficProperties traffic = new TrafficProperties(model);
      StringTokenizer tokenizer = this.openFile(filename);
     
      //ignore header fields
      tokenizer.nextToken();
      tokenizer.nextToken();
      tokenizer.nextToken();
     
      while (tokenizer.hasMoreTokens()) {
        int dense12 = Integer.parseInt(tokenizer.nextToken());
        int from    = Integer.parseInt(tokenizer.nextToken());
        int to      = Integer.parseInt(tokenizer.nextToken());
       
        for (int time = from; time < to; time++) {
          traffic.putTrafficDensity(time, (byte)dense12);
        }
      }
     
      model.setTrafficProperties(traffic);
    }
View Full Code Here

TOP

Related Classes of hu.u_szeged.nbo.res_alloc.model.container.TrafficProperties

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.