Package gld.infra

Examples of gld.infra.Infrastructure


    loadAll(loader,getSimModel());
    newInfrastructure(model.getInfrastructure());
    loader.close();
   
    //GASTON: AGREGUE ESTE CODIGO PARA CARGAR TODOS LOS NODOS DISPONIBLES CUANDO CARGA LA RED EL GLDSIM
    Infrastructure infra = model.getInfrastructure();
    Node[] nodos = infra.getAllNodes();
    for (int i=0;i<nodos.length;i++){
      if (nodos[i] instanceof Junction){
        ((Junction)nodos[i]).updateAllAvailableRoads();
      }
    }
View Full Code Here


  /** Shows the file properties dialog */
  public void showFilePropertiesDialog()
  {
    String simName = getSimModel().getSimName();
    Infrastructure infra = getSimModel().getInfrastructure();
    String comments = infra.getComments();
   
    SimPropDialog propDialog = new SimPropDialog(this, simName, comments);
   
    propDialog.show();
    if(propDialog.ok())
    {
      getSimModel().setSimName(propDialog.getSimName());
      infra.setComments(propDialog.getComments());
    }
    this.setStatus("Simulation \"" + getSimModel().getSimName() + "\".");
  }
View Full Code Here

    editController.requestFocus();
  }

  /** Set temp debug infra */
  protected void setInfra(int nr)
  {  Infrastructure infra;
    switch (nr)
    {  case 1 : infra=new SimpleInfra(); break;
      case 2 : infra=new LessSimpleInfra(); break;
      case 3 : infra=new NetTunnelTest1(); break;
      case 4 : infra=new NetTunnelTest2(); break;
      default: infra=new Infrastructure(); break;
    }
    try
    Vector errors=(new Validation(infra)).validate();
      if(!errors.isEmpty())
        showError(errors.toString());
View Full Code Here

   */
  protected void saveData(String filename, SimModel model) throws IOException
  {
    PrintWriter out=new PrintWriter(new FileWriter(new File(filename)));
    out.println("# Data exported by Green Light District"); out.println("#");
    Infrastructure infra = model.getInfrastructure();
    out.println("# Infrastructure: \"" + infra.getTitle() + "\" by " + infra.getAuthor());
    out.println("# Simulation: \"" + model.getSimName() + "\"");
    out.println("# Tracking data: \"" + getDescription() + "\"");
    out.println("# Measured: " + getYLabel()); out.println("#");
    String fieldsDesc = "";
    for(int i=0; i<MAX_TRACK; i++)
View Full Code Here

TOP

Related Classes of gld.infra.Infrastructure

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.