Package core.simulation

Examples of core.simulation.Simulation



      // Duerme un intervalo de tiempo
      try
      {
        Simulation sim = Simulation.getCurrent();
        Thread.sleep( sim != null ? sim.getStepTime() : 0 );
        sleepCounts++;
      }
      catch (InterruptedException e)
      { }
       
View Full Code Here


          });
        }
      }
     
      // Se crea una simulaci�n vac�a que se ir� llenando.
      Simulation newSim = new Simulation();
      if ( newSim != null )
        newSim.setPlaybackSimualtion( false );
      else
        Logger.error( "No pude instanciarse la nueva simulaci�n" );
     
      composite1.layout(true);
     
View Full Code Here

    canvas.redraw();
  }
 
 
  private void linkedIcons() { 
    Simulation simulation = Simulation.getCurrent();
    RecognizedShape[] icons = simulation.getGps().getMazeItems().recognizedColoredIcons;
   
    Point originPoint = new Point(x,y);
    Point endPoint = new Point(x+w,y+h);
    RecognizedShape origin = null, end = null;
   
View Full Code Here

            }
          }         
         
          if(resolved){
            Set<Integer> keys = linkedIcons.keySet();
            Simulation simulation = Simulation.getCurrent();
           
            for (Integer placeId : keys) {
              Set<Integer> connections = linkedIcons.get(placeId);             
              for (Integer destiny : connections) {
                places[placeId-1][destiny-1]=true;
                places[destiny-1][placeId-1]=true;
              }
            }
         
            for (int i = 0; i < places.length; i++) {
              for (int j = 0; j < places.length; j++) {
                if(places[i][j]) simulation.setPlace(i+1,j+1);
              }
            }
          }
        }
        else {
View Full Code Here


      // Duerme un intervalo de tiempo
      try
      {
        Simulation sim = Simulation.getCurrent();
        Thread.sleep( sim != null ? sim.getStepTime() : 0 );
        sleepCounts++;
      }
      catch (InterruptedException e)
      { }
       
View Full Code Here

TOP

Related Classes of core.simulation.Simulation

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.