Package practica1.controller

Examples of practica1.controller.Controller$EscuchadorExperimento


* @author home
* Classe Main centrale
*/
public class Main {
  static public void main(String args[]) {
    Controller controller = new Controller(true);
    Game game = Game.getInstance();
    GUI gui = GUI.getInstance();

    /* Boucle de jeu */
    while (!game.isFinished()) {
View Full Code Here


  // MAIN //
  //////////
 
  public static void main(String[] args) {
    Modele m = new Modele();
    Controller c = new Controller(m);
    c.displayViews();
  }
View Full Code Here

import view.View;

public class Main {

  public static void main(String[] args) {
    new Controller(new View());
  }
View Full Code Here

    EventQueue.invokeLater(new Runnable() {
      public void run() {
        try {
          Model model = new Model();
          View view = new View(model);
                    new Controller(model, view);
         
        } catch (Exception e) {
          e.printStackTrace();
          System.exit(0);
        }
View Full Code Here

  static Controller test;
 
 
  @Before
  public void init(){
    test = new Controller();
  }
View Full Code Here

        for(ControllerListener l : listenersController) {
            l.experimentoPrincipalChange(new ControllerListenerEvent(experimento));
        }
       
        for(ControllerExperimentoListener l : listenersExperimento) {
            l.addedExperimento(new ControllerExperimentoEvent(experimento));
        }
    }
View Full Code Here

        experimento.cerrarTodasPoblaciones();
       
        experimentosAbiertos.remove(experimento);
       
        for(ControllerExperimentoListener l : listenersExperimento) {
            l.removedExperimento(new ControllerExperimentoEvent(experimento));
        }
    }
View Full Code Here

        experimento.addLogicExperimentoListener(escuchadorExperimento);
       
        experimentosAbiertos.add(experimento);
       
        for(ControllerListener l : listenersController) {
            l.experimentoPrincipalChange(new ControllerListenerEvent(experimento));
        }
       
        for(ControllerExperimentoListener l : listenersExperimento) {
            l.addedExperimento(new ControllerExperimentoEvent(experimento));
        }
View Full Code Here

    public void setExperimentoPrincipal(LogicExperimento experimentoPrincipal) {
        this.experimentoPrincipal = experimentoPrincipal;
       
        for(ControllerListener l : listenersController) {
            l.experimentoPrincipalChange(
                    new ControllerListenerEvent(experimentoPrincipal));
        }
    }
View Full Code Here

    public void addPoblacion(LogicPoblacion poblacion) {
        poblacion.getExperimentoPadre().addPoblacion(poblacion);
       
        //Notificamos a todos de que se ha agregado una población
        for(ControllerPoblacionListener l : listenersPoblacion) {
            l.addedPoblacion(new ControllerPoblacionEvent(poblacion));
        }
       
        //Despues abrimos la población
        abrirPoblacion(poblacion);
    }
View Full Code Here

TOP

Related Classes of practica1.controller.Controller$EscuchadorExperimento

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.