MaquinaDeEstadosMicroondas

MaquinaDeEstadosMicroondas


DisciplinaModelagem de Software19 materiais214 seguidores
Pré-visualização4 páginas
Trab3/.classpath
 
	 
	 
	 
Trab3/.project
 
	 Trab3
	 
	 
	
	 
		 
			 org.eclipse.jdt.core.javabuilder
			 
			
		
	
	 
		 org.eclipse.jdt.core.javanature
	
Trab3/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
Trab3/1.JPG
Trab3/2.JPG
Trab3/bin/controle/Principal.class
package controle;
public synchronized class Principal {
 public void Principal();
 public static void main(String[]);
}
Trab3/bin/controle/TratadorBotaoControle.class
package controle;
public synchronized class TratadorBotaoControle implements java.awt.event.ActionListener {
 private javax.swing.JButton botaoAcao;
 private modelo.Microondas microondas;
 public void TratadorBotaoControle(javax.swing.JButton, modelo.Microondas);
 public void actionPerformed(java.awt.event.ActionEvent);
}
Trab3/bin/controle/TratadorBotaoNumeros.class
package controle;
public synchronized class TratadorBotaoNumeros implements java.awt.event.ActionListener {
 private javax.swing.JTextArea visorMinutos;
 private javax.swing.JTextArea visorSegundos;
 private javax.swing.JButton botao;
 private modelo.Microondas microondas;
 public void TratadorBotaoNumeros(modelo.Microondas, javax.swing.JTextArea, javax.swing.JTextArea, javax.swing.JButton);
 public void actionPerformed(java.awt.event.ActionEvent);
 private boolean atualizarVisor(javax.swing.JTextArea, int);
}
Trab3/bin/controle/Validador.class
package controle;
public final synchronized class Validador {
 private void Validador();
 public static boolean validarTamanhoMaximo(javax.swing.JTextArea, int);
 public static boolean validarTempo(javax.swing.JTextArea);
 public static boolean validarUltimoDigito(javax.swing.JTextArea, int);
}
Trab3/bin/modelo/Aquecendo.class
package modelo;
public synchronized class Aquecendo extends MicroondasState {
 public void Aquecendo();
 public MicroondasState pause();
 public MicroondasState open();
 public MicroondasState timeOver();
}
Trab3/bin/modelo/EmEspera.class
package modelo;
public synchronized class EmEspera extends MicroondasState {
 public void EmEspera();
 public MicroondasState setTime(int, int);
}
Trab3/bin/modelo/Microondas.class
package modelo;
public synchronized class Microondas extends java.util.Observable implements java.awt.event.ActionListener {
 private int minutos;
 private int segundos;
 private boolean portaFechada;
 private javax.swing.Timer timer;
 private MicroondasState estadoMicroondas;
 public void Microondas();
 public void actionPerformed(java.awt.event.ActionEvent);
 public void setTime(int, int);
 public void start();
 public void open();
 public void close();
 public void pause();
 public void decrementarTempo();
 public int getMinutos();
 void setMinutos(int);
 public int getSegundos();
 void setSegundos(int);
 public boolean getPortaFechada();
 void setPortaFechada(boolean);
 void startTime();
 void stopTimer();
}
Trab3/bin/modelo/MicroondasState.class
package modelo;
public abstract synchronized class MicroondasState {
 protected static Microondas microondas;
 public void MicroondasState();
 public static MicroondasState getInitialState(Microondas);
 public MicroondasState pause();
 public MicroondasState open();
 public MicroondasState timeOver();
 public MicroondasState start();
 public MicroondasState close();
 public MicroondasState setTime(int, int);
}
Trab3/bin/modelo/ParadoComPortaAberta.class
package modelo;
public synchronized class ParadoComPortaAberta extends MicroondasState {
 public void ParadoComPortaAberta();
 public MicroondasState pause();
 public MicroondasState close();
}
Trab3/bin/modelo/ParadoComPortaFechada.class
package modelo;
public synchronized class ParadoComPortaFechada extends MicroondasState {
 public void ParadoComPortaFechada();
 public MicroondasState pause();
 public MicroondasState open();
 public MicroondasState start();
}
Trab3/bin/visao/FramePrincipal.class
package visao;
public synchronized class FramePrincipal extends javax.swing.JFrame {
 public final int LARGURA;
 public final int ALTURA;
 javax.swing.JPanel painelControle;
 javax.swing.JPanel painelVisual;
 public void FramePrincipal(PainelControle, PainelVisual);
}
Trab3/bin/visao/PainelControle.class
package visao;
public synchronized class PainelControle extends javax.swing.JPanel implements java.util.Observer {
 private javax.swing.JPanel painelLabels;
 private javax.swing.JPanel painelBotoes;
 private javax.swing.JPanel painelVisor;
 private javax.swing.JPanel painelBotoesAcoes;
 private java.awt.Label minutos;
 private java.awt.Label segundos;
 private java.awt.Label doisPontos;
 private javax.swing.JButton start;
 private javax.swing.JButton pause;
 private javax.swing.JButton open;
 private javax.swing.JTextArea visorMinutos;
 private javax.swing.JTextArea visorSegundos;
 private javax.swing.JButton botao1;
 private javax.swing.JButton botao2;
 private javax.swing.JButton botao3;
 private javax.swing.JButton botao4;
 private javax.swing.JButton botao5;
 private javax.swing.JButton botao6;
 private javax.swing.JButton botao7;
 private javax.swing.JButton botao8;
 private javax.swing.JButton botao9;
 private javax.swing.JButton botao0;
 private javax.swing.JButton botaoCentralizador;
 private modelo.Microondas microondas;
 public void PainelControle(modelo.Microondas);
 private void montaTela();
 public void update(java.util.Observable, Object);
 private void updateBotaoPorta();
 private void updateTime();
}
Trab3/bin/visao/PainelVisual.class
package visao;
public synchronized class PainelVisual extends javax.swing.JPanel implements java.util.Observer {
 private java.awt.Image portaAberta;
 private java.awt.Image portaFechada;
 private java.io.File arquivoImagemPA;
 private java.io.File arquivoImagemPF;
 private java.awt.Graphics2D g2d;
 private modelo.Microondas microondas;
 public void PainelVisual(modelo.Microondas);
 public void importaImagem();
 protected void paintComponent(java.awt.Graphics);
 public void update(java.util.Observable, Object);
}
Trab3/src/controle/Principal.java
package controle;
import javax.swing.JFrame;
import modelo.Microondas;
import visao.FramePrincipal;
import visao.PainelControle;
import visao.PainelVisual;
public class Principal {
 public static void main(String[] args) {
 Microondas microondas = new Microondas();
 PainelControle painelControle = new PainelControle(microondas);
 PainelVisual painelVisual = new PainelVisual(microondas);
 microondas.addObserver(painelControle);
 microondas.addObserver(painelVisual);
 JFrame framePrincipal = new FramePrincipal(painelControle, painelVisual);
 framePrincipal.setVisible(true);
 }
}
Trab3/src/controle/TratadorBotaoControle.java
package controle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import modelo.Microondas;