Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / application / simulator / UISimulatorWindow.java
package application.simulator;

import javax.swing.JFrame;
import javax.swing.JPanel;

import simulator.Simulator;
import simulator.interfaces.swing.SwingPresenter;
import simulator.interfaces.timers.TimerService;

public class UISimulatorWindow extends JFrame {

	private static final long serialVersionUID = 1770206525826167136L;
	private SwingPresenter presenter;
	private Simulator simulator;
	private JPanel mainPanel;
	private TimerService timerService;
	
	public UISimulatorWindow(Simulator simulator) {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.simulator = simulator;
		mainPanel = new JPanel();
		presenter = new SwingPresenter(mainPanel, simulator);
		this.add(mainPanel);
		timerService = new TimerService(simulator);
		
	    setSize(870,640);
	    setVisible(true);
	}
}