class Alarma {
  public final static int RUIDOSA=1;
  public final static int BRILLANTE=2;
  long tiempo;int tipo;
  void setTiempo(long t){tiempo=t;}
  long getTiempo(){return tiempo;}
  void setTipo(int t){tipo=t;}
  int getTipo(){return tipo;}
  void alertar() {
     switch (tipo) {
         case 1: 
             System.out.println("BANG!!");break;
         case 2: 
          System.out.println("LUZ");break;
	 default: break;
     }//switch
  }//alertar
}//Alarma