/** * Metodo para examinar la accion del comando recivido por la pelicula flash para * seleccionar la funcion del alumno adecuada * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "PIDE_PALABRA") == 0) { $lag = $cmd->getAtributo(); $alumno = substr($lag, 2); $this->alumnoPidePalabra($alumno); } else { if (strcmp($cmd->getAccion(), "TIENE_PALABRA") == 0) { $lag1 = $cmd->getAtributo(); $alumno1 = substr($lag1, 2); $this->alumnoTienePalabra($alumno1); } else { if (strcmp($cmd->getAccion(), "NOTIENE_PALABRA") == 0) { $lag2 = $cmd->getAtributo(); $alumno2 = substr($lag2, 2); $this->alumnoNoTienePalabra($alumno2); } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash * para seleccionar la accion del sonido adecuada * * @param ComandoFlash $cmd */ public function getComandoSonidoFlash($cmd) { if (strcmp($cmd->getAccion(), "SUBIR_VOLUMEN") == 0) { $this->subirSonidoGeneral(); } else { if (strcmp($cmd->getAccion(), "BAJAR_VOLUMEN") == 0) { $this->bajarSonidoGeneral(); } else { if (strcmp($cmd->getAccion(), "ACTIVAR") == 0) { if (strcmp($cmd->getAtributo(), "ENTRANTE") == 0) { $this->activarSonidoEntrante(); } else { if (strcmp($cmd->getAtributo(), "SALIENTE") == 0) { $this->activarSonidoSaliente(); } else { if (strcmp($cmd->getAtributo(), "GENERAL") == 0) { $this->activarSonidoGeneral(); } } } } else { if (strcmp($cmd->getAccion(), "SILENCIAR") == 0) { if (strcmp($cmd->getAtributo(), "ENTRANTE") == 0) { $this->desactivarSonidoEntrante(); } else { if (strcmp($cmd->getAtributo(), "SALIENTE") == 0) { $this->desactivarSonidoSaliente(); } else { if (strcmp($cmd->getAtributo(), "GENERAL") == 0) { $this->desactivarSonidoGeneral(); } } } } } } } }
/** * Metodo para examinar el entorno y la accion del comando recivido por la pelicula flash para * seleccionar la camara y la funcion adecuada * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "ACERCAR") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->acercarCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->acercarCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->acercarCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "ALEJAR") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->alejarCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->alejarCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->alejarCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "PANR") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->panRightCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->panRightCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->panRightCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "PANL") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->panLeftCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->panLeftCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->panLeftCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "TILTUP") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->tiltUpCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->tiltUpCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->tiltUpCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "TILTDOWN") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->tiltDownCamaraAlumnos1(); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->tiltDownCamaraAlumnos2(); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->tiltDownCamaraPresidencia(); } } else { if (strcmp($cmd->getAccion(), "POSICION") == 0) { if (strcmp($cmd->getEntorno(), "CAMARA_1") == 0) { $this->presetCamaraAlumnos1($cmd->getAtributo()); } else { if (strcmp($cmd->getEntorno(), "CAMARA_2") == 0) { $this->presetCamaraAlumnos2($cmd->getAtributo()); } } if (strcmp($cmd->getEntorno(), "CAMARA_3") == 0) { $this->presetCamaraPresidencia($cmd->getAtributo()); } } } } } } } } // if(strcmp($tipoComando, "COMANDO")==0) // $comandoFlash=$this->crearComandoFlash($cmd->getEntorno()); // //else if(strcmp($tipoComando, "POSICION")==0) // $comandoFlash=$this->crearComandoPosicionFlash($cmd->getEntorno()); // return $comandoFlash; }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash * para elegir la accion de las luces que se quiere * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "ENCENDER_SALA") == 0) { $this->lucesEncenderSala(); } else { if (strcmp($cmd->getAccion(), "APAGAR_SALA") == 0) { $this->lucesApagarSala(); } else { if (strcmp($cmd->getAccion(), "SUBIR") == 0) { //denak batera igotzeko, ez da erabiltzen $this->luzSalaNivel($cmd->getAtributo()); } else { if (strcmp($cmd->getAccion(), "BAJAR") == 0) { //denak batera jeisteko, ez da erabiltzen $this->luzSalaNivel($cmd->getAtributo()); } else { if (strcmp($cmd->getAccion(), "ENCENDER") == 0) { $this->luzSalaEncenderTodo($cmd->getAtributo()); } else { if (strcmp($cmd->getAccion(), "APAGAR") == 0) { $this->luzSalaApagarTodo($cmd->getAtributo()); } else { if (strcmp($cmd->getAccion(), "SUELO") == 0) { $this->getComandoLucesSueloFlash($cmd); } else { if (strcmp($cmd->getAccion(), "TECHO") == 0) { $this->getComandoLucesTechoFlash($cmd); } } } } } } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash * para seleccionar la funcion adecuada del plasma * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "ENCENDER") == 0) { $this->encender(); } else { if (strcmp($cmd->getAccion(), "APAGAR") == 0) { $this->apagar(); } else { if (strcmp($cmd->getAccion(), "PCSUELO") == 0) { $this->verPCSalaEnPlasma(); } else { if (strcmp($cmd->getAccion(), "PORTATIL1") == 0) { $this->verPortatil1EnPlasma(); } else { if (strcmp($cmd->getAccion(), "PORTATIL2") == 0) { $this->verPortatil2EnPlasma(); } else { if (strcmp($cmd->getAccion(), "PORTATIL3") == 0) { $this->verPortatil3EnPlasma(); } else { if (strcmp($cmd->getAccion(), "PORTATIL4") == 0) { $this->verPortatil4EnPlasma(); } else { if (strcmp($cmd->getAccion(), "ATRIL") == 0) { $this->verAtrilEnPlasma(); } else { if (strcmp($cmd->getAccion(), "THINK_CLIENT") == 0) { $this->verRedThinkClientEnPlasma(); } else { if (strcmp($cmd->getAccion(), "CAMARA_DE_DOCUMENTOS") == 0) { $this->verVisorDocumentosEnPlasma(); } else { if (strcmp($cmd->getAccion(), "DVD") == 0) { $this->verDVDEnPlasma(); } else { if (strcmp($cmd->getAccion(), "DVDGRAB") == 0) { $this->verGrabadorDVDEnPlasma(); } else { if (strcmp($cmd->getAccion(), "CAMARA_1") == 0) { $this->verCamara1EnPlasma(); } else { if (strcmp($cmd->getAccion(), "CAMARA_2") == 0) { $this->verCamara2EnPlasma(); } else { if (strcmp($cmd->getAccion(), "CAMARA_3") == 0) { $this->verCamara3EnPlasma(); } } } } } } } } } } } } } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash para * seleccionar la pestaña adecuada * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "INICIO") == 0) { //igual que menu escenarios $this->inicioMenu(); } else { if (strcmp($cmd->getAccion(), "APAGAR") == 0) { $this->menuApagar(); } else { if (strcmp($cmd->getAccion(), "ESCENARIOS") == 0) { $this->escenarioMenu(); } else { if (strcmp($cmd->getAccion(), "LLAMARCOLGAR") == 0) { $this->llamaryColgarMenu(); } else { if (strcmp($cmd->getAccion(), "SONIDO") == 0) { $this->menuSonido(); } else { if (strcmp($cmd->getAccion(), "LUCES") == 0) { $this->menuLuces(); } else { if (strcmp($cmd->getAccion(), "PRINCIPAL") == 0) { $this->menuPrincipal(); } } } } } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash para * seleccionar el escenario de la clase * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "ENVIAR_CLASES") == 0) { $this->enviarClases(); } else { if (strcmp($cmd->getAccion(), "RECIBIR_CLASES") == 0) { $this->recivirClases(); } else { if (strcmp($cmd->getAccion(), "CLASE_LOCAL") == 0) { $this->claseLocal(); } else { if (strcmp($cmd->getAccion(), "SEMINARIO/CLASE") == 0) { $this->seminarioClase(); } else { if (strcmp($cmd->getAccion(), "PELICULA") == 0) { $this->pelicula(); } } } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash * para seleccionar la funcion adecuada de la pantalla electrica * * @param ComandoFlash $cmd */ public function getComandoFlashElectrica($cmd) { if (strcmp($cmd->getAccion(), "SUBIR") == 0) { $this->subirPantallaElectrica(); } else { if (strcmp($cmd->getAccion(), "BAJAR") == 0) { $this->bajarPantallaElectrica(); } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash para * seleccionar la funcion de la camara de documentos * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "SUBIR_FOCO") == 0) { $this->camaraDocumentosSubirFoco(); } else { if (strcmp($cmd->getAccion(), "BAJAR_FOCO") == 0) { $this->camaraDocumentosBajarFoco(); } else { if (strcmp($cmd->getAccion(), "ACERCAR") == 0) { $this->camaraDocumentosAcercarZoom(); } else { if (strcmp($cmd->getAccion(), "ALEJAR") == 0) { $this->camaraDocumentosAlejarZoom(); } else { if (strcmp($cmd->getAccion(), "DINA_A3") == 0) { $this->camaraDocumentosA3(); } else { if (strcmp($cmd->getAccion(), "DINA_A4") == 0) { $this->camaraDocumentosA4(); } else { if (strcmp($cmd->getAccion(), "ENCEDER_LAMPARA") == 0) { $this->camaraDocumentosEncenderLampara(); } else { if (strcmp($cmd->getAccion(), "APAGAR") == 0) { $this->camaraDocumentosApagar(); } else { if (strcmp($cmd->getAccion(), "ENCENDER") == 0) { $this->camaraDocumentosEncender(); } } } } } } } } } }
/** * Metodo para examinar la accion del comando recivido por la pelicula flash para * seleccionar la funcion del reproductor de dvd * * @param ComandoFlash $cmd */ public function getComandoFlash($cmd) { if (strcmp($cmd->getAccion(), "SUBIR_VOLUMEN") == 0) { $this->subirvolumenDVD(); } else { if (strcmp($cmd->getAccion(), "BAJAR_VOLUMEN") == 0) { $this->bajarvolumenDVD(); } else { if (strcmp($cmd->getAccion(), "ENCENDER") == 0) { $this->encenderDVD(); } else { if (strcmp($cmd->getAccion(), "ON") == 0) { $this->OnOffDVD(); } else { if (strcmp($cmd->getAccion(), "APAGAR") == 0) { $this->apagarDVD(); } else { if (strcmp($cmd->getAccion(), "NORTE") == 0) { $this->arribaDVD(); } else { if (strcmp($cmd->getAccion(), "SUR") == 0) { $this->abajoDVD(); } else { if (strcmp($cmd->getAccion(), "ESTE") == 0) { $this->derechaDVD(); } else { if (strcmp($cmd->getAccion(), "OESTE") == 0) { $this->izquierdaDVD(); } else { if (strcmp($cmd->getAccion(), "ACEPTAR") == 0) { $this->aceptarDVD(); } else { if (strcmp($cmd->getAccion(), "ACTIVAR") == 0) { $this->playDVD(); } else { if (strcmp($cmd->getAccion(), "PARAR") == 0) { $this->stopDVD(); } else { if (strcmp($cmd->getAccion(), "PAUSA") == 0) { $this->pausarDVD(); } else { if (strcmp($cmd->getAccion(), "RETROCEDER") == 0) { $this->atrasDVD(); } else { if (strcmp($cmd->getAccion(), "AVANZAR") == 0) { $this->adelanteDVD(); } else { if (strcmp($cmd->getAccion(), "RSTEP") == 0) { $this->anteriorDVD(); } else { if (strcmp($cmd->getAccion(), "FSTEP") == 0) { $this->siguienteDVD(); } else { if (strcmp($cmd->getAccion(), "MENU_PANTALLA") == 0) { $this->menuDVD(); } } } } } } } } } } } } } } } } } } }