query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
primero, invocamos el determiante
public String raiz2 (){ float det=determinante(); //se asigna al determinante de arriba String sol="raiz 2"; //la solucion la evuelve como string if (det<0){ sol="Raiz imaginaria"; }else { float r2= (float)(-b- Math.sqrt(det) )/(2*a); //tambien aplicamos casting pata Math, con (float) sol="Raiz 2: "+r2; //texto + valor agregado } return sol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disparar(){}", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public void despegar(){\n if(this.posicion == 1){\n this.setPosicion(2);\n this.indicarEstado(\"Volando\");\n } else{\n System.out.println(\"No estoy preparado para el despegue\");\n }\n }", "public void preguntarDespegue(){\n String respuesta = this.mediador.preguntarDespegue(this);\n System.out.println(respuesta);\n if (respuesta==\"SI\"){\n this.setPosicion(1);\n this.indicarEstado(\"Preparando para el despegue\");\n }\n }", "public void pausarDisparos() {\n\t\tpausarDisparo = !pausarDisparo;\n\t}", "public void imprimir() {\n\t\r\n\tSystem.out.println(\"El circulo tiene un perimetro de \"+ this.perimetro + \" y un area de \"+ this.area);\r\n\t\r\n\t}", "private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public synchronized void abilitarAbordaje() {\n abordar = true;\r\n notifyAll();\r\n while(pedidoAbordaje != 0){//Mientras los pasajeros esten abordando\r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando los pasajeros hayan abordado el vuelo sale\r\n salio = true;\r\n System.out.println(\"El vuelo \" + nro + \" de \" + aerolinea + \" ha despegado\");\r\n }", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "public void VaciarPila() {\r\n while (!PilaVacia()) {\r\n EliminarNodo();\r\n }\r\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public synchronized void abordar() {\n pedidoAbordaje++;\r\n while(!abordar){//Mientras no este habilitado el abordaje espera \r\n try {\r\n wait();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(Vuelo.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n //Cuando se habilita el abordaje el pasajero se sube\r\n pedidoAbordaje--;\r\n if (pedidoAbordaje == 0){ //Si es el ultimo en subir avisa que puede despegar\r\n notifyAll();\r\n }\r\n }", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "public void vaciar() {\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\t}", "public void reiniciar() {\r\n\t\tauxiliar = primeira;//auxiliar recebe a primeira\r\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Override\n\tpublic void sortir() {\n\t\tif (!estVide()) {\n\t\t\tTC next = getProchain();\t\t\t\t//On recupere le prochain\n\t\t\tsalle.get(next.getPrio()).remove(next);\t//Antinomie de entrer\n\t\t}\n\t}", "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "@Override\n\tpublic void parada(Participante p) {\n\t\t\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void pedirPuestoDeInforme(Pasajero pasajero) {\n\t\tSystem.out.println(\"[\\uD83D\\uDC6E FILA PUESTO INFORME]: \"+pasajero.toString()+\" se ha formado\");\n\t\ttry {\n\t\t\tthis.turnoPuestoDeInforme.acquire();} catch (InterruptedException e) {}\n\t\t//El pasajero es atendido por un puesto de informe\n\t\ttry {\n\t\t\tthis.puestosDeInformesDisponibles.acquire();} catch (InterruptedException e) {}\n\t\t\n\t\t//Le digo al anterior pasajero que avance un lugar\n\t\tthis.turnoPuestoDeInforme.release();\t\n\t\t\n\t\tSystem.out.println(\"\\uD83D\\uDEC9 \\uD83D\\uDEC8 \"+pasajero.toString()+\": Esta siendo atendido por un puesto de informes\");\n\t\t//Se me da un vuelo (pues no interesa modelar el tema de reserva)\n\t\ttry {\n\t\t\t//simulo atención\n\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {}\n\t\tthis.torre.obtenerPasaje(pasajero);\n\t\tthis.puestosDeInformesDisponibles.release();\n\t\t}", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public void limpiarPuntos() {\n \tpuntos.clear();\n }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void jogavel(Participante p) {\n\t\t\n\t}", "@Override\n\tpublic void hacerDevolucion() {\n\t\tSystem.out.println(\"Hacer Devolucion pantalon\");\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "public void limpiar()\n {\n nombre = null;\n descripcion = null;\n estado = null;\n primerNivel = true;\n }", "private void convertir(IConsole per, IConsole eq) throws RemoteException {\n\n\t\t// ajouter au leader s'il y en a un\n\t\tint leader = ((Personnage) per.getElement()).getLeader();\n\n\t\t// si charisme inférieur à deter alors rien ne se passe sinon le perso est changé d'équipe\n\t\tif (((Personnage)eq.getElement()).getDetermination() < ((Personnage)per.getElement()).getCharisme()) {\n\t\t\tif (leader == -1) { // le personnage n'est pas dans une equipe\n\t\t\t\teq.changerLeader(per);\n\t\t\t\tper.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe\", per.getVueElement());\n\t\t\t\tSystem.out.println(per.getRefRMI() + \" ajoute a son equipe \" + eq.getRefRMI());\n\n\t\t\t} else { // le personnage a un leader\n\t\t\t\tIConsole lead = arene.consoleFromRef(leader);\n\n\t\t\t\teq.changerLeader(lead);\n\n\t\t\t\tlead.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe (par \" + per.getRefRMI() + \")\", lead.getVueElement());\n\t\t\t\tSystem.out.println(leader + \" ajoute a son equipe (par \" + per.getRefRMI() + \") \" + eq.getRefRMI());\n\t\t\t}\n\t\t\t//le personnage reçoit la determination de son enroleur\n\t\t\teq.getElement().getCaract().put(\"determination\", ((Personnage) per.getElement()).getDetermination());\n\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Rien ne se passe\");\n\t\t}\n\t}", "@Override\n public void movimiento_especial(){\n\n movesp=ataque/2;\n defensa+=5;\n PP= PP-4;\n }", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "@Override\n\tpublic void estourada(Participante p) {\n\t\t\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public void primerTicketDisponibleEncontrado() {\n\t\tprimerTicketDisponible();\n\t\tint f; int c;\n\t\tString ticket = primerTicketDisponible();\n\t\tString[] dividir = ticket.split(\" \");\n\t\tString fila = dividir[0];\n\t\tString columna = dividir[1];\n\t\tSystem.out.println(fila);\n\t\tSystem.out.println(columna);\n\t\tf = Integer.parseInt(fila);\n\t\tc = Integer.parseInt(columna);\n\t\tactualizarPlazas(f, c);\n\t}", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public void Exterior() {\n\t\t\r\n\t}", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "public void borrarZonaObjetivoMovimiento() {\n\t\t\n\t}", "private void desfazMovi(Posicao origem, Posicao destino, Peca pecaCapturada){\n\t\tPecaXadrez p = (PecaXadrez)tabuleiro.removePeca(destino);\n\t\tp.subContadorMovi();\n\t\ttabuleiro.colocarPeca(p, origem); // volta a peca para origem\n\t\t\n\t\tif (pecaCapturada != null) {\n\t\t\ttabuleiro.colocarPeca(pecaCapturada, destino); // volta a peca capturada\n\t\t\tpecasCapturadas.remove(pecaCapturada);\n\t\t\tpecasTabuleiro.add(pecaCapturada);\n\t\t}\n\t\t\n\t\t// enpassant\n\t\tif (p instanceof Peao) {\n\t\t\t// Se o peao andou na vertical e nao e captura e um enpassant\n\t\t\tif (origem.getCol() != destino.getCol() && pecaCapturada == enPassant) {\n\t\t\t\tPecaXadrez peao = (PecaXadrez)tabuleiro.removePeca(destino);\n\t\t\t\tPosicao peaoPosicao;\n\t\t\t\t// Captura o peao oponente\n\t\t\t\tif (p.getCor() == Cor.BRANCA) {\n\t\t\t\t\tpeaoPosicao = new Posicao(3, destino.getCol());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpeaoPosicao = new Posicao(4, destino.getCol());\n\t\t\t\t}\n\t\t\t\ttabuleiro.colocarPeca(peao, peaoPosicao);\n\t\t\t}\n\t\t}\n\t}", "public void hacerPedido(){\n this.sucursal.procesarPedido(this.pedido, this.id);\n this.pedido = new Integer[5];\n contadorPedido = 0;\n }", "private void matar() {\n dead = true;\n tareaRestar.cancel();\n ventana.matar();\n\n juego.getFabricaE().seguir();\n\n ventana.dispose();\n }", "public void desligar() {\n\r\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public void pop() {\n if (cabeza!= null) {\n //SI CABEZA.SIGUENTE ES DISTINTO A NULO\n if (cabeza.siguiente==null) {\n //CABEZA SERA NULO\n cabeza=null; \n //SE IRAN RESTANDO LOS NODOS\n longitud--;\n } else {\n //DE LO CONTRARIO EL PUNTERO SERA IGUAL A CABEZA\n Nodo puntero=cabeza;\n //MIENTRTAS EL PUNTERO SEA DISITINTO A NULO \n while (puntero.siguiente.siguiente!=null) { \n //PUNTYERO SERA IGUAL A LA DIRECCION DEL SIGUIENTE NODO\n puntero=puntero.siguiente;\n }\n puntero.siguiente=null;\n longitud--;\n }\n }\n }", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public void eliminar(DetalleArmado detallearmado);", "public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }", "public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "private void disparo()\n {\n switch(this.posicion){\n case 0:\n setLocation(getX(),getY()-this.velocidadDisparo);\n break;\n case 1:\n setLocation(getX(),getY()+this.velocidadDisparo);\n break;\n case 2:\n setLocation(getX()+this.velocidadDisparo,getY());\n break;\n case 3:\n setLocation(getX()-this.velocidadDisparo,getY());\n break;\n }\n }", "public void dessiner() {\n\t\tafficherMatriceLignes(m.getCopiePartielle(progresAffichage), gc);\r\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public Proceso atender() {\n\t\tProceso proceso = raiz.sig;\n\t\tif (proceso == this.raiz) {\n\t\t\tSystem.out.println(\"Cola Vacia\");\n\t\t\treturn null;\n\t\t}\n\t\tProceso sig = proceso.sig;\n\t\tProceso padre = raiz;\n\t\tpadre.sig = sig;\n\t\tsig.padre = padre;\n\t\tcabeza = sig;\n\t\tthis.numProcesos--;\n\t\tthis.calcularTiemposProcesos();\n\t\treturn proceso;\n\t}", "public Object quitar() {\r\n if (primero == null)\r\n return null;\r\n Object o = primero.elem;\r\n primero = primero.Next;\r\n tamaño--;\r\n return o;\r\n }", "@Override\n\tpublic void eliminar() {\n\n\t}", "@Override\n\tpublic void devolucao(Livros livro) {\n\t\t\n\t}", "public void decida(){\n int vecinasVivas=vecinos();\n if(vecinasVivas==3 && estadoActual=='m'){\n estadoSiguiente='v';\n }else if((estadoActual=='v' && vecinasVivas==2) || (estadoActual=='v' && vecinasVivas==3)){\n estadoSiguiente='v';\n }else if(vecinasVivas<2 || vecinasVivas>3){\n estadoSiguiente='m';\n }\n }", "public void devolver() {\r\n \t\r\n \tif (raiz == null)\r\n \t\tSystem.out.println(\"No hay datos en la pila\");\r\n else\r\n \t System.out.println(\"Devolvemos el dato de la cima: \"+raiz.dato);\r\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public synchronized void dejarEntrarAPasajeroPorPuertaA(Pasajero p) {\r\n\t\tif(this.getIngresosPorPuertaA() < this.getIngresosPermitidosPorPuertaA()){\r\n\t\t\tthis.incrementarIngresosPorPuertaA();\r\n }\r\n\t}", "@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public void moverDerecha() {\n estado = EstadosPersonaje.DERECHA;\n mover(new Vector2(1, 0));\n }", "public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }", "private void disparaGuardian()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoGuardian.getVisible()) {\n disparoGuardian.setPosicion(guardian.getPosicionX() + ((guardian.getAncho() - disparoGuardian.getAncho()) / 2), guardian.getPosicionY() - guardian.getAlto());\n disparoGuardian.setVisible(true);\n }\n }", "private void moverJogadorDaVez(int dado1, int dado2) throws Exception {\n // System.out.println(\"moverJogadorDaVez\" + dado1 + \" , \" + dado2);\n\n print(\"\\ttirou nos dados: \" + dado1 + \" , \" + dado2);\n int valorDados = dado1 + dado2;\n\n int jogador = this.jogadorAtual();\n\n boolean ValoresIguais = false;\n\n\n //preciso saber se o jogador vai passar pela posição 40, o que significa\n //ganhar dinheiro\n this.completouVolta(jogador, valorDados);\n\n if (dado1 == dado2) {\n ValoresIguais = true;\n } else {\n ValoresIguais = false;\n }\n\n //movendo à posição\n this.moverJogadorAPosicao(jogador, valorDados, ValoresIguais);\n this.print(\"\\tAtual dinheiro antes de ver a compra:\" + this.listaJogadores.get(jogador).getDinheiro());\n this.print(\"\\tVai até a posição \" + this.posicoes[jogador]);\n\n //vendo se caiu na prisao\n if (this.posicoes[this.jogadorAtual()] == 30 && this.prisao == true) {\n adicionaNaPrisao(listaJogadores.get(jogadorAtual()));\n DeslocarJogador(jogador, 10);\n listaJogadores.get(jogadorAtual()).adicionarComandoPay();\n }\n\n\n\n Lugar lugar = this.tabuleiro.get(this.posicoes[jogador] - 1);//busca em -1, pois eh um vetor\n\n\n if (this.isCompraAutomatica()) {\n this.realizarCompra(jogador, lugar);\n }\n\n if (!this.posicaoCompravel(this.posicoes[jogador])) {\n this.print(\"\\t\" + lugar.getNome() + \" não está à venda!\");\n\n\n String nomeDono = (String) Donos.get(this.posicoes[jogador]);\n //não cobrar aluguel de si mesmo\n if (!nomeDono.equals(this.listaJogadores.get(this.jogadorAtual()).getNome())) {\n\n if (this.isUmJogador(nomeDono)) {\n Jogador possivelDono = this.getJogadorByName(nomeDono);\n\n if (this.isPosicaoFerrovia(this.posicoes[jogador])) {\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n if (!lugar.estaHipotecada()) {\n this.pagarFerrovia(possivelDono.getId(), jogador, 25, lugar.getNome());\n }\n } else {\n\n this.print(\"\\tO dono eh \" + possivelDono.getNome());\n int valorAluguel = 0;\n if (this.posicoes[this.jogadorAtual()] != 12 && this.posicoes[this.jogadorAtual()] != 28) {\n valorAluguel = this.tabuleiro.getLugarPrecoAluguel(this.posicoes[jogador]);\n\n } else {\n if (possivelDono.getQuantidadeCompanhias() == 1) {\n valorAluguel = 4 * valorDados;\n\n }\n if (possivelDono.getQuantidadeCompanhias() == 2) {\n valorAluguel = 10 * valorDados;\n\n }\n }\n if (!lugar.estaHipotecada()) {\n this.pagarAluguel(possivelDono.getId(), jogador, valorAluguel, lugar.getNome());\n }\n\n }\n\n }\n }\n\n }\n\n\n this.pagarEventuaisTaxas(jogador);\n\n if ((this.posicoes[this.jogadorAtual()] == 2 || this.posicoes[jogadorAtual()] == 17 || this.posicoes[jogadorAtual()] == 33) && cards == true) {\n realizaProcessamentoCartaoChest();\n }\n\n if ((this.posicoes[this.jogadorAtual()] == 7 || this.posicoes[jogadorAtual()] == 22 || this.posicoes[jogadorAtual()] == 36) && cards == true) {\n realizaProcessamentoCartaoChance();\n }\n\n\n\n\n this.print(\"\\tAtual dinheiro depois:\" + this.listaJogadores.get(jogador).getDinheiro());\n\n\n\n }", "private void BajarPiezaRapido() {\n if (!Mover(piezaActual, posicionX, posicionY - 1)) {\r\n BajarPieza1posicion();\r\n }\r\n }", "public AGENTE_PRIN() {\n SEGUNDOS = 0;\n seg = 0;\n FACTURANDO = false;\n FACTURA = true;\n initComponents();\n String system = \"C:\\\\FDE\\\\FDE.BAT\";\n try {\n Process hijo = Runtime.getRuntime().exec(system);\n hijo.waitFor();\n if(hijo.exitValue() == 0)\n System.out.println(\"Finalizado\");\n else\n System.out.println((new StringBuilder()).append(\"imposible \" +\n \t\t\"finalizar . Exit code: \").append(hijo.exitValue()).toString());\n }\n catch(IOException e) {\n System.out.println(\"Incapaz de matar soffice.\");\n }\n catch(InterruptedException e) {\n System.out.println(\"Incapaz de matar soffice.\");\n }\n }", "public void decida(){\r\n int f=this.getFila();\r\n int c=this.getColumna();\r\n int cont=alRededor(f,c);\r\n if(this.isVivo()){\r\n if(cont==2 || cont==3){\r\n estadoSiguiente=VIVA;\r\n }else/* if(cont==1 || cont>3)*/{\r\n estadoSiguiente=MUERTA;\r\n }\r\n }else{\r\n if(cont==3){\r\n estadoSiguiente=VIVA;\r\n }else if(cont==1 || cont>3){\r\n estadoSiguiente=MUERTA;\r\n }\r\n }\r\n }", "@Override\n\tpublic void desligar() {\n\t\t\n\t}", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }", "public synchronized void dejarEntrarAPasajeroPorPuertaB(Pasajero p) {\r\n\t\tif(this.getIngresosPorPuertaB() < this.getIngresosPermitidosPorPuertaB()){\r\n\t\t\tthis.incrementarIngresosPorPuertaB();\r\n\t\t}\r\n\t}", "public static Perro CargarPerro(int capPerro) {\n boolean condicion = false;\r\n int razaPerro, diaIngreso, mesIngreso, anioIngreso, diasDeEstadia;\r\n char generoPerro;\r\n String nombrePerro, nombreCliente, numCliente;\r\n Perro nuevoPerro;\r\n Fecha fechaIngreso;\r\n nuevoPerro = new Perro(codPerro);\r\n System.out.println(\"Ingrese el nombre del perro\");\r\n nombrePerro = TecladoIn.readLine();\r\n nuevoPerro.setNombre(nombrePerro);\r\n\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n nuevoPerro.setGenero(generoPerro);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n\r\n condicion = false;\r\n\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n nuevoPerro.setRaza(TiposDeRaza(razaPerro - 1));\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n nuevoPerro.setFechaIngreso(fechaIngreso);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese la Cantidad de estadia:\");\r\n diasDeEstadia = TecladoIn.readLineInt();\r\n if (diasDeEstadia > 0) {\r\n nuevoPerro.setCantDias(diasDeEstadia);\r\n System.out.println(\"Ingrese el Nombre y Apellido del Cliente\");\r\n nombreCliente = TecladoIn.readLine();\r\n nuevoPerro.setNombreDuenio(nombreCliente);\r\n System.out.println(\"Ingrese Numero de telefono\");\r\n numCliente = TecladoIn.readLine();\r\n nuevoPerro.setTelefonoDuenio(numCliente);\r\n codPerro++;\r\n condicion = true;\r\n\r\n } else {\r\n System.out.println(\"Ingrese una cantidad de dias mayor a 0\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n\r\n return nuevoPerro;\r\n }", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void afectarEnemigoArmado(EnemigoArmado e) {\n\t\te.daņar(daņo);\n\t\tif (e.getVida() <= 0) {\n\t\t\te.eliminar();\n\t\t}\n\t}", "public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}", "public Repartidor(String nombre, String apellido, String direccion, String telefono, String cedula) {\n super(nombre, apellido, direccion, telefono, cedula);\n this.disponible = true; //empieza siendo disponible luego cuando lo utilicemos pasara a no estarlo y asi...\n this.salario = 50; //establecemos un salario inicial de 50 al que luego le adicionaremos segun la cantidad de envios que haya realizado con exito \n }", "void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }", "public void aplicarDescuento();", "public void asignarVida();", "public void comprobarMov() {\r\n for (int i = 1; i < movimientos.length; i++) {\r\n if (movimientos[i]) {\r\n movimientos[i] = sePuedeMover(i);\r\n }\r\n }\r\n }", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "@Override\r\n\tpublic void dibujar(Entorno unEntorno, Casilla casilla) {\n\t\t\r\n\t}" ]
[ "0.703278", "0.66763115", "0.6631133", "0.6598176", "0.6582145", "0.65356815", "0.6419936", "0.6370483", "0.63646907", "0.63529915", "0.6308851", "0.629175", "0.6291203", "0.6285827", "0.6262222", "0.6247099", "0.61833817", "0.6170321", "0.6165937", "0.61618996", "0.61582476", "0.614993", "0.6137014", "0.61333454", "0.61051035", "0.6073438", "0.60645044", "0.60623163", "0.60566694", "0.60530657", "0.60483927", "0.6047531", "0.6045495", "0.6043511", "0.60336816", "0.60166776", "0.6002845", "0.59895325", "0.5987924", "0.59831107", "0.59742874", "0.5959734", "0.59360194", "0.59327906", "0.5930876", "0.592213", "0.59104663", "0.5900587", "0.5885069", "0.58729666", "0.5872854", "0.58691394", "0.5859473", "0.58446765", "0.5834131", "0.58267134", "0.5825235", "0.58151835", "0.581252", "0.58036166", "0.58022547", "0.5795692", "0.5792297", "0.5792059", "0.5789066", "0.5783266", "0.57777697", "0.5775443", "0.5769516", "0.57675797", "0.5767209", "0.5761397", "0.57600754", "0.5759281", "0.57558864", "0.57429916", "0.57428044", "0.57418287", "0.57363254", "0.5736202", "0.5732177", "0.5726122", "0.57248884", "0.5724559", "0.5722351", "0.5716473", "0.57111025", "0.57090396", "0.56963766", "0.56929946", "0.568061", "0.56768435", "0.567545", "0.5668287", "0.56640583", "0.5660482", "0.56560355", "0.5654569", "0.56482124", "0.56449056", "0.5642654" ]
0.0
-1
SET y GET son siempre publicos
public float getA() { return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }", "public void setIsPublic(boolean isPublic)\n {\n this.isPublic = isPublic;\n }", "Reserva Obtener();", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }", "public void setPrivado(Boolean privado) {\n this.privado = privado;\n }", "public void setLocacion(String locacion);", "public void setIsPublic( boolean isPublic )\n\t{\n\t\tthis.isPublic\t= isPublic;\n\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public void setIsPublic(Boolean isPublic) {\n\t\tthis.isPublic = isPublic;\n\t}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public synchronized int get() { \n return this.soma_pares; \n }", "public void setAnio(int p) { this.anio = p; }", "@Test\r\n public void testSetOrigen() {\r\n String expResult = \"pruebaorigen\";\r\n articuloPrueba.setOrigen(expResult);\r\n assertEquals(expResult, articuloPrueba.getOrigen());\r\n }", "private void remplirUtiliseData() {\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public UserSet getPublicUsers() {\n\t\t//users/public\n\t\treturn restTemplate.getForObject(this.embyUrl + \"/\" + EmbyUrlConstants.PUBLIC_USERS, UserSet.class);\n\t\t\n\t}", "public Boolean getPublicAccess() {\n return publicAccess;\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "public void setUsuarioModificacion(String p) { this.usuarioModificacion = p; }", "protected abstract Set method_1559();", "void setTitolo(String titolo);", "public void validerSaisie();", "void setProvincia(String provincia);", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public boolean getIsPublic()\n {\n return isPublic;\n }", "public abstract Setusuario buscarUsuario(String nomUsuario);", "public int getAyudantes(){\n return ayudantes; \n }", "public int getAtencionAlCliente(){\n return atencion_al_cliente; \n }", "public void setGiro(int giro2){\n\t\t//hacer lo esto con giro set y get\n\t\tthis.giro=giro2;\n\t}", "public abstract void setNombre(java.lang.String newNombre);", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "public void get() {\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void asetaTeksti(){\n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "private void setUserData(){\n }", "public Boolean getDescServicioPublico(){\n return this.descServicioPublico;\n }", "public void enviarValoresCabecera(){\n }", "public void setdat()\n {\n }", "public void Ordenamiento() {\n\n\t}", "@Test\r\n public void testSetMiservicio() {\r\n System.out.println(\"setMiservicio\");\r\n Servicio miservicio = new Servicio();\r\n miservicio.descripcion=\"gestion de vigilancia\";\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMiservicio(miservicio);\r\n assertEquals(instance.getMiservicio().descripcion, \"gestion de vigilancia\");\r\n }", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "String setValue();", "private Get() {}", "private Get() {}", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }", "void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}", "public void setObjeto(ObjetoVida o){\r\n\t\tobjeto = o;\r\n\t}", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "public int getModopelea(){return modopelea;}", "void setSolicitarServicio(com.soa.SolicitarServicioDocument.SolicitarServicio solicitarServicio);", "public void setInicio(String inicio) {\n this.inicio = inicio;\n }", "protected void agregarUbicacion(){\n\n\n\n }", "public interface IServicoPrivadoClienteSemPropostaAPI {\n\n public static final String PATH = \"ServicoPrivadoClienteSemProposta/\";\n\n\n @GET(PATH)\n Call<List<ServicoOfertaPrivada>> getAll(\n @Query(\"idUsuarioCliente\") String idUsuarioCliente\n );\n}", "public boolean getIsPublic()\n\t{\n\t\treturn isPublic;\n\t}", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public int getTransportista(){\n return this.transportista;\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public void doGet( )\n {\n \n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "@Test\r\n public void testSetMicentro() {\r\n System.out.println(\"setMicentro\");\r\n CentroEcu_Observado micentro = new CentroEcu_Observado();\r\n micentro.setCiudad(\"Loja\");\r\n Servicio_CentroEcu instance = new Servicio_CentroEcu();\r\n instance.setMicentro(micentro);\r\n assertEquals(instance.getMicentro().ciudad, \"Loja\");\r\n }", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public void setDiretor(IPessoa diretor);", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public interface UserModle {\n void setID(int id);\n void setNumber(String number);\n void setPassword(String password);\n UserBaen load(int id);\n}", "@Test\n public void testSetInstrucciones() {\n System.out.println(\"setInstrucciones\");\n Receta instance = new Receta();\n instance.setInstrucciones(\"inst1\");\n String expResult = \"inst1\";\n String result = instance.getInstrucciones();\n assertEquals(expResult, result);\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "void setCognome(String cognome);", "public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }", "public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }", "public void enviaMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=4\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void setDirezione(boolean direzione) {\n\r\n }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "void setVisivel(boolean visivel);", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }", "public void ustaw(){\n\t driver.initialize(this);\n\t driver.edit(new DodajSerwisDTO());\n\t }", "public abstract void setLibelle(String unLibelle);" ]
[ "0.6270304", "0.61303693", "0.605633", "0.5865778", "0.5806223", "0.57744545", "0.57606804", "0.5695514", "0.56712246", "0.5628929", "0.5611306", "0.558441", "0.55738574", "0.5569942", "0.55493426", "0.5542859", "0.5534069", "0.5479969", "0.547156", "0.54581153", "0.545781", "0.5412927", "0.5412668", "0.54124796", "0.5411651", "0.5406228", "0.5380081", "0.53726065", "0.5371916", "0.5371916", "0.53699124", "0.53648114", "0.53611064", "0.53573877", "0.53492445", "0.53311795", "0.53189844", "0.5314512", "0.530896", "0.53072304", "0.5306916", "0.53009415", "0.52936196", "0.52927154", "0.52870387", "0.5275701", "0.5257779", "0.52555746", "0.5246743", "0.5246239", "0.52360976", "0.5232618", "0.5228333", "0.5224841", "0.52237624", "0.52234316", "0.5222387", "0.5220064", "0.52158797", "0.52158797", "0.52155817", "0.5213501", "0.5208308", "0.5201371", "0.52007145", "0.51973784", "0.518504", "0.5173316", "0.51674837", "0.5165406", "0.51639545", "0.5160918", "0.5147679", "0.5146814", "0.51400393", "0.51400393", "0.5139612", "0.51391107", "0.5137167", "0.5137124", "0.51329833", "0.5129822", "0.5129773", "0.51286536", "0.51264596", "0.5122012", "0.5121817", "0.511796", "0.51109207", "0.5106594", "0.51042014", "0.51027817", "0.51020616", "0.51020414", "0.51014954", "0.51007897", "0.5100024", "0.509971", "0.5099389", "0.50957966", "0.5093542" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_add_widget) { selectWidget(); return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
For some reason you have to add this empty data, else it won't work
public void addEmptyData(Intent pickIntent) { ArrayList<AppWidgetProviderInfo> customInfo = new ArrayList<>(); pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_INFO, customInfo); ArrayList<Bundle> customExtras = new ArrayList<>(); pickIntent.putParcelableArrayListExtra(AppWidgetManager.EXTRA_CUSTOM_EXTRAS, customExtras); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddData() {\n\t\tsuper();\n\t\tfilled = false;\n\t}", "@Override\n public String getData()\n {\n return null;\n }", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected Object getData() {\n\t\treturn null;\r\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic boolean checkData() {\n\t\treturn false;\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void fillData()\n {\n\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\n\tpublic void fillData() {\n\t}", "private void initData() {\n\t}", "@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic RequiredData requiredData() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\n\t}", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\r\n\r\n\t\treturn data.isEmpty();\r\n\t}", "@Override\r\n\tpublic void initData() {\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private void initData() {\n }", "@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}", "@Override\n\tpublic void setEmpty() {\n\t\t\n\t}", "private void initData() {\n\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "@Override\n public boolean isEmpty() {\n return false;\n }", "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "private void onDataEmpty() {\n mArticlesView.showNoArticles();\n }", "@Override\n public boolean isEmpty() { return true; }", "public boolean isEmpty()\n {return data == null;}", "private void clearData() {}", "@Override\n public void clearData() {\n }", "public void testNoData() {\n\n InternalContest contest = new InternalContest();\n \n // Add scoreboard account and set the scoreboard account for this client (in contest)\n contest.setClientId(createBoardAccount (contest));\n\n checkOutputXML(contest);\n }", "private void InitData() {\n\t}", "private void Initialized_Data() {\n\t\t\r\n\t}", "@Override\n protected Response doInsert(JSONObject data) {\n return null;\n }", "@Override\n void generateFalseData() {\n \n }", "private boolean isEmpty() {\n return dataSize == 0;\n }", "@Override\n public String getContainerData()\n {\n return null;\n }", "@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected UserWordData() {\n\n\t}", "@Override\n\tpublic String getExtraData() {\n\t\treturn null;\n\t}", "private void initialData() {\n\n }", "@Override\r\n\tprotected String buildContent() {\n\t\treturn null;\r\n\t}", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "@java.lang.Override\n public boolean hasData() {\n return data_ != null;\n }", "public void initData() {\n nameDetailOrder.setText(\"-\");\n tourDetailOrder.setText(\"-\");\n packDetailOrder.setText(\"-\");\n statusDetailOrder.setText(\"-\");\n }", "@Override\n public boolean isEmpty()\n {\n return false;\n }", "private void verificaData() {\n\t\t\n\t}", "private void parseData() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private void addToEmptyList(T data) {\n this.first = this.last = new Node(data);\n this.nrOfElements++;\n }", "private void initData(){\n\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "private void remplirUtiliseData() {\n\t}", "Object firstData() {\n\t\t// por defecto enviamos null\n\t\treturn null;\n\t}", "public void initData() {\n }", "public void initData() {\n }", "public void resetData() {\r\n this.setName(\"\");\r\n this.setType(\"\");\r\n this.setContact(\"\");\r\n this.setAffiliatedResearchers(\"\");\r\n this.setCountry(\"\");\r\n this.setResearchKeywords(\"\");\r\n this.setResearchDescription(\"\");\r\n this.setHomePage(\"\");\r\n }", "public void clearData()\r\n {\r\n \r\n }", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic boolean isEmpty() {\n\t\t\treturn false;\n\t\t}", "public Data() {}", "protected boolean isValidData() {\n return true;\n }", "protected void loadData()\n {\n }", "private RandomData() {\n initFields();\n }", "public final boolean empty() {\n return data == null;\n }", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public boolean recordIncomplete() {\n\t\tif (name.equals(\"\") || image.equals(\"\") || \tb1.equals(\"\")\t||\t location.equals(\"\") ) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n public void infoUsersNotHaveData() {\n mSearchChildView.showEmptyArtistsLayout();\n }", "private void remplirPrestaraireData() {\n\t}", "public boolean isEmpty() {\n return data.isEmpty();\n }", "public ListingData() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic Vector<String> fillData(String action) {\n\t\treturn null;\r\n\t}", "public void eraseData() {\n\t\tname = \"\";\n\t\tprice = 0.0;\n\t\tquantity = 0;\n\t}", "public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n if (getData() == null) {\n return true;\n }\n else {\n return false;\n }\n }", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "private void reset() {\n\t\tdata.clear();\n\t}", "@Override\n\tpublic Data toData() {\n\t\treturn null;\n\t}" ]
[ "0.6878185", "0.6661341", "0.655141", "0.655141", "0.655141", "0.655141", "0.655141", "0.655141", "0.6491307", "0.6441555", "0.6441555", "0.6415653", "0.6409541", "0.64027774", "0.6368682", "0.6360613", "0.6322705", "0.6322458", "0.6322458", "0.6279681", "0.62350404", "0.6221517", "0.62166977", "0.62166977", "0.62164354", "0.62164354", "0.62164354", "0.61871034", "0.61699617", "0.61490035", "0.61164826", "0.6110312", "0.60815966", "0.606916", "0.6055133", "0.60410917", "0.60214835", "0.6004354", "0.60043395", "0.6002952", "0.5963094", "0.59613395", "0.5960143", "0.59514976", "0.5940411", "0.59388804", "0.5932872", "0.59303844", "0.5905096", "0.58859134", "0.5882509", "0.58761805", "0.58761805", "0.58758277", "0.5867572", "0.5857073", "0.5855747", "0.585048", "0.5841539", "0.5830298", "0.58283424", "0.58183306", "0.5818037", "0.5817598", "0.5787617", "0.5768167", "0.5760349", "0.57543594", "0.5752823", "0.57506657", "0.57506657", "0.5741499", "0.57245755", "0.5723226", "0.5723226", "0.5718892", "0.5692978", "0.5684173", "0.5665949", "0.5661203", "0.5658236", "0.5654651", "0.5645793", "0.5642704", "0.5638138", "0.5636128", "0.56225437", "0.5621893", "0.5617072", "0.56137586", "0.56137586", "0.56137586", "0.56137586", "0.56137586", "0.56137586", "0.56137586", "0.56094384", "0.5607467", "0.5602418", "0.55808675" ]
0.56399363
84
Show configuration activity of the widget picked by the user
private void configureWidget(Intent data) { Bundle extras = data.getExtras(); int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); AppWidgetProviderInfo appWidgetInfo = getAppWidgetManager().getAppWidgetInfo(appWidgetId); if (appWidgetInfo.configure != null) { Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_CONFIGURE); intent.setComponent(appWidgetInfo.configure); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); startActivityForResult(intent, REQUEST_CREATE_APPWIDGET); } else { createWidget(data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "private void goalsConfigButton(){\n if(!goalsOpened){\n goalsUI = new GoalsUI(this, false);\n goalsOpened = true;\n }\n }", "@Override\n public void run() {\n ModConfigsScreen screen = new ModConfigsScreen(\n MinecraftClient.getInstance().currentScreen,\n ModConfigs.INSTANCE);\n MinecraftClient.getInstance().openScreen(screen);\n }", "private void displayConfigurationScreen() {\n\t\tsetContentView(R.layout.activity_configure);\n\n\t\t// Set up the action bar.\n\t\tfinal ActionBar actionBar = getActionBar();\n\t\tactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);\n\n\t\t// Create the adapter that will return a fragment for each of the three\n\t\t// primary sections of the app.\n\t\tmSectionsPagerAdapter = new SectionsPagerAdapter(\n\t\t\t\tgetSupportFragmentManager());\n\n\t\t// Set up the ViewPager with the sections adapter.\n\t\tmViewPager = (ViewPager) findViewById(R.id.pager);\n\t\tmViewPager.setAdapter(mSectionsPagerAdapter);\n\n\t\t// When swiping between different sections, select the corresponding\n\t\t// tab. We can also use ActionBar.Tab#select() to do this if we have\n\t\t// a reference to the Tab.\n\t\tmViewPager\n\t\t\t\t.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageSelected(int position) {\n\t\t\t\t\t\tactionBar.setSelectedNavigationItem(position);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// For each of the sections in the app, add a tab to the action bar.\n\t\tfor (int i = 0; i < mSectionsPagerAdapter.getCount(); i++) {\n\t\t\t// Create a tab with text corresponding to the page title defined by\n\t\t\t// the adapter. Also specify this Activity object, which implements\n\t\t\t// the TabListener interface, as the callback (listener) for when\n\t\t\t// this tab is selected.\n\t\t\tactionBar.addTab(actionBar.newTab()\n\t\t\t\t\t.setText(mSectionsPagerAdapter.getPageTitle(i))\n\t\t\t\t\t.setTabListener(this));\n\t\t}\n\t}", "public void displayConfigurationPanel(){\n\t\tthis.panelConfiguration = new PanelConfiguration(this.mainFrame);\n\t\tthis.add(this.panelConfiguration,BorderLayout.CENTER);\n\t}", "public boolean configurationDialog() {\n String configurable = getDbProperties().getProperty(Constants.CONFIGURATION_DIALOG);\n return ACMConfiguration.getInstance().isShowConfiguration() ||\n (configurable != null && configurable.equalsIgnoreCase(\"true\"));\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "private void showConfiguration(ConfigurationTemplateDTO configurationTemplate, String componentId) {\n\t\tOverrideConfigurationWindow configurationDetailPanel = PmsFactory.getInstance()\n\t\t\t.getOverrideConfigurationWindow();\n\t\tconfigurationDetailPanel.init(configurationTemplate, portalNameDto.getId(), componentId);\n\t\tconfigurationDetailPanel.show();\n\t}", "public void Admin_Configuration()\n\t{\n\t\tAdmin_Configuration.click();\n\t}", "public static boolean showAppSettingsScreen(Activity activity) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n Intent intent = new Intent(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(\n \"package\",\n activity.getPackageName(),\n null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n return true;\n } else {\n return false;\n }\n }", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "void showCustomizer();", "public void open() {\n\t\toldConfig = controller.getDisplayedSensors();\n\t\tnewConfig = new boolean[oldConfig.length];\n\t\tString[] sensorNames = controller.getAllSensorNames();\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setText(\"Change sensor configuration!\");\n\t\tRowLayout rowLayout2 = new RowLayout(SWT.VERTICAL);\n\t\trowLayout2.fill = true;\n\t\tshell.setLayout(rowLayout2);\n\t\t\n\t\tGroup group2 = new Group(shell, SWT.SHADOW_ETCHED_IN);\n\t\tgroup2.setLayout(new GridLayout(1, false));\n\t\tgroup2.setText(\"Set refresh time (in ms)\");\n\t\ttext = new Text(group2, SWT.RIGHT | SWT.BORDER);\n\t\tGridData grid = new GridData();\n\t\tgrid.widthHint = 80;\n\t\ttext.setLayoutData(grid);\n\t\toldTime = gui.getTime();\n\t\ttext.setText(\"\" + oldTime);\n\t\ttext.setToolTipText(\"No values smaller than 1 allowed!\");\n\t\ttext.addListener(SWT.KeyUp, this);\n\t\t\n\t\tGroup group = new Group(shell, SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setLayout(new RowLayout(SWT.VERTICAL));\n\t\tgroup.setText(\"Choose displayed sensors!\");\n\t\tbuttonList = new LinkedList<Button>();\n\t\t\n\t\tfor (int i = 0; i < sensorNames.length; i++) {\n\t\t\tButton b = new Button(group, SWT.CHECK);\n\t\t\tb.setText(sensorNames[i]);\n\t\t\tb.setSelection(oldConfig[i]);\n\t\t\tbuttonList.add(b);\n\t\t}\n\t\tComposite container = new Composite(shell, SWT.NONE);\n\t\tRowLayout rowLayout = new RowLayout();\n\t\trowLayout.pack = false;\n\t\tcontainer.setLayout(rowLayout);\n\t cancel = new Button(container, SWT.PUSH);\n\t cancel.setText(\"Cancel\");\n\t ok = new Button(container, SWT.PUSH);\n\t ok.setText(\"Ok\");\n\t cancel.addListener(SWT.Selection, this);\n\t ok.addListener(SWT.Selection, this);\n\t \n\t\tshell.pack();\n\t\tshell.open();\n\t\tDisplay display = getParent().getDisplay();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "public void showConfigN3(ActionEvent event) {\r\n\t\tlog.info(\"-----------------------Debugging EstrucOrgController.showConfigN3-----------------------------\");\r\n\t\tlog.info(\"renderConfigN3: \"+getRenderConfigN3());\r\n\t\tif(getRenderConfigN3()==false){\r\n\t\t\tsetRenderConfigN3(true);\r\n\t\t\tsetStrBtnAgregarN3(\"Ocultar Configuración\");\r\n\t\t}else{\r\n\t\t\tsetRenderConfigN3(false);\r\n\t\t\tsetStrBtnAgregarN3(\"Agregar Configuración\");\r\n\t\t}\r\n\t}", "@Action\n public void showChronosBox()\n {\n int answer, i;\n \n ChronosPanel chronosPanel = new ChronosPanel();\n answer = JOptionPane.showConfirmDialog(null, chronosPanel, \"ez430-Chronos Settings\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n if (answer == JOptionPane.OK_OPTION)\n {\n SwapValue dateTime = chronosPanel.getDateTimeString();\n SwapValue alarm = chronosPanel.getAlarmString();\n SwapValue calibration = chronosPanel.getCalibration();\n SwapValue period = chronosPanel.getTxPeriod();\n\n ArrayList pages = new ArrayList(ChronosWatch.NUMBER_OF_PAGES);\n \n for(i=0 ; i<ChronosWatch.NUMBER_OF_PAGES ; i++)\n {\n pages.add(chronosPanel.getPage(i));\n }\n\n configChronos(dateTime, alarm, calibration, period, pages);\n }\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "@Override\n\tpublic ToolStripButton getConfigurationButton() {\n\t\treturn configurationButton;\n\t}", "public static void createWidget(Activity act) {\n logger.debug(\"/onCreateWidget/suggesting user to add widget to dashboard\");\n AppWidgetHost host = new AppWidgetHost(act, HOST_CODE);\n int nextId = host.allocateAppWidgetId();\n Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK);\n pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, nextId);\n act.startActivityForResult(pickIntent, ADD_WIDGET_KEY_CODE);\n\n }", "void onConfigureClick(long id);", "private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }", "private void startAppSettingsConfigActivity() {\n startActivity(new Intent()\n .setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)\n .addCategory(Intent.CATEGORY_DEFAULT)\n .setData(Uri.parse(\"package:\" + this.getPackageName()))\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n .addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY)\n .addFlags(Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS)\n );\n }", "public config() {\n initComponents();\n }", "private void configActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_configActionPerformed\n java.awt.EventQueue.invokeLater(() -> {\n if (dialog == null) {\n dialog = new ConfigurationDlg(this, true);\n }\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) {\n dialog.dispose();\n }\n });\n dialog.setVisible(true);\n });\n }", "@Override\n\tprotected void updateLaunchConfigurationDialog() {\n\t\tsuper.updateLaunchConfigurationDialog();\n\t}", "@Override\n\tpublic void creatConfigUI(Composite parent, Map<String, String> params) {\n\n\t}", "private void showCrawlerSettings()\n {\n SpiderConfig config = spider.getConfig();\n \n JPanel crawlerSettingsPanel = new JPanel(new GridLayout(8, 2));\n JLabel crawlDistanceLabel = new JLabel(\"Max crawl distance\");\n JLabel maxAdjLinksLabel = new JLabel(\"Max adjacent URL's\");\n JLabel bufferSizeLabel = new JLabel(\"Buffer size\");\n JLabel cacheSizeLabel = new JLabel(\"Cache size\");\n JLabel updateDurationLabel = new JLabel(\"Duration (days) until update\");\n JLabel maxImagesLabel = new JLabel(\"Max number of images\");\n JLabel collectImagesLabel = new JLabel(\"Fetch images\");\n JLabel defaultIndexFileLabel = new JLabel(\"Default index file\");\n JTextField crawlDistanceField = new JTextField();\n JTextField maxAdjLinksField = new JTextField();\n JTextField bufferSizeField = new JTextField();\n JTextField cacheSizeField = new JTextField();\n JTextField updateDurationField = new JTextField();\n JTextField maxImagesField = new JTextField();\n JTextField indexFileField = new JTextField();\n JCheckBox collectImagesCheck = new JCheckBox();\n \n crawlerSettingsPanel.add(crawlDistanceLabel);\n crawlerSettingsPanel.add(crawlDistanceField);\n crawlerSettingsPanel.add(maxAdjLinksLabel);\n crawlerSettingsPanel.add(maxAdjLinksField);\n crawlerSettingsPanel.add(bufferSizeLabel);\n crawlerSettingsPanel.add(bufferSizeField);\n crawlerSettingsPanel.add(cacheSizeLabel);\n crawlerSettingsPanel.add(cacheSizeField);\n crawlerSettingsPanel.add(updateDurationLabel);\n crawlerSettingsPanel.add(updateDurationField);\n crawlerSettingsPanel.add(maxImagesLabel);\n crawlerSettingsPanel.add(maxImagesField);\n crawlerSettingsPanel.add(defaultIndexFileLabel);\n crawlerSettingsPanel.add(indexFileField);\n crawlerSettingsPanel.add(collectImagesLabel);\n crawlerSettingsPanel.add(collectImagesCheck);\n \n crawlDistanceField.setText(\"\" + config.getMaxCrawlDistance());\n maxAdjLinksField.setText(\"\" + config.getMaxAdjUrls());\n bufferSizeField.setText(\"\" + config.getBufferSize());\n cacheSizeField.setText(\"\" + config.getCacheSize());\n updateDurationField.setText(\"\" + config.getUpdateDays());\n maxImagesField.setText(\"\" + config.getMaxImages());\n collectImagesCheck.setSelected(config.isFetchingImages());\n indexFileField.setText(config.getDatabaseFile());\n \n int option = JOptionPane.showConfirmDialog(null, crawlerSettingsPanel, \"Crawler settings\", JOptionPane.OK_CANCEL_OPTION);\n if(option == JOptionPane.YES_OPTION)\n {\n try\n {\n int maxDistance = Integer.parseInt(crawlDistanceField.getText());\n int maxLinks = Integer.parseInt(maxAdjLinksField.getText());\n int bufferSize = Integer.parseInt(bufferSizeField.getText());\n int cacheSize = Integer.parseInt(cacheSizeField.getText());\n int updateDays = Integer.parseInt(updateDurationField.getText());\n int maxImages = Integer.parseInt(maxImagesField.getText());\n String defaultIndex = indexFileField.getText();\n boolean fetchImages = collectImagesCheck.isSelected();\n \n config.setBufferSize(bufferSize);\n config.setCacheSize(cacheSize);\n config.setMaxCrawlDistance(maxDistance);\n config.setMaxAdjUrls(maxLinks);\n config.setUpdateDays(updateDays);\n config.setFetchImages(fetchImages);\n config.setMaxImages(maxImages);\n config.setDatabaseFile(defaultIndex);\n \n spider.updateConfig();\n }\n \n catch(NumberFormatException e)\n {\n JOptionPane.showMessageDialog(null, \"Invalid config settings\");\n }\n }\n }", "private void updateAppWidget( Context context, AppWidgetManager manager, int wId )\n\t{\n\t\tMyConfigurationActivity.updateAppWidget( context, manager, wId );\n\t}", "private void showBurstOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.setting_burst);\n\n\t\tfinal String[] burstUIString = uiDisplayResource.getBurstNumUIString();\n\t\tif (burstUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"burstUIString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = burstUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_BURST,\n\t\t\t\tcameraProperties.getCurrentBurstNum());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (burstUIString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_BURST, burstUIString[arg1]);\n\t\t\t\tcameraProperties.setCurrentBurst(value);\n\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_BURST_ICON).sendToTarget();\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, burstUIString, curIdx, listener, true);\n\t}", "public abstract void handleActivityConfigurationChanged(IBinder activityToken,\n Configuration overrideConfig, int displayId);", "@Override\n\t\tpublic void configureRegistry(IConfigRegistry configRegistry) {\n\t\t\tconfigRegistry.unregisterConfigAttribute(EditConfigAttributes.OPEN_IN_DIALOG);\n\t\t\tconfigRegistry.registerConfigAttribute(EditConfigAttributes.OPEN_IN_DIALOG, popupEdit, DisplayMode.EDIT);\n\t\t}", "@Override\n\tprotected ILaunchConfigurationDialog getLaunchConfigurationDialog() {\n\t\treturn super.getLaunchConfigurationDialog();\n\t}", "public abstract Composite getConfigurationGUI(Composite parent,\n\t\t\tZoomingInterfaceManager<Graph, GraphItem> gm, ExpandItem ei);", "protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}", "public interface AccessControlListModalWidget extends IsWidget {\n /**\n * Show the sharing dialog.\n *\n * @param changeCallback\n */\n public void showSharing(Callback changeCallback);\n\n /**\n * The widget must be configured before showing the dialog.\n *\n * @param entity\n * @param canChangePermission\n */\n public void configure(Entity entity, boolean canChangePermission);\n}", "@Override\n public void onEnabled(Context context) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);\n CharSequence widgetText = context.getString(R.string.appwidget_text);\n RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.my_widget);\n remoteViews.setTextViewText(R.id.widgetText, widgetText);\n Intent intent = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_ONE_SHOT);\n remoteViews.setOnClickPendingIntent(R.id.widgetLogo, pendingIntent);\n ComponentName componentName = new ComponentName(context, MyWidget.class);\n appWidgetManager.updateAppWidget(componentName, remoteViews);\n }", "public void setConfig(View view) {\n startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);\n }", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "private void showCameraConfigurationDialog() {\n\n\t\tLayoutInflater factory = LayoutInflater.from(context);\n\t\tView textEntryView = factory.inflate(R.layout.camera_name_password_set,\n\t\t\t\tnull);\n\t\tfinal EditText cameraName = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.camera_name);\n\t\tfinal String name = cameraProperties.getCameraSsid();\n\t\tcameraName.setText(name);\n\t\tfinal EditText cameraPassword = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.wifi_password);\n\t\tfinal String password = cameraProperties.getCameraPassword();\n\t\tcameraPassword.setText(password);\n\t\tAlertDialog.Builder ad1 = new AlertDialog.Builder(context);\n\t\tad1.setTitle(R.string.camera_wifi_configuration);\n\t\tad1.setIcon(android.R.drawable.ic_dialog_info);\n\t\tad1.setView(textEntryView);\n\t\tad1.setCancelable(true);\n\t\tad1.setPositiveButton(R.string.camera_configuration_set,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\n\t\t\t\t\t\tString temp1 = cameraName.getText().toString();\n\t\t\t\t\t\tif (temp1.length() > 20) {\n\t\t\t\t\t\t\tToast.makeText(context, R.string.camera_name_limit,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t// do not allow dialog close\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\tfield.set(dialog, false);\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString temp = cameraPassword.getText().toString();\n\t\t\t\t\t\tif (temp.length() > 10 || temp.length() < 8) {\n\t\t\t\t\t\t\tToast.makeText(context, R.string.password_limit,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t// do not allow dialog close\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\tfield.set(dialog, false);\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// allow dialog close\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\tfield.set(dialog, true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (name.equals(cameraName.getText().toString()) == false) {\n\t\t\t\t\t\t\tcameraProperties.setCameraSsid(cameraName.getText()\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (password.equals(temp) == false) {\n\t\t\t\t\t\t\tcameraProperties.setCameraPassword(cameraPassword\n\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tad1.show();\n\t}", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "public void configureScreenFromIntent(Intent intent) {\n if (!isLayoutReady()) {\n // This happens typically when parent's Activity#onNewIntent() is called while\n // Fragment#onCreateView() isn't called yet, and thus we cannot configure Views at\n // this point. onViewCreate() should call this method after preparing layouts, so\n // just ignore this call now.\n Log.i(TAG,\n \"Screen configuration is requested before onCreateView() is called. Ignored\");\n return;\n }\n\n boolean needToShowDialpadChooser = false;\n\n final boolean isAddCallMode = isAddCallMode(intent);\n if (!isAddCallMode) {\n final boolean digitsFilled = fillDigitsIfNecessary(intent);\n if (!digitsFilled) {\n needToShowDialpadChooser = needToShowDialpadChooser(intent, isAddCallMode);\n }\n }\n showDialpadChooser(needToShowDialpadChooser);\n }", "private void openAppSettings() {\n //Open the Settings Activity\n Intent settingsActivityIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsActivityIntent);\n }", "public interface ConfigurationView {\n\n void onUpdateConfiguration(Configuration configuration);\n}", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public void showOptions()\n {\n //make the options window visible\n optionsScreen.setVisible(true);\n }", "public void sendConfig() {\n Intent intent = new Intent(ConfigVotingActivity.this, VoteActivity.class);\n intent.putExtra(\"totalParticipants\", totalParticipants);\n intent.putExtra(\"topic\", topicName.getText());\n intent.putExtra(\"description\", editDescription.getText());\n intent.putExtra(\"date\", editDate.getText());\n startActivity(intent);\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public static void ShowCreateSchedule(){\n ToggleVisibility(CreateSchedule.window);\n }", "public String configureOptionsMenu() {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n boolean shuffle = settings.getBoolean(\"shuffle\", true);\n String buttonText = \"Hello\";\n \n if (shuffle) {\n buttonText = \" Off \";\n } else {\n buttonText = \" On \";\n }\n \n return buttonText;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "public void configure(T aView)\n {\n aView.setPrefSize(120,22);\n aView.getTextField().setPromptText(\"Spinner\");\n }", "private void configureUI() {\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeClear, getString(R.string.defaultClearSourceUrl));\r\n viewBinding.sourceUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedSourceUrl));\r\n viewBinding.sourceUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Defining default licenses and its visibility constraints.\r\n viewBinding.licenseUrlTextInput.setTag(R.id.streamTypeProtected, getString(R.string.defaultProtectedLicenseUrl));\r\n viewBinding.licenseUrlTextInput.setOnFocusChangeListener((view, hasFocus) -> onTextInputFocusChange((TextView) view));\r\n\r\n // Checking default stream type and defining action on its change.\r\n viewBinding.streamTypesGroup.setOnCheckedChangeListener((group, checkedId) -> onStreamTypeChange(checkedId));\r\n viewBinding.streamTypesGroup.check(R.id.streamTypeClear);\r\n\r\n // Setting action on stream play request.\r\n viewBinding.playButton.setOnClickListener(playButton -> onPlay());\r\n }", "public void button_config_click(View v){\n if (currentView != VIEWS.Settings){\n setView(VIEWS.Settings);\n animationsControl.AnimateImageRotationClockwise((ImageView) findViewById(R.id.config_button));\n animationsControl.AnimateLayoutSlideFromTop((LinearLayout) findViewById(R.id.settings_menu));\n animationsControl.AnimateFrameLayoutFadeIn((FrameLayout) findViewById(R.id.settings_frame_layout));\n //animationsControl.AnimateButtonFadeIn((FloatingActionButton) findViewById(R.id.take_picture_button));\n }\n else{\n setView(previousVIew);\n animationsControl.AnimateImageRotationCounterclockwise((ImageView) findViewById(R.id.config_button));\n animationsControl.AnimateLayoutSlideFromBottom((LinearLayout) findViewById(R.id.settings_menu));\n animationsControl.AnimateFrameLayoutFadeOut((FrameLayout) findViewById(R.id.settings_frame_layout));\n //animationsControl.AnimateButtonFadeOut((FloatingActionButton) findViewById(R.id.take_picture_button));\n }\n }", "public void setGui()\n\t{\n\t\tdisplay = new Display();\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setText(\"Sensor Configurator\");\n\t\t// create a new GridLayout with 3 columns of same size\n\t\tGridLayout layout = new GridLayout(3, false);\n\t\tshell.setLayout(layout);\n\n\t\tsetTrayIcon();\n\n\t\tGroup groupLeft = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupLeft.setLayout(new GridLayout());\n\t\tgroupLeft.setText(\"Customer Group\");\n\n\t\tlistLabel = new Label(groupLeft, SWT.NONE);\n\t\tlistLabel.setText(\"List of Customers\");\n\t\tlistLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tcustomerList = new List(groupLeft, SWT.BORDER | SWT.V_SCROLL);\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 220;\n\t\tgridData.widthHint = 150;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerList.setLayoutData(gridData);\n\t\tcustomerList.select(0);\n\t\t// customerList.showSelection();\n\n\t\t// Combo selection\n\t\tpriorityCombo = new Combo(groupLeft, SWT.READ_ONLY);\n\t\tpriorityCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 1, 1));\n\t\tpriorityCombo.setItems(new String[] {\"Filter by Priority\", \"HIGH\", \"MEDIUM\", \"LOW\"});\n\t\tpriorityCombo.select(0);\n\n\t\t// updateButton\n\t\tupdateButton = new Button(groupLeft, SWT.PUSH);\n\t\tupdateButton.setText(\"Update List\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tupdateButton.setLayoutData(gridData);\n\n\t\t// center group\n\t\tGroup groupCenter = new Group(shell, SWT.SHADOW_OUT);\n\t\tGridLayout groupLayout = new GridLayout(2, false);\n\t\tgroupCenter.setLayout(groupLayout);\n\t\tgroupCenter.setText(\"Measurement group\");\n\n\t\tcustomerLabel = new Label(groupCenter, SWT.NONE);\n\t\tcustomerLabel.setText(\"Customer Info\");\n\t\tcustomerLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\t// Measurement Label\n\t\tmeasLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasLabel.setText(\"Measurement Info\");\n\t\tmeasLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1));\n\n\t\t// customerText\n\t\tcustomerText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerText.setLayoutData(gridData);\n\n\t\t// Measurement Text\n\t\tmeasureText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasureText.setLayoutData(gridData);\n\n\t\t// Comment Label\n\t\tcommentLabel = new Label(groupCenter, SWT.NONE);\n\t\tcommentLabel.setText(\"Comment Here!\");\n\t\tcommentLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Measurement Task Label\n\t\tmeasTaskLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasTaskLabel.setText(\"Measurement Tasks!\");\n\t\tmeasTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Comment Text\n\t\tcommentText = new StyledText(groupCenter, SWT.BORDER | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcommentText.setLayoutData(gridData);\n\n\t\t// Measurement Task Text\n\t\tmeasurTaskText = new StyledText(groupCenter, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasurTaskText.setLayoutData(gridData);\n\n\t\t// Electrode selection\n\t\telectrodeCombo = new Combo(groupCenter, SWT.READ_ONLY);\n\t\telectrodeCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 2, 1));\n\t\telectrodeCombo.setItems(new String[] {\"Electrode\", \"Simple\", \"Test\", \"New\"});\n\t\telectrodeCombo.select(0);\n\n\t\t// right group\n\t\tGroup groupRight = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupRight.setLayout(new GridLayout());\n\t\tgroupRight.setText(\"Sensor group\");\n\n\t\tsensorLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorLabel.setText(\"Sensor Info\");\n\t\tsensorLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tsensorText = new StyledText(groupRight, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.heightHint = 140;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorText.setLayoutData(gridData);\n\n\t\t// sensor Task label\n\t\tsensorTaskLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorTaskLabel.setText(\"Sensor Tasks\");\n\t\tsensorTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\tsensorTaskText = new StyledText(groupRight, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorTaskText.setLayoutData(gridData);\n\n\t\t// configButton\n\t\tconfigButton = new Button(groupRight, SWT.PUSH);\n\t\tconfigButton.setText(\"Start Configure\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tconfigButton.setLayoutData(gridData);\n\n\t\tstatusBar = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.SINGLE);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.verticalSpan = 1;\n\t\tstatusBar.setLayoutData(gridData);\n\n\t}", "private void showTimeLapseModeDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.timeLapse_mode);\n\t\tfinal String[] timeLapseModeString = uiDisplayResource\n\t\t\t\t.getTimeLapseMode();\n\t\tif (timeLapseModeString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"timeLapseModeString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = timeLapseModeString.length;\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromAppToUI(\n\t\t\t\tAppReflectToUI.SETTING_UI_TIME_LAPSE_MODE, AppProperties\n\t\t\t\t\t\t.getInstanse().getTimeLapseMode());\n\t\tLog.d(\"tigertiger\", \"uiInfo.uiStringInSetting =\"\n\t\t\t\t+ uiInfo.uiStringInSetting);\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (timeLapseModeString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tLog.d(\"tigertiger\", \"timeLapseModeString[i] =\"\n\t\t\t\t\t\t+ timeLapseModeString[i]);\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUIToApp(\n\t\t\t\t\t\tUIReflectToApp.SETTING_APP_TIME_LAPSE_MODE,\n\t\t\t\t\t\ttimeLapseModeString[arg1]);\n\t\t\t\tAppProperties.getInstanse().setTimeLapseMode(value);\n\t\t\t\targ0.dismiss();\n\t\t\t\tif (value == TimeLapseMode.TIME_LAPSE_MODE_VIDEO) {\n\t\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\t\tGlobalApp.MESSAGE_SETTING_TIMELAPSE_VIDEO_MODE)\n\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t} else if (value == TimeLapseMode.TIME_LAPSE_MODE_STILL) {\n\t\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\t\tGlobalApp.MESSAGE_SETTING_TIMELAPSE_STILL_MODE)\n\t\t\t\t\t\t\t.sendToTarget();\n\t\t\t\t}\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, timeLapseModeString, curIdx, listener, true);\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n for (WidgetBase widget : widgets) {\n if (widget.getClass().getName().contains(\"SettingsWidget\")) {\n continue;\n }\n\n widget.setHidden(!SettingsStorage.getVisibilitySetting(\n mContext, widget.getClass().getName()));\n }\n }", "public static void update() { // Chk for Joystick configuration\n if (jsConfig != chsr.getSelected()) {\n jsConfig = chsr.getSelected();\n caseDefault();\n configJS();\n SmartDashboard.putNumber(\"JS/JS_Config\", jsConfig);\n SmartDashboard.putString(\"JS/Choosen\", chsrDesc[chsr.getSelected()]); //Put selected on sdb\n }\n }", "private void showUserPreferences() {\r\n MyAccount ma = state.getAccount();\r\n \r\n mOriginName.setValue(ma.getOriginName());\r\n SharedPreferencesUtil.showListPreference(this, MyAccount.Builder.KEY_ORIGIN_NAME, R.array.origin_system_entries, R.array.origin_system_entries, R.string.summary_preference_origin_system);\r\n \r\n mOriginName.setEnabled(!state.builder.isPersistent() && TextUtils.isEmpty(ma.getUsername()));\r\n \r\n if (mEditTextUsername.getText() == null\r\n || ma.getUsername().compareTo(mEditTextUsername.getText()) != 0) {\r\n mEditTextUsername.setText(ma.getUsername());\r\n }\r\n StringBuilder summary;\r\n if (ma.getUsername().length() > 0) {\r\n summary = new StringBuilder(ma.getUsername());\r\n } else {\r\n summary = new StringBuilder(this.getText(ma.alternativeTermForResourceId(R.string.summary_preference_username)));\r\n }\r\n mEditTextUsername.setDialogTitle(this.getText(ma.alternativeTermForResourceId(R.string.dialog_title_preference_username)));\r\n mEditTextUsername.setTitle(this.getText(ma.alternativeTermForResourceId(R.string.title_preference_username)));\r\n mEditTextUsername.setSummary(summary);\r\n mEditTextUsername.setEnabled(!state.builder.isPersistent() && !ma.isUsernameValidToStartAddingNewAccount());\r\n \r\n boolean isNeeded = ma.canChangeOAuth();\r\n if (ma.isOAuth() != mOAuth.isChecked()) {\r\n mOAuth.setChecked(ma.isOAuth());\r\n }\r\n // In fact, we should hide it if not enabled, but I couldn't find an easy way for this...\r\n mOAuth.setEnabled(isNeeded);\r\n if (isNeeded) {\r\n mOAuth.setTitle(R.string.title_preference_oauth);\r\n mOAuth.setSummary(ma.isOAuth() ? R.string.summary_preference_oauth_on : R.string.summary_preference_oauth_off);\r\n } else {\r\n mOAuth.setTitle(\"\");\r\n mOAuth.setSummary(\"\");\r\n }\r\n \r\n isNeeded = ma.getConnection().isPasswordNeeded();\r\n if (mEditTextPassword.getText() == null\r\n || ma.getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n mEditTextPassword.setText(ma.getPassword());\r\n }\r\n if (isNeeded) {\r\n mEditTextPassword.setTitle(R.string.title_preference_password);\r\n summary = new StringBuilder(this.getText(R.string.summary_preference_password));\r\n if (TextUtils.isEmpty(ma.getPassword())) {\r\n summary.append(\": (\" + this.getText(R.string.not_set) + \")\");\r\n }\r\n } else {\r\n summary = null;\r\n mEditTextPassword.setTitle(\"\");\r\n }\r\n mEditTextPassword.setSummary(summary);\r\n mEditTextPassword.setEnabled(isNeeded);\r\n \r\n int titleResId;\r\n boolean addAccountOrVerifyCredentialsEnabled = ma.isOAuth() || ma.getCredentialsPresent();\r\n switch (ma.getCredentialsVerified()) {\r\n case SUCCEEDED:\r\n titleResId = R.string.title_preference_verify_credentials;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials));\r\n break;\r\n default:\r\n if (state.builder.isPersistent()) {\r\n titleResId = R.string.title_preference_verify_credentials_failed;\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_verify_credentials_failed));\r\n } else {\r\n if (!ma.isUsernameValidToStartAddingNewAccount()) {\r\n addAccountOrVerifyCredentialsEnabled = false;\r\n }\r\n titleResId = R.string.title_preference_add_account;\r\n if (ma.isOAuth()) {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_oauth));\r\n } else {\r\n summary = new StringBuilder(\r\n this.getText(R.string.summary_preference_add_account_basic));\r\n }\r\n }\r\n break;\r\n }\r\n addAccountOrVerifyCredentials.setTitle(titleResId);\r\n addAccountOrVerifyCredentials.setSummary(summary);\r\n addAccountOrVerifyCredentials.setEnabled(addAccountOrVerifyCredentialsEnabled);\r\n }", "public DisplaySettings(final JFrame frame) {\n\t\tsetLayout(new BorderLayout());\n\n\t\tadd(createInputPanel(), BorderLayout.CENTER);\n\t\tadd(createButtonPanel(), BorderLayout.PAGE_END);\n\n\t\tsetTitle(\" Settings\");\n\t\tsetModal(true);\n\t\tsetPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tsetResizable(false);\n\t\tpack();\n\t\tsetLocationRelativeTo(frame);\n\t\tsetVisible(true);\n\t}", "@Override\n public void refreshView() {\n WSDLActivityConfigurationBean configuration = activity.getConfiguration();\n description.setText(\"VPH-Share service \" + configuration.getWsdl());\n }", "protected void showSettingsChangedDialog() {\n new AlertDialog.Builder(getActivity())\n .setTitle(R.string.dialog_settings_changed_title)\n .setMessage(R.string.dialog_settings_changed_description)\n .setPositiveButton(android.R.string.yes, this)\n .setNegativeButton(android.R.string.no, this)\n .show();\n }", "private void showWhiteBalanceOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.setting_awb);\n\n\t\tfinal String[] whiteBalanceUIString = uiDisplayResource\n\t\t\t\t.getWhiteBalanceUIString();\n\t\tif (whiteBalanceUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"whiteBalanceUIString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = whiteBalanceUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_WHITE_BALANCE,\n\t\t\t\tcameraProperties.getCurrentWhiteBalance());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (whiteBalanceUIString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_WHITE_BALANCE,\n\t\t\t\t\t\twhiteBalanceUIString[arg1]);\n\t\t\t\tcameraProperties.setWhiteBalance(value);\n\t\t\t\tpreviewHandler.obtainMessage(\n\t\t\t\t\t\tGlobalApp.MESSAGE_UPDATE_UI_WHITE_BALANCE_ICON)\n\t\t\t\t\t\t.sendToTarget();\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, whiteBalanceUIString, curIdx, listener, true);\n\t}", "public GuiConfigMod(GuiScreen parent)\n {\n super(parent,\n getConfigElements(),\n MainMod.MODID,\n false,\n false,\n Utilities.stringToGolden(\"Play The Way You Want\", 7));\n titleLine2 = ModConfig.configFile.getAbsolutePath();\n }", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "public DebugConfigurationDialog() {\n configuration = new DataSourceConfiguration();\n initComponents();\n }", "@Override\n\tpublic void onConfigurationChanged(Configuration newConfig) {\n\t\tsuper.onConfigurationChanged(newConfig);\n\t\t// setContentView(R.layout.main);\n\n\t\t// InitializeUI();\n\t}", "public void navToConfigurator(ActionEvent actionEvent) {\n ADFUtils.setSessionScopeValue(\"currView\", \"config\");\n\n }", "public ConfigGuiType getType();", "private void initSettingsPanel() {\n JLabel lblName = new JLabel(\"Name:\");\n lblName.setForeground(StyleCompat.textColor());\n\n JTextField fieldName = new JTextField(20);\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblName, fieldName));\n\n JLabel lblVirtOutput = new JLabel(\"VirtualOutput:\");\n lblVirtOutput.setForeground(StyleCompat.textColor());\n\n JComboBox<String> comboVirtOutputs = new JComboBox<>();\n for(Device device : instance.getInterface().getDeviceManager().getDevices()) {\n if(device instanceof VirtualOutput) {\n if(handler != null && instance.getHandlerByVirtualOutput(device.getId()) == handler) {\n comboVirtOutputs.addItem(device.getId());\n comboVirtOutputs.setSelectedIndex(comboVirtOutputs.getItemCount() - 1);\n } else if(!instance.isVirtualOutputUsed(device.getId())) {\n comboVirtOutputs.addItem(device.getId());\n }\n }\n }\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblVirtOutput, comboVirtOutputs));\n\n JLabel lblDeviceId = new JLabel(\"OpenRGB Device ID (index):\");\n lblDeviceId.setForeground(StyleCompat.textColor());\n\n JFormattedTextField fieldDeviceId = new JFormattedTextField(UserInterfaceUtil.getIntFieldFormatter());\n fieldDeviceId.setColumns(5);\n JButton btnAddDeviceId = new JButton(\"Add device\");\n UiUtilsCompat.configureButton(btnAddDeviceId);\n btnAddDeviceId.addActionListener(e -> {\n if(fieldDeviceId.getValue() == null) return;\n int value = (int) fieldDeviceId.getValue();\n if(value < 0 || listDevices.contains(value)) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Invalid ID or list contains already ID.\"));\n return;\n }\n listDevices.add(value);\n fieldDeviceId.setText(\"\");\n updateDeviceListPanel();\n });\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblDeviceId, fieldDeviceId, btnAddDeviceId));\n\n if(instance.getOpenRGB().isConnected()) {\n // show info label, remove all and add all button\n int deviceCount = instance.getOpenRGB().getControllerCount();\n\n JLabel lblCountInfo = new JLabel(\"There are \" + deviceCount + \" devices available.\");\n lblCountInfo.setForeground(StyleCompat.textColor());\n\n JButton btnAddAll = new JButton(\"Add all\");\n UiUtilsCompat.configureButton(btnAddAll);\n btnAddAll.addActionListener(e -> {\n for(int i = 0; i < deviceCount; i++) {\n if(!listDevices.contains(i))\n listDevices.add(i);\n }\n updateDeviceListPanel();\n });\n\n JButton btnRemoveAll = new JButton(\"Remove all\");\n UiUtilsCompat.configureButton(btnRemoveAll);\n btnRemoveAll.addActionListener(e -> {\n listDevices.clear();\n updateDeviceListPanel();\n });\n\n // add components to panel\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblCountInfo, btnAddAll, btnRemoveAll));\n } else {\n // show hint message\n JLabel lblHint = new JLabel(\"(i) Go back and connect the client to receive live data from the SDK server.\");\n lblHint.setForeground(StyleCompat.textColorDarker());\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblHint));\n }\n\n panelDeviceList = new JPanel();\n panelDeviceList.setBackground(StyleCompat.panelDarkBackground());\n panelDeviceList.setLayout(new BoxLayout(panelDeviceList, BoxLayout.Y_AXIS));\n panelDeviceList.setAlignmentX(Component.LEFT_ALIGNMENT);\n panelSettings.add(Box.createVerticalStrut(10));\n panelSettings.add(panelDeviceList);\n updateDeviceListPanel();\n\n if(handler != null) {\n // set stored values\n fieldName.setText(handler.getName());\n }\n\n JButton btnAdd = new JButton(handler == null ? \"Add OpenRGB Device\" : \"Save OpenRGB Device\");\n UiUtilsCompat.configureButton(btnAdd);\n btnAdd.setAlignmentX(Component.LEFT_ALIGNMENT);\n btnAdd.setMaximumSize(new Dimension(Integer.MAX_VALUE, 50));\n btnAdd.setMinimumSize(new Dimension(100, 50));\n\n btnAdd.addActionListener(e -> {\n // create value holder\n ValueHolder holder = new ValueHolder(\n fieldName.getText(),\n (String) comboVirtOutputs.getSelectedItem(),\n listDevices);\n\n if(validateInput(holder.getName(), holder.getOutputId())) {\n // get output\n VirtualOutput output = OpenRgbPlugin.getVirtualOutput(instance.getInterface().getDeviceManager(), holder.getOutputId());\n if (output == null) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Could not find virtual output for id \" + holder.getOutputId()));\n return;\n }\n\n if(handler != null) { // set values to output handler\n handler.setName(holder.getName());\n handler.setDevices(listDevices);\n handler.setVirtualOutput(output);\n } else { // create new output handler\n // create new handler\n OutputHandler handler = instance.createHandler(holder, output);\n // add handler to set\n instance.addHandler(handler);\n }\n\n // go back\n context.navigateDown();\n }\n });\n\n panelSettings.add(Box.createVerticalGlue());\n panelSettings.add(btnAdd);\n }", "private ConfigDialog(JFrame frame, GameScreen gameScreen) {\n super(frame, \"Configurations\", true);\n\n darkSquare = new SimpleColorChooser(\n new Color[]{new Color(0, 0, 0), new Color(40, 40, 60),\n new Color(0, 0, 60), new Color(0, 60, 0), new Color(0, 60, 60),\n new Color(22, 49, 119), new Color(100, 23, 18),\n new Color(55, 55, 0), new Color(90, 90, 90)});\n lightSquare = new SimpleColorChooser(\n new Color[]{Color.WHITE, new Color(255, 255, 204),\n new Color(255, 204, 204), new Color(255, 225, 174),\n new Color(255, 204, 102), new Color(204, 255, 255),\n new Color(218, 218, 218), new Color(255, 202, 169),\n new Color(255, 223, 236)});\n background = new SimpleColorChooser(\n new Color[]{Color.WHITE, Color.BLACK, Color.DARK_GRAY,\n new Color(255, 204, 51), new Color(0, 102, 255),\n new Color(51, 255, 0)});\n border = new SimpleColorChooser(\n new Color[]{Color.RED, Color.MAGENTA, Color.PINK, Color.ORANGE, Color.BLUE,\n Color.YELLOW, Color.CYAN, new Color(189, 37, 141),\n new Color(74, 204, 47)});\n\n showCoordinates = new JCheckBox(\"Show coordinates\");\n showCoordinates.setSelected(true);\n showCoordinates.setFont(font);\n resetCoordinates = true;\n JPanel coord = new JPanel(new FlowLayout(FlowLayout.LEFT));\n coord.add(showCoordinates);\n\n pieceFont = new FontChooser();\n JPanel choosePieces = new JPanel();\n choosePieces.add(pieceFont);\n\n JButton okButton = new JButton(\"OK\");\n okButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n gameScreen.setBackground(background.getSelectedColor());\n gameScreen.setChessboardColor(border.getSelectedColor());\n gameScreen.setLightSquareColor(lightSquare.getSelectedColor());\n gameScreen.setDarkSquareColor(darkSquare.getSelectedColor());\n gameScreen.setCoordinateDrawing(showCoordinates.isSelected());\n gameScreen.setPieceFont(pieceFont.getPieceFont());\n gameScreen.repaint();\n resetCoordinates = showCoordinates.isSelected();\n setVisible(false);\n }\n });\n\n JButton cancelButton = new JButton(\"CANCEL\");\n cancelButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n reset();\n setVisible(false);\n }\n });\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 8, 8));\n buttonPanel.add(okButton);\n buttonPanel.add(cancelButton);\n\n JPanel borderPanel = new JPanel(new BorderLayout());\n borderPanel.add(coord, BorderLayout.SOUTH);\n borderPanel.add(border, BorderLayout.CENTER);\n\n JTabbedPane tabbed = new JTabbedPane();\n tabbed.setTabPlacement(JTabbedPane.LEFT);\n tabbed.setFont(font);\n tabbed.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));\n tabbed.addTab(\"Light Square Color\", lightSquare);\n tabbed.addTab(\"Dark Square Color\", darkSquare);\n tabbed.addTab(\"Border Color\", borderPanel);\n tabbed.addTab(\"Background Color\", background);\n tabbed.addTab(\"Piece Style\", pieceFont);\n\n JPanel content = new JPanel(new BorderLayout());\n content.add(buttonPanel, BorderLayout.SOUTH);\n content.add(tabbed, BorderLayout.CENTER);\n setContentPane(content);\n pack();\n setResizable(false);\n int xp = frame.getX() + (frame.getWidth() - getWidth()) / 2;\n int yp = frame.getY() + (frame.getHeight() - getHeight()) / 2;\n setLocation(xp, yp);\n }", "public void showOptions() {\n frame.showOptions();\n }", "public void show(){\n initializeTouchpad();\n initializeButtons();\n initializeShieldBar();\n }", "private void settingsParameters(){\n String settings = Settings.System.getString(context.getContentResolver(), this.watchface+\"Settings\");\n if (settings == null || settings.equals(\"\")) {settings = \"{}\";}\n\n // Extract data from JSON\n JSONObject json_settings;\n try {\n json_settings = new JSONObject(settings);\n\n // Circles Widget\n if (json_settings.has(\"battery\")) {this.batteryBool = json_settings.getBoolean(\"battery\");}\n if (json_settings.has(\"steps\")) {this.stepsBool = json_settings.getBoolean(\"steps\");}\n if (json_settings.has(\"todayDistance\")) {this.todayDistanceBool = json_settings.getBoolean(\"todayDistance\");}\n if (json_settings.has(\"totalDistance\")) {this.totalDistanceBool = json_settings.getBoolean(\"totalDistance\");}\n if (json_settings.has(\"batteryCircle\")) {this.batteryCircleBool = json_settings.getBoolean(\"batteryCircle\");}\n if (json_settings.has(\"stepsCircle\")) {this.stepCircleBool = json_settings.getBoolean(\"stepsCircle\");}\n if (json_settings.has(\"todayDistanceCircle\")) {this.todayDistanceCircleBool = json_settings.getBoolean(\"todayDistanceCircle\");}\n if(isCircles()){\n if(batteryBool){\n\n\n }\n\n }\n\n } catch (JSONException e) {\n //Settings.System.putString(getContentResolver(), this.watchface+\"Settings\", \"{}\");//reset wrong settings data\n }\n }", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "@Override\r\n\tpublic void config() {\n\t\tinter.setState(inter.getConfig());\r\n\t}", "@SuppressLint(\"InflateParams\")\n private void showGoToSettingsDialog() {\n View view = LayoutInflater.from(activity).inflate(R.layout.go_to_setting, null, false);\n TextView message = (TextView) view.findViewById(R.id.fingerprint_required);\n TextView description = (TextView) view.findViewById(R.id.go_to_setting_description);\n message.setText((String) call.argument(\"fingerprintRequired\"));\n description.setText((String) call.argument(\"goToSettingDescription\"));\n Context context = new ContextThemeWrapper(activity, R.style.AlertDialogCustom);\n OnClickListener goToSettingHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n activity.startActivity(new Intent(Settings.ACTION_SECURITY_SETTINGS));\n }\n };\n OnClickListener cancelHandler = new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n stop(false);\n }\n };\n new AlertDialog.Builder(context).setView(view)\n .setPositiveButton((String) call.argument(\"goToSetting\"), goToSettingHandler)\n .setNegativeButton((String) call.argument(CANCEL_BUTTON), cancelHandler).setCancelable(false).show();\n }", "public static void action(ActionEvent actionEvent){\n\t\tAcideGUIFactory.getInstance().buildAcideThemeConfigurationWindow(\n\t\t\t\tAcideMainWindow.getInstance());\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public static void openSettingsForm(){\n\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\thf.getSettings().setVisible(true);;\n\n\t}", "public OutputConfigDialog(AppEditor theParent) {\n\n\t\tsuper(theParent, WINDOW_TITLE, Dialog.ModalityType.APPLICATION_MODAL);\n\n\t\tdoSetup(null, false, false);\n\t}", "public boolean isDisplayed() {\n return graphConfig.isDisplayed();\n }", "private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}", "private void newConfiguration() {\n checkSave();\n config = new Configuration();\n\n // create a ConfigurationDialog\n ConfigurationDialog cdialog = new ConfigurationDialog(frame, NEW, config, getConfigurations());\n cdialog.pack();\n cdialog.setLocationRelativeTo(frame);\n cdialog.setVisible(true);\n\n // if the data is valid, create an ImageDialog to allow registration of the image\n if (cdialog.isDataValid()) {\n System.out.println(\"config name: \"+config.getName());\n if (config.useBlankImage()) {\n System.out.println(\"blank image: \"+config.getImageHeight()+\" x \"+config.getImageWidth());\n }\n else {\n System.out.println(\"image name: \"+addSlashes(config.getImageName()));\n config.setImageName(addSlashes(config.getImageName()));\n }\n\n ImageDialog idialog = new ImageDialog(frame, NEW, config);\n idialog.pack();\n idialog.setLocationRelativeTo(frame);\n idialog.setVisible(true); \n\n // if the ImageDialog data is valid, create a blank motes object and calls viewConfiguration\n if (idialog.isDataValid()) {\n System.out.println(\"minPixelX: \"+config.getMinimumPixelX());\n System.out.println(\"minPixelY: \"+config.getMinimumPixelY());\n System.out.println(\"maxPixelX: \"+config.getMaximumPixelX());\n System.out.println(\"maxPixelY: \"+config.getMaximumPixelY());\n System.out.println(\"minRealX: \"+config.getMinimumRealX());\n System.out.println(\"minRealY: \"+config.getMinimumRealY());\n System.out.println(\"maxRealX: \"+config.getMaximumRealX());\n System.out.println(\"maxRealY: \"+config.getMaximumRealY());\n config.notSaved();\n configSave.setEnabled(true);\n configClose.setEnabled(true);\n motes = new Motes();\n viewConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n else {\n config = new Configuration();\n }\n }\n }", "public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption​(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }", "public void Click_defineSetupPage_Alert() {\r\n\t\tclickOn(SensorConfiguration_Btn);\r\n\t}", "private void changeShowSettings(SelectionEvent event) {\r\n //System.out.println(\"Show settings shanged\");\r\n \r\n Set <ShowOption> currentlySelected = event.getAllSelectedItems();\r\n \r\n Set <ShowOption> unselected = new HashSet();\r\n unselected.addAll(previousShowOptions);\r\n unselected.removeAll(currentlySelected);\r\n \r\n Set <ShowOption> newlySelected = new HashSet();\r\n newlySelected.addAll(currentlySelected);\r\n newlySelected.removeAll(previousShowOptions);\r\n \r\n Set <ShowOption> changed = new HashSet();\r\n changed.addAll(newlySelected);\r\n changed.addAll(unselected);\r\n \r\n for (ShowOption showOption : changed) {\r\n showOptions.put(showOption, !showOptions.get(showOption));\r\n } \r\n \r\n \r\n// System.out.println(\"previously selected: \" + previousShowOptions);\r\n// System.out.println(\"unselected: \" + unselected);\r\n// System.out.println(\"newly selected: \" + newlySelected);\r\n //System.out.println(\"changed show options: \" + changed);\r\n \r\n //changeShowStatus(changed);\r\n \r\n // TODO: try with JS feedback\r\n //LoadingIndicator <String> loadingIndicator = new LoadingIndicator(\"Loading 3D views ...\");\r\n //getComponent().getUI().addWindow(loadingIndicator);\r\n sendPlotOptions();\r\n //loadingIndicator.close();\r\n \r\n // the option to show the bar chart is only enabled for the 2D view\r\n if (showOptions.get(ShowOption.THREE_D)) {\r\n showOptionsSelector.setItemEnabledProvider(item -> !item.equals(ShowOption.N));\r\n }\r\n else {\r\n showOptionsSelector.setItemEnabledProvider(item -> true);\r\n }\r\n \r\n previousShowOptions = showOptionsSelector.getValue();\r\n }", "private void showDateStampOptionDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tCharSequence title = res.getString(R.string.setting_datestamp);\n\t\tfinal String[] dateStampUIString = uiDisplayResource\n\t\t\t\t.getDateStampUIString();\n\t\tif (dateStampUIString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"dateStampUIString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = dateStampUIString.length;\n\n\t\tint curIdx = 0;\n\t\tUIInfo uiInfo = reflection.refecltFromSDKToUI(\n\t\t\t\tSDKReflectToUI.SETTING_UI_DATE_STAMP,\n\t\t\t\tcameraProperties.getCurrentDateStamp());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (dateStampUIString[i].equals(uiInfo.uiStringInSetting)) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\tint value = (Integer) reflection.refecltFromUItoSDK(\n\t\t\t\t\t\tUIReflectToSDK.SETTING_SDK_DATE_STAMP,\n\t\t\t\t\t\tdateStampUIString[arg1]);\n\t\t\t\tLog.d(\"tigertiger\", \"----------------value =\" + value);\n\t\t\t\tcameraProperties.setDateStamp(value);\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, dateStampUIString, curIdx, listener, true);\n\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n for (WidgetBase widget : widgets) {\n if (widget.getClass().getName().contains(\"SettingsWidget\")) {\n continue;\n }\n\n SettingsStorage.storeVisibilitySetting(mContext,\n widget.getClass().getName(), !widget.isHidden());\n }\n }", "public static void showGUI() {\n Display display = Display.getDefault();\n Shell shell = new Shell(display);\n EntropyUIconfig inst = new EntropyUIconfig(shell, SWT.NULL);\n Point size = inst.getSize();\n shell.setLayout(new FillLayout());\n shell.layout();\n if (size.x == 0 && size.y == 0) {\n inst.pack();\n shell.pack();\n } else {\n Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);\n shell.setSize(shellBounds.width, shellBounds.height);\n }\n shell.open();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch())\n display.sleep();\n }\n }", "public ConfigureUpdatesDialog() {\n super(StrangeEons.getWindow(), ModalityType.TOOLKIT_MODAL);\n initComponents();\n AbstractGameComponentEditor.localizeComboBoxLabels(frequencyCombo, null);\n AbstractGameComponentEditor.localizeComboBoxLabels(actionCombo, null);\n banner.setIcon(new ImageIcon(\n ResourceKit.createBleedBanner(((ImageIcon) banner.getIcon()).getImage())\n ));\n setLocationRelativeTo(getParent());\n\n Settings s = Settings.getUser();\n s.set(\"core-dialog-shown\", \"yes\");\n //doNotShowCheck.setSelected( s.getYesNo( \"core-dialog-autoinstall\" ) );\n\n frequencyCombo.setSelectedIndex(AutomaticUpdater.getUpdateFrequency());\n actionCombo.setSelectedIndex(AutomaticUpdater.getUpdateAction() == 0 ? 0 : 1);\n newPluginsCheck.setSelected(AutomaticUpdater.isShowingNewPlugins());\n appUpdateCheck.setSelected(AutomaticUpdater.isShowingAppUpdates());\n doneInit = true;\n }", "public BindingConfigurationPanel() {\n initComponents();\n initGUI();\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }" ]
[ "0.65486467", "0.65486467", "0.6248275", "0.6113269", "0.59813446", "0.59537643", "0.5942697", "0.59417146", "0.5897482", "0.58851975", "0.5874717", "0.5862084", "0.5812451", "0.5763007", "0.57534355", "0.5751446", "0.5679094", "0.5670364", "0.5660256", "0.5650443", "0.56503445", "0.563206", "0.5629074", "0.5622717", "0.5615607", "0.56039274", "0.55710924", "0.55658907", "0.55411774", "0.55355906", "0.5522803", "0.55098826", "0.55043775", "0.5481062", "0.5478028", "0.54698384", "0.5467851", "0.5461978", "0.54597926", "0.5441253", "0.543288", "0.54233974", "0.5404796", "0.5397475", "0.5392297", "0.53739804", "0.5367749", "0.5362875", "0.53489274", "0.53397423", "0.53337854", "0.53295785", "0.5319169", "0.5308959", "0.5307793", "0.53010005", "0.5290068", "0.5284364", "0.5267966", "0.5266816", "0.5249426", "0.5247319", "0.5245331", "0.5239054", "0.5238194", "0.5234247", "0.52340233", "0.5232755", "0.5232048", "0.52243507", "0.522257", "0.5222302", "0.52171624", "0.52137125", "0.52026427", "0.51973236", "0.5192198", "0.51903814", "0.5189209", "0.51873124", "0.51832044", "0.5176819", "0.5174398", "0.5173484", "0.5167187", "0.5164293", "0.51621693", "0.51569813", "0.5155694", "0.5132865", "0.5126044", "0.51237124", "0.51234365", "0.51196575", "0.51181245", "0.51179254", "0.50979644", "0.50942105", "0.50920856", "0.50920856" ]
0.65753496
0
Get an instance of the selected widget as a AppWidgetHostView
public void createWidget(Intent data) { if (data == null) return; Bundle extras = data.getExtras(); int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); AppWidgetProviderInfo appWidgetInfo = getAppWidgetManager().getAppWidgetInfo(appWidgetId); // Build Launcher-specific widget info and save LauncherAppWidgetInfo launcherInfo = new LauncherAppWidgetInfo(appWidgetId); launcherInfo.setHostView(getAppWidgetHost().createView(MainActivity.this, appWidgetId, appWidgetInfo)); launcherInfo.getHostView().setAppWidget(appWidgetId, appWidgetInfo); WidgetFragment fragment = getCurrentWidgetFragment(); if (fragment != null) { ItemInfo info = fragment.attachWidget(launcherInfo); if (info != null) { WidgetPersistance.addDesktopAppWidget(fragment.getScreen(), info); } getAppWidgetHost().startListening(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected AppWidgetHostView onCreateView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget)\n\t{\n\t\tLauncherAppWidgetHostView appWidgetHostView = new LauncherAppWidgetHostView(context);\n\t\tappWidgetHostView.setId(appWidgetId);\n\t\treturn appWidgetHostView;\n\n\t}", "public Widget asWidget();", "@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}", "private WidgetInstanceManager get_instance(int appWidgetId) {\r\n\t\t\treturn m_Instances.get(appWidgetId);\r\n\t\t}", "@Override\n\tpublic VLayout asWidget() {\n\t\treturn this;\n\t}", "public HBox getView() {\n return this;\n }", "@Override\n\tpublic Widget getMainWidget() {\n\t\treturn display.asWidget();\n\t}", "@Override\n public Widget getWidget() {\n if (widget == null) {\n if (Profiler.isEnabled()) {\n Profiler.enter(\"AbstractComponentConnector.createWidget for \"\n + getClass().getSimpleName());\n }\n widget = createWidget();\n if (Profiler.isEnabled()) {\n Profiler.leave(\"AbstractComponentConnector.createWidget for \"\n + getClass().getSimpleName());\n }\n }\n\n return widget;\n }", "public Widget getWidget(){\r\n\t\treturn widget;\r\n\t}", "View getActiveView();", "protected abstract Widget getRootWidget();", "Button getWidget() {\n return mWidget;\n }", "@Override\n public RemoteViewsFactory onGetViewFactory(Intent intent) {\n int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);\n return (new ItemListProvider(this.getApplicationContext(), intent));\n }", "public JComponent getWidget() {\n return itsComp;\n }", "protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @NonNull\n protected V getPresenterViewHost() {\n return (V) this;\n }", "@Override\n\tpublic IWidgetInstance createInstance(ISocketInstance socket) {\n\t\treturn this;\n\t}", "@Override\n public Object getWidget()\n {\n return null;\n }", "public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }", "public abstract View getMainDialogContainer();", "GuiView getGui();", "public static void createWidget(Activity act) {\n logger.debug(\"/onCreateWidget/suggesting user to add widget to dashboard\");\n AppWidgetHost host = new AppWidgetHost(act, HOST_CODE);\n int nextId = host.allocateAppWidgetId();\n Intent pickIntent = new Intent(AppWidgetManager.ACTION_APPWIDGET_PICK);\n pickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, nextId);\n act.startActivityForResult(pickIntent, ADD_WIDGET_KEY_CODE);\n\n }", "public XServerDisplayActivity getHost() {\n return (XServerDisplayActivity) getContext();\n }", "public GUI GetHost() {\n\t\treturn m_Host;\n\t}", "public static RockboxWidgetProvider getInstance()\n {\n return mInstance;\n }", "public DialogView getView() {\n // Create view lazily only once it's needed\n if (this.home3DAttributesView == null) {\n this.home3DAttributesView = this.viewFactory.createHome3DAttributesView(\n this.preferences, this); \n }\n return this.home3DAttributesView;\n }", "ViewElement getViewElement();", "public JComponent setWidget( JComponent w ) {\n widget = w;\n return w;\n }", "public ViewIdentificator getView() {\r\n return view;\r\n }", "public T getViewDataBinding() {\n return mViewDataBinding;\n }", "public interface IView {\n\n View getRootView();\n}", "ViewElement createViewElement();", "String getViewClass();", "@Override\r\n\t public void onReceive(Context context, Intent intent) {\r\n\t final String action = intent.getAction();\r\n\t if (action.equals(AppWidgetManager.ACTION_APPWIDGET_DELETED)) {\r\n\t final int appWidgetId = intent.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);\r\n\t if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) {\r\n\t this.onDeleted(context, new int[] { appWidgetId });\r\n\t }\r\n\t } else if (action.equals(ACTION_WIDGET_CONTROL)) {\r\n\t \tUri uri = intent.getData();\r\n\t \tRect widget_pos = intent.getSourceBounds();\r\n\t \tint widget_id = Integer.parseInt(uri.getQueryParameter(\"widget_id\"));\r\n\t if (widget_id != AppWidgetManager.INVALID_APPWIDGET_ID) {\r\n\t \tmake_widget_action(context, widget_id, widget_pos);\r\n\t }\t\r\n\t } else if (action.equals(ACTION_UPDATE_WIDGET_CONTEXT)) {\r\n\t \tUri uri = intent.getData();\r\n\t \tint widget_id = Integer.parseInt(uri.getQueryParameter(\"widget_id\"));\r\n\t if (widget_id != AppWidgetManager.INVALID_APPWIDGET_ID) { \t\r\n\t \tRemoteViews remote_views = new RemoteViews(context.getPackageName(), R.layout.widget);\r\n\t \tWidgetInstanceManager wim = get_instance(widget_id);\r\n\t \twim.ReinitializeWidgetBitmap(context);\r\n\t \t\tupdate_widget_view(AppWidgetManager.getInstance(context), widget_id, remote_views);\r\n\t } else super.onReceive(context, intent);\t\r\n\t } else {\r\n\t super.onReceive(context, intent);\r\n\t }\r\n\t }", "@Override\n\tpublic void widgetClick(View v) {\n\n\t}", "public interface AbstractWidgetFactory {\n public Window createWindow();\n}", "public String getView();", "public String getView();", "JComponent getImpl();", "public abstract TargetWindowT getSideInputWindow(BoundedWindow mainWindow);", "public WindowContent getViewContent() {\r\n return this.windowContent;\r\n }", "public Pane getView() {\n return gridPane;\n }", "private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }", "PerformancesView getSiblingView() {\n\tif (this.buildsView == null) {\n\t\tthis.buildsView = (PerformancesView) getWorkbenchView(\"org.eclipse.test.internal.performance.results.ui.BuildsView\");\n\t}\n\treturn this.buildsView;\n}", "public View getView() { return view; }", "private void updateAppWidget(Context context, AppWidgetManager appWidgetManager, int appWidgetId)\n {\n RemoteViews views=new RemoteViews(context.getPackageName(), R.layout.new_app_widget);\n\n\n appWidgetManager.updateAppWidget(appWidgetId, views);\n }", "public ViewFactory getViewFactory()\n {\n return this;\n }", "public View getView() {\n return view;\n }", "StableView view();", "protected Diagram getDiagramToOpen() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tEObject element = grahicalHostEditPart.resolveSemanticElement();\n\t\t\t\tList<Diagram> diagramL = MultiDiagramUtil\n\t\t\t\t\t\t.getDiagramsAssociatedToElement(element);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be opened\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (Diagram) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}", "public Widget findWidget(String widgetKey) {\n for (Widget w : widgets) {\n if (w.getModel().getKey().equals(widgetKey)) {\n return w;\n }\n }\n return null;\n }", "public AbstractView getPrimeView()\n {\n return m_MainWindow.getPrimeView();\n }", "public abstract int getRootView();", "public View getView() {\n\t\treturn view;\n\t}", "ViewContainer createViewContainer();", "private void setRemoteAdapter(Context context, @NonNull final RemoteViews views,\n int appWidgetId) {\n Intent intent = new Intent(context, PopularShowsWidgetRemoteViewsService.class);\n intent.setData(Uri.fromParts(\"content\", String.valueOf(appWidgetId), null));\n views.setRemoteAdapter(R.id.widget_list, intent);\n }", "@Override\n public Activity getViewActivity() {\n return this;\n }", "public View getActionBarView(Activity activity) {\n Window window = activity.getWindow();\n View view = window.getDecorView();\n int resId = activity.getResources().getIdentifier(\"action_bar_container\", \"id\", \"android\");\n\n return view.findViewById(resId);\n }", "@Override\n public void setWidget(Object arg0)\n {\n \n }", "ViewComponentPart createViewComponentPart();", "public static MainWindow getInstance ()\r\n {\r\n return INSTANCE;\r\n }", "protected Activity getActivity() {\n\t\treturn (Activity) getHost().getModel();\n\t}", "public View getGuiView(){\n \t\n \treturn guiView;\n }", "public String getWidgetId()\r\n\t{\r\n\t\treturn widgetId;\r\n\t}", "@Override\n public RemoteViewsFactory onGetViewFactory(Intent myIntents) {\n return new MyRemoteViewsService(this.getApplicationContext());\n }", "public interface ApplicationView {\n}", "protected LttlComponent getHostComponent()\n\t{\n\t\tif (hostCompId < 0) return null;\n\t\treturn Lttl.scenes.findComponentByIdAllScenes(hostCompId);\n\t}", "ViewComponent createViewComponent();", "protected abstract ToolbarEngine getInstanceOfToolbar();", "protected ActivityPart getActivityPart() {\n\t\treturn (ActivityPart) getHost();\n\t}", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "public abstract android.widget.RemoteViewsService.RemoteViewsFactory onGetViewFactory(android.content.Intent intent);", "public FlyView flyInstance(View parent);", "public edit_category_ui get_instance() {\r\n\t\t\r\n\t\treturn instance;\r\n\t}", "public int getContentBoxViewId() {\n return R.id.content_box;\n }", "public static int getStaticHostLayoutResource() {\n return R.layout.rovers_host_vertical;\n }", "public void onViewportIn() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_IN_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n\n }", "public ClientDashboardFrame getClientDashboardFrame() {\n return (ClientDashboardFrame) getParent() //JPanel\n .getParent() //JLayeredPanel\n .getParent() //JRootPanel\n .getParent(); //JFrame\n }", "public Host getCurrentHost() {\n\t\tif (current == null) {\n\t\t\tString id = SystemHelper.os.getSystemUUID();\n\t\t\tfor (Host host : config.getHosts()) {\n\t\t\t\tif (id.equals(host.getId())) {\n\t\t\t\t\tcurrent = host;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}", "public void loadHostScreen(View view) {\n Intent intent = new Intent(this, HostActivity.class);\r\n startActivity(intent);\r\n }", "public interface Viewer {\n\n int getCurrentView();\n\n}", "public ButtonView getButtonView() {\r\n return buttonPanel;\r\n }", "IViewerBinding getBinding();", "@Override\n public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) {\n Widget content = getContentWidget();\n if (content != null) {\n getWidget().setWidget(content);\n }\n }", "@Override\n public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent) {\n Widget content = getContentWidget();\n if (content != null) {\n getWidget().setWidget(content);\n }\n }", "public AppComponent component(){\n return mComponent;\n }", "public View invoke() {\n return this.f64323a.findViewById(R.id.bt0);\n }", "@Override\n protected void onHandleIntent(Intent intent) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this, TodayWidgetProvider.class));\n\n //Get today's data from ContentProvider\n String location = Utility.getPreferredLocation(this);\n Uri weatherForLocationUri = WeatherContract.WeatherEntry.buildWeatherLocationWithDate(location, System.currentTimeMillis());\n Cursor cursor = getContentResolver().query(weatherForLocationUri, FORECAST_COLUMNS, null, null, WeatherContract.WeatherEntry.COLUMN_DATE + \" ASC\");\n if (cursor == null) {\n return;\n }\n if(!cursor.moveToFirst()) {\n cursor.close();\n return;\n }\n\n // Extract the weather data from the Cursor\n int weatherId = cursor.getInt(INDEX_WEATHER_ID);\n int weatherArtResourceId = Utility.getArtResourceForWeatherCondition(weatherId);\n String description = cursor.getString(INDEX_SHORT_DESC);\n double maxTemp = cursor.getDouble(INDEX_MAX_TEMP);\n String formattedMaxTemperature = Utility.formatTemperature(this, maxTemp);\n cursor.close();\n\n // for every created Widget\n for (int appWidgetId : appWidgetIds) {\n // add RemoteView\n RemoteViews views = new RemoteViews(\n getPackageName(),\n R.layout.widget_today_small);\n // Add the data to the RemoteViews\n views.setImageViewResource(R.id.widget_icon, weatherArtResourceId);\n views.setTextViewText(R.id.widget_temperature, formattedMaxTemperature);\n // Content Descriptions for RemoteViews were only added in ICS MR1\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {\n setRemoteContentDescription(views, description);\n }\n // add action when user taps on the Widget - Intent to launch MainActivity\n Intent launchIntent = new Intent(this, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, launchIntent, 0);\n views.setOnClickPendingIntent(R.id.widget, pendingIntent);\n\n // Tell the AppWidgetManager to perform an update on the current app widget\n appWidgetManager.updateAppWidget(appWidgetId, views);\n\n }\n\n }", "public TWidget getActiveChild() {\n if ((this instanceof THScroller)\n || (this instanceof TVScroller)\n ) {\n return parent;\n }\n\n for (TWidget widget: children) {\n if (widget.active) {\n return widget.getActiveChild();\n }\n }\n // No active children, return me\n return this;\n }", "private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }", "public JsStatement widget()\n\t{\n\t\treturn new JsQuery(getComponent()).$().chain(\"draggable\", \"'widget'\");\n\t}", "private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }", "public GraphPane getGraphPane() {\n return (GraphPane)getCanvasPane();\n }", "ViewMap<IBranchMapping> getView();", "public Window getWindow() {\n Window w = null;\n if(this instanceof Container) {\n Node root = ((Container)this).getRoot();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n if(this instanceof Widget) {\n Node root = ((Widget)this).getGraphics();\n Scene scene = root==null ? null : root.getScene();\n javafx.stage.Window stage = scene==null ? null : scene.getWindow();\n w = stage==null ? null : (Window)stage.getProperties().get(\"window\");\n }\n return w==null ? Window.getActive() : w;\n }", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic Object getAdapter(Class key) {\r\n\t\tif (key.equals(IContentOutlinePage.class)) {\r\n\t\t\treturn showOutlineView() ? getContentOutlinePage() : null;\r\n\t\t} \r\n\t\telse if (IPropertySheetPage.class.equals(key)) {\r\n\t\t\tif (propertySheetPage == null || propertySheetPage.getWidgetFactory()==null) {\r\n\t\t\t\tpropertySheetPage = new TabbedPropertySheetPage(this);\r\n\t\t\t}\r\n\t\t\treturn propertySheetPage;\r\n\t\t} \r\n\t\telse if (key.equals(IGotoMarker.class)) {\r\n\t\t\treturn this;\r\n\t\t} \r\n\t\telse if (key.equals(CommandStack.class)) {\r\n\t\t\treturn editingDomain.getCommandStack();\r\n\t\t} \r\n\t\telse if (key.equals(ELibraryRoot.class))\r\n\t\t{\r\n\t\t\treturn CrmlBuilder.getResourceModelRoot();\r\n\t\t}\r\n\t\telse if (key.equals(org.eclipse.gef.commands.CommandStack.class))\r\n\t\t{\r\n\t\t\treturn new org.eclipse.gef.commands.CommandStack();\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn super.getAdapter(key);\r\n\t\t}\r\n\t}", "private String instantiateWidget(Element widget){\n\t\tString response = null;\n\t\tString widgetUri = widget.getAttributeValue(\"identifier\");\n\t\t// instantiate widget and parse results\n\t\ttry {\n\t\t\tHttpClient client = new HttpClient();\n\t\t\tPostMethod post = new PostMethod(TEST_INSTANCES_SERVICE_URL_VALID);\n\t\t\tpost.setQueryString(\"api_key=\"+API_KEY_VALID+\"&widgetid=\"+widgetUri+\"&userid=test&shareddatakey=test\");\n\t\t\tclient.executeMethod(post);\n\t\t\tresponse = IOUtils.toString(post.getResponseBodyAsStream());\n\t\t\tpost.releaseConnection();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t//e.printStackTrace();\n\t\t\tfail(\"failed to instantiate widget\");\n\t\t}\n\t\treturn response;\t\t\n\t}", "@Override\n protected void onHandleIntent(Intent intent) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);\n int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(this,\n TodayWidgetProvider.class));\n Context context = getApplicationContext();\n\n //Only today.\n Date fragmentdate = new Date(System.currentTimeMillis());\n SimpleDateFormat mformat = new SimpleDateFormat(\n getString(R.string.pager_fragment_date_format_1));\n dateString[0] = mformat.format(fragmentdate);\n\n Uri uri = DatabaseContract.ScoresTable.buildScoreWithDate();\n Cursor cursor = getContentResolver().query(uri, PROJECTION_COLUMNS, null, dateString,\n DatabaseContract.ScoresTable.DATE_COL + \" DESC\");\n\n\n if (cursor != null) {\n if (cursor.moveToFirst())\n buildString(cursor);\n cursor.close();\n }\n\n for (int appWidgetId : appWidgetIds) {\n RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_today_small);\n\n views.setTextViewText(R.id.widget_score, scoreContent);\n views.setImageViewResource(R.id.widget_icon, R.drawable.ic_launcher);\n\n //Intent to launch MainActivity\n Intent launchIntent = new Intent(context, MainActivity.class);\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, launchIntent, 0);\n views.setOnClickPendingIntent(R.id.widget, pendingIntent);\n\n //Update Widget\n appWidgetManager.updateAppWidget(appWidgetId, views);\n }\n\n Log.d(\"TodayWidgetUpdate\", \"service updated\");\n\n\n }", "public static AnchorPane getContentBox(){\n return MainUIController.contentBox;\n }" ]
[ "0.65915114", "0.6154653", "0.598636", "0.5704652", "0.56798065", "0.5629776", "0.562481", "0.55823445", "0.55354285", "0.5446366", "0.54259527", "0.54003525", "0.5396039", "0.5366278", "0.53524554", "0.53438014", "0.530617", "0.5295626", "0.52856493", "0.5267243", "0.524113", "0.5188357", "0.51802593", "0.5152991", "0.5149116", "0.5126433", "0.5093433", "0.5045645", "0.5022377", "0.50165457", "0.50136876", "0.49212712", "0.49164185", "0.4905157", "0.49027637", "0.48785576", "0.48666006", "0.48666006", "0.48610684", "0.48416096", "0.4838219", "0.48158744", "0.48138466", "0.47917244", "0.47911552", "0.4786578", "0.47859472", "0.4783738", "0.47777498", "0.47725782", "0.47682485", "0.47651094", "0.47312823", "0.47222468", "0.471334", "0.46988955", "0.46952295", "0.46843517", "0.46778512", "0.4677647", "0.4665211", "0.46566796", "0.46511894", "0.4649843", "0.46464622", "0.46378717", "0.46337283", "0.46336645", "0.46335283", "0.46318996", "0.46253264", "0.46208423", "0.461818", "0.45816037", "0.45763943", "0.45531166", "0.454346", "0.45427996", "0.45423046", "0.4534902", "0.45318234", "0.45290658", "0.45285642", "0.45268464", "0.45268464", "0.45249668", "0.45223463", "0.4520782", "0.45156428", "0.45096403", "0.45089728", "0.4503248", "0.45004192", "0.4497243", "0.44964856", "0.44959655", "0.44911674", "0.44875637", "0.44850594", "0.44847113" ]
0.45871702
73
TODO Autogenerated method stub
@Override public double promotePrice() { return price - 10; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Translates only interfaces into xadl.
public void translate(ObjRef brickRef, IMyxBrickExtension extBrick) { ObjRef typesContextRef = xarch.createContext(xArchRef, "types"); //sets the url of extension point brick id XadlUtils.setXLinkByHref(xarch, brickRef, "type", MyxBrickExtensionUtils.getExtensionPointPluginUrl(extBrick).toString()); //extension point brink interfaces and its ancestors Collection<IInterface> extIntfSet = new HashSet<IInterface>(); extIntfSet.addAll(extBrick.getInterfaces()); extIntfSet.addAll(extBrick.getAncestorsExtensionInterfaces()); //creates extension point brick interface url to extension point brick interface map Map<String, IInterface> extUrlIntfMap = new HashMap<String, IInterface>(); for (IInterface extIntf : extIntfSet) { extUrlIntfMap.put(MyxBrickExtensionUtils.getExtensionPointPluginUrl(extIntf).toString(), extIntf); } //updates existing interface elements of the brickRef for (ObjRef interfaceEltRef : xarch.getAll(brickRef, "interface")) { ObjRef typeRef = (ObjRef) xarch.get(interfaceEltRef, "type"); if (typeRef != null) { String interfaceUrl = XadlUtils.getHref(xarch, typeRef); IInterface extIntf = extUrlIntfMap.get(interfaceUrl); if (extIntf != null) { //updates the existing interface XadlUtils.setDescription(xarch, interfaceEltRef, extIntf.getName()); XadlUtils.setDirection(xarch, interfaceEltRef, CodeGenXadlPartialTranslator.getXadlDirection(extIntf.getDirection())); //removes extension point interface from the set extIntfSet.remove(extIntf); } else { //removes the deleted interface XadlUtils.remove(xarch, interfaceEltRef); } } else { //removes the interface that does not have type link XadlUtils.remove(xarch, interfaceEltRef); } } //adds interface elements into the brickRef for (IInterface intf : extIntfSet) { //crates a new interface element ObjRef interfaceEltRef = xarch.create(typesContextRef, "interface"); XadlUtils.setDescription(xarch, interfaceEltRef, intf.getName()); XadlUtils.setDirection(xarch, interfaceEltRef, CodeGenXadlPartialTranslator.getXadlDirection(intf.getDirection())); String interfaceId = UIDGenerator.generateUID("interface"); xarch.set(interfaceEltRef, "id", interfaceId); xarch.add(brickRef, "interface", interfaceEltRef); //sets the url of extension point brick interface id XadlUtils.setXLinkByHref(xarch, interfaceEltRef, "type", MyxBrickExtensionUtils.getExtensionPointPluginUrl(intf).toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface dax {\n}", "String getInterfaces();", "public Collection<ClassTranslator> getInterfaces();", "public interface a extends IInterface {\n}", "public interface XModule extends ru.awk.spb.xonec.XOneC.XModule\r\n{\r\n}", "public interface IChws_wdt extends IChws, IWdt{\n\n\tpublic IRI iri();\n\n}", "public interface iLL11Ll1 {\n C6860liLi OooO00o(C6773llLi v) throws IOException;\n}", "public interface Visitor extends DLABoxAxiom.Visitor, DLTBoxAxiom.Visitor {\n\n\t}", "Set<Interface> getInterfaces();", "public interface AdsviewInterface {\n}", "interface ws$i extends ws$n {\n boolean b();\n\n String c();\n}", "public interface IGraphElement extends IDotElement {\r\n}", "public interface IAbsolute extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface UnaryTest extends DMNElement {\n}", "public interface a {\n\n /* compiled from: ISplashAdView */\n public interface a {\n void a();\n }\n\n /* compiled from: ISplashAdView */\n public interface b {\n void a();\n }\n\n void a(@NonNull l lVar);\n}", "public interface a {\n }", "public interface IsisInterface {\n\n /**\n * Sets interface index.\n *\n * @param interfaceIndex interface index\n */\n void setInterfaceIndex(int interfaceIndex);\n\n /**\n * Sets intermediate system name.\n *\n * @param intermediateSystemName intermediate system name\n */\n void setIntermediateSystemName(String intermediateSystemName);\n\n /**\n * Sets system ID.\n *\n * @param systemId system ID\n */\n void setSystemId(String systemId);\n\n /**\n * Sets LAN ID.\n *\n * @param lanId LAN ID\n */\n void setLanId(String lanId);\n\n /**\n * Sets ID length.\n *\n * @param idLength ID length\n */\n void setIdLength(int idLength);\n\n /**\n * Sets max area addresses.\n *\n * @param maxAreaAddresses max area addresses\n */\n void setMaxAreaAddresses(int maxAreaAddresses);\n\n /**\n * Sets reserved packet circuit type.\n *\n * @param reservedPacketCircuitType reserved packet circuit type\n */\n void setReservedPacketCircuitType(int reservedPacketCircuitType);\n\n /**\n * Sets point to point.\n *\n * @param p2p point to point\n */\n void setP2p(int p2p);\n\n /**\n * Sets area address.\n *\n * @param areaAddress area address\n */\n void setAreaAddress(String areaAddress);\n\n /**\n * Sets area length.\n *\n * @param areaLength area length\n */\n void setAreaLength(int areaLength);\n\n /**\n * Sets link state packet ID.\n *\n * @param lspId link state packet ID\n */\n void setLspId(String lspId);\n\n /**\n * Sets holding time.\n *\n * @param holdingTime holding time\n */\n void setHoldingTime(int holdingTime);\n\n /**\n * Sets priority.\n *\n * @param priority priority\n */\n void setPriority(int priority);\n\n /**\n * Sets hello interval.\n *\n * @param helloInterval hello interval\n */\n void setHelloInterval(int helloInterval);\n}", "public interface XulLine extends XulComponent {\n\n}", "@Override\n public boolean isInterface() { return false; }", "public interface C0984b extends C0983a {\n}", "public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface LexicalTransformation {\n\n\t/**\n\t * Transform the Object given the locale provided.\n\t */\n\tXObject transform(XObject obj, Locale locale) throws TransformationException;\n}", "String[] getImplementedInterfacesAsDisplayStrings();", "InstrumentedType withInterfaces(TypeList.Generic interfaceTypes);", "public interface Igual extends ComplexInstruction\n{\n}", "public List getInterfaceExtensions();", "interface LinkDataSources extends LinkApi {\r\n}", "private static void includeInterfacesFromExtension(Environment result, Environment extEnv, Environment base)\n \t{\n \t\tfor(IInterfaceDefinition iDef : extEnv.getInterfaces())\n \t\t\tif (!willGenerateExtentionFor(iDef, base))\n \t\t\t\tresult.getInterfaces().add(iDef);\n \n \t}", "public interface C1250dr extends IInterface {\n /* renamed from: a */\n void mo12504a(brw brw, C0719a aVar);\n}", "public interface C0385a {\n }", "public interface SimpleFlow extends Serializable {\n\n public Pipe getPipe();\n\n public @interface IrSimpleFlow {\n\n String name();\n\n }\n\n}", "private void validateDirectInterfaces(Class paramClass) throws IDLTypeException {\n/* 520 */ Class[] arrayOfClass = paramClass.getInterfaces();\n/* */ \n/* 522 */ if (arrayOfClass.length < 2) {\n/* */ return;\n/* */ }\n/* */ \n/* 526 */ HashSet<String> hashSet1 = new HashSet();\n/* 527 */ HashSet<String> hashSet2 = new HashSet();\n/* */ \n/* 529 */ for (byte b = 0; b < arrayOfClass.length; b++) {\n/* 530 */ Class clazz = arrayOfClass[b];\n/* 531 */ Method[] arrayOfMethod = clazz.getMethods();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 536 */ hashSet2.clear();\n/* 537 */ for (byte b1 = 0; b1 < arrayOfMethod.length; b1++) {\n/* 538 */ hashSet2.add(arrayOfMethod[b1].getName());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 543 */ for (String str : hashSet2) {\n/* */ \n/* 545 */ if (hashSet1.contains(str)) {\n/* 546 */ String str1 = \"Class \" + paramClass + \" inherits method \" + str + \" from multiple direct interfaces.\";\n/* */ \n/* 548 */ throw new IDLTypeException(str1);\n/* */ } \n/* 550 */ hashSet1.add(str);\n/* */ } \n/* */ } \n/* */ }", "public interface C13719g {\n}", "public interface C0136c {\n }", "public boolean isInterface();", "public interface C1279b extends C1278a {\n}", "Interface_decl getInterface();", "public interface Allele {\n}", "public interface C4999x extends C4929d, C4995v1 {\n}", "public interface C21597a {\n }", "public interface IMPDElement {\n /**\n * This method returns a vector of pointers to dash::xml::INode objects which correspond to additional <em>XML Elements</em> of certain\n * MPD elements. These <em>XML Elements</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a vector of pointers to dash::xml::INode objects\n */\n public Vector<Node> GetAdditionalSubNodes();\n\n /**\n * This method returns a map with key values and mapped values of type std::string of all <em>XML Attributes</em> of certain MPD elements. \\n\n * Some of these <em>XML Attributes</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a map with key values and mapped values, both of type std::string\n */\n public HashMap<String, String> GetRawAttributes();\n}", "interface NewInterface extends Interface1,Interface2,Interface3{\n\n\tpublic void getD();\n\n}", "public interface C19588a {\n }", "private static void includeInterfacesFromExtension(Environment result,\n\t\t\tEnvironment extEnv, Environment base)\n\t{\n\t\tfor (IInterfaceDefinition iDef : extEnv.getInterfaces())\n\t\t{\n\t\t\tif (!willGenerateExtensionFor(iDef, base))\n\t\t\t{\n\t\t\t\tiDef.setIsExtTree(true);\n\t\t\t\tresult.getInterfaces().add(iDef);\n\t\t\t}\n\t\t}\n\t}", "public static String interfaceDecl()\n {\n read_if_needed_();\n \n return _interface_decl;\n }", "public boolean isInterfaceInOutage(final String linterface, final Outage out) {\n if (out == null) return false;\n\n for (final Interface ointerface : out.getInterfaceCollection()) {\n if (ointerface.getAddress().equals(\"match-any\") || ointerface.getAddress().equals(linterface)) {\n return true;\n }\n }\n\n return false;\n }", "public interface ICdss4NsarAllergy {\n\t\n\t/**\n\t * Gets the name.\n\t *\n\t * @return the name\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Sets the name.\n\t *\n\t * @param name the new name\n\t */\n\tpublic void setName(String name);\n\t\n}", "public interface AdDetailContract {\n interface View {\n }\n\n interface UserAction {\n }\n}", "public interface i {\n void D(String str);\n\n void H();\n\n void L(String str);\n\n void b0(Response response);\n\n void c(List<DomainExpired> list);\n\n void h(Map<String, List<ExtendedMail>> map);\n\n void p(ApiError apiError);\n}", "public interface C1061nc extends IInterface {\n /* renamed from: a */\n String mo2800a();\n\n /* renamed from: a */\n String mo2801a(String str);\n\n /* renamed from: a */\n void mo2802a(String str, boolean z);\n\n /* renamed from: a */\n boolean mo2803a(boolean z);\n}", "public interface C16740s extends IInterface {\n /* renamed from: a */\n void mo43357a(C16726e eVar) throws RemoteException;\n}", "public interface AttributeTypeAttack extends EObject\n{\n}", "interface I {}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "@ImplementedBy(AWSIPConverter.class)\npublic interface IPConverter {\n Optional<String> getPublicIP(PriamInstance instance);\n}", "private void refreshInterfaces() {\n\t\tfor (Interface intfcFrom : this.interfaces.values()) {\r\n//\t\t\ti++;\r\n\t\t\tString mappedTfURI = SPARQLQueries.getMappedTFFrom(model, intfcFrom.getInterfaceURI());\r\n\t\t\t\r\n\t\t\tList<String> tfTypes = SPARQLQueries.getTfTypesMappedByInterface(model, intfcFrom.getInterfaceURI());\r\n\t\t\tif(tfTypes.contains(ns+\"Matrix_Source\") && intfcFrom.isOutput()){\r\n\t\t\t\tintfcFrom.setMapsMatrixSourceOutput(true);\r\n\t\t\t}\r\n\t\t\tif(tfTypes.contains(ns+\"Matrix_Sink\") && !intfcFrom.isOutput()){\r\n\t\t\t\tintfcFrom.setMapsMatrixSinkInput(true);\r\n\t\t\t}\r\n\t\t\tList<String> lastMappedTfURI = SPARQLQueries.getLastBindedTFFrom(model, mappedTfURI, intfcFrom.isSource());\r\n\t\t\tintfcFrom.setLastMappedTfURI(lastMappedTfURI);\r\n\t\t\tintfcFrom.setMappedTfURI(mappedTfURI);\r\n//\t\t\tint j = 0;\r\n\t\t\tfor (Interface intfcTo : this.interfaces.values()) {\r\n//\t\t\t\tj++;\r\n\t\t\t\tif(intfcFrom.equals(intfcTo) || intfcFrom.isOutput() || !intfcTo.isOutput()){\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tList<Path> internalPath = getOrigPaths(intfcFrom, intfcTo);\r\n\t\t\t\tif(internalPath != null){\r\n\t\t\t\t\tif(internalPath.size() > 0 && internalPath.get(0).size() > 2){\r\n\t\t\t\t\t\tintfcFrom.addInternalPaths(intfcTo, internalPath);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}", "public interface C46409a {\n}", "TypeInfo[] interfaces();", "public interface DmxCorrelationVariable extends DNavigableMember\n{\n}", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "IInterfaceDefinition[] resolveImplementedInterfaces(ICompilerProject project);", "public interface IInventoryObject extends IID\n{\n}", "public interface i {\n}", "public interface IsisInterface {\n\n /**\n * Returns interface index.\n *\n * @return interface index\n */\n int interfaceIndex();\n\n /**\n * Sets interface index.\n *\n * @param interfaceIndex interface index\n */\n void setInterfaceIndex(int interfaceIndex);\n\n /**\n * Returns the interface IP address.\n *\n * @return interface IP address\n */\n Ip4Address interfaceIpAddress();\n\n /**\n * Sets the interface IP address.\n *\n * @param interfaceIpAddress interface IP address interface IP address\n */\n void setInterfaceIpAddress(Ip4Address interfaceIpAddress);\n\n /**\n * Returns the network mask.\n *\n * @return network mask\n */\n byte[] networkMask();\n\n /**\n * Sets the network mask.\n *\n * @param networkMask network mask\n */\n void setNetworkMask(byte[] networkMask);\n\n /**\n * Sets the interface MAC address.\n *\n * @param interfaceMacAddress interface MAC address\n */\n void setInterfaceMacAddress(MacAddress interfaceMacAddress);\n\n /**\n * Returns the neighbors list.\n *\n * @return neighbors list\n */\n Set<MacAddress> neighbors();\n\n /**\n * Sets intermediate system name.\n *\n * @param intermediateSystemName intermediate system name\n */\n void setIntermediateSystemName(String intermediateSystemName);\n\n /**\n * Returns system ID.\n *\n * @return systemID system ID\n */\n String systemId();\n\n /**\n * Sets system ID.\n *\n * @param systemId system ID\n */\n void setSystemId(String systemId);\n\n /**\n * Returns LAN ID.\n *\n * @return LAN ID\n */\n String l1LanId();\n\n /**\n * Sets LAN ID.\n *\n * @param lanId LAN ID\n */\n void setL1LanId(String lanId);\n\n /**\n * Returns LAN ID.\n *\n * @return LAN ID\n */\n String l2LanId();\n\n /**\n * Sets LAN ID.\n *\n * @param lanId LAN ID\n */\n void setL2LanId(String lanId);\n\n /**\n * Sets ID length.\n *\n * @param idLength ID length\n */\n void setIdLength(int idLength);\n\n /**\n * Sets max area addresses.\n *\n * @param maxAreaAddresses max area addresses\n */\n void setMaxAreaAddresses(int maxAreaAddresses);\n\n /**\n * Returns reserved packet circuit type.\n *\n * @return reserved packet circuit type\n */\n int reservedPacketCircuitType();\n\n /**\n * Sets reserved packet circuit type.\n *\n * @param reservedPacketCircuitType reserved packet circuit type\n */\n void setReservedPacketCircuitType(int reservedPacketCircuitType);\n\n /**\n * Returns point to point or broadcast.\n *\n * @return 1 if point to point, 2 broadcast\n */\n IsisNetworkType networkType();\n\n /**\n * Sets point to point.\n *\n * @param networkType point to point\n */\n void setNetworkType(IsisNetworkType networkType);\n\n /**\n * Returns area address.\n *\n * @return area address\n */\n String areaAddress();\n\n /**\n * Sets area address.\n *\n * @param areaAddress area address\n */\n void setAreaAddress(String areaAddress);\n\n /**\n * Sets area length.\n *\n * @param areaLength area length\n */\n void setAreaLength(int areaLength);\n\n /**\n * Returns holding time.\n *\n * @return holding time\n */\n int holdingTime();\n\n /**\n * Sets holding time.\n *\n * @param holdingTime holding time\n */\n void setHoldingTime(int holdingTime);\n\n /**\n * Returns priority.\n *\n * @return priority\n */\n int priority();\n\n /**\n * Sets priority.\n *\n * @param priority priority\n */\n void setPriority(int priority);\n\n /**\n * Returns hello interval.\n *\n * @return hello interval\n */\n public int helloInterval();\n\n /**\n * Sets hello interval.\n *\n * @param helloInterval hello interval\n */\n void setHelloInterval(int helloInterval);\n\n /**\n * Starts the hello timer which sends hello packet every configured seconds.\n *\n * @param channel netty channel instance\n */\n void startHelloSender(Channel channel);\n\n /**\n * Stops the hello timer which sends hello packet every configured seconds.\n */\n void stopHelloSender();\n\n /**\n * Processes an ISIS message which is received on this interface.\n *\n * @param isisMessage ISIS message instance\n * @param isisLsdb ISIS LSDB instance\n * @param channel channel instance\n */\n void processIsisMessage(IsisMessage isisMessage, IsisLsdb isisLsdb, Channel channel);\n\n /**\n * Returns the interface state.\n *\n * @return interface state\n */\n IsisInterfaceState interfaceState();\n\n /**\n * Sets the interface state.\n *\n * @param interfaceState the interface state\n */\n void setInterfaceState(IsisInterfaceState interfaceState);\n\n /**\n * Returns the LSDB instance.\n *\n * @return LSDB instance\n */\n IsisLsdb isisLsdb();\n\n /**\n * Returns intermediate system name.\n *\n * @return intermediate system name\n */\n String intermediateSystemName();\n\n /**\n * Returns the ISIS neighbor instance if exists.\n *\n * @param isisNeighborMac mac address of the neighbor router\n * @return ISIS neighbor instance if exists else null\n */\n IsisNeighbor lookup(MacAddress isisNeighborMac);\n\n /**\n * Returns circuit ID.\n *\n * @return circuit ID\n */\n String circuitId();\n\n /**\n * Sets circuit ID.\n *\n * @param circuitId circuit ID\n */\n void setCircuitId(String circuitId);\n\n /**\n * Removes neighbor from the interface neighbor map.\n *\n * @param isisNeighbor ISIS neighbor instance\n */\n void removeNeighbor(IsisNeighbor isisNeighbor);\n\n /**\n * Removes all the neighbors.\n */\n void removeNeighbors();\n}", "public interface Understandability extends Usability {\n}", "public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "public String getInterfaceName();", "public interface IWlanElement {\n\n\t/**\n\t * retrieve element id\n\t * \n\t * @return\n\t */\n\tpublic byte getElementId();\n\t\n\t/**\n\t * data \n\t * @return\n\t */\n\tpublic byte[] getData();\n\t\n}", "interface C2578d {\n}", "public interface C24717ak {\n}", "public interface C32115a {\n}", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "public interface IDirectionsForUseView extends IBaseView {\n\n void getCouponsRules(String rules);\n}", "@AssignableSubInterfaces(get={})\n\n@ImplementationClass(get=Brain.class)\n public interface IBrain\n extends ICentralNervousSystem{\n\n}", "public interface C43157d extends C1677a {\n}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "ISChangePropagationDueToInterfaceDependencies createISChangePropagationDueToInterfaceDependencies();", "public interface C0333a {\n }", "public interface y extends d {\n f bsZ();\n\n v bxA();\n\n boolean bxL();\n}", "@SuppressWarnings(\"rawtypes\")\n\tpublic List getInterfaces(){\n\t\treturn targetClass.interfaces;\n\t}", "public void setInterfaces(String[] interfaces)\n {\n this.interfaces = interfaces;\n }", "@Override public boolean isA(InterfaceId in_interfaceId)\n {\n return (in_interfaceId == INTERFACE_ID);\n }", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public interface ILayer {\n}", "public interface InterfaceService\n extends ListenerService<InterfaceEvent, InterfaceListener> {\n\n /**\n * Returns the set of all interfaces in the system.\n *\n * @return set of interfaces\n */\n Set<Interface> getInterfaces();\n\n /**\n * Returns the interface with the given name.\n *\n * @param connectPoint connect point of the interface\n * @param name name of the interface\n * @return interface if it exists, otherwise null\n */\n Interface getInterfaceByName(ConnectPoint connectPoint, String name);\n\n /**\n * Returns the set of interfaces configured on the given port.\n *\n * @param port connect point\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByPort(ConnectPoint port);\n\n /**\n * Returns the set of interfaces with the given IP address.\n *\n * @param ip IP address\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByIp(IpAddress ip);\n\n /**\n * Returns the set of interfaces in the given VLAN.\n *\n * @param vlan VLAN ID of the interfaces\n * @return set of interfaces\n */\n Set<Interface> getInterfacesByVlan(VlanId vlan);\n\n /**\n * Returns an interface that has an address that is in the same subnet as\n * the given IP address.\n *\n * @param ip IP address to find matching subnet interface for\n * @return interface\n */\n Interface getMatchingInterface(IpAddress ip);\n\n /**\n * Returns all interfaces that have an address that is in the same\n * subnet as the given IP address.\n *\n * @param ip IP address to find matching subnet interface for\n * @return a set of interfaces\n */\n Set<Interface> getMatchingInterfaces(IpAddress ip);\n\n /**\n * Returns untagged VLAN configured on given connect point.\n * <p>\n * Only returns the first match if there are multiple untagged VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return untagged VLAN or null if not configured\n */\n default VlanId getUntaggedVlanId(ConnectPoint connectPoint) {\n return null;\n }\n\n /**\n * Returns tagged VLAN configured on given connect point.\n * <p>\n * Returns all matches if there are multiple tagged VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return tagged VLAN or empty set if not configured\n */\n default Set<VlanId> getTaggedVlanId(ConnectPoint connectPoint) {\n return ImmutableSet.of();\n }\n\n /**\n * Returns native VLAN configured on given connect point.\n * <p>\n * Only returns the first match if there are multiple native VLAN configured\n * on the connect point.\n *\n * @param connectPoint connect point\n * @return native VLAN or null if not configured\n */\n default VlanId getNativeVlanId(ConnectPoint connectPoint) {\n return null;\n }\n\n /**\n * Returns true if given connectPoint has an IP address or vlan configured\n * on any of its interfaces.\n *\n * @param connectPoint the port on a device\n * @return true if connectpoint has a configured interface\n */\n default boolean isConfigured(ConnectPoint connectPoint) {\n throw new NotImplementedException(\"isConfigured is not implemented\");\n }\n\n /**\n * Returns true if given vlanId is in use due to configuration on any of the\n * interfaces in the system.\n *\n * @param vlanId the vlan id being queried\n * @return true if vlan is configured on any interface\n */\n default boolean inUse(VlanId vlanId) {\n throw new NotImplementedException(\"isConfigured is not implemented\");\n }\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface IBuildingBoundariesRuleBook extends RuleBook {\n}", "public interface Layout extends Alias {\n}", "public interface IfcFaceOuterBound extends IfcFaceBound {\n}", "interface A {\n\t\tvoid displayA();\n\t}", "public interface Lower extends BinaryExpression {\r\n}", "public interface ad\n{\n\n public abstract void a(cs cs);\n\n public abstract void a(ds ds);\n}", "public interface x {\n boolean a(w wVar);\n}", "public interface Phoneextensions extends GeneratedPhoneextensions {\n \n \n}", "public interface a {\n void a(x xVar);\n }", "public ArrayList<InterfaceType> getAllInterfaces() {\n HashSet<InterfaceType> set = new HashSet<>();\n ArrayList<InterfaceType> list = new ArrayList<>();\n\n for (InterfaceType interfaceType : getInterfaces()) {\n for (InterfaceType type : interfaceType.getAllInterfaces()) {\n if (set.add(type)) list.add(type);\n }\n }\n\n return list;\n }", "public interface BiGULReplace extends BiGULStatement\n{\n}", "@Override\n public List<JavaType> getInterfaces() {\n return ImmutableList.of();\n }", "@AssignableSubInterfaces(get={})\n\n@ImplementationClass(get=DistractorDevices.class)\n public interface IDistractorDevices\n extends IInjuryDevice{\n\n}" ]
[ "0.61226124", "0.59461606", "0.55756986", "0.52858514", "0.51657337", "0.5155865", "0.51377416", "0.5118054", "0.511247", "0.5089783", "0.5079998", "0.50758773", "0.5050496", "0.504863", "0.50350773", "0.5006167", "0.5004626", "0.49986574", "0.49976194", "0.49971056", "0.49937823", "0.49869525", "0.4979353", "0.49763656", "0.494912", "0.49488705", "0.4934798", "0.49298662", "0.4929773", "0.49182343", "0.49142802", "0.4902383", "0.4891303", "0.4886754", "0.48817143", "0.48814023", "0.4871231", "0.48679343", "0.48670176", "0.48664257", "0.486456", "0.4861116", "0.48607096", "0.48594105", "0.48528808", "0.48511043", "0.48493546", "0.48456454", "0.48388937", "0.48300558", "0.48293135", "0.48246312", "0.48221654", "0.48169234", "0.48058107", "0.48014793", "0.47917017", "0.47893617", "0.47838715", "0.47738135", "0.47734657", "0.47631952", "0.4760387", "0.47596917", "0.47565916", "0.47489107", "0.47467384", "0.47386187", "0.47383294", "0.47379425", "0.4735021", "0.47340202", "0.47331914", "0.47243837", "0.4720512", "0.4720258", "0.4718906", "0.47143084", "0.47139624", "0.4713287", "0.47127506", "0.47123423", "0.47107726", "0.47060803", "0.47002414", "0.46991953", "0.46979234", "0.4697678", "0.46913993", "0.46898174", "0.46771953", "0.46750417", "0.4671356", "0.46704835", "0.4668314", "0.46663037", "0.46613285", "0.46605167", "0.46551436", "0.46531555", "0.46490806" ]
0.0
-1
Gets string expression of the given signature for xadl.
private static String getXadlDirection(Direction direction) { String strDirection = null; switch (direction) { case IN: strDirection = "in"; break; case OUT_MULTI: case OUT_SINGLE: strDirection = "out"; break; default: strDirection = "none"; } return strDirection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSignature();", "String getSignature();", "String getSignature();", "String getExpression();", "String getExpression();", "String componentSignature();", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "public String getSignature() {\n\tString sig;\n\n\tsig = dims.substring(0, dim_count);\n\tif (num_comp == 1) {\n\t if (comp[0].compareTo(\"byte\") == 0)\n\t\tsig += \"B\";\n\t else if (comp[0].compareTo(\"char\") == 0)\n\t\tsig += \"C\";\n\t else if (comp[0].compareTo(\"double\") == 0)\n\t\tsig += \"D\";\n\t else if (comp[0].compareTo(\"float\") == 0)\n\t\tsig += \"F\";\n\t else if (comp[0].compareTo(\"int\") == 0)\n\t\tsig += \"I\";\n\t else if (comp[0].compareTo(\"long\") == 0)\n\t\tsig += \"J\";\n\t else if (comp[0].compareTo(\"short\") == 0)\n\t\tsig += \"S\";\n\t else if (comp[0].compareTo(\"boolean\") == 0)\n\t\tsig += \"Z\";\n\t else if (comp[0].compareTo(\"void\") == 0)\n\t\tsig += \"V\";\n\t else {\n\t\t// Component is an object but might have implied context\n\t\tsig += \"L\" + fullName + \";\";\n\t }\n\t}\n\telse\n\t sig += \"L\" + fullName + \";\";\n\treturn(sig);\n }", "java.lang.String getSignatureText();", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "org.apache.calcite.avatica.proto.Common.Signature getSignature();", "com.microsoft.schemas.office.x2006.digsig.STSignatureText xgetSignatureText();", "XExpression getExpression();", "default String getQualifiedSignature() {\n return declaringType().getId() + \".\" + this.getSignature();\n }", "public abstract String getSignature();", "public String toString() {\n return fullExpression;\n }", "Signature getSignature();", "public String getExpressionName() {\n return ExpressionDefines.getNameById( id );\n }", "String getSign();", "String getExpressionDescription(String expression, ParseType parseType, DataType dataType);", "public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}", "java.lang.String getSignatureProviderId();", "String getExpressionDescription(String expression, ParseType parseType);", "String getSourceExpression();", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n if (signatureBuilder_ == null) {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n } else {\n return signatureBuilder_.getMessage();\n }\n }", "public String getName(String signature) {\n StringBuilder sb = new StringBuilder();\n String[] tokens = (signature.split(\"\\\\s\"));\n for (int i = 1; i < tokens.length; i++)\n sb.append(tokens[i]);\n String name = sb.toString();\n name = name.substring(0, name.indexOf(\"(\"));\n return name;\n }", "public String toString() {\n return m_expression;\n }", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "String getUniqueSignature();", "public String toString() {\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tbuf.append(\"[ Expression \");\r\n\t\tif (text() != null) {\r\n\t\t\tbuf.append(\"[\");\r\n\t\t\tbuf.append(text().toString());\r\n\t\t\tbuf.append(\"]\");\r\n\t\t}\r\n\t\tbuf.append(\": \");\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tbuf.append(elements.get(n));\r\n\t\t\tif (n < elements.size() - 1) {\r\n\t\t\t\tbuf.append(\",\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tbuf.append(\" ]\");\r\n\t\treturn new String(buf);\r\n\t}", "public String toString() {\n if (mExpression.size() == 1 && mExpression.get(0).startsWith(\"-\")) {\n return mExpression.get(0);\n }\n\n StringBuilder output = new StringBuilder();\n boolean first = true;\n int size = mExpression.size();\n\n for (int i = 0; i < size; i++) {\n String element = mExpression.get(i);\n\n if (first) {\n first = false;\n } else {\n output.append(\"\");\n }\n\n\n if (isOperand(element) && element.startsWith(\"-\")) {\n output.append(\"(\")\n .append(element)\n .append(\")\");\n } else {\n output.append(element);\n }\n }\n\n return output.toString();\n }", "org.apache.xmlbeans.XmlInt xgetSignatureProviderDetails();", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getSignature() {\n Object ref = signature_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String toString() {\r\n\treturn expressions.get(0).getCdata();\r\n }", "public final String toStringX() {\n return this.decompile(Descriptor.P_STMT, new StringBuilder(1024), Descriptor.DECO_STRX).toString();\n }", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "java.lang.String getSignatureComments();", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public Object getExpression();", "public String getGuardExpression()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(this.hasAttribute(guardExpressionString))\n\t\t\t\treturn this.getAttribute(guardExpressionString).getValue();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "DExpression getExpression();", "StringExpression createStringExpression();", "public String getRuntimeExpr() {\n switch (provider) {\n case MATH:\n return \"Math.\" + runtimeName;\n case JIFFLE:\n // _FN is the instance of JiffleFunctions in AbstractJiffleRuntime\n return \"_FN.\" + runtimeName;\n case PROXY:\n return runtimeName;\n default:\n throw new IllegalStateException(\"Internal compiler error: getRuntimeExpr\");\n }\n }", "@Override\n public String toString() {\n return \"Expression\";\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString string = \"\";\r\n\t\tif (expressionTree.getNumberOfChildren()==0)\r\n\t\t\treturn expressionTree.getValue();\r\n\t\telse{\r\n\t\t\tstring += \"(\";\r\n\t\t\tfor (int i = 0; i < expressionTree.getNumberOfChildren(); i++){\r\n\t\t\t\tTree<String> subtree = expressionTree.getChild(i);\r\n\t\t\t\tif (subtree.getNumberOfChildren()==0)\r\n\t\t\t\t\tstring += subtree.getValue();\r\n\t\t\t\telse\r\n\t\t\t\t\tstring += (new Expression(subtree.toString())).toString()+\" \";\r\n\t\t\t\tif (i < expressionTree.getNumberOfChildren()-1)\r\n\t\t\t\t\tstring += \" \" + expressionTree.getValue()+\" \";\r\n\t\t\t}\r\n\t\t\tstring += \")\";\r\n\t\t}\r\n\t\treturn string;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s[%s]\", name.getValue().getSValue(), exprNode.toString());\n\t}", "com.google.protobuf.ByteString getSignature();", "Expression getExp();", "public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }", "public String getRetType(String signature) {\n String[] tokens = (signature.split(\"\\\\s\"));\n return tokens[0];\n }", "public String toString() {\n String id = element.getAttributeNS(null, \"id\");\n return element.getTagName() + (id.equals(\"\") ? \"\" : \"#\" + id) + \".\"\n + (attributeNamespaceURI == null || attributeNamespaceURI.equals(\"\") ? \"\" : attributeNamespaceURI + \":\")\n + attributeLocalName + \" = \" + expression;\n }", "@Override\n\tpublic String representation() {\n\t\treturn this.sign.name();\n\t}", "public ExecSignature getSignature() {\n\t\t\tif(this.Signature == null) {\n\t\t\t\tthis.Signature = (ExecSignature)this.Datas[Index_ExecSignature];\n\t\t\t\tif(this.isParameterized() || this.isParametered()) {\n\t\t\t\t\tTypeRef TR = this.getTypeRef();\n\t\t\t\t\tType T = TR.getTheType();\n\t\t\t\t\tEngine E = (T == null) ? null : T.getEngine();\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.ChangeBaseTypeSignature(E, TR, TR, this.Signature);\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.flatSignature( E, TR, this.Signature);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn this.Signature;\n\t\t}", "public XPathExpression getUnderlyingExpression() {\n return exp;\n }", "java.lang.String getSignatureProviderUrl();", "com.google.protobuf.ByteString getArtifactSignature();", "com.microsoft.schemas.office.x2006.digsig.STSignatureProviderUrl xgetSignatureProviderUrl();", "final public String QualifiedFunction() throws ParseException {\n Token t1;StringBuffer s=new StringBuffer(); log.trace(\"Entering QualifiedFunction\");\n t1 = jj_consume_token(IDENTIFIER);\n s.append(t1.image);\n label_25:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case 88:\n case 98:\n ;\n break;\n default:\n jj_la1[106] = jj_gen;\n break label_25;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case 88:\n jj_consume_token(88);\n t1 = IdentifierOrReserved();\n s.append(\".\" + t1.image);\n break;\n case 98:\n jj_consume_token(98);\n t1 = IdentifierOrReserved();\n s.append(\"$\" + t1.image);\n break;\n default:\n jj_la1[107] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n log.debug(\"QualifiedFunction: \" + s.toString());\n log.trace(\"Exiting QualifiedFunction\");\n {if (true) return s.toString();}\n throw new Error(\"Missing return statement in function\");\n }", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }", "public String getTravelTrackerSignatureString(){\n return getTravelTrackerSignaturePrefixString() + \"\\\">\" + mContext.getResources().getString(R.string.app_name) + \"</a>\";\n }", "public java.lang.String getSigAlgOID() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgOID():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgOID():java.lang.String\");\n }", "public String toCodeString() {\n return String.format(\"%s = %s;\\n\", this.identifier.toString(), this.exp.toCodeString());\n }", "org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();", "private static String signature(ILoggingEvent evt) {\n IThrowableProxy proxy = evt.getThrowableProxy();\n if (proxy == null) {\n return null;\n }\n \n // Skip LoggingEvents that originate from Gibson itself.\n Marker marker = evt.getMarker();\n if (marker != null && marker.equals(Gibson.MARKER)) {\n return null;\n }\n \n return GibsonUtils.signature(evt);\n }", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "public String getParameterFromX();", "java.lang.String getX();", "int getSignature ();", "public String getSignature()\r\n {\r\n return signature;\r\n }", "public String getExpression() {\n return _expression;\n }", "int getSignatureType();", "public String toString() {\n return \"(\" + getExpLeft().toString() + \" * \" + getExpRight().toString() + \")\";\n }", "private String getSignatureString(Type type)\r\n {\r\n if(type instanceof CompoundType)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n CompoundType cType = (CompoundType)type;\r\n //find key and value types\r\n String keyType = getSignatureString(cType.keyType);\r\n sb.append(\"Ljava/util/HashMap\");\r\n sb.append(\"<\");\r\n sb.append(keyType);\r\n sb.append(getSignatureString(cType.valType));\r\n sb.append(\">;\");\r\n return sb.toString();\r\n }\r\n else if(type instanceof SimpleType)\r\n {\r\n switch(((SimpleType)type).type)\r\n {\r\n case INT:\r\n return \"Ljava/lang/Integer;\";\r\n case BOOLEAN:\r\n return \"Ljava/lang/Boolean;\";\r\n case STRING:\r\n return \"Ljava/lang/String;\";\r\n }\r\n }\r\n return null;\r\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "org.apache.xmlbeans.XmlString xgetAlgIdExtSource();", "com.google.protobuf.ByteString\n getSignatureBytes();", "com.google.protobuf.ByteString\n getSignatureBytes();", "public java.lang.String getSigAlgName() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgName():java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgName():java.lang.String\");\n }", "public String getParameterName(Signature sig, int n);", "public String getX1AddRealStr() {\n this.polyAddSolve();\n return this.x1realadd;\n }", "public String getGraphSignature(){\n \t this.generateGraphSignature();\n \t return this.graphSignature;\n \t}", "public static String extractFunctionName(String sig)\n\t{ \n\t\t// strip everything after the leading ( \n\t\tint at = sig.indexOf('(');\n\t\tif (at > -1)\n\t\t\tsig = sig.substring(0, at);\n\n\t\t// trim the leading [object_name::] since it doesn't seem to add much\n\t\tif (sig != null && (at = sig.indexOf(\"::\")) > -1) //$NON-NLS-1$\n\t\t\tsig = sig.substring(at+2);\n\n\t\treturn sig;\n\t}", "org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();", "@Override\n\tpublic String getValue() {\n\t\tif(exps!=null)\n\t\t\treturn id.getValue() + \"(\" + exps.getValue()+ \")\" + expDash.getValue(); \n\t\t\telse\n\t\t\t\treturn id.getValue() + \"()\" + expDash.getValue(); \n\t}", "public abstract String getSigAlgOID();", "public String getX2RealStr() {\n this.polySolve();\n return this.x2real;\n }", "public String getX1SubRealStr() {\n this.polySubSolve();\n return this.x1realsub;\n }", "public String form(double x)\n {\n String r;\n\n if (precision < 0)\n {\n precision = 6;\n }\n\n int s = 1;\n\n if (x < 0)\n {\n x = -x;\n s = -1;\n }\n\n if (fmt == 'f')\n {\n r = fixed_format(x);\n }\n else if ((fmt == 'e') || (fmt == 'E') || (fmt == 'g') || (fmt == 'G'))\n {\n r = exp_format(x);\n }\n else\n {\n throw new java.lang.IllegalArgumentException();\n }\n\n return pad(sign(s, r));\n }", "public String getX1RealStr() {\n this.polySolve();\n return this.x1real;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String toString() {\n return function.toString();\n }", "public String toString()\n {\n return _xstr.subSequence(_start, _end).toString();\n }" ]
[ "0.5977596", "0.5977596", "0.5977596", "0.5944539", "0.5944539", "0.59186834", "0.59127915", "0.5783235", "0.57342124", "0.56706923", "0.5628871", "0.5598602", "0.548467", "0.54726076", "0.54243356", "0.54083425", "0.54040474", "0.53651446", "0.5346047", "0.522702", "0.5222815", "0.5215642", "0.52142864", "0.51992583", "0.5176614", "0.5169207", "0.5162713", "0.513123", "0.51309156", "0.5061628", "0.50375044", "0.50311816", "0.50240415", "0.50240415", "0.49891147", "0.49858645", "0.49649262", "0.49649262", "0.49649262", "0.49649262", "0.4952168", "0.49473837", "0.49473837", "0.49473837", "0.49284306", "0.49208286", "0.49048978", "0.49000597", "0.4896972", "0.48943907", "0.48610806", "0.48502877", "0.48502317", "0.48476547", "0.48420164", "0.48318517", "0.4831328", "0.48283538", "0.4828011", "0.4814206", "0.48095304", "0.48020673", "0.48014587", "0.47752523", "0.47716743", "0.4770839", "0.4761426", "0.47604164", "0.47519153", "0.47496238", "0.47489673", "0.47418034", "0.47406963", "0.47283894", "0.47264132", "0.47122735", "0.47005165", "0.4695825", "0.4695199", "0.4691665", "0.4691665", "0.46900025", "0.46876732", "0.46876732", "0.4677527", "0.46761948", "0.4675513", "0.4675154", "0.46672463", "0.4666156", "0.46650243", "0.46642727", "0.4664104", "0.46569356", "0.46539408", "0.465294", "0.46479154", "0.46479154", "0.46479154", "0.4643984", "0.4642954" ]
0.0
-1
Constructor con entrada de datos
public Profesional(int aniosExperiencia, String departamento, String titulo, String fechaIngreso) { super(); this.aniosExperiencia = aniosExperiencia; this.departamento = departamento; this.titulo = titulo; this.fechaIngreso = fechaIngreso; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Datos(){\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }", "public EstadosSql() {\r\n }", "public Candidatura (){\n \n }", "public Caso_de_uso () {\n }", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public DesastreData() { //\r\n\t}", "public Pasien() {\r\n }", "public Alojamiento() {\r\n\t}", "public Vehiculo() {\r\n }", "public AntrianPasien() {\r\n\r\n }", "public Data() {\n }", "public Data() {\n }", "public CampoModelo(String valor, String etiqueta, Integer longitud)\n/* 10: */ {\n/* 11:17 */ this.valor = valor;\n/* 12:18 */ this.etiqueta = etiqueta;\n/* 13:19 */ this.longitud = longitud;\n/* 14: */ }", "public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}", "public InitialData(){}", "public Cliente(){\r\n this.nome = \"\";\r\n this.email = \"\";\r\n this.endereco = \"\";\r\n this.id = -1;\r\n }", "public Kullanici() {}", "public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }", "public Data() {\n \n }", "public CCuenta()\n {\n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "protected Asignatura()\r\n\t{}", "public Utilizador(){\r\n this.id = \"\";\r\n this.email = \"\";\r\n this.nome = \"\";\r\n this.password = \"\";\r\n this.morada = \"\";\r\n this.dataNasc = new GregorianCalendar();\r\n }", "public Estado() {\r\n }", "public Data() {}", "private BaseDatos() {\n }", "public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }", "public Empleado(String nombre, String departamento, String posicion, int salario)\n {\n // initialise instance variables\n this.nombre=nombre;\n this.departamento=departamento;\n this.posicion=posicion;\n this.salario=salario;\n \n }", "public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }", "public Empresa() {\n super();\n this.nif = 0;\n this.raio = 0.0;\n this.precoPorKm = 0.0;\n this.precoPorPeso = 0.0;\n this.precoPorHora = 0.0;\n this.available = false;\n this.certificado = false;\n this.historico = new Historico();\n this.pe = null;\n }", "public prueba()\r\n {\r\n }", "public telefono(){\n this.telefono =\"00000000\";\n this.saldo = 0.0;\n this.marca= \"Sin Marca\";\n }", "public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }", "public ConsultaMedica() {\n super();\n }", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "public TradeData() {\r\n\r\n\t}", "public Ciudad()\n {\n\n }", "public CuentaDeposito() {\n super();\n }", "public Estado() {\n }", "BaseDatosMemoria() {\n baseDatos = new HashMap<>();\n secuencias = new HashMap<>();\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Data(int dia, int mes, int ano){\r\n \r\n if (dia> 31) {\r\n System.out.println(\"Dia Invalido\");\r\n System.exit(0);\r\n }\r\n if (mes> 12) {\r\n System.out.println(\"Mes Invalido\");\r\n System.exit(0);\r\n }\r\n if (((mes == 4) || (mes == 6) || (mes == 9) || (mes == 11)) && (dia > 30)) {\r\n System.out.println(\"Mes Invalido\");\r\n System.exit(0);\r\n }\r\n if (mes == 2) {\r\n \r\n if((ano % 400 == 0) || ((ano % 4 == 0) && (ano % 100 != 0))){\r\n\t\t\tif(dia > 29){\r\n System.out.println(\"Ano Invalido\");\r\n System.exit(0);\r\n }\r\n }\r\n else{\r\n if(dia > 28){\r\n System.out.println(\"Dia Invalido\");\r\n System.exit(0);\r\n }\r\n } \r\n }\r\n this.dia = dia;\r\n this.mes = mes;\r\n this.ano = ano;\r\n }", "public FicheConnaissance() {\r\n }", "public Exercicio(){\n \n }", "public Consulte()\n {\n }", "public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }", "public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}", "public Historique()\n\t{\n\t\t\n\t}", "public Empresa()\n\t{\n\t\tclientes = new HashMap<String, Cliente>();\n\t\tplanes = new ArrayList<Plan>();\n\t\t\n\t}", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public Doc_estado() {\n }", "public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }", "public Carrera(){\n }", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "public Empresa(){\r\n\t\tclientes = new ArrayList<Cliente>();\r\n\t\tmedidores = new ArrayList<Medidor>();\r\n\t\tmapaClientes = new HashMap<String,String>();\r\n\t}", "public Corso() {\n\n }", "public DataMahasiswa() {\n initComponents();\n load_table();\n }", "public Entrada(String titulo, String descripcion, String enlace, String autor, String fecha, String categoria) {\n this.titulo = titulo;\n this.descripcion = descripcion;\n this.enlace = enlace;\n this.autor = autor;\n this.fecha = fecha;\n this.categoria = categoria;\n// this.imagen = imagen;\n }", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public Transportista() {\n }", "public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }", "public Venda() {\n }", "public BaseDatos(String url, String user, String pass) {\n \n //asignacion de los atributos de clase\n this.url = url;\n this.user = user;\n this.pass = pass;\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\"); // importamos el driver de la base de datos \n conexion= DriverManager.getConnection(url,user,pass); // creamos la conexion a la base de datos\n }catch(SQLException e){\n System.out.println(\"Error de sql:_ \"+e.getMessage());\n }catch(ClassNotFoundException ex){\n System.out.println(\"No se pudo cargar el driver MySQL:_\"+ex.getMessage());\n }\n \n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public Respuesta() {\n }", "public RequestDatosUsuario(){\r\n\t\tsuper();\r\n\t}", "public Trabajador() {\n\t\tsuper();\n\t}", "public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public Estado() {\r\n //Constructor vacio\r\n }", "public PersonaFisica() {}", "public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }", "public Bodega(@JsonProperty(value=\"id\") int id, @JsonProperty(value=\"estado\") char estado, @JsonProperty(value=\"tipo\") char tipo,@JsonProperty(value=\"ancho\") double ancho\r\n\t\t\t,@JsonProperty(value=\"largo\") double largo,@JsonProperty(value=\"plataformaExterna\") boolean plataformaExterna\r\n\t\t\t,@JsonProperty(value=\"tipoDeCarga\")TipoDeCarga tipoDeCarga,@JsonProperty(value=\"separacion\") double separacion\r\n\t\t\t, @JsonProperty(value=\"cuartosFrios\") List<CuartoFrio> cuartosFrios,@JsonProperty(value=\"entradas\") List<Operacion>entradas, @JsonProperty(value=\"salidas\") List<Operacion>salidas)\r\n\t{\r\n\t\tsuper(id,estado,tipo,entradas,salidas);\r\n\t\t\r\n\t\tthis.ancho=ancho;\r\n\t\tthis.largo=largo;\r\n\t\tthis.plataformaExterna=plataformaExterna;\r\n\t\tthis.tipoDeCarga=tipoDeCarga;\r\n\t\tthis.separacion=separacion;\r\n\t\tthis.setCuartosFrios(cuartosFrios);\r\n\t}", "public Propiedad() {\n bdPropiedad = new DaoPropiedad();\n bdComentario = new DaoComentario();\n }", "public Utilizador(){\n this.email = \"\";\n this.password = \"\";\n this.nome = \"\";\n this.genero = \"\";\n this.morada = \"\";\n this.data_nasc = new GregorianCalendar();\n this.data_reg = new GregorianCalendar();\n this.amigos = new TreeSet<>();\n this.pedido_amizade = new TreeSet<>();\n this.atividades = new HashMap<>();\n this.eventos = new TreeSet<>();\n }", "public Socio() {\r\n\t\tsuper();\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.apellido1 = \"\";\r\n\t\tthis.apellido2 = \"\";\r\n\t\tthis.email = \"\";\r\n\t\tthis.dni = \"\";\r\n\t\tthis.administrador = false;\r\n\t}", "public Valvula(){}", "public Empleado() { }", "public ChoixEntreprise() {\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "public DarAyudaAcceso() {\r\n }", "public Estudiante() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}", "public PersistenciaCMT() {\n\n }", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public CompanyData() {\r\n }", "public Enderecos() {\n \n }", "public Movimiento(int idCuenta, String operacion, double cantidad, Date fecha) {\r\n\t\tsuper();\r\n\t\tthis.idCuenta = idCuenta;\r\n\t\tthis.operacion = operacion;\r\n\t\tthis.cantidad = cantidad;\r\n\t\tthis.fecha = fecha;\r\n\t}", "public Kelola_Data_Dokter() {\n initComponents();\n }", "public Busca(){\n }", "public DataSet() {\r\n \r\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "public ValorVariavel() {\r\n }", "public solicitudControlador() {\n }", "public MorteSubita() {\n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}" ]
[ "0.7580154", "0.7273661", "0.7127585", "0.7064675", "0.7002654", "0.6977029", "0.69725776", "0.6885026", "0.6848392", "0.6845498", "0.6824955", "0.6809862", "0.6758552", "0.6758552", "0.6758392", "0.6755283", "0.6743805", "0.67360306", "0.67281216", "0.6725815", "0.67031205", "0.6695064", "0.6686316", "0.6674739", "0.66659474", "0.66651565", "0.6648636", "0.66323996", "0.65954477", "0.65924317", "0.6583911", "0.65829766", "0.65565115", "0.6549032", "0.65458757", "0.65416616", "0.65373325", "0.6537132", "0.6535829", "0.65327555", "0.6532353", "0.6530216", "0.65288174", "0.65205085", "0.6514406", "0.6513604", "0.6508654", "0.6507108", "0.6488982", "0.6486795", "0.648289", "0.64802015", "0.6473468", "0.64641374", "0.6462545", "0.64611065", "0.64545786", "0.644898", "0.6440953", "0.6436495", "0.6431342", "0.6425946", "0.6424033", "0.641814", "0.6403139", "0.6402176", "0.63827753", "0.6382154", "0.63782454", "0.6372125", "0.63613266", "0.6360158", "0.6349736", "0.63493365", "0.6348749", "0.63463336", "0.6346201", "0.6344289", "0.6335156", "0.6330446", "0.6330336", "0.63240033", "0.63195753", "0.63190675", "0.6313689", "0.63032615", "0.62999994", "0.6298801", "0.6295065", "0.62950504", "0.6294745", "0.6292224", "0.6291519", "0.62909317", "0.6289371", "0.6288331", "0.6287138", "0.6283199", "0.62822986", "0.62818575", "0.62817985" ]
0.0
-1
This is the main method which makes use of Hash function methods.
public static void main(String[] args) { int n = 20011; int m = 20011; double sum = 0; //HashTable ht = new HashTable(m); int[] a = new int[n]; Arrays.fill(a,(-1)); Scanner s = new Scanner(System.in); System.out.println("Enter a function , hashWorst/hash1/hash2/hash3 :"); String hash = s.next(); try { HashTable ht = new HashTable(m); //String hash = "hash3"; BufferedReader inputStream = new BufferedReader(new FileReader("data.tar-1-1")); //PrintWriter outputStream = new PrintWriter(new FileOutputStream("numbered.txt")); int count = 0; String line = inputStream.readLine(); int hashVal; while (line != null){ //outputStream.println(count + " " + line); line = inputStream.readLine(); //System.out.println( ht.hash3(line)); if(hash.equals("hash3")){ hashVal = ht.hash3(line); String z = "" +ht.hash3(line); if(z != null){ //System.out.println(z); a[count] = hashVal; } else //a[count] = z; System.out.println("wwww");} else if(hash.equals("hash1")){ hashVal = ht.hash1(line); String z = "" +ht.hash1(line); if(z != null) { //System.out.println(z); a[count] = hashVal; } else //a[count] = z; System.out.println("wwww");} else if(hash.equals("hash2")){ hashVal = ht.hash2(line); String z = "" +ht.hash2(line); if(z != null) { //System.out.println(z); a[count] = hashVal; } else //a[count] = z; System.out.println("wwww");} /*else if(hash.equals("hash1")){ hashVal = ht.hashWorst(line); a[count] = hashVal;}*/ else if(hash.equals("hashWorst")){ hashVal = 1; a[1] = hashVal; } else System.out.print("Enter The correct function !!"); count++; } int[] Na = new int[n]; Arrays.fill(Na,(-1)); int[] control = new int[n]; Arrays.fill(control,(-1)); System.out.println("\nHash values | Counts | Probability | -P(x)log10(P(x)):\n"); for(int i = 0; i < n;i++){ // HashTable gt = null; int c = 0; if(ht.contains(control,a[i]) == false){ //int c = 0; for(int j =0;j<n;j++){ if(a[j] == a[i] && a[i] != -1)// && j != i) c++; } double p = (double)c/10000; double e; if( p != 0) e = -p*Math.log(p); else e = 0; sum +=e; double x = (double)a[i]; System.out.printf("%11.5f |",x);//ln(a[i]+" | "+c + " | "+p +" | " + e ); System.out.printf("%7.5f |", (double)c); System.out.printf("%12.5f |", (double)p); System.out.printf("%17.5f |", (double)e); System.out.println(); control[i] = a[i]; if(a[i]>0) Na[a[i]] = c; else if(a[i]<0 && Na[(-1)*a[i]] == -1) Na[(-1)*a[i]] = c; } } System.out.println("Enthropy H(X) is " + sum); // System.out.println("\nNumber of #val counts:\n"); //for(int k : Na){ //System.out.println(k); //} inputStream.close(); //outputStream.close(); } catch(FileNotFoundException e) { System.out.println("Problem opening files."); } catch(IOException e) { System.out.println("Error reading from original.txt."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]) {\n TestDriver.runHash(100, 1);\r\n\r\n }", "int getHash();", "public abstract int getHash();", "@Override\n public void computeHash(Hasher hasher) {\n }", "@Test\n public void testHash() {\n // the hash function does sha256, but I guess I don't care about implementation\n // test if two things hash to same value\n logger.trace(\"Equal strings hash to same value\");\n String hash1 = Util.hash(\"foobar\");\n String hash2 = Util.hash(\"foobar\");\n Assert.assertEquals(hash1, hash2);\n\n // test if different things hash to different value\n logger.trace(\"Unequal strings hash to different value\");\n hash1 = Util.hash(\"foobar\");\n hash2 = Util.hash(\"barfoo\");\n Assert.assertNotEquals(hash1, hash2);\n\n // test if hash length > 5 (arbitrary)\n logger.trace(\"Hash is of sufficient length to avoid collisions\");\n hash1 = Util.hash(\"baz\");\n final int length = hash1.length();\n Assert.assertTrue(length > 5);\n }", "String getHash();", "String getHash();", "public abstract int doHash(T t);", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "public static void main(String[] args) {\n countDuplicateCharacters(\"My name is Fernando\");\n\n //2. Reverse an Arraylist.\n reverseArrayList();\n\n //3. Check if a particular key exists in HashMap.\n //4. Convert keys of a map to a list.\n checkKeyAndCreateList();\n\n //5. Copy all elements of a HashSet to an Object array.\n hashToObject();\n\n //6. Get highest and lowest value stored in TreeSet\n maxAndMinValueTreeSet();\n\n //7. Sort ArrayList of Strings alphabetically.\n sortArrayList();\n\n //8. Get Set view of keys from HashTable.\n getViewsHashTable();\n\n }", "public static void runHash(int size, int hash) {\r\n String hashNames[] = { \"\", \"Additive Hashing\",\r\n \"Multiplicative Hashing\", \"Rotate Additive Hashing\",\r\n \"Rotate Multiplicative Hashing\" };\r\n\r\n double percentToFill = .25;\r\n // for each num of elements to fill\r\n for (int j = 0; j < 6; j++) {\r\n double longestChainAve = 0;\r\n double aveChainAve = 0;\r\n double loadFactorAve = 0;\r\n double densityFactorAve = 0;\r\n for (int l = 0; l < 50; l++) {\r\n KeyValueGenerator kv = new KeyValueGenerator();\r\n HashFunction hs = new HashFunction(hash);\r\n StringIntReHashTable ah = new StringIntReHashTable(size, hs);\r\n String st;\r\n int n;\r\n // for each single element to add\r\n for (int i = 0; i < percentToFill * size; i++) {\r\n st = kv.getNextKey();\r\n n = kv.getNextValue();\r\n // System.err.println(st + \" \" + n);\r\n // System.err.println(i);\r\n ah.add(st, n);\r\n }\r\n\r\n longestChainAve += ah.getLongestChain();\r\n aveChainAve += ah.getAverageChain();\r\n loadFactorAve += ah.getLoadFactor();\r\n densityFactorAve += ah.getDensityFactor();\r\n\r\n }\r\n\r\n System.out.println(\"For \" + hashNames[hash]\r\n + \" with rehashing and size \" + size + \" filled up with \"\r\n + percentToFill * size + \" elements\");\r\n System.out\r\n .println(\"Average longest chain :\" + longestChainAve / 50);\r\n System.out.println(\"Average average chain :\" + aveChainAve / 50);\r\n System.out.println(\"Average load factor :\" + loadFactorAve / 50);\r\n System.out.println(\"Average denisity factor :\" + densityFactorAve\r\n / 50 + \"\\n\");\r\n percentToFill += .25;\r\n }\r\n\r\n }", "@Test\r\n public void testHash() {\r\n Settings expResult = Settings.EXPERT;\r\n int kod = 16 * 30 * 99;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.INTERMEDIATE;\r\n kod = 16 * 16 * 40;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.BEGINNER;\r\n kod = 9 * 9 * 10;\r\n assertEquals(expResult.hashCode(), kod);\r\n }", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "public static void main(String[] args)\r\n\t{\n\t\t\r\n\t\tHashtable hashtableObj = new Hashtable();\r\n\t\thashtableObj.put(new CustomKey(5), \"A\");\r\n\t\thashtableObj.put(new CustomKey(2), \"B\");\r\n\t\thashtableObj.put(new CustomKey(6), \"C\");\r\n\t\thashtableObj.put(new CustomKey(15), \"D\");\r\n\t\thashtableObj.put(new CustomKey(23), \"E\");\r\n\t\thashtableObj.put(new CustomKey(16), \"F\");\r\n//\t\thashtableObj.put(\"Bas\", null); //java.lang.NullPointerException\r\n\t\tSystem.out.println(hashtableObj); // hashcode ret value is i =>{6=C, 16=F, 5=A, 15=D, 2=B, 23=E} based on size of Hashtable is 11 and (i %11)\r\n\t\t\t\t\t\t\t\t\t\t// if the return value of hashCode is (i %9) then outputs is => {16=F, 15=D, 6=C, 23=E, 5=A, 2=B}\r\n\t}", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "public int hashcode();", "int hash(String makeHash, int mod);", "public static void main(String[] args) {\n CustomHashCode customHashCode=new CustomHashCode();\r\n Byte byte1=new Byte((byte) 12);\r\n String str=customHashCode.getHashCode(\"adfasdk\");\r\n System.out.println(str);\r\n List<Integer> list=new LinkedList<>();\r\n java.util.Collections.synchronizedList(list);\r\n \r\n \r\n\t}", "public static void main(String[] args) {\n\t\tinitValues();\n\t\tHashTable sizeSeven = new HashTable(7,2); //Create a hash table with a size of 7, relative prime given is 2\n\t\tHashTable sizeFiftyOne = new HashTable(51,5); //Create a hash table with a size of 51, relative prime given is 5\n\t\tHashTable sizeOneFiftyOne = new HashTable(151,25); //Create a hash table with a size of 151, relative prime given is 25\n\t\t\n\t\t//Populate the Hash Tables\n\t\tfor (int i = 0; i < values.length ; i++){\n\t\t\tsizeSeven.add(new HashableInt(values[i]));\n\t\t\tsizeFiftyOne.add(new HashableInt(values[i]));\n\t\t\tsizeOneFiftyOne.add(new HashableInt(values[i]));\n\t\t}\n\t\t\n\t\t//Print the stored values of the Hash Tables\n\t\tSystem.out.println(sizeSeven);\n\t\tSystem.out.println(sizeFiftyOne);\n\t\tSystem.out.println(sizeOneFiftyOne);\n\t\t\n\t\t//Search for 10 random numbers in each hash table, show weather the table contains the number and how many comparisons it took to find it or not\n\t\tSystem.out.println(\"Table Size:\\tSearch Value:\\tTable Contains?:\\t# Comparisons:\\t\");\n\t\tfor (int i = 0; i < values2.length; i++){\n\t\t\tSystem.out.println(sizeSeven.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeSeven.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeSeven.getNumberCompares());\n\t\t\tSystem.out.println(sizeFiftyOne.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeFiftyOne.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeFiftyOne.getNumberCompares());\n\t\t\tSystem.out.println(sizeOneFiftyOne.getSize()+\"\\t\\t\"+values2[i]+\"\\t\\t\"+sizeOneFiftyOne.contains(new HashableInt(values2[i]))+\"\\t\\t\\t\"+sizeOneFiftyOne.getNumberCompares());\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString privateSalt = \"iam-serverdev\";\r\n\t\tByteSource publicSalt = Util.bytes(\"admin\");\r\n\t\tByteSource salt = Util.bytes(crossCombined(Util.bytes(privateSalt).getBytes(), publicSalt.getBytes()));\r\n\r\n\t\tString[] hashAlgorithms = new String[] { \"MD5\", \"SHA-256\", \"SHA-384\", \"SHA-512\" };\r\n\t\tint size = hashAlgorithms.length;\r\n\t\tlong index = crc32(salt.getBytes()) % size & (size - 1);\r\n\t\tString algorithm = hashAlgorithms[(int) index];\r\n\t\tint hashIterations = (int) (Integer.MAX_VALUE % (index + 1)) + 1;\r\n\t\tSystem.out.println(\">>>>>>>>>>\");\r\n\t\tSystem.out.print(new SimpleHash(algorithm, Util.bytes(\"123456\"), salt, hashIterations).toHex());\r\n\t\tSystem.out.print(\"\\n<<<<<<<<<<\");\r\n\t}", "public static void main(String[] args) { //modified from TextScan.Java\r\n\r\n //finds tokens, add h.add/h.display\r\n HashTable newHash1 = new HashTable();\r\n HashTable newHash2 = new HashTable();\r\n HashTable newHash3 = new HashTable();\r\n //^^hash 1-3\r\n args = new String[1];\r\n args[0] = \"keywords.txt\"; //enter file name here\r\n\r\n Scanner readFile = null;\r\n String s;\r\n int count = 0;\r\n\r\n System.out.println();\r\n System.out.println(\"Attempting to read from file: \" + args[0]);\r\n try {\r\n readFile = new Scanner(new File(args[0]));\r\n }\r\n catch (FileNotFoundException e) {\r\n System.out.println(\"File: \" + args[0] + \" not found\");\r\n System.exit(1);\r\n }\r\n\r\n System.out.println(\"Connection to file: \" + args[0] + \" successful\");\r\n System.out.println();\r\n\r\n while (readFile.hasNext()) {\r\n s = readFile.next();\r\n newHash1.add(s, 1);\r\n newHash2.add(s, 2);\r\n newHash3.add(s, 3);\r\n count++;\r\n }\r\n System.out.println(\"HASH FUNCTION 1\");\r\n newHash1.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 2\");\r\n newHash2.display();\r\n System.out.println();\r\n System.out.println(\"HASH FUNCTION 3\");\r\n newHash3.display();\r\n\r\n System.out.println();\r\n System.out.println(count + \" Tokens found\");\r\n System.out.println();\r\n//dabble:\r\n// String key = \"+\";\r\n// char newc = key.toString().charAt(0);\r\n// int a = newc;\r\n// System.out.println(\"KEY: \"+(key.toString().charAt(0)+1)+ \"WACK: \"+ a);\r\n\r\n\r\n\r\n }", "public void testHashcode() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n int h1 = r1.hashCode();\n int h2 = r2.hashCode();\n }", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "public static void main(String[] args) {\n Hash myHashTable = new Hash(7);\n for(int i = 0; i<15; i++){\n int a=(int)(Math.random()*100);\n System.out.print( a+\" \");\n myHashTable.insert(a);\n \n }\n myHashTable.print();\n }", "public static void main(String[] args) {\n\t\t\r\n\t Map<String,Integer> hashmap= new HashMap<String,Integer>();\r\n\t hashmap.put(\"Hiamsnhu\",12);\r\n\t hashmap.put(\"Khaneja\", 15);\r\n\t int size=hashmap.size();\r\n\t int hash=hashmap.hashCode();\r\n\t System.out.println(size);\r\n\r\n\t}", "public int hashCode()\n {\n return hash;\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public static void example1() {\n Group z23 = ZModPrime.getInstance(23);\r\n ProductGroup pg = ProductGroup.getInstance(z23, 10);\r\n Tuple tuple = pg.getRandomElement();\r\n\r\n // Define hash function Z23^10 -> {0,1}^256 (default SHA256)\r\n Function function = HashFunction.getInstance(pg);\r\n\r\n // Apply hash function to tuple (return finite byte array)\r\n Element hashValue = function.apply(tuple);\r\n\r\n System.out.println(function.toString());\r\n System.out.println(tuple.toString());\r\n System.out.println(hashValue.toString());\r\n }", "private static void testConsistentHashing() {\n Map<String, AtomicInteger> CHNodesMap = Maps.newHashMap();\r\n List<String> CHNodes = Lists.newArrayList();\r\n for(int i = 0 ; i < nodesCount; i ++) {\r\n CHNodes.add(\"CHNode\"+i);\r\n CHNodesMap.put(\"CHNode\"+i, new AtomicInteger());\r\n }\r\n ConsistentHashing<String, String> ch = new ConsistentHashing(charsFunnel, charsFunnel, CHNodes);\r\n \r\n // insert keys\r\n long startTime = System.currentTimeMillis();\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n long endTime = System.currentTimeMillis();\r\n long timeElapsed = endTime - startTime;\r\n // System.out.println(\"Execution Time in milliseconds : \" + timeElapsed);\r\n\r\n // print out distriubution + clear\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n entry.getValue().set(0);\r\n }\r\n \r\n // remove node 3\r\n System.out.println(\"\\n=== After Removing Node 3 ===\");\r\n ch.removeNode(\"CHNode3\");\r\n CHNodesMap.remove(\"CHNode3\");\r\n \r\n // re-add\r\n for(int i = 0 ; i < keyCount; i++) {\r\n CHNodesMap.get(ch.getHash(\"\"+i)).incrementAndGet();\r\n }\r\n \r\n // print out distriubution again\r\n for(Entry<String, AtomicInteger> entry : CHNodesMap.entrySet()) {\r\n System.out.println(entry.getKey() + \": \" + entry.getValue().get());\r\n }\r\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "public int hashCode() {\n return hash.hashCode();\n }", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "public int hash(T input);", "protected abstract int hashOfObject(Object key);", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "int _hash(int maximum);", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public void executehash() {\n \t\tString str = conf.getProperty(\"board\");\n \t\tif (str == null)\n \t\t\tUtil.fatalError(\"Please specify a board to hash\");\n \t\tSystem.out.println(gm.stateToHash(gm.stringToState(str.toUpperCase())));\n \t}", "String getHashAlgorithm();", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "@Test\n public void testSomeMethod() throws Exception {\n String test= Hash.getSaltedHash(\"UND123\");\n \n System.out.println(\"------------------------------------\");\n System.out.println(\"Hash code \\n\");\n System.out.println(test +\"\\n\");\n assertEquals(true,Hash.check(\"UND123\", \"P1Rlnnlc9wJZXmieTCsZwFs0ppnQpOXjLPIuju0BaFE=$WuRG4kAGPpkR2XxRMH4Dz7T39iHttGzCrDIMaEMYvhA=\"));\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "int hash(T key) throws IOException, NoSuchAlgorithmException {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(key);\n byte[] data = b.toByteArray();\n \n //hash key using MD5 algorithm\n\t\t//System.out.println(\"Start MD5 Digest\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(data);//this updates the digest using the specified byte array\n \tbyte[] hash = md.digest();\n \tByteBuffer wrapped = ByteBuffer.wrap(hash); // big-endian by default\n \tint hashNum = wrapped.getInt(); \n \treturn hashNum;\n \t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tHashSet<String> colorSet = new HashSet<>();\n\t\t\n\t\tcolorSet.add(\"Red\");\n\t\tcolorSet.add(\"Pink\");\n\t\tcolorSet.add(\"Yellow\");\n\t\tcolorSet.add(\"White\");\n\t\tcolorSet.add(\"Black\");\n\t\t\n\t\tSystem.out.println(\"Original Hash Set: \" + colorSet);\n\t\tSystem.out.println(\"Size of the Hash Set: \" + colorSet.size());\n\t\t\n\n\t}", "public static void main(String[] args) {\r\n\r\n HashApp app = new HashApp();\r\n app.readTable();\r\n }", "public static void main(String[] args) throws Exception {\r\n\t\tSystem.out.println(\"Test ist bestanden, wenn es keine false-Ausgaben gibt:\");\r\n\t\tString masterPassword = \"myMasterPassword\";\r\n\t\tString passwordInput1 = \"myPassword123\";\r\n\r\n\t\tString hashValue = new HashString(masterPassword).hashString(passwordInput1);\r\n\t\tSystem.out.println(hashValue);\r\n\r\n\t\tString passwordInput2 = \"myPassword123\";\r\n\r\n\t\tSystem.out.println(hashValue.equals(new HashString(masterPassword).hashString(passwordInput2)));\r\n\r\n\t\tSystem.out.println(!hashValue.equals(new HashString(masterPassword + \"asdf\").hashString(passwordInput2)));\r\n\t\tSystem.out.println(!hashValue.equals(new HashString(masterPassword).hashString(passwordInput2 + \"asdf\")));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tHashSet<Integer> hs = new HashSet<Integer>();// Generics\n\t\ths.add(123);\n\t\ths.add(124);\n\t\ths.add(124);\n\t\ths.add(null);\n\t\ths.add(125);\n\t\ths.add(129);\n\t\ths.add(145);\n\t\tSystem.out.println(hs);\n\t\t// accessing hash set elements/objects in sequence\n\t\tIterator<Integer> itr = hs.iterator();\n\t\tSystem.out.println(\"HashSet values using Iterator\");\n\t\twhile (itr.hasNext()) {\n\t\t\tSystem.out.println(itr.next());\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tHashSet<String> flowerList = new HashSet<String>(8, 0.60f);\n\t\t// capacity = 8\n\t\t// load factor = 0.6 means if hash set is filled by 60% then the size of hash\n\t\t// set will be doubled\n\t\tflowerList.add(\"Rose\");\n\t\tflowerList.add(\"Jasmine\");\n\t\tflowerList.add(\"Marigold\");\n\n\t\t// adding Student objects in to hash set\n\t\tHashSet<Hash_Student> stdList = new HashSet<Hash_Student>();\n\t\tHash_Student std;\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tSystem.out.println(\"Enter the details of Student\");\n\t\t\tSystem.out.println(\"Enter the Student id\");\n\t\t\tint id = sc.nextInt();\n\t\t\tSystem.out.println(\"Enter the Student Name\");\n\t\t\tString name = sc.next();\n\t\t\tstdList.add(new Hash_Student(id, name));\n\t\t}\n\n\t\t// displaying the student details\n\t\tIterator<Hash_Student> stuItr = stdList.iterator();\n\t\tSystem.out.println(\"Student HashSet values using Iterator\");\n\t\twhile (stuItr.hasNext()) {\n\t\t\tHash_Student st = stuItr.next();\n\t\t\tSystem.out.println(st.getSname() + \" \\t\\t\\t \" + st.getSid());\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t// removeing the student\n\t\tSystem.out.println(\"Enter the Student id to remove\");\n\t\tint id = sc.nextInt();\n\t\twhile (stuItr.hasNext()) {\n\t\t\tHash_Student st = stuItr.next();\n\t\t\tif (st.getSid() == id) {\n\t\t\t\tstuItr.remove();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tHashMap<String,Integer> hash=new HashMap<String,Integer>();\n\t //ConcurrentHashMap<String, Integer> hash=new ConcurrentHashMap<String, Integer>();\n\t\thash.put(\"santosh\", 45);\n\t\thash.put(\"teja\", 44);\n\t\thash.put(\"mani\", 56);\n\t\t\n\t\tfor(Entry<String , Integer> h:hash.entrySet())\n\t\t{\n\t\t\tSystem.out.println(h);\n\t\t}\n\t\t\n\t\tfor(Integer i:hash.values())\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t\n\t\tfor(String str: hash.keySet())\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\n\n\t}", "java.lang.String getHashData();", "public static void main(String[] args) {\n HashMap<String, String> hashColours = new HashMap<>();\n hashColours.put(\"#FF0000\", \"red\");\n hashColours.put(\"#FFD700\",\"gold\");\n hashColours.put(\"#FFFF00\",\"yellow\");\n hashColours.put(\"#008080\",\"teal\");\n\n\n System.out.println(\"The hashmaps looks something like this: \" + hashColours.toString());\n\n\n //Update the above program to count the number of key-value mappings in a map\n System.out.println(\"The number of key-value pairs is: \" + hashColours.size());\n\n\n //Update the above program to get the value of a specified key in a map\n System.out.println(\"My favourite color has the hex value of #008080 and its name is: \" +hashColours.get(\"#008080\"));\n\n\n //Update the above program to remove a specific mappings from a map\n hashColours.remove(\"#FF0000\");\n System.out.println(\"After removing my least favourite colour the hashMap looks something like: \" + hashColours.toString());\n\n\n //Update the above program to view of the keys contained in this map\n Set keys = hashColours.keySet();\n System.out.println(\"The remaining keys are: \" + keys);\n }", "int hashCode();", "int hashCode();", "public static void main(String[] args) {\n Test t = new Test(1, 10);\n System.out.println(t.hashCode());\n Test t2 = new Test(2, 20);\n System.out.println(t2.hashCode());\n }", "public static void main(String[] args) {\n\r\n\t\tHashSet set = new HashSet();\r\n\t\tset.hashSetImplementation();\r\n\t}", "public static void main(String[] args) {\r\n// Scanner sc = new Scanner(System.in);\r\n// HashMap<Integer, String> hash = new HashMap<>();\r\n// int keycount = 0;\r\n// while (true) {\r\n// System.out.println(\"Ss\");\r\n// String s = sc.next();\r\n// if (s.equals(\"-1\")) \r\n// break;\r\n// \r\n// hash.put(keycount, s);\r\n// keycount++;\r\n//\r\n// }\r\n// for(int i = 0 ; i <=keycount ; ++i){\r\n// System.out.println(hash.get(i));\r\n// }\r\n\r\n// String x = \"abcde\";\r\n// System.out.println(x.length());\r\n// String y = x.substring(0, x.length()-1);\r\n// System.out.println(y);\r\n// int x = 100;\r\n// x = x + y;\r\n// System.out.println(\"x \" + x);\r\n// x = adder();\r\n// System.out.println(\"X2 \" + x);\r\n// }\r\n// static int adder() {\r\n// x = main.x + y;\r\n// System.out.println(x);\r\n// return x;\r\n// }\r\n adder ad = new adder();\r\n ad.printP();\r\n\r\n }", "public int hashCode() {\n return 37 * 17;\n }", "public abstract int hashCode();", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tHashtable h1= new Hashtable();\n\t\th1.put(1,\"Tom\");\n\t\th1.put(2,\"Jerry\");\n\t\th1.put(3,\"Harry\");\n\t\t//create Clone/Shallow copy\n\t\tHashtable h2= new Hashtable();\n\t\th2=(Hashtable)h1.clone();\n\t\th1.clear();\n\t\t\n\t\tSystem.out.println(\"The value from h1:\"+ h1);\n\t\tSystem.out.println(\"The value from h2:\"+ h2);\n\t\t\n\t\t//Contains value\n\t\t\n\t\tHashtable h3=new Hashtable();\n\t\th3.put(\"A\", \"Selenium\");\n\t\th3.put(\"B\", \"Sahi\");\n\t\th3.put(\"C\", \"RFT\");\n\t\t\n\t\tif(h3.containsValue(\"Sahi\")){\n\t\t\tSystem.out.println(\"yes calue is present\");\n\t\t}\n\t\t\n\t\t//Print all the key and value of the Hashtable\n\t\tEnumeration e=h3.elements();\n\t\tSystem.out.println(\"Print values from h3\");\n\t\twhile(e.hasMoreElements()){\n\t\t\tSystem.out.print(e.nextElement());\n\t\t}\n\t\t// Print using entryset\n\t\tSet s=h3.entrySet();\n\t\tSystem.out.println(s);\n\t\t\n\t\t//check both hastable are equal or not\n\t\tHashtable h4=new Hashtable();\n\t\th4.put(\"A\", \"Selenium\");\n\t\th4.put(\"B\", \"Sahi\");\n\t\th4.put(\"C\", \"RFT\");\n\t\t\n\t\tif(h3.equals(h4)){\n\t\t\tSystem.out.println(\"Yes h3 and h4 are equal\");\n\t\t}\n\t\t\n\t\t//get key \n\t\tSystem.out.println(h4.get(\"A\"));\n\t\t\n\t\t//Hashcode value of hashtable\n\t\tSystem.out.println(h3.hashCode());\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\n\t\tHashMapImplementation hm = new HashMapImplementation();\n\t\thm.add(5);\n\t\thm.add(6);\n\t\thm.remove(6);\n\t\tSystem.out.print(hm.containsKey(5));\n\t}", "public static void gHash() throws SQLException, ClassNotFoundException, IOException{\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tGephiHash tg = new GephiHash(conn);\n\t\tSystem.out.println(\"Making initial list\");\n\t\ttg.init();\n\t\tSystem.out.println(\"initiliazation finished... Makeing vertex list\");\n\t\ttg.writeVertecies(\"/Users/Brian/Desktop/DB12_11_08_Vertex.csv\");\n\t\tSystem.out.println(\"vertextList finished... creating edge list\");\n\t\ttg.edgeMake(\"/Users/Brian/Desktop/DB12_11_08_Edge.csv\");\n\t\tSystem.out.println(\"edge list finished\");\n\t\ttg.close();\n\t\tconn.close();\n\t\t\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public int hash(String item);", "long hash(Block block, int position);", "public static void main(String[] args) {\n\t\tHashtable<String, Integer> myHashTable = new Hashtable<String, Integer>();\n\n\t\tmyHashTable.put(\"Wheel\", 4); // Store value 4 In key = Legs\n\t\tmyHashTable.put(\"Headlights\", 2); // Store value 2 In key = Eyes\n\t\tmyHashTable.put(\"Steering Wheel\", 1); // Store value 1 In key = Mouth\n\n\t\t// Accessing hash table values using keys.\n\t\tSystem.out.println(\"A car has \" + myHashTable.get(\"Wheel\") + \" wheels.\");\n\t\tSystem.out.println(\"A car has \" + myHashTable.get(\"Headlights\") +\" headlights.\");\n\t\tSystem.out.println(\"A car has \" + myHashTable.get(\"Steering Wheel\") + \" steering wheel.\");\n\t}", "static int hash(long sum) {\n return (int) (sum) >>> 7;\n }", "int\thashCode();", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\thashPass();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n HashTableChained hashtable = new HashTableChained();\n int i = 1;\n while (i <= 50) {\n int rando = (int) Math.random() * 1000;\n hashtable.insert(new Integer(rando), \"TestVal\");\n i++;\n }\n hashtable.insert(\"Robby\", \"This is the one.\");\n while (i <= 1000) {\n int rando = (int) Math.random() * 1000;\n hashtable.insert(new Integer(rando), \"TestVal\");\n i++;\n }\n System.out.println(hashtable.size());\n System.out.println(hashtable.find(\"Robby\").value());\n }", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"A1\", \"Distributed Software Systems\");\n\t\thm.put(\"A2\", \"Distributed Software Systems\");\n\t\t\n\t\tHashMapImplementation.hm.put(\"A1\", \"Distributed Software Systems\");\n\t\thm.put(\"A3\", \"Distributed Software Systems\");\n\t\t\n\t\tSystem.out.println(hm.hashCode());\n\t\tSystem.out.println(hm.entrySet());\n\n\t\t\n// Different ways of Iterating through a hashmap\t\t\n\t\tIterator it = hm.entrySet().iterator();\t\t// EntrySet \n\t\t\n\t\n\t\tfor(;it.hasNext();){\n\t\t\tMap.Entry<String, String> current = (Map.Entry<String, String>)it.next();\n\t\t\tSystem.out.println(current);\n\t\t}\n\t\t\n\t\tfor(Map.Entry<String, String> entry : hm.entrySet()){\n\t\t\tString key = entry.getKey();\n\t\t\tSystem.out.println(key);\n\t\t\tString value = entry.getValue();\n\t\t\tSystem.out.println(value);\n\t\t}\n\t\t\n\t\tIterator it1 = hm.keySet().iterator(); \t// Key set\n\t\t\n\t\tfor(;it1.hasNext();){\n\t\t\tString current = (String)it1.next();\n\t\t\tSystem.out.println(current);\n\t\t}\n\t\t\n\t}", "public void makeHash(){\n\t\tString tmp = \"\";\n\t\t\n\t\tfor(int i=0;i<_rows;i++){\n\t\t\tfor(int j=0;j<_cols;j++){\n\t\t\t\ttmp+=String.valueOf(_puzzle[i][j])+\"#\";\n\t\t\t}\n\t\t}\n\t\t_hashCode = tmp;\n\t}", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tHashtable<Temp, String> h = new Hashtable<>();\r\n\t\th.put(new Temp(1), \"A\");\r\n\t\th.put(new Temp(25), \"B\");\r\n\t\th.put(new Temp(30), \"C\");\r\n\t\th.put(new Temp(10), \"D\");\r\n\t\tSystem.out.println(h);\r\n\t\t//{30=C, 10=D, 25=B, 1=A}---when hashcode returns i\r\n\t\t//{25=B, 30=C, 1=A, 10=D}---when hashcode returns i%9\r\n\t\t\r\n\t\t//constructor with initial capacity\r\n\t\t//here if hashcode exceeds 4 then, modules of 5 is done. \r\n\t\tHashtable<Temp1, String> h1 = new Hashtable<>(5);\r\n\t\th1.put(new Temp1(1), \"A\");\r\n\t\th1.put(new Temp1(25), \"B\");\r\n\t\th1.put(new Temp1(30), \"C\");\r\n\t\th1.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h1);\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using initial capacity and fill ratio.\r\n\t\tHashtable<Temp1, String> h2 = new Hashtable<>(5,0.4f);\r\n\t\th2.put(new Temp1(1), \"A\");\r\n\t\th2.put(new Temp1(25), \"B\");\r\n\t\th2.put(new Temp1(30), \"C\");\r\n\t\th2.put(new Temp1(10), \"D\");\r\n\t\tSystem.out.println(h2);\r\n\t\t//{30=C, 1=A, 10=D, 25=B}\r\n\t\t//{25=B, 10=D, 1=A, 30=C}\r\n\t\t\r\n\t\t//constructor using Map\r\n\t\tHashtable<Temp1, String> h3 = new Hashtable<>(h2);\r\n\t\tSystem.out.println(h3);\r\n\t}", "public static void main(String[] args)\n\t{\n\t\tSystem.out.println(\"Hash Table Testing\");\n\t\t\n\t\tMyHashTable table = new MyHashTable();\n\t\t\n\t\ttable.IncCount(\"hello\");\n\t\ttable.IncCount(\"hello\");\n\t\t\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\ttable.IncCount(\"world\");\n\t\t\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\ttable.IncCount(\"Happy Thanksgiving!\");\n\t\t\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\ttable.IncCount(\"Food\");\n\t\t\n\t\ttable.IncCount(\"cool\");\n\t\t\n\t\ttable.IncCount(\"Assignment due\");\n\t\ttable.IncCount(\"Assignment due\");\n\t\t\n\t\ttable.IncCount(\"Wednesday\");\n\t\t\n\t\ttable.IncCount(\"night\");\n\t\ttable.IncCount(\"night\");\n\t\t\n\t\ttable.IncCount(\"at\");\n\t\t\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\ttable.IncCount(\"TWELVE!!!\");\n\t\t\n\t\tStringCount[] counts = table.GetCounts();\n\t\tString output = \"\";\n\t\t\n\t\tfor(int i = 0; i < counts.length; i++)\n\t\t{\n\t\t\tif(counts[i] != null)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"[\" + counts[i].str +\",\" + counts[i].cnt + \"], \");\n\t\t\t\toutput += \"[\" + counts[i].str +\",\" + counts[i].cnt + \"], \";\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.print(\"NULL!!!!! \" + i);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tif(output.compareTo(\"[Assignment due,2], [Food,7], [Happy Thanksgiving!,3], [TWELVE!!!,5], [Wednesday,1], [at,1], [cool,1], [hello,2], [night,2], [world,4], \") == 0)\n\t\t\tSystem.out.println(\"Success! Output is correct.\");\n\t\telse\n\t\t\tSystem.out.println(\"Failure! The output wasn't correct. Output was: \\\"\" + output +\"\\\"\");\n\t}", "public static void main(String[] args) {\n HashMap<String,String> hmp = new HashMapPreparator().hashMapPreparator();\n System.out.println(new DuplicateValueFinder().hashMapDuplicateValueFinder(hmp));\n }", "@Test\n public void testHashCode() {\n System.out.println(\"Animal.hashCode\");\n assertEquals(471, animal1.hashCode());\n assertEquals(384, animal2.hashCode());\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "public static void main(String[] args) {\n String[] phone_book = {\"119\", \"97674223\", \"1195524421\"};\n TelNumberList_HASH_level2 tn = new TelNumberList_HASH_level2();\n System.out.println(tn.solution(phone_book));\n }", "public void testHashFunction(){\r\n Token otherToken;\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"abc\", 5);\r\n otherToken = new Token(TokenType.ID, \"abc\", 6);\r\n //assertTrue(token.hashCode() == 28456490);\r\n assertTrue(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.STRING, \"abc\", 5);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n\r\n token = new Token(TokenType.Q_MARK, \"?\", 10);\r\n otherToken = new Token(TokenType.Q_MARK, \"?\", 10);\r\n assertTrue(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.STRING, \"?\", 10);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.PERIOD, \".\", 10);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n \r\n }catch(ParserException e){\r\n };\r\n }", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "@Override\n int hashCode();", "static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "public String calculateHash () {\n StringBuilder hashInput = new StringBuilder(previousHash)\n .append(timeStamp)\n .append(magicNumber)\n .append(timeSpentMining);\n for (Transfer transfer : this.transfers) {\n String transferDesc = transfer.getDescription();\n hashInput.append(transferDesc);\n }\n return CryptoUtil.applySha256(hashInput.toString());\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "public static void main(String[] args) {\n SecureRandom random = new SecureRandom();\n random.nextBytes(hash);\n data = new byte[hash.length + 1];\n System.arraycopy(hash, 0, data, 0, hash.length);\n long c = 0;\n while (true) {\n recalculateData();\n byte[] dataHash = crc32AsByteArray(data);\n if (c % 10000000 == 0) {\n System.out.println(\"Calculated \" + c + \" hashes\");\n System.out.println(\"Data: \" + byteArrayToHex(data));\n System.out.println(\"Original hash: \" + byteArrayToHex(hash) + \" new hash: \" + byteArrayToHex(dataHash));\n\n }\n if (Arrays.equals(hash, dataHash)) {\n System.out.println(\"Found a match!\");\n System.out.println(\"Data: \" + byteArrayToHex(data));\n System.out.println(\"Original hash: \" + byteArrayToHex(hash) + \" new hash: \" + byteArrayToHex(dataHash));\n break;\n }\n c++;\n }\n }", "private int getHash(Object key) {\n return key.hashCode();\n }", "private int hashOf(String key) {\n return key.length();\n }", "public static void main(String[] args) {\n Map<Integer, String> ht = new Hashtable<>();\n \n // hash = 7, so, (7 & 0x7FFFFFFF) % 11 => 7 % 11 => 7. So, it stores the element in 7th index bucket location\n ht.put(7, \"aa\"); \n ht.put(11, \"ba\");\n ht.put(1, \"ad\");\n ht.put(15, \"sa\");\n ht.put(20, \"rea\");\n \n // hash = 18, so, (18 & 0x7FFFFFFF) % 11 => 18 % 11 => 7. So, it stores the element in 7th index bucket location.\n // But we already have one element then this new element will have next pointer variable. It will point to the element whcih already exists.\n // Then this new element will be placed in the 7th index.\n ht.put(18, \"ewa\");\n\n // When we iterate the elements it will iterate from top to bottom and right to left only.\n // Same index we have a possibility of multiple elements. So, it will read it from right to left.\n System.out.println(ht);\n }", "@Test\n public void testHashCode_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n int result = fixture.hashCode();\n\n assertEquals(1305, result);\n }", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "@Test\n\tpublic void testToHashCode() throws HashUtilException {\n\t\tshort sh = 121;\n\t\tbyte b = 14;\n\t\tObject obj1 = new String[] { \"Ra\", \"sh\" };\n\t\tObject obj2 = new int[] { 23, 46, 74 };\n\t\tObject obj3 = new boolean[] { true, false };\n\t\tObject obj4 = new double[] { 12.3, 45.7 };\n\t\tObject obj5 = new byte[] { 51, 60 };\n\t\tObject obj6 = new short[] { 121, 127 };\n\t\tObject obj7 = new long[] { 23, 46, 74 };\n\t\tObject obj8 = new float[] { 20f, 23.567f };\n\t\tObject obj9 = new char[] { 'r', 'e' };\n\n\t\tassertEquals(\n\t\t\t\t((((((((((23l * 45) + 34) * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 'm') * 45 + 1) * 45)\n\t\t\t\t\t\t+ Double.doubleToLongBits(12.3),\n\t\t\t\tnew HashUtility(23, 45).append(34).append(\"Ram\").append(false).append(12.3).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((23l * 45) + 123456789000l) * 45) + Float.floatToIntBits(2.453f)) * 45) + sh) * 45) + b) * 45)\n\t\t\t\t\t\t+ (long) 'r',\n\t\t\t\tnew HashUtility(23, 45).append(123456789000l).append(2.453f).append(sh).append(b).append('r')\n\t\t\t\t\t\t.toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t((((((((((((((((((((23l * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 's') * 45) + (long) 'h')\n\t\t\t\t\t\t* 45 + 23) * 45) + 46) * 45) + 74) * 45) + 0) * 45) + 1) * 45) + Double.doubleToLongBits(12.3))\n\t\t\t\t\t\t* 45) + Double.doubleToLongBits(45.7),\n\t\t\t\tnew HashUtility(23, 45).append(new String[] { \"Ra\", \"sh\" }).append(new int[] { 23, 46, 74 })\n\t\t\t\t\t\t.append(new boolean[] { true, false }).append(new double[] { 12.3, 45.7 }).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + (long) 'R') * 45) + (long) 'a') * 45) + (long) 's') * 45) + (long) 'h')\n\t\t\t\t\t\t* 45) + 23) * 45) + 46) * 45) + 74) * 45) + 0) * 45) + 1) * 45) + Double.doubleToLongBits(12.3))\n\t\t\t\t\t\t* 45) + Double.doubleToLongBits(45.7),\n\t\t\t\tnew HashUtility(23, 45).append(obj1).append(obj2).append(obj3).append(obj4).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + 51) * 45) + 60) * 45) + 121) * 45) + 127) * 45) + 23) * 45) + 46) * 45)\n\t\t\t\t\t\t+ 74) * 45) + Float.floatToIntBits(20f)) * 45) + Float.floatToIntBits(23.567f)) * 45)\n\t\t\t\t\t\t+ (long) 'r') * 45) + (long) 'e',\n\t\t\t\tnew HashUtility(23, 45).append(new byte[] { 51, 60 }).append(new short[] { 121, 127 })\n\t\t\t\t\t\t.append(new long[] { 23, 46, 74 }).append(new float[] { 20f, 23.567f })\n\t\t\t\t\t\t.append(new char[] { 'r', 'e' }).toHashCode());\n\n\t\tassertEquals(\n\t\t\t\t(((((((((((((((((((((23l * 45) + 51) * 45) + 60) * 45) + 121) * 45) + 127) * 45) + 23) * 45) + 46) * 45)\n\t\t\t\t\t\t+ 74) * 45) + Float.floatToIntBits(20f)) * 45) + (long) Float.floatToIntBits(23.567f)) * 45)\n\t\t\t\t\t\t+ (long) 'r') * 45) + (long) 'e',\n\t\t\t\tnew HashUtility(23, 45).append(obj5).append(obj6).append(obj7).append(obj8).append(obj9).toHashCode());\n\t}", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }" ]
[ "0.7555649", "0.7379242", "0.71165127", "0.70282227", "0.70248026", "0.69962", "0.69962", "0.6933463", "0.69308835", "0.6917735", "0.6884309", "0.68462354", "0.6815195", "0.67743886", "0.6731807", "0.66877437", "0.6681848", "0.6632476", "0.6630024", "0.6614601", "0.6606207", "0.6554016", "0.65390384", "0.6537982", "0.65364844", "0.6533406", "0.6504235", "0.6502305", "0.6495931", "0.6491294", "0.6486354", "0.64842355", "0.648146", "0.64791334", "0.6457878", "0.64328396", "0.6431942", "0.64125496", "0.6369252", "0.6366561", "0.63602525", "0.63511956", "0.63511086", "0.63350993", "0.6333966", "0.6332478", "0.6327314", "0.6317186", "0.63065624", "0.62831455", "0.62824905", "0.6270624", "0.62679404", "0.62679404", "0.6245805", "0.6241355", "0.62405807", "0.62347186", "0.62336504", "0.62318754", "0.62217796", "0.62202394", "0.6218258", "0.6213574", "0.62019867", "0.6197626", "0.61959946", "0.6195916", "0.61851823", "0.6173036", "0.61665136", "0.61539763", "0.6153391", "0.61513317", "0.6150346", "0.614723", "0.6143319", "0.6141921", "0.61364555", "0.612136", "0.609587", "0.6095438", "0.6094728", "0.6092154", "0.6090408", "0.6089678", "0.60837185", "0.6083203", "0.60813403", "0.60717005", "0.6069325", "0.60665786", "0.606629", "0.6066136", "0.6064391", "0.60635066", "0.6061547", "0.60614663", "0.60605586", "0.6059025" ]
0.62942016
49
This contructor sets the default value of the size to the size entered .
public HashTable(int tableSize){ this.tableSize = tableSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initialize(int size) {\n setMaxSize(size);\n }", "private void set_size(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(int size){\n this.size = size;\n }", "public void setSize(int size) {\r\n this.size = size;\r\n }", "public void setSize(int _size)\r\n {\r\n size = _size;\r\n }", "public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}", "public void setSize(int size) {\r\n _size = size;\r\n }", "private void setSize(int s){\n\t\tsize = s;\n\t}", "public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(int size) {\n this.size = size;\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public void setSize(int size) {\n this.size = size;\n }", "public void setSize(Integer size) {\n this.size = size;\n }", "public void setSize(int size) {\n\t\t _size = size;\n\t}", "public void setSize(int size);", "public void set_size(int s);", "public void setSize(double size) \n {\n this.size = size;\n }", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int size) {\n\t\tthis.size = size;\n\t}", "public void setSize(int value) {\n\t\tthis.size = value;\n\t}", "public void setSize(long size) {\r\n\t\tthis.size = size;\r\n\t}", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "public void setSize(long value) {\n this.size = value;\n }", "public void setSize(String size) {\n this.size = size;\n }", "public void setLocalSize(int size);", "private void basicSize(){\n setSize(375,400);\n }", "public Size(int w, int h) {\n width = w;\n height = h;\n }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(590, 459);\n\t}", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(320, 204);\r\n\t}", "public void initialize(int size);", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(450, 300);\r\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(645, 393);\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(757, 552);\n\t}", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 300);\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(600, 500);\n\t}", "private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }", "@Override\n protected Point getInitialSize() {\n return new Point(930, 614);\n }", "@Override\n protected Point getInitialSize() {\n return new Point(450, 504);\n }", "public void autoSize() {\n\t\t//no op\n\t}", "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}", "public AgileSet(double initialCurrentSize) {\n currentSize = initialCurrentSize;\n }", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "public Disk(int size){\n this.size = size;\n }", "public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }", "public Builder setSize(int value) {\n\n size_ = value;\n onChanged();\n return this;\n }", "public void setSize(String size) {\r\n this.size = size == null ? null : size.trim();\r\n }", "public void setSize(@Nullable String size) {\n this.size = size;\n }", "@Override\n\tprotected Point getInitialSize()\n\t{\n\t\treturn new Point(373, 481);\n\t}", "private void setMemorySize() { }", "@Element \n public void setSize(String size) {\n this.size = size;\n }", "protected Point getInitialSize() {\n\t\t return new Point(700, 500);\n\t }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(801, 664);\n\t}", "public int defaultSize(String mnemo) {\n\t\treturn 4;\n\t}", "public MazePanel(int size) \r\n\t{\r\n\t\tthis.size = size;\r\n\t\tthis.setPreferredSize( getSize() );\r\n\t\tReset ( );\r\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(800, 600);\n\t}", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(450, 270);\n\t}", "private void initSize(Context context) {\n }", "public ResizingArray(int defaultSize) {\r\n super();\r\n\r\n this.aObjects = new Object[defaultSize];\r\n this.aFreeElements = new int[defaultSize];\r\n this.iMaxSize = defaultSize;\r\n }", "@Override\r\n\tprotected Point getInitialSize() {\r\n\t\treturn new Point(706, 307);\r\n\t}", "public VOIVector(int initialsize) {\r\n super(initialsize);\r\n }", "public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }", "@Override\n\tprotected Point getInitialSize() {\n\t\treturn new Point(640, 600);\n\t}", "@Override\n public void settings(){\n size(500, 500);\n }", "public void setSize(int newSize);", "public void setSize(int newSize);", "public void setSize(int size) {\n\t members = size;\n\t}", "@Override\n public int getSize() {\n return 64;\n }", "public void setSize(Dimension size) {\r\n this.size = size;\r\n }", "@Override\n public int getSize() { return size; }", "public void setStructureSize(int size) {\n\t\tmStructureSize = size;\n\t\tvalidateSize();\n\t\trepaint();\n\t\t}", "public AbstractEntry(int size)\n {\n this(new JTextField(size), false, false);\n }", "public void setSize();", "void setSize(Dimension size);", "public NavStack(int size) {\n super();\n maxSize = size;\n }", "public Queue(int maxsize){\n this.maxsize=maxsize; // sets the limit\n System.out.println(\"The maxsize was set to \"+maxsize);\n }", "public static void setSizeOfQueue(Label sizeOfQueueValue) {\n \tsizeOfQueueValue.setText(String.valueOf(Capture.getInspectionQueue().size()));\n }", "public void setSizeV(long s){\n\t\tthis.sizeV = s;\n\t}", "@Test\n public final void testSetSize() {\n int expRes = 5;\n int falseEnter = -4;\n ship.setSize(falseEnter);\n int result = this.ship.getSize();\n assertEquals(expRes, result);\n falseEnter = -1;\n ship.setSize(falseEnter);\n result = this.ship.getSize();\n assertEquals(expRes, result);\n }", "public Board(int size) {\n initialize(size, null);\n }", "public Table(int size) {\n\t\tsuper(size);\n\t}", "@Override\n public int getSize() {\n\treturn 0;\n }", "public void setMaxSize(int c) {\n maxSize = c;\n }", "public SpaceStub(int size) {\n super(size);\n this.size = size;\n }", "public void setSize(int size) {\n\t\tdist = new double[size];\n\t\tprev = new Node[size];\n\t\tready = new boolean[size];\n\t}", "protected abstract void setSize();", "void setSize(float w, float h) {\n _w = w;\n _h = h;\n }", "public Size(int sizeImpact, int maximalSize) {\n this.sizeImpact = sizeImpact;\n this.maximalSize = maximalSize;\n }", "public void setMinSize(Point size) {\n if (size == null) {\n setMinSize(0, 0);\n } else {\n setMinSize(size.x, size.y);\n }\n }", "public void setSize(int size){\n\t\tthis.shipSize = size;\n\t}", "@Override\n public Position setSize(double w, double h) {\n return new Position(w, h);\n }", "public int getSize(){return this.size;}", "public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }", "public void setValue(int size) {\n s.setValue(-size);\n }", "@Override\n\tpublic void setElementSize(int elementSize) {\n\t\t\n\t}" ]
[ "0.7493958", "0.7478987", "0.7257732", "0.71066004", "0.7077387", "0.7067914", "0.70350206", "0.70256007", "0.70178926", "0.6982667", "0.6982667", "0.69689655", "0.69689655", "0.694543", "0.6936794", "0.69317555", "0.6908228", "0.6904593", "0.6893125", "0.68756557", "0.68756557", "0.68756557", "0.68756557", "0.6866386", "0.6841178", "0.6803471", "0.67348367", "0.6665477", "0.66625607", "0.6658109", "0.66518223", "0.6644919", "0.6624316", "0.65952235", "0.6579106", "0.655843", "0.65520346", "0.6546269", "0.6545947", "0.6545947", "0.6526865", "0.6524862", "0.6524338", "0.65155", "0.64880383", "0.6487854", "0.64833707", "0.6479744", "0.64726436", "0.6466144", "0.6461911", "0.6461911", "0.6455015", "0.64368695", "0.643143", "0.63840365", "0.6380371", "0.63736326", "0.6365893", "0.6357177", "0.6356706", "0.635527", "0.63529605", "0.6347117", "0.63380355", "0.63311636", "0.6314175", "0.63104784", "0.6309701", "0.62996393", "0.62941515", "0.62941515", "0.62939477", "0.62866193", "0.62745947", "0.6260825", "0.6256838", "0.6246863", "0.6233674", "0.62189955", "0.6217249", "0.6211999", "0.6210229", "0.6199", "0.6197594", "0.6188606", "0.61866915", "0.6179084", "0.6167036", "0.6156821", "0.6155413", "0.6147927", "0.61430335", "0.6142066", "0.61325455", "0.6130206", "0.61164874", "0.6116309", "0.6115443", "0.61130786", "0.61054534" ]
0.0
-1
This method checks if a value is contained in an array , if found true, if not found false.
public static boolean contains(int[] arr, int item) { for (int n : arr) { if (item == n) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "static boolean contains(int[] a, int value){\n int i;\n\n for(i = 0; i < a.length; i++){\n if(a[i] == value) {\n return true;\n }\n }\n\n return false;\n }", "public boolean contains(T value) {\n for (T tmp : arr) {\n if (tmp.equals(value)) {\n return true;\n }\n }\n return false;\n }", "private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean doesArrayContainThisValue(int value) {\n for (int i = 0; i < arraySize; i++) {\n if (value == theArray[i]) {\n return true;\n }\n }\n return false;\n }", "public static final boolean arrayContains(Object[] array, Object value)\n {\n for (int i = 0, max = array.length; i < max; i++)\n {\n if (value.equals(array[i]))\n return true;\n }\n\n return false;\n }", "private boolean valueIsInArray(String token, String[] array, boolean ignorecase) {\n boolean retval = false;\n\n if (array != null) {\n if (token != null) {\n for (int x = 0; x < array.length; x++) {\n if (ignorecase) {\n if (token.equalsIgnoreCase(array[x])) {\n retval = true;\n break;\n }\n } else {\n if (token.equals(array[x])) {\n retval = true;\n break;\n }\n }\n }\n } else {\n for (int x = 0; x < array.length; x++) {\n if (array[x] == null) {\n retval = true;\n break;\n }\n }\n }\n } else {\n if (token == null) {\n retval = true;\n } else {\n retval = false;\n }\n }\n return retval;\n }", "public boolean doesContain(T t) {\n if (Arrays.asList(a).contains(t)) {\n return true;\n } else {\n return false;\n }\n }", "public boolean contains(final Object value) {\n\t\tboolean found = false;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (elements[i].equals(value)) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn found;\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "boolean contains();", "public static boolean arrayContains(int e, int[] array){\n\t\tif(array == null || array.length == 0)\n\t\t\treturn false;\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] == e)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasContains();", "@Override\n public boolean contains(T item) {\n //iterate through the array and look for the item\n for(int i = 0; i < numItems; i++){\n //if it is found, return true\n if(item.equals(arr[i]))\n return true;\n }\n return false;\n }", "boolean hasArray();", "@Override\n public boolean contains(T object) {\n for (int i = 0; i < this.size; i++) {\n if (array[i].equals(object)) {\n return true;\n }\n }\n return false;\n }", "private boolean contains(int[] piket,int vlera){\n for(int i=0; i<piket.length; i++){\r\n if(piket[i]==vlera) return true; //eshte metode booleane spese kthen true ose false ne menyre qe te plotesohet if me lart\r\n }\r\n return false;\r\n }", "public boolean containsValue(V value) {\r\n\t\tfor (LinkedList<KVPair> i : hashMapArray) {\r\n\t\t\tif (i!= null) {\r\n\t\t\t\tfor (int k = 0; k<i.size(); k++) {\r\n\t\t\t\t\tif (i.get(k).getValue() == value) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean contains(String[] a, String b){\n\t\tfor (String element:a){\n\t\t\tif (element.equals(b)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean arrContains(int i, int j) {\n\t\tBoolean bool = false;\n\t\tfor (int q = 0; q < graphics.Playboard.rows; q++)\n\t\t\tfor (int y = 0; y < graphics.Playboard.cols; y++) {\n\t\t\t\tif (Logic.arr[q][y] == i || Logic.arr[q][y] == j) {\n\t\t\t\t\tSystem.out.println(\"Array contains \" + i + \" or \" + j);\n\t\t\t\t\tbool = false;\n\t\t\t\t\treturn bool;\n\t\t\t\t} else\n\t\t\t\t\tbool = true;;\n\t\t\t}\n\t\treturn bool;\n\t}", "public boolean contains(Object value) {\n\t\treturn false;\n\t}", "public boolean contains(E value);", "@Override\n public boolean contains(T o) {\n if(o == null) return false;\n int hcode = hash(o);\n hcode %= array.length;\n\n if(array[hcode].empty()) return false;\n array[hcode].reset();\n while (!array[hcode].endpos()) {\n if (eqals(o, array[hcode].elem())) {\n return true;\n } else array[hcode].advance();\n }\n return false;\n }", "public boolean contains( AnyType x )\n {\n int currentPos = findPos( x );\n if (array[currentPos] != null && array[currentPos].key.equals(x))\n \treturn true;\t\t//TODO : Test this method\n else\n \treturn false;\n \n }", "public static Boolean findInArray(Object[][] array, Object[] element)\n {\n for (int i = 0; i < array.length; i++)\n {\n if (Arrays.equals(array[i], element))\n {\n return true;\n }\n\n }\n return false;\n\n }", "public boolean contains(U value) {\n\t\t\treturn indexOf(value) != -1;\n\t\t}", "public boolean contains(A val) {\n return false; \n }", "public boolean contains(int element) {\n for(Integer i:data) {\n if(i!=null && i==element) {\n return true;\n }\n }\n return false;\n /*for(int i=0;i<data.length;i++) {\n if(data[i]==element) {\n return true;\n }\n }\n return false;*/\n }", "public boolean containsValue(int k) {\r\n\t\tint[] v = getIntArray();\r\n\t\tfor (int i = 0; i < v.length; i++) {\r\n\t\t\tif (v[i] == k) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean contains(ArrayList<int[]> list, int[] element) {\n for (int[] temp : list) {\n if (temp[0] == element[0] && temp[1] == element[1]) {\n return true;\n }\n }\n return false;\n }", "public boolean containsValue(V value)\r\n\t{\r\n\t\tList<V> values = values();\r\n\t\t\r\n\t\tfor(V element : values)\r\n\t\t{\r\n\t\t\tif(element.equals(value))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "private boolean in_array(int[] rand_array, int rand_index) {\n\t\tfor( int index : rand_array ){\n\t\t\tif( index == rand_index )\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static boolean search(int[] array, int numberToSearchFor) {\n\n// Enhanced Loop. Iterates through array and each time assigns\n// the current element to 'value'\n for(int value : array){\n if(value == numberToSearchFor){\n return true;\n }\n\n }\n\n// if we've reached this point, then the entire array was search and the value was not found.\n return false;\n }", "public static boolean search(int[] a, int b)\n\t{\n\t\tfor(int x:a)\n\t\t{\n\t\t\tif(x==b) return true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean containsElement(Object[] array, Object element) {\r\n if (array == null) {\r\n return false;\r\n }\r\n for (Object arrayEle : array) {\r\n if (nullSafeEquals(arrayEle, element)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean elementOf(int value){\n for(int element = 0; element < set.length; element++){\n if(set[element] == value)\n return true; \n }\n return false;\n }", "@SafeVarargs\n public static <T> boolean in(T value, T... values) {\n if (set(values).isEmpty()) return false;\n\n for (T element : values) {\n if (Objects.equals(value, element)) return true;\n }\n\n return false;\n }", "public boolean contains(ChanceCards[] array, ChanceCards v) {\n // Opretter en variabel der kan returneres, som som standard er falsk\n boolean result = false;\n // Hvis der er givet to variabeler\n if (array != null && v != null) {\n // For alle de chancekort, som \"array\" gerne skulle bestå af\n for (ChanceCards i : array) {\n // Hvis det er et chancekort\n if (i != null) {\n // Hvis de to chancekort's numre er det samme, overskriv \"restult\" og stop loop\n if (i.getCardNumber() == v.getCardNumber()) {\n result = true;\n break;\n }\n }\n }\n }\n return result;\n }", "public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }", "private boolean existe(ArrayList<Spot> arr, Spot s) {\n for (int i = 0; i < arr.size(); i++) \n if (s.equals(arr.get(i))) \n return true;\n return false;\n }", "@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int key) {\n int h=hash(key);\n if(arr[h]!=null)\n return arr[h].contains(key);\n return false;\n }", "public boolean arrayContainsChar(char[] arr, char targetValue) {\n for(char s: arr){\n if(s == targetValue) {\n return true;\n }\n }\n return false;\n }", "public boolean contains (String key,String value)\n {\n PDFObject entry = get (key);\n if (!(entry instanceof PDFArray))\n return false;\n PDFArray array = (PDFArray) entry;\n for (int i = 0;i < array.size ();i++)\n {\n PDFObject element = array.get (i);\n if (element instanceof PDFName &&\n ((PDFName) element).getName ().equals (value))\n return true;\n }\n return false;\n }", "public boolean contains(T val);", "public boolean hasMatch(int[] values) {\n\t\treturn values == null;\n\t}", "public boolean contains(Object elem);", "public static boolean hasAllValues(int[] arr1, int[] arr2) {\n for (int num : arr1) {\n boolean contains = false;\n for (int i = 0; i < arr2.length; i++) {\n if (num == arr2[i]) {\n contains = true;\n }\n }\n if (!contains) {\n return false;\n }\n }\n return true;\n }", "public boolean containsValue(Object value) {\n for (int i = 0; i < size; i++) {\n Entry entry = order[i];\n\n if (eq(value, entry.getValue())) {\n return true;\n }\n }\n\n return false;\n }", "private static boolean inArray(char c, char[] array) {\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (c == array[i]) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean contains(T anEntry) {\n\t\tfor(int i=0; i<numberOfElements; i++) {\n\t\t\tif(list[i].equals(anEntry)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean contains(BankAccount anEntry) {\n for(int i=0; i<getSize(); i++){\n if(bankArrays[i].compare(anEntry) == 0){\n return true;\n }\n }\n return false;\n }", "public static boolean contains(int[] numbers, int number) {\n for(int i=0; i < numbers.length; i++){\n if(numbers[i] == number){\n return true;\n }\n }\n return false;\n }", "boolean containsValue(Object value);", "public static boolean checkIfPresent(int[][] arr, int key) {\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\tScanner sc=new Scanner(System.in) ;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint flag=0 ;\n\t\t\t\t//System.out.print(\"Enter number to find\" );\n\t\t\t\t//int key=sc.nextInt() ;\n\t\t\t\tfor(int i=0;i<2;i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int j=0;j<2;j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(arr[i][j]==key)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn true ;\n//\t\t\t\t\t\t\tflag=1 ;\n//\t\t\t\t\t\t\tbreak ;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn false ;\t\n\t\t\t\t\n\t\t\t\t\n\n}", "@Override\n public boolean contains(Object object) {\n T value = (T) object;\n boolean result = false;\n for (int index = 0; index < this.values.length; index++) {\n T data = (T) this.values[index];\n if (data != null) {\n if (value.equals(data)) {\n result = true;\n }\n }\n }\n\n return result;\n }", "public boolean checkIfExist(int[] arr) {\n int len = arr.length;\n\n Set<Integer> set = new HashSet<>();\n for (int num : arr) {\n if (set.contains(num*2) || (num%2==0 && set.contains(num/2))) return true;\n set.add(num);\n }\n\n return false;\n }", "public static boolean isIn(int x, int[] j) {\n for (int k : j) {\n if (k == x) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(int value) {\n\t \treturn indexOf(value) >= 0;\n\t }", "public boolean containsValue(int valor){\n boolean found = false;\n if(!valores.isEmpty()){\n if(valores.contains(valor)){\n found = true;\n }\n }\n return found;\n }", "public static boolean isPresent(int arr[], int n){\r\n\r\n for(int i=0; i<arr.length; i++){\r\n if(arr[i] ==n) return true;\r\n }\r\n\r\n return false;\r\n\r\n }", "public boolean contains(int num) {\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n return true;\n } \n }\n \n return false;\n }", "public static boolean checkIfInArray(String[] arr, String str) {\n for (int i = 0; i < arr.length; i++) {\n if (arr[i].equals(str)) {\n return true;\n }\n }\n return false;\n }", "boolean contains(int value);", "boolean contains(int value);", "public static boolean InsideArray(int value, ArrayList <Integer> comparray)\n\t{\n\t\tfor(Integer val : comparray)\n\t\t\t{\n\t\t\t\tif(value == val)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t\t\n\t}", "private synchronized static boolean arrayList_contain(ArrayList<?> _arrayList, String url)\n\t{\n\t\treturn _arrayList.contains(url);\n\t}", "public boolean containsValue(Object value) {\n\t\treturn false;\r\n\t}", "public <T> boolean existed(T thisThing, ArrayList<T> array) {\n\n int sign = 0;\n\n for (int i = 0; i < array.size(); ++i) {\n\n if (array.get(i).equals(thisThing)) {\n ++sign;\n }\n }\n if (sign == 0)//kayitli degil false doner\n {\n return false;\n } else {\n return true;\n }\n\n }", "static boolean isInArray(Point p, ArrayList<Point> al, double d) {\n\t\tfor (Point pa : al) {\n\t\t\tif (isEqual(p, pa, d)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean contains(int val);", "public static <E> boolean contains(final E[] array, @Nullable final E object) {\n for (E e : array) {\n if (e.equals(object)) return true;\n }\n return false;\n }", "public boolean contains(K key, V value) {\r\n \tCollection<V> values = get(key);\r\n \tif (values == null) { return false; }\r\n \treturn values.contains(value);\r\n }", "private boolean existsInQ(Pair pair) {\n for (Pair p : qArray) {\n if (p.equals(pair)) {\n return true;\n }\n }\n return false;\n }", "boolean contains(int idx);", "public boolean containsValue(V value) {\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tif(k.value.equals(value)) {\n\t\t return true;\n\t\t}\n\t }\n\t}\n\treturn false;\n }", "public boolean wordContains(String word, String[] WordArray){\r\n\t\tfor (int i=0;i<WordArray.length;i++){\r\n\t\t\tif (WordArray[i]==word){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int data)\n {\n if(data == 0)\n {\n // 0 is invalid data\n return false;\n }\n\n if(array1[hash1(data)] == data || array2[hash2(data)] == data)\n return true;\n else\n return false;\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tString myList[] = {\"Bozo\", \"Foobar\", \"Delta\", \"Foozball\", \"Demo\", \"Money\", \"Zoo\"};\n\t\tint foundIndexes[];\n\t\tboolean found = false;\n\t\t\n\t\t\n\t\tSystem.out.println(\"This is the of the arrayHasExactMatch and indexOfOccurenceInArray methods\");\n\t\tSystem.out.println(\"The array to test contains the following items:\");\n\t\tfor(int i = 0; i < myList.length; i++) {\n\t\t\tSystem.out.print(myList[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Scenario 1\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"zo\", false);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 2\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"zoo\", false);\n\t\tSystem.out.println(\"Scenario 3\");\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 4\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"zoo\", true);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 5\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"foo\", true);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 6\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"foo\", false);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 7\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"delta\", true);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\tSystem.out.println(\"Scenario 8\");\n\t\tfound = ArrUtil.arrayHasExactMatch (myList, \"Delta\", true);\n\t\tSystem.out.println(\"arrayHasExactMatch \" + found);\n\t\t\n\t\tSystem.out.println(\"Scenario 9\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"zo\", false);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 10\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"zoo\", false);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 11\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"zoo\", true);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 12\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"foo\", true);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 13\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"foo\", false);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 14\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"delta\", true);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"Scenario 15\");\n\t\tfoundIndexes = ArrUtil.indexOfOccuranceInArray (myList, \"Delta\", true);\n\t\tSystem.out.println(\"indexOfOccuranceInArray \" + foundIndexes[0]);\n\t\tSystem.out.println(\"This works\");\n\t}", "public boolean contains(E e) {\n\t /*\n\t * Add code here\n\t */\n\t\t for(int c=0;c<num_elements;c++){\n\t\t\t if(elements[c]==e){\n\t\t\t\t return true;\n\t\t\t }\n\t\t }\n\t return false;\n\t }", "public boolean search(int[] A, int target) {\n \n for (int i = 0; i < A.length; i++) {\n if (A[i] == target) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean contains(T elem) {\n\t\tfor (int i = 0; i < valCount; ++i) {\n\t\t\tif (values[i].equals(elem)) { // if current value is same\n\t\t\t\treturn true;\n\t\t\t} else if (comp.compare(values[i],elem) < 0) { // finds the set of children that can possibly contain elem\n\t\t\t\treturn children[i].contains(elem);\n\t\t\t}\n\t\t}\n\t\tif (childCount > 1) { // check final set of children\n\t\t\treturn children[valCount - 1].contains(elem);\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean containsValue(Object value) {\n // Walk the values.\n for (Map.Entry<String, T> e : entries.values()) {\n if (value.equals(e.getValue())) {\n // Its there!\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean contains(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean contains(Collection<Long> bundleIds, Long bundleId) {\n for (Long id : bundleIds) {\n if (id.longValue() == bundleId.longValue()) {\n return true;\n }\n }\n return false;\n }", "public boolean contains(Object o) {\n for(int i = 0; i < size; i++) {\n if(list[i].equals(o)) return true;\n }\n return false;\n }", "public boolean containsValue(Object value) {\n return map.containsValue(value);\n }", "public boolean containsValue(Object v) {\n/* 119 */ return false;\n/* */ }", "public static boolean searchInput (String search, String[] array, int length){\n\t\tboolean result = false;\n\t\tfor (int i = 0; i<length; i++){\n\t\t\tif (search.equals(array[i])){\n\t\t\t\tresult = true;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public boolean contains(E elem) {\n return indexOf(elem) != -1;\n }", "public abstract boolean containsValue(V value);", "@Override\n public boolean containsValue(Object value) {\n \t\n \tfor(int i=0;i<buckets.length;i++) {\n\t \tLinkedList<Entry> tempBucket = buckets[i];\n\t \t\n\t \tfor(int j=0;j<tempBucket.size();j++) {\n\t \t\tEntry tempEntry = tempBucket.get(j);\n\t \t\t\n\t \t\tif(tempEntry.getValue() == value) {\n\t \t\t\treturn true;\n\t \t\t}\n\t \t}\n \t}\n \t\n return false;\n }", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn map.containsValue(value);\n\t}", "public static boolean isMember(int[] array, int value)\r\n {\r\n // if all elements of the array have been examined return false\r\n // because the value has not been found\r\n if(counter==array.length)\r\n {\r\n counter = 0; // reset the counter\r\n return false;\r\n }\r\n else if(array[counter]==value)\r\n {\r\n counter = 0; // reset the counter\r\n return true;\r\n }\r\n // examine the next element of the array recursively\r\n else\r\n {\r\n counter++; // augment the counter\r\n return isMember(array, value);\r\n }\r\n\r\n }", "public boolean contains(T element);", "private void arraySearch(MyArrayList myArrayList, Results results, int value) {\r\n if(myArrayList.search(value)) { \r\n results.storeNewResult(\"ArraySearch test case: PASSED\");\r\n }\r\n else { \r\n results.storeNewResult(\"ArraySearch test case: FAILED\");\r\n }\r\n }", "public boolean contains (Employee a)\n\t{\n\t\tboolean employeeFound = false;\n\t\tif(a == null)\n\t\t\t{\n\t\t\tSystem.out.println(\"ERROR: Object parameter must not be null!\");\n\t\t\treturn false;\n\t\t\t}\n\t\t\t//throw new IllegalArgumentException(\"ERROR: Object parameter must not be null!\");\n\t\telse\n\t\t{\n\t\t\tfor(int i= 0; i < employeeData.length; i++)\n\t\t\t{\n\t\t\t\tif(employeeData[i] == a)\n\t\t\t\t{\n\t\t\t\t\temployeeFound = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn employeeFound;\n\t}", "public boolean contains(int key) {\n \tfor(int k:set){\n \tif(k==key){\n \t\treturn true;\n \t}\n }\n\t\treturn false;\n }", "public boolean contains(Object value)\r\n {\r\n return contains(root, value);\r\n }" ]
[ "0.78394014", "0.7786134", "0.7772202", "0.7380119", "0.728649", "0.72848254", "0.71417624", "0.6902462", "0.69004786", "0.68420225", "0.68222684", "0.68176603", "0.68021935", "0.67681813", "0.67648447", "0.6746542", "0.6715262", "0.66590655", "0.6647472", "0.66169167", "0.65450627", "0.6464127", "0.6424208", "0.6420614", "0.641475", "0.6411315", "0.63879085", "0.63792557", "0.6363149", "0.63624924", "0.63514304", "0.63495874", "0.63492286", "0.6340726", "0.6338666", "0.6335841", "0.6329509", "0.63238704", "0.6308093", "0.6307906", "0.63003117", "0.629565", "0.62934035", "0.6275856", "0.6267885", "0.6256695", "0.6248373", "0.62319016", "0.62307256", "0.6227271", "0.62161446", "0.62105745", "0.62066764", "0.6199592", "0.61870396", "0.6168432", "0.6165894", "0.616562", "0.6155174", "0.61534417", "0.6152994", "0.61522734", "0.61507684", "0.6150187", "0.61233175", "0.61233175", "0.6122573", "0.6117794", "0.611693", "0.61050236", "0.6104924", "0.6100599", "0.60974556", "0.6089629", "0.6087063", "0.60803926", "0.60587674", "0.60586363", "0.60437393", "0.6033392", "0.6025727", "0.6006918", "0.6002234", "0.5998623", "0.5995127", "0.5980786", "0.59805095", "0.5968186", "0.5963802", "0.595654", "0.5950969", "0.5950242", "0.5942656", "0.5937522", "0.5930029", "0.59236", "0.5919833", "0.591489", "0.5904399", "0.59030473" ]
0.6403504
26
This method hashes a full name in the worst case .
public int hashWorst(String key){ int hashVal = 1; return hashVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "public static int hashfunction(final String firstName) {\n int key = 0;\n for (int i = 0; i < firstName.length(); i++) {\n key += firstName.charAt(i);\n }\n return key % 32;\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "private static String hashWord(String word) {\n int[] counts = new int[26];\n for (char c : word.toCharArray()) { // O(c)\n counts[(int)c-97]++;\n }\n StringBuilder sb = new StringBuilder();\n for (int i : counts) { // O(26)\n sb.append(Integer.toString(i));\n }\n return sb.toString();\n }", "int hash(String makeHash, int mod);", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "String getHash();", "String getHash();", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "static String hashSource(String source) {\n if (!source.endsWith(\"/\")) {\n source += \"/\";\n }\n Matcher m = Pattern.compile(\".+[/]([^/]+)[/]?\").matcher(source);\n BigInteger hash;\n try {\n hash = new BigInteger(1, MessageDigest.getInstance(\"SHA-1\").digest(source.getBytes(\"UTF-8\")));\n } catch (Exception x) {\n throw new AssertionError(x);\n }\n return String.format(\"%040X%s\", hash, m.matches() ? \"-\" + m.group(1) : \"\");\n }", "public long APHash(String str) {\n\t\tlong hash = 0xAAAAAAAA;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif ((i & 1) == 0) {\n\t\t\t\thash ^= ((hash << 7) ^ str.charAt(i) * (hash >> 3));\n\t\t\t} else {\n\t\t\t\thash ^= (~((hash << 11) + str.charAt(i) ^ (hash >> 5)));\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}", "public String getHashname(){\n\t\treturn sHashname;\n\t}", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }", "public long BPHash(String str) {\n\t\tlong hash = 0;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash = hash << 7 ^ str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "public static String createCommonName(List<String> hashes) {\n int[] nums = new int[SIZE_DBHASH];\n char[] valids = VALID_DBHASH_CHARS.toCharArray();\n StringBuilder sb = new StringBuilder();\n\n for (String hash : hashes) {\n char[] cur = hash.toCharArray();\n for (int i = 0; i < SIZE_DBHASH; i++)\n nums[i] += cur[i];\n }\n\n for (int num : nums)\n sb.append(valids[num % valids.length]);\n\n return sb.toString();\n }", "private static String HashIt(String token) {\n\t\tStringBuffer hexString = new StringBuffer();\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = digest.digest(token.getBytes(StandardCharsets.UTF_8));\n\t\t\t\n\t\t\t// Convert to hex\n\t\t for (int i = 0; i < hash.length; i++) {\n\t\t\t String hex = Integer.toHexString(0xff & hash[i]);\n\t\t\t if(hex.length() == 1) {\n\t\t\t \thexString.append('0');\n\t\t\t }\n\t\t\t hexString.append(hex);\n\t\t }\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t\thexString.setLength(0);\n\t\t}\n\t return hexString.toString();\t\t\n\t}", "public int hashCode(){\n return name.hashCode();\n }", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\r\n\t\tbyte[] byteHash = digest.digest(saltedPass.getBytes(StandardCharsets.UTF_8));\r\n\t\thash = DatatypeConverter.printBase64Binary(byteHash);\r\n\t\treturn hash;\r\n\t}", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }", "String hashPassword(String password);", "public String hashfunction(String password)\r\n\t{\r\n\t\t\r\n\t\tMessageDigest md=null;\r\n\t\ttry {\r\n\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tmd.update(password.getBytes());\r\n\t\tbyte[] hash=md.digest();\r\n\t\tchar[] hexArray = \"0123456789ABCDEF\".toCharArray();\r\n\t\tchar[] hexChars = new char[hash.length * 2];\r\n\t for ( int j = 0; j < hash.length; j++ ) \r\n\t {\r\n\t int v = hash[j] & 0xFF;\r\n\t hexChars[j * 2] = hexArray[v >>> 4];\r\n\t hexChars[j * 2 + 1] = hexArray[v & 0x0F];\r\n\t }\r\n\t String hash_password=new String(hexChars);\r\n\t hash_password=hash_password.toLowerCase();\r\n\t return hash_password;\r\n\t}", "int findHash(String name, int level, int child) {\n if(level == 1 && child == 1)\n child = 5;\n int hash = 0;\n for(char c: name.toCharArray()) {\n if((int)c >= 65 && (int)c<= 90) {\n hash += (int)c - 64;\n }\n else if((int)c >= 97 && (int)c<= 122)\n hash += (int)c - 96;\n }\n hash += level + child;\n\n return hash%7;\n }", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "@Override\n public int hashCode() {\n\n final int prime = 31;\n int result = 1;\n result = prime * result + name.hashCode();\n return result;\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "public static String hash(String token){\n return Integer.toString( token.hashCode() );\n }", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((firstName == null) ? 0 : firstName.hashCode());\n\t\tresult = prime * result + ((lastName == null) ? 0 : lastName.hashCode());\n\t\tresult = prime * result\t+ ((middleName == null) ? 0 : middleName.hashCode());\n\t\treturn result;\n\t}", "int _hash(int maximum);", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\treturn result;\n\t}", "private String getOldPasswordHash(String password) {\n\t\tWhirlpool hasher = new Whirlpool();\n hasher.NESSIEinit();\n\n // add the plaintext password to it\n hasher.NESSIEadd(password);\n\n // create an array to hold the hashed bytes\n byte[] hashed = new byte[64];\n\n // run the hash\n hasher.NESSIEfinalize(hashed);\n\n // this stuff basically turns the byte array into a hexstring\n java.math.BigInteger bi = new java.math.BigInteger(hashed);\n String hashedStr = bi.toString(16); // 120ff0\n if (hashedStr.length() % 2 != 0) {\n // Pad with 0\n hashedStr = \"0\"+hashedStr;\n }\n return hashedStr;\n\t}", "private String hashPassword(String password) {\n \t\tif (StringUtils.isNotBlank(password)) {\n \t\t\treturn new ShaPasswordEncoder().encodePassword(password, null);\n \t\t}\n \t\treturn null;\n \t}", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\treturn Objects.hash(name,surname);\r\n\t}", "static String hash(String motDePasse) {\n\t\tString encoded = null;\n\t\ttry {\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n\t byte[] hashInBytes = md.digest(motDePasse.getBytes(StandardCharsets.UTF_8));\n\n\t\t\t// bytes to hex\n\t StringBuilder sb = new StringBuilder();\n\t for (byte b : hashInBytes) {\n\t sb.append(String.format(\"%02x\", b));\n\t }\n\t encoded = sb.toString();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn encoded;\n\n\t\t\n\t}", "protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "private int hashOf(String key) {\n return key.length();\n }", "private int computeHash(URI location) {\n \t\treturn location.hashCode();\n \t}", "String hash(String input) throws IllegalArgumentException, EncryptionException;", "public int hashCode(){\n int hashcode = name == null ? 0 : name.hashCode() / 2;\n return hashcode += ( value == null ? 0 : value.hashCode()/2 );\n }", "public int hashCode() {\n return name.hashCode();\n }", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "public BigInteger hash(String element)\n\t{ \n\t\treturn (BigInteger.valueOf(element.hashCode())).mod(modulus);\n\t}", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "public int hash3 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ ){\n hashVal = (37 * hashVal) + key.charAt(i);}\n hashVal %= tableSize;\n if(hashVal<0)\n hashVal += tableSize; \n if(hashVal != 0)\n return hashVal;\n else\n return 0;\n }\n else\n {\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "public int hash(String item);", "@Override\n public final int hashCode() {\n return name != null ? name.hashCode() : 0;\n }", "@Override\n public int hashCode() {\n return Objects.hash(username);\n }", "private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }", "public static String GetHash(String input)\n {\n String hash = DigestUtils.sha1Hex(input);\n System.out.println(hash);\n return hash;\n }", "@Test\n public void testHash() {\n // the hash function does sha256, but I guess I don't care about implementation\n // test if two things hash to same value\n logger.trace(\"Equal strings hash to same value\");\n String hash1 = Util.hash(\"foobar\");\n String hash2 = Util.hash(\"foobar\");\n Assert.assertEquals(hash1, hash2);\n\n // test if different things hash to different value\n logger.trace(\"Unequal strings hash to different value\");\n hash1 = Util.hash(\"foobar\");\n hash2 = Util.hash(\"barfoo\");\n Assert.assertNotEquals(hash1, hash2);\n\n // test if hash length > 5 (arbitrary)\n logger.trace(\"Hash is of sufficient length to avoid collisions\");\n hash1 = Util.hash(\"baz\");\n final int length = hash1.length();\n Assert.assertTrue(length > 5);\n }", "String getHashAlgorithm();", "String hashPassword(String salt, String password);", "@Override\n\tpublic int hash(String item) {\n\t\tlong hashCode = 0l;\n\t\tchar[] c = item.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\thashCode += c[i] * Math.pow(31, c.length - (i + 1));\n\t\t}\n\t\tint i = (int) hashCode % 2147483647;\n\n\t\n\t\treturn Math.abs(i);\n\t\t\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "public static String hash(String st) {\r\n MessageDigest messageDigest = null;\r\n byte[] digest = new byte[0];\r\n\r\n try {\r\n messageDigest = MessageDigest.getInstance(\"SHA-256\");\r\n messageDigest.reset();\r\n messageDigest.update(st.getBytes());\r\n digest = messageDigest.digest();\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n BigInteger bigInt = new BigInteger(1, digest);\r\n StringBuilder hex = new StringBuilder(bigInt.toString(16));\r\n\r\n while (hex.length() < 32) {\r\n hex.insert(0, \"0\");\r\n }\r\n\r\n return hex.toString();\r\n }", "public static String hashPassword(String input) {\n\t\tStringBuilder hash = new StringBuilder();\n\n\t\ttry {\n\t\t\tMessageDigest sha = MessageDigest.getInstance(\"SHA-1\");\n\t\t\tbyte[] hashedBytes = sha.digest(input.getBytes());\n\t\t\tchar[] digits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n\t\t\t\t\t'a', 'b', 'c', 'd', 'e', 'f' };\n\t\t\tfor (int idx = 0; idx < hashedBytes.length;idx++) {\n\t\t\t\tbyte b = hashedBytes[idx];\n\t\t\t\thash.append(digits[(b & 0xf0) >> 4]);\n\t\t\t\thash.append(digits[b & 0x0f]);\n\t\t\t}\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// handle error here.\n\t\t}\n\n\t\treturn hash.toString();\n\n\t\t\n\t}", "int getHash();", "@Override\n\tpublic String hash(EmailAddress address)\n\t{\n\t\treturn null;\n\t}", "@Override\n public int hashCode() {\n\n return Objects.hash(name, surname);\n }", "public String doHash2(String str) {\n if(str.length() == 1) return \"-1\";\n\n String key = \"\";\n for (int i = 0; i < str.length() - 1; i++) {\n int val = str.charAt(i + 1) - str.charAt(i);\n if (val < 0) val = 26 + val;\n key += val + \"_\";\n }\n return key;\n }", "public static void main(String[] args) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"3.in\"));\n\t\tint base = 26;\n\t\tlong subHash = 0;\n\t\tstring = br.readLine();\n\t\tsubstring = br.readLine();\n\t\tSystem.out.println(substring.length());\n\t\tfor (int i = 0; i < substring.length(); i++)\n\t\t{\n\t\t\tstring = \"`\" + string;\n\t\t\tsubHash += Math.pow(base, substring.length()-1-i)*(substring.charAt(i)-96);\n\t\t}\n\t\thashes = new long[string.length()];\n\t\t//rolling hash\n\t\tlong prevHash = 0;\n\t\tlong hash;\n\t\tlong subtract;\n\t\tfor (int i = 0; i < string.length()-substring.length(); i++)\n\t\t{\n\t\t\tsubtract = (long) ((string.charAt(i)-96)*Math.pow(base, substring.length()-1));\n\t\t\thash = (long) (26*(prevHash - subtract) + (string.charAt(i + substring.length())-96));\n\t\t\thashes[i+1] = hash;\n\t\t\tif (hash == subHash)\n\t\t\t{\n\t\t\t\tstring = string.substring(0, i+1) + string.substring(i+1+substring.length());\n\t\t\t\ti -= substring.length();\n\t\t\t\tif (i < 0) i = -1;\n\t\t\t}\n\t\t\tprevHash = hashes[i+1];\n\t\t\tSystem.out.println(hash);\n\t\t}\n\t\t\n\t\t/*for (long el: hashes)\n\t\t\tSystem.out.println(el);\n\t\tSystem.out.println(subHash);*/\n\t\tSystem.out.println(string.substring(substring.length()));\n\t\t\n\t\t\n\t\t//PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"censor.out\")));\n\t\t//pw.println(string.substring(substring.length()));\n\t\t//pw.close();\n\t}", "public static String hash2(String uin , String vfwebqq){\n //todo\n }", "public long JSHash(String str) {\n\t\tlong hash = 1315423911;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));\n\t\t}\n\n\t\treturn hash;\n\t}", "private String reallyComputeHash(String s) {\n // Computes the crypto hash of string s, in a web-safe format.\n try {\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.update(s.getBytes());\n digest.update(\"My secret key\".getBytes());\n byte[] md = digest.digest();\n // Now we need to make it web safe.\n String safeDigest = Base64.encodeToString(md, Base64.URL_SAFE);\n return safeDigest;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public static String hash(String s) {\n try {\n return hash(s, \"SHA-1\");\n } catch (NoSuchAlgorithmException ex) {\n return Exceptions.chuck(ex);\n }\n }", "private int hashFunc1(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n // Java can return negative vals with hashCode() it's biggg so need to check for this\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n return hashVal; // Idea index position we'd like to insert or search in\n }", "public long DJBHash(String str) {\n\t\tlong hash = 5381;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash = ((hash << 5) + hash) + str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "public int hashCode() {\n int result = 6;\n result = 31 * result * name.hashCode();\n return result;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((name == null) ? 0 : name.hashCode());\n result = prime * result + ((identifierPrefix == null) ? 0 : identifierPrefix.hashCode());\n return result;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "public static String hashPass(String value) throws NoSuchAlgorithmException\n\t{\n\t\t//There are many algos are available for hashing i)MD5(message digest) ii)SHA(Secured hash algo)\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t md.update(value.getBytes());\n\t \n\t byte[] hashedpass=md.digest();\n\t StringBuilder hashpass=new StringBuilder();\n\t for(byte b:hashedpass)\n\t {\n\t \t//Convert to hexadecimal format\n\t hashpass.append(String.format(\"%02x\",b));\n\t }\n\t return hashpass.toString();\n\t}", "private String hashPassword(String toHash) {\r\n PasswordEncoder passwordEncoder = new Sha256PasswordEncoder(salt);\r\n return passwordEncoder.encode(toHash);\r\n }", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "public static String hash(String password){\r\n\t\t try {\r\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n\t md.update(password.getBytes(\"UTF-8\")); \r\n\t byte[] digest = md.digest();\r\n\t \r\n\t BigInteger bigInt = new BigInteger(1, digest);\r\n\t StringBuffer sb = new StringBuffer();\r\n\t for (int i = 0; i < digest.length; i++) {\r\n\t String hex = Integer.toHexString(0xff & digest[i]);\r\n\t if (hex.length() == 1) sb.append('0');\r\n\t sb.append(hex);\r\n\t }\r\n\t System.out.println(sb.toString());\r\n\t return sb.toString();\r\n\t \r\n\t } catch (Exception ex) {\r\n\t System.out.println(ex.getMessage());\r\n\t \r\n\t }\r\n\t\t return null;\r\n\t}", "@Test\n\t\tpublic void testhashPassword() {\n\t\t\tString actual = Professor.hashPassword(\"thePassword\");\n\t\t\tString expected = Professor.hashPassword(\"thePassword\");\n\t\t\t\n\t\t\tassertEquals(expected, actual);\n\t\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "private byte[] generateNewHash() { \n\t\t// Build the final hash to be compared with the one on the database.\n\t\tbyte[] firstHash = getGeneratedHash();\n\t\tbyte[] randomSalt = getRandomSalt();\n\t\tbyte[] finalHash = new byte[TOTAL_LENGTH];\n\n\t\t// initial index where the salt will start\n\t\tint j = getSaltStartIndex(); \n\n\t\tfor( int i = 0; i < TOTAL_LENGTH; i++ ) {\n\t\t\t// First index for the salt is not yet here\n\t\t\tif ( j > i ) finalHash[i] = firstHash[i];\n\t\t\telse {\n\t\t\t\tif ( (i - j) < SALT_LENGTH ) finalHash[i] = randomSalt[i-j];\n\t\t\t\telse finalHash[i] = firstHash[i-SALT_LENGTH];\n\t\t\t}\n\t\t}\n\t\treturn finalHash;\n\t}", "public long FNVHash(String str) {\n\t\tlong fnv_prime = 0x811C9DC5;\n\t\tlong hash = 0;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash *= fnv_prime;\n\t\t\thash ^= str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "String getSaltedHash();", "private String hashPass(String password, String salt)\r\n {\r\n String oldpass = (password + salt);\r\n String hashedPass = null;\r\n StringBuilder sb = new StringBuilder();\r\n\r\n try\r\n {\r\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n md.update(oldpass.getBytes(\"UTF-8\"));\r\n\r\n byte[] hash = md.digest();\r\n\r\n for (int i = 0; i < hash.length; i++)\r\n {\r\n sb.append(Integer.toString((hash[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n hashedPass = sb.toString();\r\n }\r\n catch (NoSuchAlgorithmException | UnsupportedEncodingException ex)\r\n {\r\n Logger.getLogger(AuthModel.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return hashedPass;\r\n }", "String getUserPasswordHash();", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }" ]
[ "0.70110077", "0.6941327", "0.68209404", "0.66061497", "0.65413326", "0.64905894", "0.6452224", "0.64510155", "0.64510155", "0.6353379", "0.6311272", "0.6274493", "0.62471193", "0.6239848", "0.6222622", "0.61987156", "0.6188276", "0.61849046", "0.6163637", "0.6122198", "0.6070115", "0.60192996", "0.60106087", "0.6002465", "0.6001846", "0.59882396", "0.59590006", "0.59589505", "0.59507793", "0.5950379", "0.594967", "0.59490156", "0.5943399", "0.5914314", "0.5911435", "0.59040654", "0.58922833", "0.5862591", "0.5860493", "0.5856763", "0.58505976", "0.58499706", "0.58431673", "0.58305657", "0.5828696", "0.5822949", "0.5820635", "0.5814403", "0.58131504", "0.58045256", "0.57947206", "0.57937646", "0.57926804", "0.578871", "0.5788013", "0.5783239", "0.5780317", "0.5779948", "0.5779282", "0.5779034", "0.5774943", "0.5768343", "0.5768262", "0.57643646", "0.57537925", "0.5748493", "0.57456285", "0.5745379", "0.5743976", "0.57327455", "0.5730531", "0.57221365", "0.5718112", "0.57168144", "0.5707853", "0.5693893", "0.56911385", "0.56909835", "0.5689509", "0.56869525", "0.56856054", "0.5676925", "0.5676323", "0.56749123", "0.5673123", "0.5673123", "0.5670327", "0.56578964", "0.5656358", "0.56529176", "0.565054", "0.56479704", "0.5647657", "0.5646882", "0.5646304", "0.5644689", "0.5642455", "0.5640405", "0.5638981", "0.5636658", "0.5613951" ]
0.0
-1
This method hashes a full name to add Unicode values .
public int hash1 ( String key ) { int hashVal = 0; if(key != null){ for( int i = 0; i < key.length(); i++ ) hashVal += key.charAt(i); //if(hashVal != 0) return hashVal % tableSize; //else // return 0; } else{ //System.out.println("Key is null"); return 0 ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "public int hashCode(){\n return name.hashCode();\n }", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "public String getHashname(){\n\t\treturn sHashname;\n\t}", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public static String hash2(String uin , String vfwebqq){\n //todo\n }", "public void printHash(String valu){\r\n /*\r\n Put A for Arrangers\r\n V for Vocalists\r\n C for Circles\r\n */\r\n String type=\"\";\r\n Map <Integer,String>TempMap=new HashMap();\r\n switch(valu){\r\n case \"A\":\r\n type=\"Arranger's\";\r\n TempMap.putAll(ArrangersMap);\r\n break;\r\n case \"V\":\r\n type=\"Vocalists's\";\r\n TempMap.putAll(VocalistsMap);\r\n break;\r\n case \"C\":\r\n type=\"Circle's\";\r\n TempMap.putAll(CirclesMap);\r\n break; \r\n }\r\n int counter=0;\r\n List<String> values=new ArrayList<>();\r\n for(int id:TempMap.keySet()){\r\n values.add(TempMap.get(id));\r\n }\r\n TempMap.clear();\r\n Collections.sort(values,Collator.getInstance());\r\n for(String val: values){\r\n val=val.trim();\r\n TempMap.put(counter, val.trim());\r\n //System.out.println(val);\r\n counter++;\r\n }\r\n for(int id:TempMap.keySet()){\r\n System.out.println(\"The \" + type+ \" name is: \"+TempMap.get(id)+ \" The id is:\"+id);\r\n }\r\n }", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}", "public void add2Hash( Hashtable h, String source ) {\n \n AstCursor c = new AstCursor();\n \n for ( c.FirstElement( this ); c.MoreElement(); c.NextElement() ) {\n Es es = ( Es ) c.node;\n es.add2Hash( h, source );\n }\n }", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "private static String HashIt(String token) {\n\t\tStringBuffer hexString = new StringBuffer();\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = digest.digest(token.getBytes(StandardCharsets.UTF_8));\n\t\t\t\n\t\t\t// Convert to hex\n\t\t for (int i = 0; i < hash.length; i++) {\n\t\t\t String hex = Integer.toHexString(0xff & hash[i]);\n\t\t\t if(hex.length() == 1) {\n\t\t\t \thexString.append('0');\n\t\t\t }\n\t\t\t hexString.append(hex);\n\t\t }\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t\thexString.setLength(0);\n\t\t}\n\t return hexString.toString();\t\t\n\t}", "void setHashData(java.lang.String hashData);", "java.lang.String getHashData();", "static String hash(String motDePasse) {\n\t\tString encoded = null;\n\t\ttry {\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n\t byte[] hashInBytes = md.digest(motDePasse.getBytes(StandardCharsets.UTF_8));\n\n\t\t\t// bytes to hex\n\t StringBuilder sb = new StringBuilder();\n\t for (byte b : hashInBytes) {\n\t sb.append(String.format(\"%02x\", b));\n\t }\n\t encoded = sb.toString();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn encoded;\n\n\t\t\n\t}", "String getLongNameKey();", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "AlphabetNameReference createAlphabetNameReference();", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n public int hashCode() {\n\n final int prime = 31;\n int result = 1;\n result = prime * result + name.hashCode();\n return result;\n }", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "public int hashCode() {\n return name.hashCode();\n }", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "public static void main(String[] args) {\n StringBuffer name = new StringBuffer(\"Abdulazeez Abdulazeez \");\n System.out.println(\"String Buffer of my name \" +name);\n // Supposing I need to add my middle name as an abbr.\n // I'll append it witht the .appendCodePoint() method.\n name.appendCodePoint(65);\n System.out.println(\"My full name after now: \" +name);\n }", "String getHash();", "String getHash();", "public int hashCode() {\n return name.hashCode();\n }", "private String hashToString(String warcName, HashMap<String, Integer> hash, boolean includeWARCname) {\n String result;\n if (includeWARCname)\n result = warcName + \"£\";\n else\n result = \"\";\n\n for (String key : hash.keySet())\n result = result + key + \"x\" + hash.get(key) + \"£\";\n\n //Remove trailing £\n result = result.substring(0, result.length() - 1);\n\n return result;\n }", "private static String hashWord(String word) {\n int[] counts = new int[26];\n for (char c : word.toCharArray()) { // O(c)\n counts[(int)c-97]++;\n }\n StringBuilder sb = new StringBuilder();\n for (int i : counts) { // O(26)\n sb.append(Integer.toString(i));\n }\n return sb.toString();\n }", "public void unicode(String hex) {\n text.append(\"\\\\\" + \"u\").append(hex);\n }", "@Override\n public final int hashCode() {\n return name != null ? name.hashCode() : 0;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((name == null) ? 0 : name.hashCode());\n result = prime * result + ((identifierPrefix == null) ? 0 : identifierPrefix.hashCode());\n return result;\n }", "public static void hashMapEx() {\n\t\tString str = \"habiletechE\";\n\t\tstr = str.toLowerCase();\n\t\tchar[] ch = str.toCharArray();\n\t\tint size = ch.length;\n\n\t\tHashMap<Character, Integer> hmap = new HashMap<Character, Integer>();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (!hmap.containsKey(ch[i]))\n\t\t\t\thmap.put(ch[i], 1);\n\t\t\telse {\n\t\t\t\tint val = hmap.get(ch[i]) + 1;\n\t\t\t\thmap.put(ch[i], val);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Duplicate Charaacters :\");\n\t\tfor (Map.Entry<Character, Integer> hm : hmap.entrySet()) {\n\t\t\tif (hm.getValue() > 1)\n\t\t\t\tSystem.out.println(hm.getKey() + \" \" + hm.getValue());\n\t\t}\n\t}", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 89 * hash + Objects.hashCode(this.recipentQualifiedName);\n return hash;\n }", "@Override\n public int hashCode() {\n return getName().hashCode();\n }", "public static void main(String[] args) {\n\t\t\n\t\tHashMap <Character, Integer> lhmap = new LinkedHashMap<Character, Integer>();\n\t\t\n\t\t\tString nom = \"Javier del Moral Asensio\";\n\t\t\tchar[] myName= nom.toLowerCase().toCharArray();\n\t\t\n\t\t//for loop to check characters one by one and sum it if are repeated\n\t\t\t\t\n\t\t\tfor(int c=0; c < nom.length(); c++) {\n\t\t\t\n\t\t\t\tint value=1;\n\t\t\n\t\t//if the char is new store it\n\t\t\t\t\n\t\t\t\tif(lhmap.containsKey(myName[c]) == false) {\n\t\t\t\t\tlhmap.put(myName[c], value);\n\t\t\t\t\t\n\t\t//if is not +1 to the original char\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvalue = lhmap.get(myName[c]);\n\t\t\t\t\tlhmap.put(myName[c], value+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(lhmap);\t\t\n\n\t}", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}", "@Test\n\tpublic void getNameCorrect(){\n\t\tassertEquals(\"BARBARZYŃCA\", adventurer1.getName());\n\t}", "public static String createCommonName(List<String> hashes) {\n int[] nums = new int[SIZE_DBHASH];\n char[] valids = VALID_DBHASH_CHARS.toCharArray();\n StringBuilder sb = new StringBuilder();\n\n for (String hash : hashes) {\n char[] cur = hash.toCharArray();\n for (int i = 0; i < SIZE_DBHASH; i++)\n nums[i] += cur[i];\n }\n\n for (int num : nums)\n sb.append(valids[num % valids.length]);\n\n return sb.toString();\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hashCode(this.name);\n\t}", "public long APHash(String str) {\n\t\tlong hash = 0xAAAAAAAA;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif ((i & 1) == 0) {\n\t\t\t\thash ^= ((hash << 7) ^ str.charAt(i) * (hash >> 3));\n\t\t\t} else {\n\t\t\t\thash ^= (~((hash << 11) + str.charAt(i) ^ (hash >> 5)));\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n return String.valueOf(this).hashCode();\n }", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "@Override\n public int hashCode() {\n return displayName.hashCode();\n }", "private HashMap name2() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MISHRA\");\n\t hm.put(\"lastName\", \"ARADHANA\");\n\t hm.put(\"firstYearInOffice\", \"1981\");\n\t hm.put(\"lastYearInOffice\", \"1989\");\n\t return hm;\n\n\t }", "@Test\n\tpublic final void testUmlaut() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n\t\t// U - upper case\n\t\tassertSingleResult(\"2797607\", fldName, \"Über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"über\");\n\t\tassertSingleResult(\"2797607\", fldName, \"uber\");\n\t\t// u - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwürdigkeit\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Fragwurdigkeit\");\n\t\t// o - lower case\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomäki\");\n\t\tassertSingleResult(\"2797607\", fldName, \"Murtomaki\");\n\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((name == null) ? 0 : name.hashCode());\n\t\treturn result;\n\t}", "void hashLexicons() {\n for (int i = 0; i < trainingData.hamEmails.length; i++) {\n hashLexicons(trainingData.hamEmails[i]);\n }\n for (int i = 0; i < trainingData.spamEmails.length; i++) {\n hashLexicons(trainingData.spamEmails[i]);\n }\n }", "private HashMap name4() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"HARI\");\n\t hm.put(\"middleName\", \"SHYAMA\");\n\t hm.put(\"lastName\", \"SUNITA\");\n\t hm.put(\"firstYearInOffice\", \"1969\");\n\t hm.put(\"lastYearInOffice\", \"1974\");\n\t return hm;\n\n\t }", "static String hashSource(String source) {\n if (!source.endsWith(\"/\")) {\n source += \"/\";\n }\n Matcher m = Pattern.compile(\".+[/]([^/]+)[/]?\").matcher(source);\n BigInteger hash;\n try {\n hash = new BigInteger(1, MessageDigest.getInstance(\"SHA-1\").digest(source.getBytes(\"UTF-8\")));\n } catch (Exception x) {\n throw new AssertionError(x);\n }\n return String.format(\"%040X%s\", hash, m.matches() ? \"-\" + m.group(1) : \"\");\n }", "private String toSHA_256(String passName){\n\t\ttry {\n\t\t\tMessageDigest md=MessageDigest.getInstance(\"SHA-256\");\n\t\t\tmd.update(passName.getBytes(\"UTF-8\"));\n\t\t\tBigInteger bgInt=new BigInteger(md.digest());\n\t\t\treturn bgInt.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "private HashMap name3() {\n\n\t HashMap hm = new HashMap();\n\t hm.put(\"firstName\", \"SIMA\");\n\t hm.put(\"middleName\", \"MOHANTY\");\n\t hm.put(\"lastName\", \"RAMA\");\n\t hm.put(\"firstYearInOffice\", \"1961\");\n\t hm.put(\"lastYearInOffice\", \"1963\");\n\t return hm;\n\n\t }", "private String hashPassword(String toHash) {\r\n PasswordEncoder passwordEncoder = new Sha256PasswordEncoder(salt);\r\n return passwordEncoder.encode(toHash);\r\n }", "private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }", "public static void main(String[] args) {\n String name = new String(\"String one\");\n String name2 = name;\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n name2 = \"String two\";\n\n System.out.println(name);\n System.out.println(name2);\n\n System.out.println(name.hashCode());\n System.out.println(name2.hashCode());\n\n\n //////////////////////////////////////////////\n System.out.println(\"****************************\");\n\n StringBuilder str1 = new StringBuilder(\"Sachin\");\n// str1 = str1 + new StringBuilder(\"fsf\");\n System.out.println(str1.hashCode());\n str1 = new StringBuilder(\"Schin tendulkar\");\n\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n str1.append(\"12334\");\n System.out.println(str1);\n System.out.println(str1.hashCode());\n\n }", "public String mo34971a() {\n return \"SHA-384\";\n }", "private BuildsMapping(long hash) {\n\t\tthis.hash = hash;\n\t\tthis.attribute = AttributeMapping.properify(name());\n\t}", "public int hashCode(){\n int hashcode = name == null ? 0 : name.hashCode() / 2;\n return hashcode += ( value == null ? 0 : value.hashCode()/2 );\n }", "int findHash(String name, int level, int child) {\n if(level == 1 && child == 1)\n child = 5;\n int hash = 0;\n for(char c: name.toCharArray()) {\n if((int)c >= 65 && (int)c<= 90) {\n hash += (int)c - 64;\n }\n else if((int)c >= 97 && (int)c<= 122)\n hash += (int)c - 96;\n }\n hash += level + child;\n\n return hash%7;\n }", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "public long BPHash(String str) {\n\t\tlong hash = 0;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash = hash << 7 ^ str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}", "@Override\r\n\tpublic int hashCode() {\r\n\t\treturn Objects.hash(name,surname);\r\n\t}", "private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}", "public int hashCode() {\n int result = 6;\n result = 31 * result * name.hashCode();\n return result;\n }", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "public String encode(String longUrl) {\n String key = \"\"+longUrl.hashCode();\n map.put(key, longUrl);\n return key;\n }", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "public static void main(String[] args) throws NoSuchAlgorithmException {\n String text = \"Hello World\";\n System.out.println(\"Исходный текст : \" + text);\n MessageDigest sha1 = MessageDigest.getInstance(\"MD5\");\n byte[] bytes = sha1.digest(text.getBytes());\n StringBuilder stringBuilder = new StringBuilder();\n for (byte b : bytes){\n stringBuilder.append(String.format(\"%02X \", b)); //конверитрую в 16-ричку\n }\n System.out.print(\"Хеш-код : \" + stringBuilder.toString());\n }", "public String mangle(String sName);", "@Override public int hashCode() {\r\n int result = 17;\r\n result = 31 * result + fID;\r\n result = 31 * result + fName.hashCode();\r\n return result;\r\n }", "@Override\n public int hashCode() {\n int result = 31 * this.name.hashCode();\n result += 31 * this.getLocation().getLatitude();\n result += 31 * this.getLocation().getLongitude();\n return result;\n }", "private String calulateHash() {\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(creator) +\r\n\t\t\t\t\tname+description+begin+end+end_subscription+\r\n\t\t\t\t\tmin_capacity+max_capacity+ date_creation_transaction.getTime()\r\n\t\t\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn StringUtil.applySha256(\r\n\t\t\t\t\tStringUtil.getStringFromKey(subscriber) + id_event);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "public String getUniqueIdentifier(){\n return (streetAddress + aptNumber + zip).toLowerCase().replaceAll(\"\\\\s+\",\"\"); \n }", "public static String m3184a(String str) {\n if (str == null) {\n return null;\n }\n try {\n MessageDigest.getInstance(\"SHA-256\").update(str.getBytes(\"UTF-8\"));\n str = String.format(Locale.US, \"%064x\", new Object[]{new BigInteger(1, r1.digest())});\n } catch (Exception e) {\n C0784a.m3252a(C0766d.class, e);\n str = null;\n }\n return str;\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "public static int hashfunction(final String firstName) {\n int key = 0;\n for (int i = 0; i < firstName.length(); i++) {\n key += firstName.charAt(i);\n }\n return key % 32;\n }", "org.hl7.fhir.CodeableConcept addNewName();", "public int hashCode()\n {\n return getName().hashCode();\n }", "static void shld_to_mem(String passed){\n\t\tint memo_address = hexa_to_deci(passed.substring(5));\n\t\tmemory.put(memo_address, registers.get('L'));\n\t\tmemo_address++;\n\t\tmemory.put(memo_address, registers.get('H'));\n\t}", "public final void mo7596sH(String str) {\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "public String doHash2(String str) {\n if(str.length() == 1) return \"-1\";\n\n String key = \"\";\n for (int i = 0; i < str.length() - 1; i++) {\n int val = str.charAt(i + 1) - str.charAt(i);\n if (val < 0) val = 26 + val;\n key += val + \"_\";\n }\n return key;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "protected static String convertHex( String base )\r\n\t{\r\n\t\treturn \"H\" + HexConvertor.convertHex( base.getBytes() ); \r\n\t}", "private int hash3(T key) { //last char + length of word\r\n char lastchar = key.toString().charAt( key.toString().length()-1 );\r\n return (lastchar + key.toString().length())%newTable.length;\r\n }", "@Override\n public int hashCode() {\n\n return Objects.hash(name, surname);\n }" ]
[ "0.5816796", "0.5635019", "0.5622899", "0.5613973", "0.55775535", "0.5544908", "0.5540764", "0.55279505", "0.5524406", "0.5522736", "0.55085427", "0.5493908", "0.5476806", "0.5459206", "0.5398391", "0.5395749", "0.53865314", "0.53737473", "0.5371436", "0.5370985", "0.5341058", "0.53072304", "0.52971965", "0.5293668", "0.5293668", "0.52880025", "0.5285601", "0.5268971", "0.5266142", "0.5259339", "0.5258048", "0.5254", "0.5247263", "0.5247263", "0.5240842", "0.52375835", "0.5237304", "0.52327025", "0.52231157", "0.5220459", "0.52137005", "0.52091986", "0.5204849", "0.517737", "0.51744986", "0.5172035", "0.5163257", "0.51630956", "0.51591384", "0.5148962", "0.51242864", "0.5121699", "0.51174426", "0.51150537", "0.51146036", "0.5094422", "0.5093217", "0.5087032", "0.50757337", "0.5062081", "0.5057951", "0.50441396", "0.5043848", "0.5040989", "0.5031151", "0.50286096", "0.5020293", "0.50202745", "0.50193435", "0.5016905", "0.5013917", "0.5009534", "0.5001911", "0.49998575", "0.49967346", "0.4985187", "0.4983041", "0.49811226", "0.4973126", "0.4971056", "0.49693882", "0.4964891", "0.49626076", "0.4957025", "0.49476597", "0.49448824", "0.49423605", "0.49419093", "0.49382856", "0.49381766", "0.49205306", "0.49180877", "0.49165437", "0.49049807", "0.49025568", "0.4902266", "0.49022195", "0.4898244", "0.48973367", "0.48943254", "0.4891435" ]
0.0
-1
This method hashes a full name to add shifted Unicode values .
public int hash2 ( String key ) { int hashVal = 0; if(key != null){ for( int i = 0; i < key.length(); i++ ) hashVal = (37 * hashVal) + key.charAt(i); //if(hashVal != 0) return hashVal % tableSize; //else // return 0; } else{ //System.out.println("Key is null"); return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}", "public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }", "public int hashCode(){\n return name.hashCode();\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "private static String hashWord(String word) {\n int[] counts = new int[26];\n for (char c : word.toCharArray()) { // O(c)\n counts[(int)c-97]++;\n }\n StringBuilder sb = new StringBuilder();\n for (int i : counts) { // O(26)\n sb.append(Integer.toString(i));\n }\n return sb.toString();\n }", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "public String getHashname(){\n\t\treturn sHashname;\n\t}", "public String doHash2(String str) {\n if(str.length() == 1) return \"-1\";\n\n String key = \"\";\n for (int i = 0; i < str.length() - 1; i++) {\n int val = str.charAt(i + 1) - str.charAt(i);\n if (val < 0) val = 26 + val;\n key += val + \"_\";\n }\n return key;\n }", "protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "public static String hash2(String uin , String vfwebqq){\n //todo\n }", "private static String HashIt(String token) {\n\t\tStringBuffer hexString = new StringBuffer();\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = digest.digest(token.getBytes(StandardCharsets.UTF_8));\n\t\t\t\n\t\t\t// Convert to hex\n\t\t for (int i = 0; i < hash.length; i++) {\n\t\t\t String hex = Integer.toHexString(0xff & hash[i]);\n\t\t\t if(hex.length() == 1) {\n\t\t\t \thexString.append('0');\n\t\t\t }\n\t\t\t hexString.append(hex);\n\t\t }\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t\thexString.setLength(0);\n\t\t}\n\t return hexString.toString();\t\t\n\t}", "private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "public void add2Hash( Hashtable h, String source ) {\n \n AstCursor c = new AstCursor();\n \n for ( c.FirstElement( this ); c.MoreElement(); c.NextElement() ) {\n Es es = ( Es ) c.node;\n es.add2Hash( h, source );\n }\n }", "public long APHash(String str) {\n\t\tlong hash = 0xAAAAAAAA;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif ((i & 1) == 0) {\n\t\t\t\thash ^= ((hash << 7) ^ str.charAt(i) * (hash >> 3));\n\t\t\t} else {\n\t\t\t\thash ^= (~((hash << 11) + str.charAt(i) ^ (hash >> 5)));\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}", "private static String expandUmlauts(String name) {\n return name.toLowerCase().replace(\"ä\", \"ae\").replace(\"ö\", \"oe\").replace(\"ü\", \"ue\");\n }", "static String hash(String motDePasse) {\n\t\tString encoded = null;\n\t\ttry {\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n\t byte[] hashInBytes = md.digest(motDePasse.getBytes(StandardCharsets.UTF_8));\n\n\t\t\t// bytes to hex\n\t StringBuilder sb = new StringBuilder();\n\t for (byte b : hashInBytes) {\n\t sb.append(String.format(\"%02x\", b));\n\t }\n\t encoded = sb.toString();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn encoded;\n\n\t\t\n\t}", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "private int hash3(T key) { //last char + length of word\r\n char lastchar = key.toString().charAt( key.toString().length()-1 );\r\n return (lastchar + key.toString().length())%newTable.length;\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "@Override\n public int hashCode() {\n\treturn getName().hashCode();\n }", "private String calulateHash() {\n\t\tsequence++; // increase the sequence to avoid 2 identical transactions having the same hash\n\t\treturn StringUtil.applySha256(StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value) + sequence);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tHashMap <Character, Integer> lhmap = new LinkedHashMap<Character, Integer>();\n\t\t\n\t\t\tString nom = \"Javier del Moral Asensio\";\n\t\t\tchar[] myName= nom.toLowerCase().toCharArray();\n\t\t\n\t\t//for loop to check characters one by one and sum it if are repeated\n\t\t\t\t\n\t\t\tfor(int c=0; c < nom.length(); c++) {\n\t\t\t\n\t\t\t\tint value=1;\n\t\t\n\t\t//if the char is new store it\n\t\t\t\t\n\t\t\t\tif(lhmap.containsKey(myName[c]) == false) {\n\t\t\t\t\tlhmap.put(myName[c], value);\n\t\t\t\t\t\n\t\t//if is not +1 to the original char\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tvalue = lhmap.get(myName[c]);\n\t\t\t\t\tlhmap.put(myName[c], value+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\tSystem.out.println(lhmap);\t\t\n\n\t}", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "public static void main(String[] args) {\n StringBuffer name = new StringBuffer(\"Abdulazeez Abdulazeez \");\n System.out.println(\"String Buffer of my name \" +name);\n // Supposing I need to add my middle name as an abbr.\n // I'll append it witht the .appendCodePoint() method.\n name.appendCodePoint(65);\n System.out.println(\"My full name after now: \" +name);\n }", "private String toSHA_256(String passName){\n\t\ttry {\n\t\t\tMessageDigest md=MessageDigest.getInstance(\"SHA-256\");\n\t\t\tmd.update(passName.getBytes(\"UTF-8\"));\n\t\t\tBigInteger bgInt=new BigInteger(md.digest());\n\t\t\treturn bgInt.toString();\n\t\t\t\n\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "private String hashToString(String warcName, HashMap<String, Integer> hash, boolean includeWARCname) {\n String result;\n if (includeWARCname)\n result = warcName + \"£\";\n else\n result = \"\";\n\n for (String key : hash.keySet())\n result = result + key + \"x\" + hash.get(key) + \"£\";\n\n //Remove trailing £\n result = result.substring(0, result.length() - 1);\n\n return result;\n }", "String getHash();", "String getHash();", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }", "public void printHash(String valu){\r\n /*\r\n Put A for Arrangers\r\n V for Vocalists\r\n C for Circles\r\n */\r\n String type=\"\";\r\n Map <Integer,String>TempMap=new HashMap();\r\n switch(valu){\r\n case \"A\":\r\n type=\"Arranger's\";\r\n TempMap.putAll(ArrangersMap);\r\n break;\r\n case \"V\":\r\n type=\"Vocalists's\";\r\n TempMap.putAll(VocalistsMap);\r\n break;\r\n case \"C\":\r\n type=\"Circle's\";\r\n TempMap.putAll(CirclesMap);\r\n break; \r\n }\r\n int counter=0;\r\n List<String> values=new ArrayList<>();\r\n for(int id:TempMap.keySet()){\r\n values.add(TempMap.get(id));\r\n }\r\n TempMap.clear();\r\n Collections.sort(values,Collator.getInstance());\r\n for(String val: values){\r\n val=val.trim();\r\n TempMap.put(counter, val.trim());\r\n //System.out.println(val);\r\n counter++;\r\n }\r\n for(int id:TempMap.keySet()){\r\n System.out.println(\"The \" + type+ \" name is: \"+TempMap.get(id)+ \" The id is:\"+id);\r\n }\r\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "public static int hashfunction(final String firstName) {\n int key = 0;\n for (int i = 0; i < firstName.length(); i++) {\n key += firstName.charAt(i);\n }\n return key % 32;\n }", "AlphabetNameReference createAlphabetNameReference();", "public int hashCode() {\n return name.hashCode();\n }", "@Override\r\n public int hashCode() {\r\n int hash = Objects.hashCode(name);\r\n return hash;\r\n }", "public int hashCode() {\n return name.hashCode();\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 89 * hash + Objects.hashCode(this.recipentQualifiedName);\n return hash;\n }", "@Override\n public int hashCode() {\n\n final int prime = 31;\n int result = 1;\n result = prime * result + name.hashCode();\n return result;\n }", "public static void hashMapEx() {\n\t\tString str = \"habiletechE\";\n\t\tstr = str.toLowerCase();\n\t\tchar[] ch = str.toCharArray();\n\t\tint size = ch.length;\n\n\t\tHashMap<Character, Integer> hmap = new HashMap<Character, Integer>();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif (!hmap.containsKey(ch[i]))\n\t\t\t\thmap.put(ch[i], 1);\n\t\t\telse {\n\t\t\t\tint val = hmap.get(ch[i]) + 1;\n\t\t\t\thmap.put(ch[i], val);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Duplicate Charaacters :\");\n\t\tfor (Map.Entry<Character, Integer> hm : hmap.entrySet()) {\n\t\t\tif (hm.getValue() > 1)\n\t\t\t\tSystem.out.println(hm.getKey() + \" \" + hm.getValue());\n\t\t}\n\t}", "public String mangle(String sName);", "java.lang.String getHashData();", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "@Override\n public int hashCode()\n {\n return new HashCodeBuilder(17, 31).\n append(_name).\n toHashCode();\n }", "static String hashSource(String source) {\n if (!source.endsWith(\"/\")) {\n source += \"/\";\n }\n Matcher m = Pattern.compile(\".+[/]([^/]+)[/]?\").matcher(source);\n BigInteger hash;\n try {\n hash = new BigInteger(1, MessageDigest.getInstance(\"SHA-1\").digest(source.getBytes(\"UTF-8\")));\n } catch (Exception x) {\n throw new AssertionError(x);\n }\n return String.format(\"%040X%s\", hash, m.matches() ? \"-\" + m.group(1) : \"\");\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "public long BPHash(String str) {\n\t\tlong hash = 0;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash = hash << 7 ^ str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "private String getOldPasswordHash(String password) {\n\t\tWhirlpool hasher = new Whirlpool();\n hasher.NESSIEinit();\n\n // add the plaintext password to it\n hasher.NESSIEadd(password);\n\n // create an array to hold the hashed bytes\n byte[] hashed = new byte[64];\n\n // run the hash\n hasher.NESSIEfinalize(hashed);\n\n // this stuff basically turns the byte array into a hexstring\n java.math.BigInteger bi = new java.math.BigInteger(hashed);\n String hashedStr = bi.toString(16); // 120ff0\n if (hashedStr.length() % 2 != 0) {\n // Pad with 0\n hashedStr = \"0\"+hashedStr;\n }\n return hashedStr;\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(name);\n }", "void hashLexicons() {\n for (int i = 0; i < trainingData.hamEmails.length; i++) {\n hashLexicons(trainingData.hamEmails[i]);\n }\n for (int i = 0; i < trainingData.spamEmails.length; i++) {\n hashLexicons(trainingData.spamEmails[i]);\n }\n }", "public static String m3184a(String str) {\n if (str == null) {\n return null;\n }\n try {\n MessageDigest.getInstance(\"SHA-256\").update(str.getBytes(\"UTF-8\"));\n str = String.format(Locale.US, \"%064x\", new Object[]{new BigInteger(1, r1.digest())});\n } catch (Exception e) {\n C0784a.m3252a(C0766d.class, e);\n str = null;\n }\n return str;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic long getHashCode(String key) {\n\t\tlong hash = 0;\n\t\tlong b = 378551;\n\t\tlong a = 63689;\n\t\tint tmp = 0;\n\t\tfor (int i = 0; i < key.length(); i++) {\n\t\t\ttmp = key.charAt(i);\n\t\t\thash = hash * a + tmp;\n\t\t\ta *= b;\n\t\t}\n\t\treturn hash;\n\t}", "private static String getUniNameOfCodePoint(int codePoint) {\n/* 111 */ String hex = Integer.toString(codePoint, 16).toUpperCase(Locale.US);\n/* 112 */ switch (hex.length()) {\n/* */ \n/* */ case 1:\n/* 115 */ return \"uni000\" + hex;\n/* */ case 2:\n/* 117 */ return \"uni00\" + hex;\n/* */ case 3:\n/* 119 */ return \"uni0\" + hex;\n/* */ } \n/* 121 */ return \"uni\" + hex;\n/* */ }", "public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }", "int hash(String makeHash, int mod);", "private void put(String asciiChange, String asciiChange2) {\n\t\t\t\r\n\t\t}", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "public static void main(String[] args) throws IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"3.in\"));\n\t\tint base = 26;\n\t\tlong subHash = 0;\n\t\tstring = br.readLine();\n\t\tsubstring = br.readLine();\n\t\tSystem.out.println(substring.length());\n\t\tfor (int i = 0; i < substring.length(); i++)\n\t\t{\n\t\t\tstring = \"`\" + string;\n\t\t\tsubHash += Math.pow(base, substring.length()-1-i)*(substring.charAt(i)-96);\n\t\t}\n\t\thashes = new long[string.length()];\n\t\t//rolling hash\n\t\tlong prevHash = 0;\n\t\tlong hash;\n\t\tlong subtract;\n\t\tfor (int i = 0; i < string.length()-substring.length(); i++)\n\t\t{\n\t\t\tsubtract = (long) ((string.charAt(i)-96)*Math.pow(base, substring.length()-1));\n\t\t\thash = (long) (26*(prevHash - subtract) + (string.charAt(i + substring.length())-96));\n\t\t\thashes[i+1] = hash;\n\t\t\tif (hash == subHash)\n\t\t\t{\n\t\t\t\tstring = string.substring(0, i+1) + string.substring(i+1+substring.length());\n\t\t\t\ti -= substring.length();\n\t\t\t\tif (i < 0) i = -1;\n\t\t\t}\n\t\t\tprevHash = hashes[i+1];\n\t\t\tSystem.out.println(hash);\n\t\t}\n\t\t\n\t\t/*for (long el: hashes)\n\t\t\tSystem.out.println(el);\n\t\tSystem.out.println(subHash);*/\n\t\tSystem.out.println(string.substring(substring.length()));\n\t\t\n\t\t\n\t\t//PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"censor.out\")));\n\t\t//pw.println(string.substring(substring.length()));\n\t\t//pw.close();\n\t}", "public static String createCommonName(List<String> hashes) {\n int[] nums = new int[SIZE_DBHASH];\n char[] valids = VALID_DBHASH_CHARS.toCharArray();\n StringBuilder sb = new StringBuilder();\n\n for (String hash : hashes) {\n char[] cur = hash.toCharArray();\n for (int i = 0; i < SIZE_DBHASH; i++)\n nums[i] += cur[i];\n }\n\n for (int num : nums)\n sb.append(valids[num % valids.length]);\n\n return sb.toString();\n }", "static void shld_to_mem(String passed){\n\t\tint memo_address = hexa_to_deci(passed.substring(5));\n\t\tmemory.put(memo_address, registers.get('L'));\n\t\tmemo_address++;\n\t\tmemory.put(memo_address, registers.get('H'));\n\t}", "public static void main(String[] args) throws NoSuchAlgorithmException {\n String text = \"Hello World\";\n System.out.println(\"Исходный текст : \" + text);\n MessageDigest sha1 = MessageDigest.getInstance(\"MD5\");\n byte[] bytes = sha1.digest(text.getBytes());\n StringBuilder stringBuilder = new StringBuilder();\n for (byte b : bytes){\n stringBuilder.append(String.format(\"%02X \", b)); //конверитрую в 16-ричку\n }\n System.out.print(\"Хеш-код : \" + stringBuilder.toString());\n }", "@Override\r\n\tpublic String desencriptar(String string) {\n\r\n\t\tString palabra = string;\r\n\t\tString[] parts = string.split(\",\");\r\n String newName=\"\";\r\n for (int i = 0; i < parts.length; i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (parts[i]) \r\n {\r\n case \"1\" : newName+=\"a\";\r\n break;\r\n case \"2\" : newName+=\"b\";\r\n break;\r\n case \"3\" : newName+=\"c\";\r\n break;\r\n case \"4\" : newName+=\"d\";\r\n break;\r\n case \"5\" : newName+=\"e\";\r\n break;\r\n case \"6\" : newName+=\"f\";\r\n break;\r\n case \"7\" : newName+=\"g\";\r\n break;\r\n case \"8\" : newName+=\"h\";\r\n break;\r\n case \"9\" : newName+=\"i\";\r\n break;\r\n case \"10\" : newName+=\"j\";\r\n break;\r\n case \"11\" : newName+=\"k\";\r\n break;\r\n case \"12\" : newName+=\"l\";\r\n break;\r\n case \"13\" : newName+=\"m\";\r\n break;\r\n case \"14\" : newName+=\"n\";\r\n break;\r\n case \"15\" : newName+=\"ñ\";\r\n break;\r\n case \"16\" : newName+=\"o\";\r\n break;\r\n case \"17\" : newName+=\"p\";\r\n break;\r\n case \"18\" : newName+=\"q\";\r\n break;\r\n case \"19\" : newName+=\"r\";\r\n break;\r\n case \"20\" : newName+=\"s\";\r\n break;\r\n case \"21\" : newName+=\"t\";\r\n break;\r\n case \"22\" : newName+=\"u\";\r\n break;\r\n case \"23\" : newName+=\"v\";\r\n break;\r\n case \"24\" : newName+=\"w\";\r\n break;\r\n case \"25\" : newName+=\"x\";\r\n break;\r\n case \"26\" : newName+=\"y\";\r\n break;\r\n case \"27\" : newName+=\"z\";\r\n break;\r\n case \"0\" : newName+=\" \";\r\n break;\r\n case \"28\" : newName+=\" \";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n return newName ;\r\n\t}", "public int hashCode(){\n int hashcode = name == null ? 0 : name.hashCode() / 2;\n return hashcode += ( value == null ? 0 : value.hashCode()/2 );\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hashCode(this.name);\n\t}", "public long JSHash(String str) {\n\t\tlong hash = 1315423911;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash ^= ((hash << 5) + str.charAt(i) + (hash >> 2));\n\t\t}\n\n\t\treturn hash;\n\t}", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "public String mo34971a() {\n return \"SHA-384\";\n }", "@Override\n public final int hashCode() {\n return name != null ? name.hashCode() : 0;\n }", "@Override\n public int hashCode() {\n return getName().hashCode();\n }", "public int hashCode() {\n int result = 6;\n result = 31 * result * name.hashCode();\n return result;\n }", "public void unicode(String hex) {\n text.append(\"\\\\\" + \"u\").append(hex);\n }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "private String calculateHash() {\n\n // Increments the sequence to prevent two transactions from having identical keys.\n sequence++;\n return StringUtil.applySha256(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recipient) +\n Float.toString(value) +\n sequence\n );\n }", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }", "@Override\n public int hashCode() {\n return String.valueOf(this).hashCode();\n }", "int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}", "int findHash(String name, int level, int child) {\n if(level == 1 && child == 1)\n child = 5;\n int hash = 0;\n for(char c: name.toCharArray()) {\n if((int)c >= 65 && (int)c<= 90) {\n hash += (int)c - 64;\n }\n else if((int)c >= 97 && (int)c<= 122)\n hash += (int)c - 96;\n }\n hash += level + child;\n\n return hash%7;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your word :\");\n String word = scanner.nextLine();\n word = word.toUpperCase();\n// word = Character.toString((char)(word.charAt(0)-32));\n String word1 =Character.toString(word.charAt(0));\n word = word.toLowerCase();\n for (int i = 1; i <word.length() ; i++) {\n word1 += Character.toString(word.charAt(i));\n }\n System.out.println(word1);\n }", "private String hashPassword(String toHash) {\r\n PasswordEncoder passwordEncoder = new Sha256PasswordEncoder(salt);\r\n return passwordEncoder.encode(toHash);\r\n }", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "private static String scramble(String text) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-1\");\n md.update(text.getBytes(\"UTF-8\"));\n StringBuffer sb = new StringBuffer();\n for (byte b : md.digest()) sb.append(Integer.toString(b & 0xFF, 16));\n return sb.toString();\n } catch (UnsupportedEncodingException e) {\n return null;\n } catch (NoSuchAlgorithmException e) {\n return null;\n }\n }", "private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }", "public static String utf8strToHexStr_Slash_U(String multlangStr) throws Exception {\n\t\tProperties profile = new Properties();\n\t\tint strLen = multlangStr.length();\n\t\tString resultStr = \"\";\n\t\tfor (int i= 0; i< strLen ; i++) {\n\t\t\tint intChar = multlangStr.codePointAt(i);\n\t\t\tString strChar = \"\\\\u\" + Integer.toHexString(intChar) ;\n\t\t\tresultStr = resultStr + strChar;\n\t\t}\n\t\treturn resultStr;\n\t}", "@Override\r\n\tpublic String encriptar(String string) {\n\r\n \r\n String newName=\"\";\r\n for (int i = 0; i < string.length(); i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (string.charAt(i)) \r\n {\r\n case 'a' : newName+=\"1,\";\r\n break;\r\n case 'b' : newName+=\"2,\";\r\n break;\r\n case 'c' : newName+=\"3,\";\r\n break;\r\n case 'd' : newName+=\"4,\";\r\n break;\r\n case 'e' : newName+=\"5,\";\r\n break;\r\n case 'f' : newName+=\"6,\";\r\n break;\r\n case 'g' : newName+=\"7,\";\r\n break;\r\n case 'h' : newName+=\"8,\";\r\n break;\r\n case 'i' : newName+=\"9,\";\r\n break;\r\n case 'j' : newName+=\"10,\";\r\n break;\r\n case 'k' : newName+=\"11,\";\r\n break;\r\n case 'l' : newName+=\"12,\";\r\n break;\r\n case 'm' : newName+=\"13,\";\r\n break;\r\n case 'n' : newName+=\"14,\";\r\n break;\r\n case 'ñ' : newName+=\"15,\";\r\n break;\r\n case 'o' : newName+=\"16,\";\r\n break;\r\n case 'p' : newName+=\"17,\";\r\n break;\r\n case 'q' : newName+=\"18,\";\r\n break;\r\n case 'r' : newName+=\"19,\";\r\n break;\r\n case 's' : newName+=\"20,\";\r\n break;\r\n case 't' : newName+=\"21,\";\r\n break;\r\n case 'u' : newName+=\"22,\";\r\n break;\r\n case 'v' : newName+=\"23,\";\r\n break;\r\n case 'w' : newName+=\"24,\";\r\n break;\r\n case 'x' : newName+=\"25,\";\r\n break;\r\n case 'y' : newName+=\"26,\";\r\n break;\r\n case 'z' : newName+=\"27,\";\r\n break;\r\n case ' ' : newName+=\"0,\";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n String palabraFinal= eliminarComaSi(newName);\r\n return palabraFinal;\r\n\t}", "public final void mo7596sH(String str) {\n }", "static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }", "protected static String convertHex( String base )\r\n\t{\r\n\t\treturn \"H\" + HexConvertor.convertHex( base.getBytes() ); \r\n\t}" ]
[ "0.62151104", "0.60733813", "0.58542824", "0.58368516", "0.57474416", "0.57222104", "0.5709741", "0.5696965", "0.5666581", "0.5661625", "0.5647868", "0.56451786", "0.56407416", "0.56095576", "0.5580243", "0.55683666", "0.55549943", "0.55507463", "0.55376995", "0.55181444", "0.55099475", "0.5486208", "0.5484783", "0.54815483", "0.5479867", "0.5474578", "0.5470878", "0.5466029", "0.5458721", "0.54534614", "0.544379", "0.5435467", "0.54311943", "0.5421938", "0.5421938", "0.54150265", "0.539852", "0.5376714", "0.53755474", "0.5365489", "0.5365489", "0.5359008", "0.53572553", "0.5355222", "0.5354359", "0.5354133", "0.5350926", "0.5346511", "0.53424495", "0.53353184", "0.5333997", "0.5333857", "0.5333294", "0.5328947", "0.5327749", "0.531641", "0.5316301", "0.5316228", "0.53128785", "0.5297871", "0.52870977", "0.52853227", "0.52853227", "0.52735853", "0.5269715", "0.52672833", "0.5263578", "0.5261855", "0.52539855", "0.5251315", "0.5249031", "0.5242015", "0.52415", "0.52380705", "0.5234837", "0.5226953", "0.5212808", "0.5211676", "0.51976746", "0.51921976", "0.5189345", "0.5182211", "0.5179647", "0.5177175", "0.5171771", "0.51663214", "0.5161078", "0.51600194", "0.51548094", "0.5152279", "0.5150834", "0.51502836", "0.51466256", "0.5139904", "0.51316476", "0.51289093", "0.51243967", "0.5118193", "0.5107446", "0.5107022", "0.51066744" ]
0.0
-1
A faster hash function that takes advantage of overflow
public int hash3 ( String key ) { int hashVal = 0; if(key != null){ for( int i = 0; i < key.length(); i++ ){ hashVal = (37 * hashVal) + key.charAt(i);} hashVal %= tableSize; if(hashVal<0) hashVal += tableSize; if(hashVal != 0) return hashVal; else return 0; } else { //System.out.println("Key is null"); return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int _hash(int maximum);", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public int hash(T input);", "private static int computeHash(int par0)\n {\n par0 ^= par0 >>> 20 ^ par0 >>> 12;\n return par0 ^ par0 >>> 7 ^ par0 >>> 4;\n }", "int hash(String makeHash, int mod);", "int getHash();", "protected int myhash(T x)\r\n\t{\r\n\t\tint hashVal = x.hashCode( );\r\n\t\thashVal %= tableSize;\r\n\t\tif( hashVal < 0 )\r\n\t\t\thashVal += tableSize;\r\n\t\treturn hashVal;\r\n\t}", "long hash(Block block, int position);", "private int hash(T x)\n {\n // calcolo della chiave ridotta - eventualmente negativa\n int h = x.hashCode() % v.length;\n\n // calcolo del valore assoluto\n if (h < 0)\n h = -h;\n \n return h; \n }", "private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "static int getHash(long key) {\n int hash = (int) ((key >>> 32) ^ key);\n // a supplemental secondary hash function\n // to protect against hash codes that don't differ much\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = (hash >>> 16) ^ hash;\n return hash;\n }", "public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "static int hash(long sum) {\n return (int) (sum) >>> 7;\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "public abstract int doHash(T t);", "public int hashcode();", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "private static <K> int getHash(K k) {\n final int kh = k.hashCode();\n return (kh ^ (kh >>> 16)) & 0x7FFFFFFF; \n }", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "int computeHashCode(byte val);", "public int getHash(int key, int i, int max);", "private int hashFunc2(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n // Research shows that you can use a Prime number Less than the array size to calculate the step value.\n // Prime Number 3 arbitrarily chosen.\n return 3 - hashVal % 3;\n }", "private static void smallHash(long[] src, int offset, int lengthBytes, long[] seedResult) {\n\t\t\n\t\t/*\n\t\t * Most of the awkwardness in this code, such as the use of\n\t\t * individual local variables for the internal state vector\n\t\t * (h0, h1, h2, h3) rather than an array, is the result of performance tuning.\n\t\t * \n\t\t * See Bob Jenkins' description for discussion of the computation itself.\n\t\t */\n\t\tlong h0, h1, h2, h3;\n\t\th0 = seedResult[0];\n\t\th1 = seedResult[1];\n\t\th2 = ARBITRARY_BITS;\n\t\th3 = ARBITRARY_BITS;\n\t\t\n\t\tint remainingBytes = lengthBytes;\n\t\tint pos = offset;\n\n\t\t/*\n\t\t * Consume any complete 32-byte blocks\n\t\t */\n\t\twhile (remainingBytes >= 32) {\n\t\t\th2 += src[pos++];\n\t\t\th3 += src[pos++];\n\t\t\t\n\t h2 = (h2 << 50) | (h2 >>> 14); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 52) | (h3 >>> 12); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 30) | (h0 >>> 34); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 41) | (h1 >>> 23); h1 += h2; h3 ^= h1;\n\t h2 = (h2 << 54) | (h2 >>> 10); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 48) | (h3 >>> 16); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 38) | (h0 >>> 26); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 37) | (h1 >>> 27); h1 += h2; h3 ^= h1;\n\t h2 = (h2 << 62) | (h2 >>> 2); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 34) | (h3 >>> 30); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 5) | (h0 >>> 59); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 36) | (h1 >>> 28); h1 += h2; h3 ^= h1;\t\n\t\t\t\n\t\t\th0 += src[pos++];\n\t\t\th1 += src[pos++];\n\t\t\tremainingBytes -= 32;\n\t\t}\n\t\t\n\t\tif (remainingBytes >= 16) {\n\t\t\th2 += src[pos++];\n\t\t\th3 += src[pos++];\n\t\t\tremainingBytes -= 16;\n\n\t h2 = (h2 << 50) | (h2 >>> 14); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 52) | (h3 >>> 12); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 30) | (h0 >>> 34); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 41) | (h1 >>> 23); h1 += h2; h3 ^= h1;\n\t h2 = (h2 << 54) | (h2 >>> 10); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 48) | (h3 >>> 16); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 38) | (h0 >>> 26); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 37) | (h1 >>> 27); h1 += h2; h3 ^= h1;\n\t h2 = (h2 << 62) | (h2 >>> 2); h2 += h3; h0 ^= h2;\n\t h3 = (h3 << 34) | (h3 >>> 30); h3 += h0; h1 ^= h3;\n\t h0 = (h0 << 5) | (h0 >>> 59); h0 += h1; h2 ^= h0;\n\t h1 = (h1 << 36) | (h1 >>> 28); h1 += h2; h3 ^= h1;\t\n\n\t\t}\n\t\t\n\t\tassert remainingBytes < 16;\n\t\t/*\n\t\t * Incorporate the buffer length into the hash result.\n\t\t */\n\t\th3 += ((long)(lengthBytes)) << 56;\n\n\t\tif (remainingBytes >= 8) {\n\t\t\th2 += src[pos++];\n\t\t\tremainingBytes -= 8;\n\t\t\tif (remainingBytes > 0) {\n\t\t\t\t/*\n\t\t\t\t * Mask off (zero-fill) the bytes that aren't payload.\n\t\t\t\t */\n\t\t\t\tlong mask = (1L << (remainingBytes << 3)) - 1;\n\t\t\t\th3 += src[pos] & mask;\n\t\t\t}\n\t\t} else if (remainingBytes > 0) {\n\t\t\t/*\n\t\t\t * Mask off (zero-fill) the bytes that aren't payload.\n\t\t\t */\n\t\t\tlong mask = (1L << (remainingBytes << 3)) - 1;\n\t\t\th2 += src[pos] & mask;\n\t\t} else {\n\t\t\th2 += ARBITRARY_BITS;\n\t\t\th3 += ARBITRARY_BITS;\t\t\t\n\t\t}\n\n h3 ^= h2; h2 = (h2 << 15) | (h2 >>> 49); h3 += h2;\n h0 ^= h3; h3 = (h3 << 52) | (h3 >>> 12); h0 += h3;\n h1 ^= h0; h0 = (h0 << 26) | (h0 >>> 38); h1 += h0;\n h2 ^= h1; h1 = (h1 << 51) | (h1 >>> 13); h2 += h1;\n h3 ^= h2; h2 = (h2 << 28) | (h2 >>> 36); h3 += h2;\n h0 ^= h3; h3 = (h3 << 9) | (h3 >>> 55); h0 += h3;\n h1 ^= h0; h0 = (h0 << 47) | (h0 >>> 17); h1 += h0;\n h2 ^= h1; h1 = (h1 << 54) | (h1 >>> 10); h2 += h1;\n h3 ^= h2; h2 = (h2 << 32) | (h2 >>> 32); h3 += h2;\n h0 ^= h3; h3 = (h3 << 25) | (h3 >>> 39); h0 += h3;\n h1 ^= h0; h0 = (h0 << 63) | (h0 >>> 1); h1 += h0;\n\t\t\n seedResult[0] = h0;\n seedResult[1] = h1;\n\t}", "public int hash1(int x)\n {\n return ((a1*(x)+b1)%n);\n }", "public int computeHash(int key){\n int hashValue = 0;\n hashValue = getHashCode(key);\n return hashValue % tableSize;\n }", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "public static long FNVhash64(long val) {\n // from http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash\n long hashval = FNV_offset_basis_64;\n\n for (int i = ZERO_UNDEF; i < 8; i++) {\n long octet = val & 0x00ff;\n val = val >> 8;\n\n hashval = hashval ^ octet;\n hashval = hashval * FNV_prime_64;\n // hashval = hashval ^ octet;\n }\n return Math.abs(hashval);\n }", "public abstract int getHash();", "int hashCode();", "int hashCode();", "private int rehash(int hash) {\n final int h = hash * 0x9E3779B9;\n return h ^ (h >> 16);\n }", "public int hash1 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal += key.charAt(i);\n \n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0 ;\n }\n\n }", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "private int hashFunc1(String word) {\n int hashVal = word.hashCode();\n hashVal = hashVal % arraySize;\n\n // Java can return negative vals with hashCode() it's biggg so need to check for this\n if (hashVal < 0) {\n hashVal += arraySize;\n }\n\n return hashVal; // Idea index position we'd like to insert or search in\n }", "public int hash2(int x)\n {\n return ((a2*(x)+b2)%n);\n }", "private int hash1(K key) {\n int h = 0;\n int seed = 31;//素数\n String s = key.toString();\n for (int i = 0; i != s.length(); ++i) {\n h = seed * h + s.charAt(i);\n }\n return h % length;\n }", "private String hash(){\r\n return Utility.SHA512(this.simplify());\r\n }", "public int hashCode(String s){\r\n int length = s.length();\r\n int h = 0;\r\n for(int i = 0; i < length; i++){\r\n h = h + ((int)s.indexOf(i))*(37^(length - 1));\r\n }\r\n return h;\r\n }", "private int computeHash(int key) {\n assert((table.length & (table.length - 1)) == 0);\n return key & (table.length - 1);\n }", "private int hash(Handle[] myTable,\n String toHash) {\n\n int intLength = toHash.length() / 4;\n long sum = 0;\n for (int j = 0; j < intLength; j++) {\n char[] c = toHash.substring(j * 4, (j * 4) + 4)\n .toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n } // end inner for\n } // end outer for\n char[] c = toHash.substring(intLength * 4).toCharArray();\n long mult = 1;\n for (int k = 0; k < c.length; k++) {\n sum += c[k] * mult;\n mult *= 256;\n }\n return (int) (Math.abs(sum) % myTable.length);\n }", "private int calculateHash(int id, String uri) {\n\t\treturn uri.hashCode() * Constants.HASH_PRIMES[0]\n\t\t\t\t+ Integer.toString(id).hashCode() * Constants.HASH_PRIMES[1];\n\t}", "String getHash();", "String getHash();", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public int hash( int tableSize )\n {\n if( value < 0 )\n return -value % tableSize;\n else\n return value % tableSize;\n }", "@Override\n\tpublic int hash(String item) {\n\t\tlong hashCode = 0l;\n\t\tchar[] c = item.toCharArray();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\thashCode += c[i] * Math.pow(31, c.length - (i + 1));\n\t\t}\n\t\tint i = (int) hashCode % 2147483647;\n\n\t\n\t\treturn Math.abs(i);\n\t\t\n\t}", "public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % keys.length;\n }", "public int nextHashForEqual() {\n\t/* This actually needs to roll over the UInt32 limit. */\n\tmyCount = myCount + 1;\n\treturn myCount;\n/*\nudanax-top.st:16757:FakePacker methodsFor: 'shepherds'!\n{UInt32} nextHashForEqual\n\t\"Shepherds use a sequence number for their hash. Return the next one\n\t and increment. This should actually spread the hashes.\"\n\t\"This actually needs to roll over the UInt32 limit.\"\n\tmyCount _ myCount + 1.\n\t^ myCount!\n*/\n}", "@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "@JRubyMethod(name = \"hash\")\n @Override\n public RubyFixnum hash() {\n return getRuntime().newFixnum((int)(((dt.getMillis() / 1000) ^ microseconds()) << 1) >> 1);\n }", "private static BigInteger Hash(String term, int printBits)\n {\n BigInteger baseHash = new BigInteger(\"14695981039346656037\");\n Long seed = 1099511628211L;\n long hash_mod = (long)java.lang.Math.pow(2, printBits);\n for(int i = 0; i < term.length(); i++) {\n baseHash = baseHash.multiply(new BigInteger(seed.toString())).remainder(new BigInteger(hash_mod+\"\"));\n baseHash = baseHash.xor(BigInteger.valueOf((long)term.charAt(i)));\n }\n return baseHash;\n }", "@Override\n public int hashCode() {\n long longBits = Double.doubleToLongBits(this.size + this.unit.hashCode());\n return (int) (longBits ^ (longBits >>> 32));\n }", "public static int nullSafeHashCode(byte[] array) {\r\n if (array == null) {\r\n return 0;\r\n }\r\n int hash = INITIAL_HASH;\r\n int arraySize = array.length;\r\n for (int i = 0; i < arraySize; i++) {\r\n hash = MULTIPLIER * hash + array[i];\r\n }\r\n return hash;\r\n }", "public static int hash(double value)\r\n/* 15: */ {\r\n/* 16: 57 */ return new Double(value).hashCode();\r\n/* 17: */ }", "String getHashAlgorithm();", "public int hash(String item);", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "String hash(String input) throws IllegalArgumentException, EncryptionException;", "public int hash(String key){\r\n\t\tint i;\r\n\t\tint v = 0;\r\n\t\tfor(i = 0; i < key.length(); i++)\r\n\t\t\tv += key.charAt(i);\r\n\t\treturn v % M;\r\n\t}", "@Test\n public void testHash() {\n // the hash function does sha256, but I guess I don't care about implementation\n // test if two things hash to same value\n logger.trace(\"Equal strings hash to same value\");\n String hash1 = Util.hash(\"foobar\");\n String hash2 = Util.hash(\"foobar\");\n Assert.assertEquals(hash1, hash2);\n\n // test if different things hash to different value\n logger.trace(\"Unequal strings hash to different value\");\n hash1 = Util.hash(\"foobar\");\n hash2 = Util.hash(\"barfoo\");\n Assert.assertNotEquals(hash1, hash2);\n\n // test if hash length > 5 (arbitrary)\n logger.trace(\"Hash is of sufficient length to avoid collisions\");\n hash1 = Util.hash(\"baz\");\n final int length = hash1.length();\n Assert.assertTrue(length > 5);\n }", "public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public static int hash(String key) {\n int result = 1;\n\n for (int i=0; i<key.length(); ++i) {\n char c = key.charAt(i);\n int c_int = (int) c; //Gjør om ved å bruke ascii-tabellen ('A' = 65, ...\n\n result = (result*31) + c_int;\n }\n\n if (result < 0) {\n result = result * -1;\n }\n\n return result;\n }", "public int hashCode()\r\n\t{\n\t\treturn (i % 9); //this will make the values to store in the table based on size of hashtable is 9 and calculation will be (i %9)\r\n\t}", "private int hash(Key key) {\n\t\treturn (key.hashCode() & 0x7fffffff) % M;\n\t}", "private int hash (k key) {\n\t\treturn Math.abs(key.hashCode())\t% buckets.length;\n\t}", "@Override\n\tpublic double[] hash(int[] p) {\n\t\tint N = p.length;\n\t\tdouble[] g = new double[N];\n\t\tfor (int k = 0; k < N; k++) {\t\t// dimension k\n\t\t\tint h = h8(p, k + seed);\n\t\t\tg[k] = (double) (h & 0xFF) / 0xFF;\n\t\t}\n\t\treturn g;\n\t}", "public int hashCode() {\n int h = 0;\n for (int j = realSize(), i = 0, t = 0; j-- != 0; ) {\n while (((key[i]) == ((char) 0)))\n i++;\n t = (key[i]);\n t ^= (value[i]);\n h += t;\n i++;\n }\n // Zero / null keys have hash zero.\n if (containsNullKey) h += (value[n]);\n return h;\n }", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "public int hashFunction(int key){\r\n return (int) Math.floor((constFactor*key - Math.floor(constFactor*key)) * Math.pow(2,electionTable.length));\r\n }", "private int hash1(T key) {\n return (key.toString().charAt(0) + key.toString().length())%newTable.length;\r\n }", "public static int nullSafeHashCode(char[] array) {\r\n if (array == null) {\r\n return 0;\r\n }\r\n int hash = INITIAL_HASH;\r\n int arraySize = array.length;\r\n for (int i = 0; i < arraySize; i++) {\r\n hash = MULTIPLIER * hash + array[i];\r\n }\r\n return hash;\r\n }", "public static long hashName(String name) {\n\t\t\tlong res = 123;\n\t\t\tfor (int i = 0; i < name.length(); ++i) {\n\t\t\t\tres = (res << 8) | (res >>> 56);\n\t\t\t\tres += name.charAt(i);\n\t\t\t\tif ((res & 1) == 0) {\n\t\t\t\t\tres ^= 0x00000000feabfeabL; // Some kind of feedback\n\t\t\t\t}\n\t\t\t}\n\t\t\tres |= 0x8000000000000000L; // Make sure the hash is negative (to distinguish it from database id's)\n\t\t\treturn res;\n\t\t}", "final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }", "private static String hashWord(String word) {\n int[] counts = new int[26];\n for (char c : word.toCharArray()) { // O(c)\n counts[(int)c-97]++;\n }\n StringBuilder sb = new StringBuilder();\n for (int i : counts) { // O(26)\n sb.append(Integer.toString(i));\n }\n return sb.toString();\n }", "private int hash(String string) {\n\t\tint hash = 0;\n\t\tint temp = 0;\n\n\t\tfor (byte b : string.toLowerCase().getBytes(StandardCharsets.US_ASCII)) {\n\t\t\thash = (hash << 4) + b;\n\t\t\ttemp = hash & 0xF0000000;\n\n\t\t\tif (temp != 0) {\n\t\t\t\thash = hash ^ (temp >>> 24);\n\t\t\t\thash = hash ^ temp;\n\t\t\t}\n\t\t}\n\n\t\treturn hash;\n\t}", "int baseHash(int hashKey,int length)\n\t{\n\t\tdouble constant = (Math.sqrt(3) - 1);\n\t\tint base = (int) Math.floor((length * ((constant* hashKey) - Math.floor(constant* hashKey)))); \n\t\treturn base; //mod value is not applied at the base hashLevel. It is in the insert/find/reinset respectively\n\t}", "static int hash(Integer key) {\n int h;\n return (key == null) ? 0 : (h = key.hashCode()) ^ (h >>> 16);\n }", "protected static int hashCodeLong(long value)\n {\n return (int) (value ^ (value >>> 32));\n }", "@Override\n\tpublic int hashCode() {\n\t\tint karprabin = 0;\n\t\tfinal int B = 31;\n\t\tfor (int k = 0; k < this.actualsizeinwords; ++k) {\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] & ((1l << 32) - 1));\n\t\t\tkarprabin += B * karprabin + (this.buffer[k] >>> 32);\n\t\t}\n\t\treturn this.sizeinbits ^ karprabin;\n\t}", "private byte[] SHA256hash(byte[] tobeHashed){\r\n\t\tSHA256Digest digester=new SHA256Digest(); \r\n\t\tbyte[] retValue=new byte[digester.getDigestSize()]; \r\n\t\tdigester.update(tobeHashed, 0, tobeHashed.length); \r\n\t\tdigester.doFinal(retValue, 0);\r\n\t return retValue; \r\n}", "@Override\n public long applyAsLong(BytesStore bytes, @NonNegative long length) throws IllegalStateException, BufferUnderflowException {\n long hash;\n long remaining = length;\n long off = bytes.readPosition();\n\n if (remaining >= 32) {\n long v1 = seed + P1 + P2;\n long v2 = seed + P2;\n long v3 = seed;\n long v4 = seed - P1;\n\n do {\n v1 += fetch64(bytes, off) * P2;\n v1 = Long.rotateLeft(v1, 31);\n v1 *= P1;\n\n v2 += fetch64(bytes, off + 8) * P2;\n v2 = Long.rotateLeft(v2, 31);\n v2 *= P1;\n\n v3 += fetch64(bytes, off + 16) * P2;\n v3 = Long.rotateLeft(v3, 31);\n v3 *= P1;\n\n v4 += fetch64(bytes, off + 24) * P2;\n v4 = Long.rotateLeft(v4, 31);\n v4 *= P1;\n\n off += 32;\n remaining -= 32;\n } while (remaining >= 32);\n\n hash = Long.rotateLeft(v1, 1)\n + Long.rotateLeft(v2, 7)\n + Long.rotateLeft(v3, 12)\n + Long.rotateLeft(v4, 18);\n\n v1 *= P2;\n v1 = Long.rotateLeft(v1, 31);\n v1 *= P1;\n hash ^= v1;\n hash = hash * P1 + P4;\n\n v2 *= P2;\n v2 = Long.rotateLeft(v2, 31);\n v2 *= P1;\n hash ^= v2;\n hash = hash * P1 + P4;\n\n v3 *= P2;\n v3 = Long.rotateLeft(v3, 31);\n v3 *= P1;\n hash ^= v3;\n hash = hash * P1 + P4;\n\n v4 *= P2;\n v4 = Long.rotateLeft(v4, 31);\n v4 *= P1;\n hash ^= v4;\n hash = hash * P1 + P4;\n } else {\n hash = seed + P5;\n }\n\n hash += length;\n\n while (remaining >= 8) {\n long k1 = fetch64(bytes, off);\n k1 *= P2;\n k1 = Long.rotateLeft(k1, 31);\n k1 *= P1;\n hash ^= k1;\n hash = Long.rotateLeft(hash, 27) * P1 + P4;\n off += 8;\n remaining -= 8;\n }\n\n if (remaining >= 4) {\n hash ^= fetch32(bytes, off) * P1;\n hash = Long.rotateLeft(hash, 23) * P2 + P3;\n off += 4;\n remaining -= 4;\n }\n\n while (remaining != 0) {\n hash ^= fetch8(bytes, off) * P5;\n hash = Long.rotateLeft(hash, 11) * P1;\n --remaining;\n ++off;\n }\n\n return finishUp(hash);\n }", "int getClientHashLength();", "public int hashCode() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[28]++;\r\n long start = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[29]++;\r\n long end = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[30]++;\r\n int result = 97;\r\n result = 31 * result + ((int) (start ^ (start >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[31]++;\r\n result = 31 * result + ((int) (end ^ (end >>> 32)));\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[32]++;\r\n result = 31 * result + getChronology().hashCode();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[33]++;\r\n return result;\r\n }", "public long BPHash(String str) {\n\t\tlong hash = 0;\n\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\thash = hash << 7 ^ str.charAt(i);\n\t\t}\n\n\t\treturn hash;\n\t}", "@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}", "public static int getHash(long entry) {\n return (int) (entry >>> 32);\n }", "com.google.protobuf.ByteString getHash();" ]
[ "0.7834905", "0.76130676", "0.7521926", "0.7392898", "0.7371331", "0.7244965", "0.7118355", "0.7108791", "0.71062976", "0.7098839", "0.6993424", "0.6991245", "0.6961247", "0.69402766", "0.69168687", "0.689151", "0.6879478", "0.687342", "0.6871243", "0.6871243", "0.6871243", "0.6849309", "0.6835118", "0.68287647", "0.68075794", "0.67660886", "0.6762376", "0.6758343", "0.6726051", "0.66993994", "0.6688325", "0.66703904", "0.6656305", "0.6650351", "0.6650351", "0.6632057", "0.6630953", "0.66287434", "0.66262084", "0.6625309", "0.6617059", "0.66037726", "0.6594147", "0.6592941", "0.65734303", "0.6567527", "0.6535829", "0.6535829", "0.6528231", "0.65279025", "0.64964163", "0.64844906", "0.64805883", "0.6478727", "0.6452282", "0.64385897", "0.64373326", "0.6431104", "0.6429589", "0.64287174", "0.64286137", "0.6413332", "0.6389255", "0.63889897", "0.63872725", "0.6387208", "0.6377597", "0.6352342", "0.6350917", "0.6348842", "0.634841", "0.634841", "0.634841", "0.634841", "0.6342557", "0.633857", "0.63372284", "0.6335697", "0.6306062", "0.6297846", "0.62879896", "0.6286383", "0.62838185", "0.62827563", "0.6281383", "0.62797356", "0.6277994", "0.6275642", "0.62647855", "0.62642294", "0.626179", "0.6261439", "0.62571406", "0.62503797", "0.6240006", "0.62377703", "0.62317514", "0.6227888", "0.62267315", "0.6226458" ]
0.6544836
46
A scheduled method to extract the Audit log from DB and export it into Excel on a weekly basis.
@Scheduled(cron = "0 59 23 * * SAT") public void auditLogExportBatchJob() { try { Calendar calendar = Calendar.getInstance(); int currentMonth = calendar.get(Calendar.MONTH); calendar.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); if (calendar.get(Calendar.MONTH) != currentMonth) { calendar.set(Calendar.DAY_OF_MONTH, 1); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); Calendar toCalendar = Calendar.getInstance(); toCalendar.set(Calendar.MONTH, currentMonth - 1); toCalendar.set(Calendar.DAY_OF_MONTH, toCalendar.getActualMaximum(Calendar.DAY_OF_MONTH)); toCalendar.set(Calendar.HOUR_OF_DAY, 23); toCalendar.set(Calendar.MINUTE, 59); toCalendar.set(Calendar.SECOND, 59); extractAuditLogByDates(calendar.getTime(), toCalendar.getTime()); } Calendar currntMonthCalendar = Calendar.getInstance(); currntMonthCalendar.set(Calendar.DAY_OF_MONTH, 1); currntMonthCalendar.set(Calendar.HOUR_OF_DAY, 0); currntMonthCalendar.set(Calendar.MINUTE, 0); currntMonthCalendar.set(Calendar.SECOND, 0); extractAuditLogByDates(currntMonthCalendar.getTime(), new Date()); } catch (Exception e) { LOGGER.error("Error while extracting Audit data from prive DB..."); LOGGER.error(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void main_flow_manual_export(String dateFrom, String dateTo) throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n// String last_export_date = dateFrom;\r\n// last_export_date = HelpM.get_date_time_minus_some_time_in_ms(last_export_date, \"yyyy-MM-dd HH:mm:ss\", 600000);// 10 min\r\n //======================\r\n export_procedure_2(dateFrom, dateTo);\r\n //======================\r\n //\r\n if (NEW_RECORDS_FOUND) {\r\n wait_();\r\n String msg = \" (nr rec.= \" + (BufferedDBWriterSuper.total_nr_recorded_entries - 1) + \" )\";\r\n SimpleLoggerLight.logg(\"main_flow.log\", msg);\r\n// write_to_update_table(\"main_flow\", \"\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n } else {\r\n SimpleLoggerLight.logg_no_append(\"last_check.log\", \"-> LAST CHECK\");\r\n// write_to_update_table(\r\n// \"main_flow\", \"last_check\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n }\r\n }", "@Override\r\n\tpublic void exportLogExcel(SapDataCollection sapDataCollection,\r\n\t\t\tJSONObject json, String optflag, String bdate, String edate,\r\n\t\t\tHttpServletResponse response) throws IOException,\r\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\r\n\t\t\tIllegalAccessException, InvocationTargetException,\r\n\t\t\tURISyntaxException {\n\t\tList<RuntimeColumnInfo> kna1list = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNA1);\r\n\t\tList<RuntimeColumnInfo> knb1list = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNB1);\r\n\t\tList<RuntimeColumnInfo> knvvlist = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNVV);\r\n\t\tString[] kna1titles = new String[kna1list.size()*2+6],kna1fields=new String[kna1list.size()*2+6];\r\n\t\tString[] knb1titles = new String[knb1list.size()*2+6],knb1fields=new String[knb1list.size()*2+6];\r\n\t\tString[] knvvtitles = new String[knvvlist.size()*2+6],knvvfields=new String[knvvlist.size()*2+6];\r\n\t\tif(kna1list!=null&&kna1list.size()>0){\r\n\t\t\tkna1titles[0]=\"操作结果\";\r\n\t\t\tkna1fields[0]=\"optflag\";\r\n\t\t\tkna1titles[1]=\"操作时间\";\r\n\t\t\tkna1fields[1]=\"opttime\";\r\n\t\t\tkna1titles[2]=\"操作人\";\r\n\t\t\tkna1fields[2]=\"optuser\";\r\n\t\t\tkna1titles[3]=\"操作\";\r\n\t\t\tkna1fields[3]=\"opt\";\r\n\t\t\tkna1titles[4]=\"操作类型\";\r\n\t\t\tkna1fields[4]=\"opttype\";\r\n\t\t\tkna1titles[5]=\"异常信息\";\r\n\t\t\tkna1fields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : kna1list){\r\n\t\t\t\tkna1titles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tkna1fields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tkna1titles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tkna1fields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knb1list!=null&&knb1list.size()>0){\r\n\t\t\tknb1titles[0]=\"操作结果\";\r\n\t\t\tknb1fields[0]=\"optflag\";\r\n\t\t\tknb1titles[1]=\"操作时间\";\r\n\t\t\tknb1fields[1]=\"opttime\";\r\n\t\t\tknb1titles[2]=\"操作人\";\r\n\t\t\tknb1fields[2]=\"optuser\";\r\n\t\t\tknb1titles[3]=\"操作\";\r\n\t\t\tknb1fields[3]=\"opt\";\r\n\t\t\tknb1titles[4]=\"操作类型\";\r\n\t\t\tknb1fields[4]=\"opttype\";\r\n\t\t\tknb1titles[5]=\"异常信息\";\r\n\t\t\tknb1fields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : knb1list){\r\n\t\t\t\tknb1titles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tknb1fields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tknb1titles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tknb1fields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knvvlist!=null&&knvvlist.size()>0){\r\n\t\t\tknvvtitles[0]=\"操作结果\";\r\n\t\t\tknvvfields[0]=\"optflag\";\r\n\t\t\tknvvtitles[1]=\"操作时间\";\r\n\t\t\tknvvfields[1]=\"opttime\";\r\n\t\t\tknvvtitles[2]=\"操作人\";\r\n\t\t\tknvvfields[2]=\"optuser\";\r\n\t\t\tknvvtitles[3]=\"操作\";\r\n\t\t\tknvvfields[3]=\"opt\";\r\n\t\t\tknvvtitles[4]=\"操作类型\";\r\n\t\t\tknvvfields[4]=\"opttype\";\r\n\t\t\tknvvtitles[5]=\"异常信息\";\r\n\t\t\tknvvfields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : knvvlist){\r\n\t\t\t\tknvvtitles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tknvvfields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tknvvtitles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tknvvfields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlong kna1totalNum = commonLogService.findTotalNum(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate);\r\n\t\tlong knb1totalNum = commonLogService.findTotalNum(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate);\r\n\t\tlong knvvtotalNum = commonLogService.findTotalNum(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\tString today = sf.format(c.getTime());\r\n\t\tString frefixOfFileName = \"customerLog_\"+today;\r\n\t\tlong kna1pages = kna1totalNum%PERSIZE==0?kna1totalNum/PERSIZE:kna1totalNum/PERSIZE+1;\r\n\t\tlong knb1pages = knb1totalNum%PERSIZE==0?knb1totalNum/PERSIZE:knb1totalNum/PERSIZE+1;\r\n\t\tlong knvvpages = knvvtotalNum%PERSIZE==0?knvvtotalNum/PERSIZE:knvvtotalNum/PERSIZE+1;\r\n\t\tString path = \"\";\r\n\t\tif(kna1pages>1){\r\n\t\t\tfor(int i=1;i<=kna1pages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_kna1_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_kna1\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tif(knb1pages>1){\r\n\t\t\tfor(int i=1;i<=knb1pages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_knb1_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_knb1\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tif(knvvpages>1){\r\n\t\t\tfor(int i=1;i<=knvvpages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_knvv_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,KnvvLog.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_knvv\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,KnvvLog.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tString zipname = frefixOfFileName;\r\n\t\texcelService.downloadZip(path, zipname, response);\r\n\t\texcelService.deleteByFilePath(path);\r\n\t}", "@Override\r\n\t\t\tpublic boolean run() throws SQLException {\n\t\t\t\ttry {\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"######0.00\");\r\n\t\t\t\t\t// 上传文件\r\n\t\t\t\t\tUploadFile file = getFile();\r\n\t\t\t\t\tFile delfile = new File(file.getUploadPath() + \"/\" + file.getFileName());\r\n\t\t\t\t\tString createBy = getPara(\"createBy\");\r\n\t\t\t\t\tString path = delfile.getPath();// 文件的路径\r\n\t\t\t\t\t// 读取文件内容\r\n\t\t\t\t\tReadExcelUtils readExcel = new ReadExcelUtils(path);\r\n\t\t\t\t\t// 读取文件标题(确定几月份的考勤)\r\n\t\t\t\t\tCell title = readExcel.readExcelTitle();\r\n\t\t\t\t\tString str = title.getStringCellValue();\r\n\t\t\t\t\tString[] split = str.split(\":\");\r\n\t\t\t\t\tString attendanceDate = split[1];\r\n\t\t\t\t\tString year = attendanceDate.split(\"-\")[0];\r\n\t\t\t\t\tString month = attendanceDate.split(\"-\")[1];\r\n\t\t\t\t\t// 查询 导入的文件是否已经导入过了\r\n\t\t\t\t\tPage<HrStaffAttendance> list = service.getStaffAttendanceInfo(1, 10, attendanceDate, null);\r\n\t\t\t\t\tif (list.getList().size() != 0) {\r\n\t\t\t\t\t\trenderError(\"不可重复导入同一数据\");\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tList<HrStaffAttendance> content = readExcel.readExcelContent(Integer.parseInt(year),\r\n\t\t\t\t\t\t\tInteger.parseInt(month));\r\n\r\n\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 从excel员工表导入的数据: \" + content);\r\n\t\t\t\t\tint export = 0;\r\n\t\t\t\t\tfor (HrStaffAttendance hrStaffAttendance : content) {\r\n\t\t\t\t\t\t// 处理考勤时间\r\n\t\t\t\t\t\tDouble actCheckDay = 0.0;\r\n\t\t\t\t\t\t// 实际考勤天数(工作量)\r\n\t\t\t\t\t\tDouble actCheckDay1 = 0.0;\r\n\t\t\t\t\t\tint checkDays = 0;// 打卡日期,即每天打卡2次以上\r\n\t\t\t\t\t\tint laterDay = 0;// 迟到天数\r\n\t\t\t\t\t\tint earlyRetreat = 0;// 早退天数\r\n\t\t\t\t\t\tint singleCheck = 0;// 单边打卡天数\r\n\t\t\t\t\t\tint workDay = hrStaffAttendance.getWorkDay();// 每月需工作天数\r\n\t\t\t\t\t\tJSONObject parse = (JSONObject) JSON.parse(hrStaffAttendance.getCheckRecord());\r\n\t\t\t\t\t\tJSONObject jsonA = (JSONObject) JSON.parse(parse.getString(\"A\"));\r\n\t\t\t\t\t\tString strB = parse.getString(\"B\");\r\n\t\t\t\t\t\tString checkIn = null;\r\n\t\t\t\t\t\tString checkOut = null;\r\n\t\t\t\t\t\tJSONObject workHour = null;\r\n\t\t\t\t\t\tJSONObject workHours = new JSONObject();\r\n\t\t\t\t\t\tJSONObject checkRecord = null;\r\n\t\t\t\t\t\tJSONObject checkRecords = new JSONObject();\r\n\t\t\t\t\t\tSimpleDateFormat simpleFormat = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t// 本月不存在打卡3次以上的情况\r\n\t\t\t\t\t\tif (strB == null || strB == \"\") {\r\n\t\t\t\t\t\t\tworkHour = new JSONObject();\r\n\t\t\t\t\t\t\tcheckRecords = parse;\r\n\t\t\t\t\t\t\tfor (Entry<String, Object> ent : jsonA.entrySet()) {\r\n\t\t\t\t\t\t\t\tString st = ent.getValue().toString();\r\n\t\t\t\t\t\t\t\tint hours = 0;\r\n\t\t\t\t\t\t\t\t// length > 1 说明今天至少打卡1次,保证checkIn不为空\r\n\t\t\t\t\t\t\t\tif (st.split(\",\").length > 1) {\r\n\t\t\t\t\t\t\t\t\tcheckIn = st.split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// checkIn 为空 说明今天未打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = st.split(\",\")[st.split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空 今天只打卡一次,属于单边打卡\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut) || \"0\".equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tsingleCheck++;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t} else {// checkOut不为空,说明今天打卡两次\r\n\t\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\t\t// 每天的工作时长\r\n\t\t\t\t\t\t\t\t\t\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\t\t;\r\n\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\thours = 0;\r\n\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), hours);\r\n\t\t\t\t\t\t\t\tactCheckDay1 += actCheckDay;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// 本月存在打卡3次以上的情况\r\n\t\t\t\t\t\t\tJSONObject jsonB = (JSONObject) JSON.parse(strB);\r\n\t\t\t\t\t\t\tworkHour = new JSONObject();\r\n\t\t\t\t\t\t\tcheckRecord = new JSONObject();\r\n\t\t\t\t\t\t\tfor (Entry<String, Object> ent : jsonB.entrySet()) {\r\n\t\t\t\t\t\t\t\tString string = ent.getValue().toString();\r\n\t\t\t\t\t\t\t\tint hours = 0;\r\n\t\t\t\t\t\t\t\tString cr = null;\r\n\t\t\t\t\t\t\t\t// string不为0 说明今天存在打卡3次以上情况 前两次均存在打卡记录\r\n\t\t\t\t\t\t\t\tif (!\"0\".equals(string)) {\r\n\t\t\t\t\t\t\t\t\t// 今天打卡3次以上\r\n\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t// 第一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckIn = jsonA.getString(ent.getKey()).split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// 今天最后一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = string.split(\",\")[string.split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// 今天打卡记录合并 如:9:00,12:00,18:00\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空,说明今天只打了3次卡,没有第四次\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tcheckOut = string.split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// 每天的工作时长\r\n\t\t\t\t\t\t\t\t\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcr = jsonA.getString(ent.getKey()).trim() + \",\" + string.trim();\r\n\t\t\t\t\t\t\t\t} else {// 今天不存在打3次卡以上的情况\r\n\t\t\t\t\t\t\t\t\t// 第一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckIn = jsonA.getString(ent.getKey()).split(\",\")[0].trim();\r\n\t\t\t\t\t\t\t\t\t// 最后一次打卡\r\n\t\t\t\t\t\t\t\t\tcheckOut = jsonA.getString(ent.getKey())\r\n\t\t\t\t\t\t\t\t\t\t\t.split(\",\")[jsonA.getString(ent.getKey()).split(\",\").length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t// checkIn 为空 说明今天未打卡 跳出本次循环\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkIn) || \"0\".equals(checkIn)) {\r\n\t\t\t\t\t\t\t\t\t\thours = 0;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), 0);\r\n\t\t\t\t\t\t\t\t\t\tcheckRecord.put(String.valueOf(ent.getKey()), \"0\");\r\n\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// checkOut 为空 或者和checkIn相等 属于单边打卡\r\n\t\t\t\t\t\t\t\t\tif (!StrKit.notBlank(checkOut) || checkIn.equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\tsingleCheck++;\r\n\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t// 能走到这里,说明checkIn,checkOut均不为空,说明今天打卡2次\r\n\t\t\t\t\t\t\t\t\t\tcheckDays++;\r\n\t\t\t\t\t\t\t\t\t\tlong from = simpleFormat.parse(checkIn).getTime();\r\n\t\t\t\t\t\t\t\t\t\tlong to = simpleFormat.parse(checkOut).getTime();\r\n\t\t\t\t\t\t\t\t\t\t// 每天的工作时长\r\n\t\t\t\t\t\t\t\t\t\thours = Math.abs((int) ((to - from) / (1000 * 60 * 60)));\r\n\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (hours >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (hours < 9 && hours >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcr = jsonA.getString(ent.getKey());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tworkHour.put(String.valueOf(ent.getKey()), hours);\r\n\t\t\t\t\t\t\t\tcheckRecord.put(String.valueOf(ent.getKey()), cr);\r\n\t\t\t\t\t\t\t\tactCheckDay1 += actCheckDay;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcheckRecords.put(\"A\", checkRecord);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tworkHours.put(\"A\", workHour);\r\n\t\t\t\t\t\tInteger checkInNum = hrStaffAttendance.getCheckInNum();\r\n\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDay1.toString());\r\n\t\t\t\t\t\tDouble allDayNotSca = (1 - (double) checkDays / workDay);\r\n\t\t\t\t\t\tDouble earlyRetreatSca = ((double) earlyRetreat / workDay);\r\n\t\t\t\t\t\tDouble laterDaySca = ((double) laterDay / workDay);\r\n\t\t\t\t\t\tDouble singleCheckSca = ((double) singleCheck / workDay);\r\n\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotSca));\r\n\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatSca));\r\n\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDaySca));\r\n\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckSca));\r\n\t\t\t\t\t\t// 通过考勤编号check_in_num去人员列表里找到相关的入场信息\r\n\t\t\t\t\t\tList<Record> personInfo = service.getPersonInfo(checkInNum);\r\n\t\t\t\t\t\t// 保证arrayList>1\r\n\t\t\t\t\t\tif (personInfo.size() == 0) {\r\n\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 考勤编号:\" + checkInNum\r\n\t\t\t\t\t\t\t\t\t+ \"在人员入场表里找不到该人员的相关入场信息\");\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 先判断一下时间 比如:3月入场,5月转场,导入4月的考勤\r\n\t\t\t\t\t\t// arrayList记录改考勤编号下的所有的入场日期及订单编号\r\n\t\t\t\t\t\tList<String> arrayList = new ArrayList<>();\r\n\t\t\t\t\t\t// array记录本月的入场时间\r\n\t\t\t\t\t\tList<String> array = new ArrayList<>();\r\n\t\t\t\t\t\t// 中间变量 用于排序入场时间\r\n\t\t\t\t\t\tString[] per = new String[personInfo.size() + 1];\r\n\t\t\t\t\t\tper[0] = attendanceDate.substring(0, 10);\r\n\t\t\t\t\t\tint i = 1;\r\n\t\t\t\t\t\tfor (Record record : personInfo) {\r\n\t\t\t\t\t\t\tper[i] = JSON.parseObject(record.get(\"in_field_json\")).getString(\"entry_date\");\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 对入场时间进行排序\r\n\t\t\t\t\t\tArrays.sort(per);\r\n\t\t\t\t\t\tfor (int j = 0; j < per.length; j++) {\r\n\t\t\t\t\t\t\tarrayList.add(per[j]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 本月考勤记录第一天所在所有入场日期的位置\r\n\t\t\t\t\t\tint index = arrayList.indexOf(attendanceDate.substring(0, 10));\r\n\t\t\t\t\t\t// 先判断本月有几条入离场信息的入场时间\r\n\t\t\t\t\t\tfor (int j = 0; j < per.length; j++) {\r\n\t\t\t\t\t\t\tif (per[j].substring(0, 7).equals(attendanceDate.substring(0, 7))) {\r\n\t\t\t\t\t\t\t\tarray.add(per[j]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 说明本月无转场\r\n\t\t\t\t\t\tif (array.size() == 1) {\r\n\t\t\t\t\t\t\t// 根据入场时间和考勤编号查询入场信息\r\n\t\t\t\t\t\t\tif (index != 0) {\r\n\t\t\t\t\t\t\t\tindex = index - 1;// 该月无转场,直接入场(离场不用管,因为离场后就不会再打卡)(若index=0,说明该人员无入场)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index));\r\n\t\t\t\t\t\t\tif (record == null) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\").getString(\"person_level_key\");\r\n\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\").getString(\"person_type_key\");\r\n\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\tstatus = 1;// 1为离场状态\r\n\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tstatus = 0;// 0为入场状态\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(workHours.toString());\r\n\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(checkRecords.toString());\r\n\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t} else if (array.size() == 2) {\r\n\t\t\t\t\t\t\tif (index == 0) {\r\n\t\t\t\t\t\t\t\tindex = index + 1;// 该月无转场 在本月入场\r\n\t\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index));\r\n\t\t\t\t\t\t\t\tif (record == null) {\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatus = 1;// 1为离场状态\r\n\t\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatus = 0;// 0为入场状态\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(workHours.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(checkRecords.toString());\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t} else {// 该月有转场\r\n\t\t\t\t\t\t\t\tcheckDays = 0;\r\n\t\t\t\t\t\t\t\tlaterDay = 0;\r\n\t\t\t\t\t\t\t\tearlyRetreat = 0;\r\n\t\t\t\t\t\t\t\tsingleCheck = 0;\r\n\r\n\t\t\t\t\t\t\t\tDouble actCheckDays1 = 0.0;\r\n\t\t\t\t\t\t\t\t// 转场前\r\n\t\t\t\t\t\t\t\tRecord record = service.getUserInInfo(checkInNum, arrayList.get(index - 1));\r\n\t\t\t\t\t\t\t\tif (record == null) {\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tObject object = record.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObject = JSON.parseObject(object.toString());\r\n\t\t\t\t\t\t\t\tString orderNum = fromObject.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString department = fromObject.getJSONObject(\"department\").getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierName = fromObject.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personName = fromObject.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNature = fromObject.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevel = fromObject.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClass = fromObject.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePerson = fromObject.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderName = fromObject.getJSONObject(\"order_name\").getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDate = fromObject.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDate = fromObject.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevel);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNature);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(department);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClass);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePerson);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint status = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(record.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatus = 1;\r\n\t\t\t\t\t\t\t\t\tleaveDate = JSON.parseObject(record.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatus = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(status);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNum);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderName);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDate);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tJSONObject wH = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject cR = new JSONObject();\r\n\t\t\t\t\t\t\t\tint co = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> ent : workHour.entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getKey()) > Integer.parseInt(leaveDate.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\twH.put(ent.getKey(), 0);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\twH.put(ent.getKey(), ent.getValue());\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getValue().toString()) >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (Integer.parseInt(ent.getValue().toString()) < 9\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& Integer.parseInt(ent.getValue().toString()) >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDay = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tactCheckDays1 += actCheckDay;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tco++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tco = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> ent : checkRecords.getJSONObject(\"A\").entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(ent.getKey()) > Integer.parseInt(leaveDate.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\tcR.put(ent.getKey(), \"0\");\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tcR.put(ent.getKey(), ent.getValue());\r\n\t\t\t\t\t\t\t\t\t\t// 保证上班打卡和下班打卡时间不能同时为空\r\n\t\t\t\t\t\t\t\t\t\tif (!\"0\".equals(ent.getValue())) {\r\n\t\t\t\t\t\t\t\t\t\t\tSimpleDateFormat sim = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t\t\t\t\t\tString[] split1 = ent.getValue().toString().split(\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tString checkIn1 = split1[0].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tString checkOut1 = split1[split1.length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!\"\".equals(checkIn) && !\"\".equals(checkOut)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcheckDays++;// 打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong from = sim.parse(checkIn1).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong to = sim.parse(checkOut1).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"9:00\").getTime()=3600000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlaterDay++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tearlyRetreat++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsingleCheck++;// 单边打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tco++;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tallDayNotSca = (1 - (double) checkDays / workDay);\r\n\t\t\t\t\t\t\t\tearlyRetreatSca = ((double) earlyRetreat / workDay);\r\n\t\t\t\t\t\t\t\tlaterDaySca = ((double) laterDay / workDay);\r\n\t\t\t\t\t\t\t\tsingleCheckSca = ((double) singleCheck / workDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDaySca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckSca));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDays);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreat);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDay);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleCheck);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDays1.toString());\r\n\t\t\t\t\t\t\t\tJSONObject jswH = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject jscR = new JSONObject();\r\n\t\t\t\t\t\t\t\tjswH.put(\"A\", wH);\r\n\t\t\t\t\t\t\t\tjscR.put(\"A\", cR);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(jswH.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(jscR.toString());\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将【转场前】数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint m = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (m < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t\t// 转场后\r\n\t\t\t\t\t\t\t\tDouble actCheckDaylatter = 0.0;\r\n\t\t\t\t\t\t\t\tDouble actCheckDaylatter1 = 0.0;\r\n\t\t\t\t\t\t\t\tint checkDayslatter = 0;\r\n\t\t\t\t\t\t\t\tint laterDaylatter = 0;\r\n\t\t\t\t\t\t\t\tint earlyRetreatlatter = 0;\r\n\t\t\t\t\t\t\t\tint singleChecklatter = 0;\r\n\t\t\t\t\t\t\t\tRecord recordlatter = service.getUserInInfo(checkInNum, arrayList.get(index + 1));\r\n\t\t\t\t\t\t\t\tif (recordlatter == null) {\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tObject objectlatter = recordlatter.get(\"in_field_json\");\r\n\t\t\t\t\t\t\t\tJSONObject fromObjectlatter = JSON.parseObject(objectlatter.toString());\r\n\t\t\t\t\t\t\t\tString orderNumlatter = fromObjectlatter.getString(\"order_num\");\r\n\t\t\t\t\t\t\t\tString departmentlatter = fromObjectlatter.getJSONObject(\"department\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"department_name\");\r\n\t\t\t\t\t\t\t\tString supplierNamelatter = fromObjectlatter.getString(\"supplier_name\");\r\n\t\t\t\t\t\t\t\tRecord rec1 = service.getCBbySupplierName(supplierName);\r\n\t\t\t\t\t\t\t\tif (rec1 != null) {\r\n\t\t\t\t\t\t\t\t\tcreateBy = rec1.getStr(\"create_by\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tString personNamelatter = fromObjectlatter.getString(\"person_name\");\r\n\t\t\t\t\t\t\t\tString personNaturelatter = fromObjectlatter.getJSONObject(\"person_nature\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_nature_name\");\r\n\t\t\t\t\t\t\t\tString personLevellatter = fromObjectlatter.getJSONObject(\"person_level\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_level_key\");\r\n\t\t\t\t\t\t\t\tString personClasslatter = fromObjectlatter.getJSONObject(\"person_type\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"person_type_key\");\r\n\t\t\t\t\t\t\t\tString changePersonlatter = fromObjectlatter.getJSONObject(\"change_person\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"change_person_key\");\r\n\t\t\t\t\t\t\t\tString orderNamelatter = fromObjectlatter.getJSONObject(\"order_name\")\r\n\t\t\t\t\t\t\t\t\t\t.getString(\"order_name_name\");\r\n\t\t\t\t\t\t\t\tString entryDatelatter = fromObjectlatter.getString(\"entry_date\");\r\n\t\t\t\t\t\t\t\tString leaveDatelatter = fromObjectlatter.getString(\"leave_date\");\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonLevel(personLevellatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonName(personNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonNature(personNaturelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSupplierName(supplierNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setDepartment(departmentlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEntryDate(entryDatelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAttendanceDate(attendanceDate);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setPersonClassKey(personClasslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setChangePersonKey(changePersonlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCreateBy(createBy);\r\n\t\t\t\t\t\t\t\thrStaffAttendance\r\n\t\t\t\t\t\t\t\t\t\t.setCreateTime(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()));\r\n\t\t\t\t\t\t\t\tint statuslatter = 0;\r\n\t\t\t\t\t\t\t\tif (\"2\".equals(recordlatter.get(\"status_type\"))) {\r\n\t\t\t\t\t\t\t\t\tstatuslatter = 1;\r\n\t\t\t\t\t\t\t\t\tleaveDatelatter = JSON.parseObject(recordlatter.get(\"out_field_json\"))\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"actual_leave_date\");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstatuslatter = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatusInorout(statuslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderNum(orderNumlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setOrderName(orderNamelatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLeaveDate(leaveDatelatter);\r\n\t\t\t\t\t\t\t\t// 默认每人每月非开会事由补打卡次数最多为:3次\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setFillupMaxcounts(3);\r\n\t\t\t\t\t\t\t\t// 默认工作工作量确认初始值为:0(未确认)\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setStatus(Constants.STATUS);\r\n\t\t\t\t\t\t\t\tJSONObject wHlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject cRlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tint colatter = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> entlatter : workHour.entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getKey()) <= Integer\r\n\t\t\t\t\t\t\t\t\t\t\t.parseInt(entryDatelatter.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\twHlatter.put(entlatter.getKey(), 0);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\t\twHlatter.put(entlatter.getKey(), entlatter.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getValue().toString()) >= 9) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 1.0;\r\n\t\t\t\t\t\t\t\t\t\t} else if (Integer.parseInt(entlatter.getValue().toString()) < 9\r\n\t\t\t\t\t\t\t\t\t\t\t\t&& Integer.parseInt(entlatter.getValue().toString()) >= 4) {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 0.5;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tactCheckDaylatter = 0.0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tactCheckDaylatter1 += actCheckDaylatter;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tcolatter++;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcolatter = 1;\r\n\t\t\t\t\t\t\t\tfor (Entry<String, Object> entlatter : checkRecords.getJSONObject(\"A\").entrySet()) {\r\n\t\t\t\t\t\t\t\t\tif (Integer.parseInt(entlatter.getKey()) <= Integer\r\n\t\t\t\t\t\t\t\t\t\t\t.parseInt(entryDatelatter.substring(8, 10))) {\r\n\t\t\t\t\t\t\t\t\t\tcRlatter.put(entlatter.getKey(), \"0\");\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tcRlatter.put(entlatter.getKey(), entlatter.getValue());\r\n\r\n\t\t\t\t\t\t\t\t\t\t// 保证上班打卡和下班打卡时间不能同时为空,不能为0\r\n\t\t\t\t\t\t\t\t\t\tif (!\"0\".equals(entlatter.getValue())) {\r\n\t\t\t\t\t\t\t\t\t\t\tSimpleDateFormat si = new SimpleDateFormat(\"HH:mm\");\r\n\t\t\t\t\t\t\t\t\t\t\tString[] splitlatter = entlatter.getValue().toString().split(\"\\n\");\r\n\t\t\t\t\t\t\t\t\t\t\tString checkInlatter = splitlatter[0].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tString checkOutlatter = splitlatter[splitlatter.length - 1].trim();\r\n\t\t\t\t\t\t\t\t\t\t\tif (!\"\".equals(checkInlatter) && !\"\".equals(checkOutlatter)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tcheckDayslatter++;// 打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong from = si.parse(checkInlatter).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\tlong to = si.parse(checkOutlatter).getTime();\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"9:00\").getTime()=3600000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (from > 3600000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlaterDaylatter++;// 迟到\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t// simpleFormat.parse(\"18:00\").getTime()=36000000\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (to < 36000000) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tearlyRetreatlatter++;// 早退\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tsingleChecklatter++;// 单边打卡天数\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcolatter++;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tint workDaylatter = hrStaffAttendance.getWorkDay();\r\n\t\t\t\t\t\t\t\tDouble allDayNotScalatter = (1 - (double) checkDayslatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble earlyRetreatScalatter = ((double) earlyRetreatlatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble laterDayScalatter = ((double) laterDaylatter / workDaylatter);\r\n\t\t\t\t\t\t\t\tDouble singleCheckScalatter = ((double) singleChecklatter / workDaylatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setAllDayNotSca(df.format(allDayNotScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreatSca(df.format(earlyRetreatScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDaySca(df.format(laterDayScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheckSca(df.format(singleCheckScalatter));\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckDay(checkDayslatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setEarlyRetreat(earlyRetreatlatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setLaterDay(laterDaylatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setSingleCheck(singleChecklatter);\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setActCheckDay(actCheckDaylatter1.toString());\r\n\t\t\t\t\t\t\t\tJSONObject jswHlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tJSONObject jscRlatter = new JSONObject();\r\n\t\t\t\t\t\t\t\tjswHlatter.put(\"A\", wHlatter);\r\n\t\t\t\t\t\t\t\tjscRlatter.put(\"A\", cRlatter);\r\n\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setWorkHours(jswHlatter.toString());\r\n\t\t\t\t\t\t\t\thrStaffAttendance.setCheckRecord(jscRlatter.toString());\r\n\t\t\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 将 【转场后】 数据添加到数据库 \");\r\n\t\t\t\t\t\t\t\tint mlatter = service.insertstaffAttendance(hrStaffAttendance);\r\n\t\t\t\t\t\t\t\tif (mlatter < 0) {\r\n\t\t\t\t\t\t\t\t\trenderError(\"数据添加到数据库:失败\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\trenderSuccess(\"数据成功添加到数据库 \");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\texport++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (export == 0) {\r\n\t\t\t\t\t\trenderError(\"该表中人员均在入场表里找不到相关信息 \");\r\n\t\t\t\t\t\tlogger.info(\"StaffAttendanceController staffAttendance 该表中人员均在入场表里找不到 相关信息\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\trenderError(\"数据导入失败\");\r\n\t\t\t\t\tlogger.error(\"Exception: \", e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tif(filename==null){\n\t\t\t\t\t\t\tcommond.setToast( getApplication().getString(R.string.dilog_digtool_empty));\n\t\t\t\t\t\t}\n\t\t\t\t\t Xlsmake xls=new Xlsmake(xyz);\n\t\t\t\t try {\n xls.toxls(fname);\n commond.setToast( getApplication().getString(R.string.dilog_export_success));\n //Toast.makeText(getApplicationContext(), \"导出成功\", Toast.LENGTH_SHORT).show();\n } catch (RowsExceededException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n commond.setToast( getApplication().getString(R.string.dilog_export_fail));\n //Toast.makeText(getApplicationContext(), \"导出失败\", Toast.LENGTH_LONG).show();\n return ;\n } catch (WriteException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n commond.setToast( getApplication().getString(R.string.dilog_export_fail));\n //Toast.makeText(getApplicationContext(), \"导出失败\", Toast.LENGTH_LONG).show();\n return ;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n commond.setToast( getApplication().getString(R.string.dilog_export_fail));\n //Toast.makeText(getApplicationContext(), \"导出失败\", Toast.LENGTH_LONG).show();\n return ;\n }\n\t\t\t\t}", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "private void downloadReport() {\n // Get Employees and Tasks\n ArrayList<Employee> inUnit = Main.getEmployeesInUnit();\n ArrayList<Task> allTasks = Main.getAllTasks();\n\n // Create BufferedWriter Object\n String fileName = fileDate.format(new Date()) + \"_report.csv\";\n BufferedWriter writer = null;\n try {\n writer = new BufferedWriter(new FileWriter(fileName));\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Filename already exists.\");\n }\n\n try {\n // Write Header\n writer.write(\n \"Task ID,Task Description,Employee ID, Employee Name, WiGrow Needed, Incomplete Scheduling, Exception Report Needed\\n\");\n // Look through employee and their task\n for (int i = 0; i < inUnit.size(); ++i) {\n Employee current = inUnit.get(i);\n for (int j = 0; j < allTasks.size(); ++j) {\n Task currentTask = allTasks.get(j);\n // If found, write to file\n if (currentTask.getEmployees().contains(current)) {\n writer.write(currentTask.getID() + \",\" + currentTask.getDescription() + \",\"\n + current.getId() + \",\" + current.getName() + \",\" + current.isWiGrow() + \",\"\n + current.isScheduling() + \",\" + current.isExceptionReport() + \"\\n\");\n }\n }\n }\n writer.close();\n } catch (IOException e) {\n // Do nothing\n\n }\n // Alert pop up\n Alert downloadSuccess = new Alert(AlertType.NONE, \"Successfully Downloaded Report! It is named \"\n + fileName + \" and is located in your program's local directory.\");\n downloadSuccess.setTitle(\"Download File\");\n downloadSuccess.getButtonTypes().add(ButtonType.OK);\n downloadSuccess.showAndWait();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// log.debug(\"FILE SYSTEM -----\" + fileSystem);\n\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// log.debug(\"PATH----------\" + path);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\t// log.debug(\"NEW EXCEL_FILE PATH TO EXPORT----------\" + filePath);\n\n\t\t\t\t// create workbook\n\t\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\t\t// create worksheet with title\n\t\t\t\tXSSFSheet xssfSheet = xssfWorkbook.createSheet(\"EMPLOYEE_REPORT\");\n\n\t\t\t\tRow headerRow = xssfSheet.createRow(0);\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\tCell cell = headerRow.createCell(i);\n\t\t\t\t\tcell.setCellValue(EMP_HEADER[i]);\n\t\t\t\t}\n\n\t\t\t\tint rowNum = 1;\n\n\t\t\t\tfor (EmployeeDTO transaction : content) {\n\n\t\t\t\t\tlog.info(\"Entered into EMP-FOR Loop--------->\");\n\n\t\t\t\t\tRow dataRow = xssfSheet.createRow(rowNum++);\n\n\t\t\t\t\tdataRow.createCell(0).setCellValue(transaction.getEmpId());\n\t\t\t\t\tdataRow.createCell(1).setCellValue(transaction.getName());\n\t\t\t\t\tdataRow.createCell(2).setCellValue(transaction.getDesignation());\n\t\t\t\t\tdataRow.createCell(3).setCellValue(transaction.getManagerName());\n\t\t\t\t\tdataRow.createCell(4).setCellValue(transaction.getProjectName());\n\t\t\t\t\tdataRow.createCell(5).setCellValue(transaction.getSiteName());\n\t\t\t\t\tdataRow.createCell(6).setCellValue(transaction.getActive());\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < EMP_HEADER.length; i++) {\n\t\t\t\t\txssfSheet.autoSizeColumn(i);\n\t\t\t\t}\n\t\t\t\t// log.info(exportFileName + \" Excel file was created successfully !!!\");\n\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\n\t\t\t\t// String fName = \"F:\\\\Export\\\\Employee.xlsx\";\n\t\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\t\ttry {\n\t\t\t\t\tfileOutputStream = new FileOutputStream(filePath);\n\t\t\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.error(\"Error while flushing/closing !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"recaudado-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "@Postprocess\n public void getReport() {\n try {\n BufferedWriter bufferWriter = new BufferedWriter(new FileWriter(logfile, false));\n if (!results.isEmpty()) {\n bufferWriter.write(\"===========================================================\\n\");\n bufferWriter.write(\"sys_milli,\\t\\tdb_micro,\\t\\ttime_diff\\n\");\n Collections.sort(results);\n for (MysqlheartbeatBean mhb : results) {\n bufferWriter.write(String.valueOf(mhb.getSysMilli()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro()) + \",\\t\\t\"\n + String.valueOf(mhb.getDbMicro() - mhb.getSysMilli()) + \"\\n\");\n }\n bufferWriter.flush();\n }\n bufferWriter.close();\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"{0}: {1}\", new Object[]{toolName, ex.getMessage()});\n }\n }", "private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@RequestMapping(\"exportToExcel\")\n public void exportFundamentalsToExcel(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n log.debug(\"Requested exporting data to excel.\");\n\n TradingAidCommand jshData = getJshData();\n\n // create a new file\n FileOutputStream outExcel = new FileOutputStream(\"workbook\");\n // create a new workbook\n HSSFWorkbook workbook = new HSSFWorkbook();\n // create a new sheet\n HSSFSheet sheet = workbook.createSheet();\n\n sheet.setDefaultColumnWidth(7);\n\n // create header row\n HSSFRow header = sheet.createRow(0);\n header.createCell(0).setCellValue(\"Horse\");\n header.createCell(1).setCellValue(\"9am\");\n header.createCell(2).setCellValue(\"MovAM\");\n header.createCell(3).setCellValue(\"60min\");\n header.createCell(4).setCellValue(\"Mov60\");\n header.createCell(5).setCellValue(\"30min\");\n header.createCell(6).setCellValue(\"Mov30\");\n header.createCell(7).setCellValue(\"15min\");\n header.createCell(8).setCellValue(\"Mov15\");\n header.createCell(9).setCellValue(\"5min\");\n header.createCell(10).setCellValue(\"Mov5\");\n header.createCell(11).setCellValue(\"3min\");\n header.createCell(12).setCellValue(\"Mov3\");\n header.createCell(13).setCellValue(\"2min\");\n header.createCell(14).setCellValue(\"Mov2\");\n header.createCell(15).setCellValue(\"1min\");\n header.createCell(16).setCellValue(\"Mov1\");\n header.createCell(17).setCellValue(\"Mean\");\n header.createCell(18).setCellValue(\"321\");\n header.createCell(19).setCellValue(\"Result\");\n header.createCell(20).setCellValue(\"CPR\");\n header.createCell(21).setCellValue(\"NPTips\");\n header.createCell(22).setCellValue(\"Naps\");\n header.createCell(23).setCellValue(\"Stars\");\n header.createCell(24).setCellValue(\"Jockey\");\n header.createCell(25).setCellValue(\"Wins\");\n header.createCell(26).setCellValue(\"R\");\n header.createCell(27).setCellValue(\"Rs\");\n header.createCell(28).setCellValue(\"Mov9-60\");\n header.createCell(29).setCellValue(\"FP\");\n header.createCell(30).setCellValue(\"C\");\n header.createCell(31).setCellValue(\"D\");\n header.createCell(32).setCellValue(\"CD\");\n header.createCell(33).setCellValue(\"HG\");\n header.createCell(34).setCellValue(\"Trainer\");\n header.createCell(35).setCellValue(\"Wins\");\n header.createCell(36).setCellValue(\"R\");\n header.createCell(37).setCellValue(\"Rs\");\n\n int rowIndex = 1;\n for (JSHRaceCommand race : jshData.getRaces()) {\n\n HSSFRow row = sheet.createRow(rowIndex);\n HSSFCell cell = row.createCell(0);\n cell.setCellValue(race.getGeneralInfo());\n sheet.addMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 0, 37));\n\n rowIndex++;\n\n int runnerFavPos = 1;\n for (JSHRunnerCommand runner : race.getRunners()) {\n row = sheet.createRow(rowIndex);\n row.createCell(0).setCellValue(runner.getHorseName());\n row.createCell(1).setCellValue(runner.getPrice9());\n row.createCell(2).setCellValue(runner.getMov9to11());\n row.createCell(3).setCellValue(runner.getPrice60());\n row.createCell(4).setCellValue(runner.getMov60());\n row.createCell(5).setCellValue(runner.getPrice30());\n row.createCell(6).setCellValue(runner.getMov30());\n row.createCell(7).setCellValue(runner.getPrice15());\n row.createCell(8).setCellValue(runner.getMov15());\n row.createCell(9).setCellValue(runner.getPrice5());\n row.createCell(10).setCellValue(runner.getMov5());\n row.createCell(11).setCellValue(runner.getPrice3());\n row.createCell(12).setCellValue(runner.getMov3());\n row.createCell(13).setCellValue(runner.getPrice2());\n row.createCell(14).setCellValue(runner.getMov2());\n row.createCell(15).setCellValue(runner.getPrice1());\n row.createCell(16).setCellValue(runner.getMov1());\n row.createCell(17).setCellValue(runner.getMean());\n row.createCell(18).setCellValue(runner.getMov3to1());\n row.createCell(19).setCellValue(runner.getResult());\n row.createCell(20).setCellValue(runner.getCpr());\n row.createCell(21).setCellValue(runner.getNptips());\n row.createCell(22).setCellValue(runner.getNaps());\n row.createCell(23).setCellValue(runner.getStars());\n row.createCell(24).setCellValue(runner.getJockey());\n row.createCell(25).setCellValue(runner.getJockeyWins());\n row.createCell(26).setCellValue(runner.getJockeyRideNo());\n row.createCell(27).setCellValue(runner.getJockeyRides());\n row.createCell(28).setCellValue(runner.getMov9to60());\n row.createCell(29).setCellValue(runnerFavPos++);\n row.createCell(30).setCellValue(runner.getCourse());\n row.createCell(31).setCellValue(runner.getDistance());\n row.createCell(32).setCellValue(runner.getDistanceAndCourse());\n row.createCell(33).setCellValue(runner.getHeadGear());\n row.createCell(34).setCellValue(runner.getTrainer());\n row.createCell(35).setCellValue(runner.getTrainerWins());\n row.createCell(36).setCellValue(runner.getTrainerRunnerNo());\n row.createCell(37).setCellValue(runner.getTrainerRunners());\n\n rowIndex++;\n }\n\n }\n\n for (int i = 0; i < 37; i++) {\n sheet.autoSizeColumn(i);\n }\n\n // Movement formatting\n HSSFSheetConditionalFormatting conditionalFormattingLayer = sheet.getSheetConditionalFormatting();\n HSSFConditionalFormattingRule blueRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.GT, \"5\");\n HSSFConditionalFormattingRule greenRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"2.5\", \"5\");\n HSSFConditionalFormattingRule yellowRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"0.01\", \"2.5\");\n HSSFConditionalFormattingRule orangeRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"-2.5\", \"-0.01\");\n HSSFConditionalFormattingRule pinkRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"-2.5\");\n\n HSSFPatternFormatting blueFormatting = blueRule.createPatternFormatting();\n blueFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.BLUE.getIndex());\n\n HSSFPatternFormatting greenFormatting = greenRule.createPatternFormatting();\n greenFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.GREEN.getIndex());\n\n HSSFPatternFormatting yellowFormatting = yellowRule.createPatternFormatting();\n yellowFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.YELLOW.getIndex());\n\n HSSFPatternFormatting orangeFormatting = orangeRule.createPatternFormatting();\n orangeFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.ORANGE.getIndex());\n\n HSSFPatternFormatting pinkFormatting = pinkRule.createPatternFormatting();\n pinkFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.PINK.getIndex());\n\n HSSFPalette palette = workbook.getCustomPalette();\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.BLUE.getIndex(), (byte) 153, (byte) 204, (byte) 255);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.GREEN.getIndex(), (byte) 204, (byte) 255, (byte) 204);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.YELLOW.getIndex(), (byte) 255, (byte) 255, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.ORANGE.getIndex(), (byte) 255, (byte) 204, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.PINK.getIndex(), (byte) 255, (byte) 153, (byte) 204);\n\n int lastRowNum = sheet.getLastRowNum();\n\n CellRangeAddress[] basicMovementCellRangeAddresses = {\n\n // 9-11 Movement\n new CellRangeAddress(1, lastRowNum, 2, 2),\n // 60 min Movement\n new CellRangeAddress(1, lastRowNum, 4, 4),\n // 30 min Movement\n new CellRangeAddress(1, lastRowNum, 6, 6),\n // 15 min Movement\n new CellRangeAddress(1, lastRowNum, 8, 8),\n // 5 min Movement\n new CellRangeAddress(1, lastRowNum, 10, 10),\n // 3 min Movement\n new CellRangeAddress(1, lastRowNum, 12, 12),\n // 2 min Movement\n new CellRangeAddress(1, lastRowNum, 14, 14),\n // 1 min Movement\n new CellRangeAddress(1, lastRowNum, 16, 16),\n // Mean\n new CellRangeAddress(1, lastRowNum, 17, 17),\n // 3-1 Movement\n new CellRangeAddress(1, lastRowNum, 18, 18),\n };\n\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, blueRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, greenRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, yellowRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, orangeRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, pinkRule);\n\n\n // Movement 9 to 60 formatting\n HSSFConditionalFormattingRule mov9to60LessThanZeroRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting mov9to60LessThanZeroFormatting = mov9to60LessThanZeroRule.createFontFormatting();\n mov9to60LessThanZeroFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] mov9to60CellRange = {new CellRangeAddress(1, lastRowNum, 28, 28)};\n conditionalFormattingLayer.addConditionalFormatting(mov9to60CellRange, mov9to60LessThanZeroRule);\n\n // CPR Formatting\n HSSFConditionalFormattingRule cprRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting cprFormatting = cprRule.createFontFormatting();\n cprFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] cprCellRange = {new CellRangeAddress(1, lastRowNum, 20, 20)};\n conditionalFormattingLayer.addConditionalFormatting(cprCellRange, cprRule);\n\n // Result formatting\n HSSFConditionalFormattingRule winnerRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Won\\\")\");\n HSSFConditionalFormattingRule placedRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Placed\\\")\");\n\n HSSFPatternFormatting winnerFormatting = winnerRule.createPatternFormatting();\n winnerFormatting.setFillBackgroundColor(IndexedColors.BRIGHT_GREEN.getIndex());\n\n HSSFPatternFormatting placedFormatting = placedRule.createPatternFormatting();\n placedFormatting.setFillBackgroundColor(IndexedColors.LEMON_CHIFFON.getIndex());\n\n palette.setColorAtIndex(IndexedColors.BRIGHT_GREEN.getIndex(), (byte) 62, (byte) 213, (byte) 120);\n palette.setColorAtIndex(IndexedColors.LEMON_CHIFFON.getIndex(), (byte) 242, (byte) 218, (byte) 193);\n\n CellRangeAddress[] resultCellRange = {\n // Horse name\n new CellRangeAddress(1, lastRowNum, 0, 0),\n // Result\n new CellRangeAddress(1, lastRowNum, 19, 19),\n // Jockey\n new CellRangeAddress(1, lastRowNum, 24, 24),\n // Trainer\n new CellRangeAddress(1, lastRowNum, 34, 34)\n\n };\n\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, winnerRule);\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, placedRule);\n\n // Writing the file into Http response\n workbook.write(outExcel);\n\n response.setContentType(\"application/octet-stream\");\n DateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n Date today = new Date();\n response.setHeader(\"Content-disposition\", \"attachment; filename=\" + \"trading-aid-\" + dateFormat.format(today) + \".xls\");\n\n FileInputStream inputStream = new FileInputStream(new File(\"workbook\"));\n\n OutputStream outputStream = response.getOutputStream();\n\n byte[] buffer = new byte[1024];\n int bytesRead = -1;\n while ((bytesRead = inputStream.read(buffer)) != -1) { // write bytes read from the input stream into the output stream\n outputStream.write(buffer, 0, bytesRead);\n }\n\n outputStream.flush();\n\n log.debug(\"Data export to excel successful.\");\n\n }", "private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}", "@GetMapping(value = \"/xls\", produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<String> generateXLSReport() {\n LOGGER.info(\"Generating Fund XLS report.\");\n\n boolean success =false;\n if(configFilter().getJasperPrint() != null) {\n xlsExporter.setJasperPrint(configFilter().getJasperPrint());\n success = xlsExporter.exportToXlsx(\"fundReport.xlsx\", \"Fund Data\");\n }\n if (success) {\n return new ResponseEntity<>(\"XLS Report is successfully generated \", HttpStatus.OK);\n } else {\n return new ResponseEntity<>(\"XLS Report cannot be generated \", HttpStatus.OK);\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (AttendanceDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for Employee id :\" + transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getCreatedDate());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getEmployeeEmpId()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeFullName());\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckInTime()));\n\t\t\t\t\t\trecord.add(DateUtil.convertUTCToIST(transaction.getCheckOutTime()));\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "private void loadAllEmployees() throws AccessException, SQLException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tString sql = constructSQL();\n\t\tint[] empID = new int[1];\n\t\tint dailyOffset=0;\n\t\tif (WorkedNMinutesAlertSource.DAILY_CHECK.equalsIgnoreCase(\"yesterday\")) {\n\t\t\tdailyOffset = -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tif (minAgeSet) {\n\t\t\t\tDatetime birthThreshold = DateHelper.addDays(DateHelper.getCurrentDate(), -(365*minAge));\n\t\t\t\tps.setDate(1, new java.sql.Date(birthThreshold.getTime()));\n\t\t\t}\n\t\t\trs = ps.executeQuery();\n\t\t\tboolean isWeekly = tPeriod.equalsIgnoreCase(\"weekly\");\n\t\t\t\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\t//for each employee, retrieve work details for the day before\n\t\t\t\t//and process accordingly.\n\t\t\t\tempID[0] = new Integer(rs.getString(1)).intValue();\n\t\t\t\tWorkDetailAccess wrkDetAccess = new WorkDetailAccess(conn);\n\t\t\t\tWorkDetailList wdl = null;\n\n\t\t\t\tif (!isWeekly) {\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getCurrentDate(), dailyOffset), \"D\", null);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString firstDayOfWeek = Registry.getVarString(\"/system/WORKBRAIN_PARAMETERS/DAY_WEEK_STARTS\");\n\t\t\t\t\twdl = wrkDetAccess.loadByEmpIdsAndDateRange(empID, DateHelper.getWeeksFirstDate(\n\t\t\t\t\t\t\tDateHelper.getCurrentDate(), firstDayOfWeek), DateHelper\n\t\t\t\t\t\t\t.addDays(DateHelper.getWeeksFirstDate(DateHelper.getCurrentDate(), \n\t\t\t\t\t\t\t\t\tfirstDayOfWeek), 7), \"D\", null);\n\t\t\t\t}\n\t\t\t\tIterator wdlIter = wdl.iterator();\n\t\t\t\taccumulatedTime=0;\n\t\t\t\twhile (wdlIter.hasNext()) {\n\t\t\t\t\tprocessWorkDetail((WorkDetailData) wdlIter.next(), rs\n\t\t\t\t\t\t\t.getString(2));\n\t\t\t\t}\n\t\t\t\tif (accumulatedTime >= new Integer(nMinutes).intValue()) {\n\t\t\t\t\tfor (int i=0;i < tempRows.size(); i++) {\n\t\t\t\t\t\trows.add(tempRows.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttempRows = null;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException();\n\t\t} finally {\n\t\t\tif (rs != null)\n\t\t\t\trs.close();\n\n\t\t\tif (ps != null)\n\t\t\t\tps.close();\n\t\t}\n\n\t}", "@Override\n @Transactional\n public List<AuditLog> logs() {\n\tCompany company = this.authHelper.getAuth().getCompany();\n\tLong companyID = company == null ? null : company.getId();\n\tList<AuditLog> logs = this.companyDAO.logs(companyID);\n\tfor (AuditLog log : logs) {\n\t log.setAuditAction(AuditAction.of(log.getAction()));\n\t}\n\treturn logs;\n }", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "public void writeResultData() {\n\n// DatabaseLoader databaseLoader = new DatabaseLoader();\n TestResultDeployer testResultDeployer = new TestResultDeployer();\n MySqlDatabaseManager mySqlDatabaseManager;\n try {\n EnvironmentBuilder environmentBuilder = new EnvironmentBuilder();\n DashboardVariables dashboardVariables = environmentBuilder.getFrameworkSettings().getDashboardVariables();\n if (dashboardVariables.getEnableDashboard().equalsIgnoreCase(\"true\")) {\n String databaseName = dashboardVariables.getDbName();\n\n mySqlDatabaseManager = new MySqlDatabaseManager(dashboardVariables.getJdbcUrl(), dashboardVariables.\n getDbUserName(), dashboardVariables.getDbPassword());\n// databaseLoader.createDatabase();\n mySqlDatabaseManager.execute(\"INSERT INTO \" + databaseName + \".WA_BUILD_HISTORY VALUES()\");\n DirectoryScanner scan = new DirectoryScanner();\n scan.setBasedir(ProductConstant.REPORT_LOCATION + File.separator + \"reports\" + File.separator);\n String[] fileList = new String[]{\"*/testng-results.xml\"};\n scan.setIncludes(fileList);\n scan.scan();\n String[] fileset = scan.getIncludedFiles();\n for (int i = 0; i <= fileset.length - 1; i++) {\n testResultDeployer.writeResult(ProductConstant.REPORT_LOCATION + \"reports\" +\n File.separator + fileset[i]);\n log.info(fileset[i] + \" write to database\");\n }\n }\n } catch (ClassNotFoundException e) {\n log.error(e);\n } catch (SQLException e) {\n log.error(e);\n } /*catch (IOException e) {\n log.error(e);\n }*/\n }", "public static void main(String[] args) {\n\t\tDataToExcel etd = new DataToExcel();\n\t\ttry {\n\t\t\t\n\t\tlong startTime = System.currentTimeMillis(); // 获取开始时间\n\t\t\tetd.dataToexcel(\"e:/express2014031912.xls\");\n\t\t\tSystem.out.println(\"数据导出成功!\");\n\t\t\t\n\t\tlong endTime = System.currentTimeMillis(); \n\t\tSystem.out.println(\"导出表所需要的时间:\"+(endTime-startTime)+\"ms\");\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"数据导出失败!\");\n\t\t}\n\t}", "public static void writeToExcelFromText() {\r\n\t\tExcelDataAccess payloadDataFile = new ExcelDataAccess(\r\n\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\",\r\n\t\t\t\t\"CorrectPayloads\");\r\n\t\tpayloadDataFile.setDatasheetName(\"payloads\");\r\n\t\tint lastRowNum = payloadDataFile.getLastRowNum();\r\n\t\tfinal String TEXT_FILE_EXTENSION = \".txt\";\r\n\t\tFile[] packageDirectories = {\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\inputrequests\"),\r\n\t\t\t\tnew File(\r\n\t\t\t\t\t\t\"D:\\\\Users\\\\gawandejyostna\\\\Desktop\\\\WebServicesWorkspace\\\\GitRepo\\\\test-automation\\\\Bajaj_Automation\\\\Datatables\\\\api\\\\exptresponse\\\\uat\") };\r\n\t\tfor (File packageDirectory : packageDirectories) {\r\n\t\t\tFile[] packageFiles = packageDirectory.listFiles();\r\n\t\t\tString packageName = packageDirectory.getName();\r\n\t\t\tString payloadColumn = \"Request Payload\";\r\n\t\t\tif (\"uat\".equals(packageName)) {\r\n\t\t\t\tpayloadColumn = \"Response Payload\";\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < packageFiles.length; i++) {\r\n\t\t\t\tFile packageFile = packageFiles[i];\r\n\t\t\t\tString fileName = packageFile.getName();\r\n\t\t\t\tString fileNameWithoutExt = fileName.substring(0, fileName.indexOf(TEXT_FILE_EXTENSION));\r\n\t\t\t\t// We only want the .class files\r\n\t\t\t\tif (fileName.endsWith(TEXT_FILE_EXTENSION)) {\r\n\t\t\t\t\tString payload = readFromTextFile(packageFile);\r\n\t\t\t\t\tint rowNum = payloadDataFile.getRowNum(fileNameWithoutExt, 0);\r\n\t\t\t\t\tif (rowNum == -1) {\r\n\t\t\t\t\t\tlastRowNum = payloadDataFile.getLastRowNum();\r\n\t\t\t\t\t\trowNum = payloadDataFile.addRow();\r\n\t\t\t\t\t\tpayloadDataFile.setValue(rowNum, \"Test Case\", fileNameWithoutExt);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpayloadDataFile.setValue(rowNum, payloadColumn,\r\n\t\t\t\t\t\t\tpayload.length() > 32000 ? payload.substring(0, 32000) : payload);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public FileOutputStream generateFinance14Report(List<Finance14Dto> Finance14DtoList,String fileName) throws IOException, ClassNotFoundException, SQLException {\n\t\tFile file=new File(fileName);\n\n\t\tString sheetName = \"Sheet1\";// name of sheet\n\n//\t\tResultSet resultSet = getDatabase(villageId,yearmonth);\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); \n\t XSSFSheet spreadsheet = workbook\n\t \t .createSheet(sheetName);\n\t \t XSSFRow row=spreadsheet.createRow(1);\n\t \t /* XSSFRow row1 = spreadsheet.createRow(2);*/\n\t \t XSSFCell cell;\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(\"vid\");\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(\"month\");\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(\"year\");\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(\"Total work\");\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(\"Works approved\");\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(\"Project not started\");\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(\"Progress\");\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(\"Completed\");\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(\"Grant allocated\");\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(\"Amount spent\");\n\t \t /* cell=row.createCell(11);\n\t \t cell.setCellValue(\"entry date\");*/\n\t \t \n\t \t int i=2;\n\t \t for(Finance14Dto finance14Dto:Finance14DtoList)\n//\t \t while(resultSet.next())\n\t \t {\n\t \t row=spreadsheet.createRow(i);\n\t \t /* row1=spreadsheet.createRow(i+1);*/\n\t \t cell=row.createCell(1);\n\t \t cell.setCellValue(finance14Dto.getVillageId());\n\t \t cell=row.createCell(2);\n\t \t cell.setCellValue(finance14Dto.getMonth());\n\t \t cell=row.createCell(3);\n\t \t cell.setCellValue(finance14Dto.getYear());\n//\t \t /* spreadsheet.addMergedRegion(new CellRangeAddress(3, 3, 4, 4));*/\n\t \t cell=row.createCell(4);\n\t \t cell.setCellValue(finance14Dto.getTotalWork());\n\t \t cell=row.createCell(5);\n\t \t cell.setCellValue(finance14Dto.getWorksApproved());\n\t \t cell=row.createCell(6);\n\t \t cell.setCellValue(finance14Dto.getProjectNotStarted());\n\t \t cell=row.createCell(7);\n\t \t cell.setCellValue(finance14Dto.getProgress());\n\t \t cell=row.createCell(8);\n\t \t cell.setCellValue(finance14Dto.getCompleted());\n\t \t cell=row.createCell(9);\n\t \t cell.setCellValue(finance14Dto.getGrantAllocated());\n\t \t cell=row.createCell(10);\n\t \t cell.setCellValue(finance14Dto.getAmountSpent());\n\t \t /*cell=row.createCell(11);\n\t \t cell.setCellValue(finance14Dto.getEntryDate());*/\n\t \t i++;\n\t \t }\n\t \t FileOutputStream out = new FileOutputStream(\n\t \t file);\n\t \t workbook.write(out);\n\t \t out.close();\n\t \t System.out.println(\n\t \t \"exceldatabase.xlsx written successfully\");\n\t \t \n\t \treturn out;\n\t}", "public interface ReportService {\n /**\n * Some constants using in reports\n */\n String[] dashboardSheetNames = {\"Level And Quantity\", \"Level And Trainers\", \"Training And Quantity\"};\n String[] levelAndQuantityColumns = {\"Level\", \"Course Name\", \"Group Name\"};\n String[] levelAndTrainersColumns = {\"Trainer\", \"Course Name and Level\"};\n String[] trainingAndQuantityColumns = {\"Course Name\", \"Group Name\", \"Amount of Employees\"};\n String groupsNotFound = \"No groups to report\";\n String levelException = \"Can't find Level for Id \";\n\n /**\n * @return full attendance report of all courses and their groups\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel() throws IOException;\n\n /**\n * @return attendance report of all groups of current user\n * @param user user object, to get user information\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(User user) throws IOException;\n\n /**\n * @return attendance report of particular group\n * @param groupId id, to find group in database\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getAttendanceExcel(Integer groupId) throws IOException;\n\n /**\n * @return dashboard report of all courses, their groups, and users\n * @throws IOException if any exception during XSSFWorkbook.write()\n * @see org.apache.poi.xssf.usermodel.XSSFWorkbook\n */\n ByteArrayInputStream getDashboardExcel() throws IOException;\n}", "private void main_flow() throws SQLException {\n start_operation_complete_monitoring(this);\r\n BuffDBWriterTrell.total_nr_recorded_entries = 0;\r\n //======================\r\n NEW_RECORDS_FOUND = false;\r\n String last_export_date = get_last_export_date(SqlQ.get_latest_export_date());\r\n last_export_date = HelpM.get_date_time_minus_some_time_in_ms(last_export_date, \"yyyy-MM-dd HH:mm:ss\", 600000);// 10 min\r\n //======================\r\n export_procedure_1(last_export_date);\r\n //======================\r\n\r\n if (NEW_RECORDS_FOUND) {\r\n wait_();\r\n String msg = \" (nr rec.= \" + (BufferedDBWriterSuper.total_nr_recorded_entries - 1) + \" )\";\r\n SimpleLoggerLight.logg(\"main_flow.log\", msg);\r\n// write_to_update_table(\"main_flow\", \"\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n } else {\r\n SimpleLoggerLight.logg_no_append(\"last_check.log\", \"-> LAST CHECK\");\r\n// write_to_update_table(\r\n// \"main_flow\", \"last_check\", DBT_trell.INTERFACE_TRIGER_TABLE_NAME,\r\n// \"mc\",\r\n// \"trell\",\r\n// bWriterTrell);\r\n }\r\n }", "void exportarLog() {\n try {\n JasperPrint rU = null;\n HashMap map = new HashMap();\n\n String arquivoJasper = \"/Sistema/relatorios/relatorioAcessos.jasper\";\n try{\n rU = JasperFillManager.fillReport(arquivoJasper, map, parametrosNS.con);\n }catch(Exception e){ \n JOptionPane.showMessageDialog(null, \"visualizar relatorio \" + e);\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n JasperViewer.viewReport(rU, false); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"o erro foi ao gerar relatorio \" + e);\n }\n }", "public void run() {\n\t\tlog.info(\"Weekly Scheduled Asset Report Job starting >> isMasterInstance:{} and isAuthorInstance:{}.\", isMasterInstance, isAuthorInstance);\r\n\t\tSession session = null;\r\n\t\t\r\n if (isMasterInstance && isAuthorInstance) {\r\n \r\n \tif(sendWeeklyReport) {\r\n\t\t try {\r\n\t\t\t\t\t session = getSession();\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t //TODO- \r\n\t\t\t\t\t String lowerBoundDate = \"2014-06-19\";\r\n\t\t\t\t\t String upperBoundDate = \"2014-06-26\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t String dateRange = lowerBoundDate + \" - \" + upperBoundDate;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t String templatePath = MISReportConstant.REPORT_EMAIL_TEMPLATE;\r\n\t\t\t\t\t Map<String, String> emailParams = MISReportUtil.buildEmailParams(reportType, reportFrequency, dateRange);\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t DataSource reportDatasource = generateReport.generateReport(lowerBoundDate, upperBoundDate, reportType, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t //Get the UserGroup name for the reporType\t\t\r\n\t\t\t\t\t String userGroup = userManagement.getUserGroup(reportType);\r\n\t\t\t\t\t\r\n\t\t\t\t\t String[] authors = userManagement.getAllUsersOfGroup(userGroup, session);\r\n\t\t\t\t\t\r\n\t\t\t\t\t for(String authorID: authors) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailParams.put(MISReportConstant.FIRST_NAME, userManagement.getUserName(authorID, session));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\temailService.sendEmail(templatePath, emailParams, session, reportDatasource, userManagement.getEmailAddress(authorID, session));\r\n\t\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\t log.error(\"[Exception]\",e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif(session.isLive())\r\n\t\t\t\t\t\tsession.logout();\r\n\t\t\t\t}\r\n\t\t \r\n\t\t log.info(\"Weekly Asset Report Job finished sending {} reports\", reportType);\r\n \t}\r\n \telse {\r\n \t\tlog.info(\"Weekly Asset Report Job not executed>> Enable it from the AEM Felix console to execute\");\r\n \t}\r\n }\r\n \r\n\t}", "private boolean exportDataTable2Excel(Context context, String fileName) {\n if (!isExternalStorageAvailable() || isExternalStorageReadOnly()) { \n \terrMsg = \"Storage not available or read only\";\n return false; \n } \n \n boolean success = false; \n //New Workbook\n Workbook wb = new HSSFWorkbook();\n Cell c = null; \n //New Sheet\n Sheet sheet1 = null;\n sheet1 = wb.createSheet(\"tempData\");\n \n //load Database table \n SQLiteDatabase db;\n db = openOrCreateDatabase(\"MyDB\", MODE_PRIVATE, null);\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS \"+ loadedTable +\" (Datum TEXT(40), Temp1S INT(4),Temp2S INT(4),Temp3S INT(4));\");\n\n\t\tCursor cur = db.rawQuery(\"SELECT * FROM \"+ loadedTable, null);\n\t\tif (cur != null && cur.getCount() > 0) {\n\t\t\tcur.moveToFirst();\n\t\t\tint i = 0;\n\t\t\tString s;\n\t\t\tRow row = sheet1.createRow(0);\n\t\t\tc = row.createCell(0);\n\t c.setCellValue(\"Datum\");\n\t c = row.createCell(1);\n\t c.setCellValue(\"tempS\");\n\t c = row.createCell(2);\n\t c.setCellValue(\"tempP\");\n\t c = row.createCell(3);\n\t c.setCellValue(\"tempZ\");\n\t\t\t\n\t\t\tdo {\n\t\t\t\ti++;\n\t\t\t\trow = sheet1.createRow(i);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Datum\"));\n\t\t\t\tc = row.createCell(0);\n\t\t c.setCellValue(s);\n\t\t \n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp1S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(1);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp2S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(2);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t\ts = cur.getString(cur.getColumnIndex(\"Temp3S\")) + \"\\n\";\n\t\t\t\tc = row.createCell(3);\n\t\t c.setCellValue(s);\n\t\t\t\t\n\t\t\t} while (cur.moveToNext());\n\t\t} else {\n\t\t\terrMsg = \"No data in table!\";\n\t\t}\n\n\t\tdb.close(); //close dataBase\n\n\n sheet1.setColumnWidth(0, (4000));\n sheet1.setColumnWidth(1, (1600));\n sheet1.setColumnWidth(2, (1600));\n sheet1.setColumnWidth(3, (1600));\n \n // Create a path where we will place our List of objects on external storage \n File file = new File(context.getExternalFilesDir(null), fileName); \n FileOutputStream os = null; \n \n try { \n os = new FileOutputStream(file);\n wb.write(os);\n errMsg = \"Successfully Exported!\";\n success = true; \n } catch (IOException e) { \n errMsg = \"Error writing \" + file;\n } catch (Exception e) { \n errMsg =\"Failed to save file\"; \n } finally { \n try { \n if (os != null) \n os.close(); \n } catch (Exception ex) { \n } \n } \n return success; \n }", "public static void audit(String nume_op) {\n try (FileWriter fileWriter = new FileWriter(\"audit.csv\",true)) {\r\n fileWriter.append(nume_op+\": \"+ LocalDate.now().toString()+'\\n');\r\n } catch (IOException e) {\r\n System.out.println(\"Something went wrong in writeUsingFileWriter method\");\r\n }\r\n }", "public void CreateTestResultFile()\n\t{ \n\t\tDate dNow = new Date( );\n\t\tSimpleDateFormat ft =new SimpleDateFormat (\"MMddYYYY\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tFileOutputStream fos = new FileOutputStream(System.getProperty(\"user.dir\")+\"//PG HealthCheck List_\"+ft.format(dNow)+\".xls\");\n\t HSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet worksheet = workbook.createSheet(\"PG Functionality - Country\");\n\t HSSFRow row1 = worksheet.createRow(0);\n\t row1.createCell(0).setCellValue(\"Availability of Data\");\n\t HSSFRow row = worksheet.createRow(1);\n\t row.createCell(0).setCellValue(\"Testcase\");\n\t row.createCell(1).setCellValue(\"TestRunStatus\");\n\t row.createCell(2).setCellValue(\"Remarks\");\n\t workbook.write(fos);\n\t fos.close();\n\t \t \n\t } \n\t\tcatch (Exception e)\n\t {\n\t \te.printStackTrace();\n\t }\n\t\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(JOB_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (JobDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(String.valueOf(transaction.getTitle()));\n\t\t\t\t\t\trecord.add(transaction.getEmployeeName());\n\t\t\t\t\t\trecord.add(transaction.getJobType());\n\t\t\t\t\t\trecord.add(transaction.getPlannedStartTime());\n\t\t\t\t\t\trecord.add(transaction.getActualEndTime());\n\t\t\t\t\t\trecord.add(transaction.getJobStatus() != null ? transaction.getJobStatus().name()\n\t\t\t\t\t\t\t\t: JobStatus.OPEN.name());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!! \" + e);\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void downloadSingleExcel(QueryParameter query) {\n try {\n // Get excel\n HttpPost httppost = new HttpPost(HttpURL.getBillURL());\n List<NameValuePair> exportExcelFields = new ArrayList<NameValuePair>();\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(timeYear)\", query.getYearString()));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(timeMonth)\", LAST_MONTH));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(yearId)\", query.getYearString()));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(chars)\", \"\"));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(hiddenDate)\", query.getYearString() + LAST_MONTH));\n exportExcelFields.add(new BasicNameValuePair(\"reservedProp(type)\", \"power\"));\n exportExcelFields.add(new BasicNameValuePair(\"errorInfo\", \"power\"));\n exportExcelFields.add(new BasicNameValuePair(\"maxrow\", \"12\"));\n exportExcelFields.add(new BasicNameValuePair(\"action\", \"expExcel\"));\n httppost.setEntity(new UrlEncodedFormEntity(exportExcelFields, \"UTF-8\"));\n HttpEntity entity = this.client.execute(httppost).getEntity();\n this.saveExcelFile(entity, getTempExcelName(this.account, query));\n EntityUtils.consume(entity);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void LogPurchaseHistoryTable() {\n SQLiteDatabase db = DBHelper.getReadableDatabase();\n Cursor c = db.rawQuery(\"SELECT * FROM \" + DBHelper.TABLE_PURCHASEHISTORY, null);\n Log.d(DatabaseHelper.class.getName(), \"Contents of PurchaseHistory Table:\");\n\n c.moveToFirst();\n while (!c.isAfterLast()) {\n Log.d(DatabaseHelper.class.getName(), \"\\t _id:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_ID))) +\n \", pid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PID))) +\n \", sid:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_SID))) +\n \", price:\" + String.valueOf(c.getDouble(c.getColumnIndex(DBHelper.PURCHASEHISTORY_PRICE))) +\n \", quality:\" + String.valueOf(c.getInt(c.getColumnIndex(DBHelper.PURCHASEHISTORY_QUALITY))) +\n \", timestamp:\" + String.valueOf(c.getString(c.getColumnIndex(DBHelper.PURCHASEHISTORY_DATE))) );\n c.moveToNext();\n }\n\n db.close();\n }", "@Override\n\tpublic String getLaqshyaReport() throws IOException {\n\t\tString usreName = \"admin\";\n\t\tList<LaqshyaData> datas = null;\n\n\t\tCollectUser user = collectUserRepository.findByUsername(usreName);\n\t\tArea userArea = user.getUserRoleFeaturePermissionMappings().get(0).getRoleFeaturePermissionScheme().getArea();\n\n\t\tString[] headerData = { \"Sr.No.\", \"District\", \"Name of Facility\", \"Type of Assessment \", \"Total Score \",\n\t\t\t\t\"Service Provision\", \"Patient Right\", \"Input\", \"Support Services\", \"Clinical Services\",\n\t\t\t\t\"Infection Control\", \"Quality Management\", \"Outcome\", \"State Assesment Done\",\n\t\t\t\t\"State Certification - Labor Room\", \"State Certification - OT\", \"National Certification - Labor Room\",\n\t\t\t\t\"National Certification - OT\" };\n\n\t\tif (usreName.equalsIgnoreCase(\"admin\") || userArea.getAreaId() == 2) {\n\t\t\tdatas = laqshyaDataRepository.findByIsLiveTrue();\n\t\t} else\n\t\t\tdatas = laqshyaDataRepository.findByDistrictIdAndIsLiveTrue(userArea);\n\n\t\tif (datas.size() > 1) {\n\n\t\t\tXSSFWorkbook xssfWorkbook = new XSSFWorkbook();\n\t\t\tRow row;\n\t\t\tCell cell;\n\t\t\tint rowNum = 0, colNum = 0;\n\n\t\t\tXSSFSheet sheet = xssfWorkbook.createSheet();\n//\t\tPOIXMLProperties xmlProps = xssfWorkbook.getProperties();\n//\t\tPOIXMLProperties.CoreProperties coreProps = xmlProps.getCoreProperties();\n//\t\tcoreProps.setCreator(\"dgaindia.org\");\n\n\t\t\tCellStyle headingStyle = xssfWorkbook.createCellStyle();\n\t\t\tFont font = xssfWorkbook.createFont();\n\t\t\tfont.setBold(true);\n\t\t\theadingStyle.setFont(font);\n\t\t\theadingStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\theadingStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\theadingStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\t\t\theadingStyle.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);\n\t\t\theadingStyle.setFillForegroundColor(IndexedColors.GREY_40_PERCENT.getIndex());\n\n\t\t\tCellStyle cellStyle = xssfWorkbook.createCellStyle();\n\t\t\tcellStyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\n\t\t\tcellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\n\t\t\tcellStyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\n\n\t\t\trow = sheet.createRow(rowNum);\n\n\t\t\tfor (int i = 0; i < 18; i++) {\n\t\t\t\tcell = row.createCell(i);\n\t\t\t\tcell.setCellStyle(headingStyle);\n\t\t\t\tcell.setCellValue(headerData[i]);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\t\t\t}\n\t\t\trowNum++;\n\n\t\t\t// row = sheet.createRow(rowNum);\n\t\t\tint counter = 1;\n\t\t\tfor (int j = 0; j < datas.size(); j++) {\n\t\t\t\trow = sheet.createRow(rowNum + j);\n\t\t\t\tcell = row.createCell(0);\n//\t\t\tcell.setCellStyle(headingStyle);\n\t\t\t\tcell.setCellValue(j + counter);\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(1);\n//\t\t\tcell.setCellStyle(headingStyle);\n\t\t\t\tcell.setCellValue(datas.get(j).getDistrictName());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(2);\n\t\t\t\tcell.setCellValue(datas.get(j).getFacilityName());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(3);\n\t\t\t\tcell.setCellValue(\"Peer Assessment\");\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(4);\n\t\t\t\tif (datas.get(j).getTotalScorePeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(datas.get(j).getTotalScorePeer());\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getTotalScorePeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(5);\n\t\t\t\tif (datas.get(j).getServiceProvisionPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getServiceProvisionPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(6);\n\t\t\t\tif (datas.get(j).getPatientRightPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getPatientRightPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(7);\n\t\t\t\tif (datas.get(j).getInputPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getInputPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(8);\n\t\t\t\tif (datas.get(j).getSupportServicesPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getSupportServicesPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(9);\n\t\t\t\tif (datas.get(j).getClinicalServicesPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getClinicalServicesPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(10);\n\t\t\t\tif (datas.get(j).getInfectionControlPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getInfectionControlPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(11);\n\t\t\t\tif (datas.get(j).getQualityManagementPeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getQualityManagementPeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(12);\n\t\t\t\tif (datas.get(j).getOutcomePeer().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getOutcomePeer()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(13);\n\t\t\t\tif (datas.get(j).getStateAssesmentDonePeer().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateCertificationLaborRoomBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateAssesmentDonePeer());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(14);\n\t\t\t\tif (datas.get(j).getStateCertificationLaborRoomPeer().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateCertificationLaborRoomPeer().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateCertificationLaborRoomPeer());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(15);\n\t\t\t\tif (datas.get(j).getStateCertificationOTPeer().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateCertificationOTPeer().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateCertificationOTPeer());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(16);\n\t\t\t\tif (datas.get(j).getNationalCertificationLaborRoomPeer().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getNationalCertificationLaborRoomPeer().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getNationalCertificationLaborRoomPeer());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(17);\n\t\t\t\tif (datas.get(j).getNationalCertificationOTPeer().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getNationalCertificationOTPeer().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getNationalCertificationOTPeer());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcounter++;\n\t\t\t\trowNum++;\n\t\t\t\trow = sheet.createRow(rowNum + j);\n\n\t\t\t\tcell = row.createCell(0);\n//\t\t\tcell.setCellStyle(headingStyle);\n\t\t\t\tcell.setCellValue(j + counter);\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(1);\n//\t\t\tcell.setCellStyle(headingStyle);\n\t\t\t\tcell.setCellValue(datas.get(j).getDistrictName());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(2);\n\t\t\t\tcell.setCellValue(datas.get(j).getFacilityName());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\t\t\t\tsheet.autoSizeColumn(cell.getColumnIndex());\n\n\t\t\t\tcell = row.createCell(3);\n\t\t\t\tcell.setCellValue(\"Baseline Assessment Labor Room\");\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(4);\n\t\t\t\tif (datas.get(j).getTotalScoreBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getTotalScoreBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(5);\n\t\t\t\tif (datas.get(j).getServiceProvisionBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getServiceProvisionBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(6);\n\t\t\t\tif (datas.get(j).getPatientRightBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getPatientRightBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(7);\n\t\t\t\tif (datas.get(j).getInputBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getInputBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(8);\n\t\t\t\tif (datas.get(j).getSupportServicesBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getSupportServicesBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(9);\n\t\t\t\tif (datas.get(j).getClinicalServicesBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getClinicalServicesBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(10);\n\t\t\t\tif (datas.get(j).getInfectionControlBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getInfectionControlBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(11);\n\t\t\t\tif (datas.get(j).getQualityManagementBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getQualityManagementBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(12);\n\t\t\t\tif (datas.get(j).getOutcomeBaseline().isEmpty())\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(Float.valueOf(datas.get(j).getOutcomeBaseline()));\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(13);\n\t\t\t\tif (datas.get(j).getStateAssesmentDoneBaseline().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateAssesmentDoneBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateAssesmentDoneBaseline());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(14);\n\t\t\t\tif (datas.get(j).getStateCertificationLaborRoomBaseline().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateCertificationLaborRoomBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateCertificationLaborRoomBaseline());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(15);\n\t\t\t\tif (datas.get(j).getStateCertificationOTBaseline().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getStateCertificationOTBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getStateCertificationOTBaseline());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(16);\n\t\t\t\tif (datas.get(j).getNationalCertificationLaborRoomBaseline().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getNationalCertificationLaborRoomBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getNationalCertificationLaborRoomBaseline());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n\t\t\t\tcell = row.createCell(17);\n\t\t\t\tif (datas.get(j).getNationalCertificationOTBaseline().isEmpty()\n\t\t\t\t\t\t|| datas.get(j).getNationalCertificationOTBaseline().trim().equals(\"-\"))\n\t\t\t\t\tcell.setCellValue(\"\");\n\t\t\t\telse\n\t\t\t\t\tcell.setCellValue(datas.get(j).getNationalCertificationOTBaseline());\n\t\t\t\tcell.setCellStyle(cellStyle);\n\n//\t\t\tcounter++;\n//\t\t\trowNum++;\n\n\t\t\t}\n\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss-SSS\");\n\t\t\tString filepath = messages.getMessage(\"LaqshyaOutputPath\", null, null) + datas.get(0).getDistrictName()\n\t\t\t\t\t+ \"_\" + sdf.format(new Date()) + \".xlsx\";\n\n//\t\tsheet.createFreezePane(0, 1);\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(filepath);\n\t\t\txssfWorkbook.write(fileOutputStream);\n\t\t\txssfWorkbook.close();\n\n\t\t\treturn filepath;\n\t\t} else\n\t\t\treturn \"\";\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\t// if(StringUtils.isNotEmpty(empId)) {\n\t\t\t\t// filePath += \"/\" + empId;\n\t\t\t\t// }\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(EMPLOYEE_DETAIL_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\t// Write a new student object list to the CSV file\n\t\t\t\t\tfor (EmployeeDTO transaction : content) {\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\t// log.debug(\"Writing transaction record for Employee id :\"+\n\t\t\t\t\t\t// transaction.getEmployeeEmpId());\n\t\t\t\t\t\trecord.add(transaction.getEmpId());\n\t\t\t\t\t\trecord.add(transaction.getName());\n\t\t\t\t\t\trecord.add(transaction.getDesignation());\n\t\t\t\t\t\trecord.add(transaction.getManagerName());\n\t\t\t\t\t\trecord.add(transaction.getProjectName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getActive());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}", "public static void main(String[] args) {\n Module module = ActivatorToolBox.simpleLink(new BaseDBActivator(),\n new ConfigurationActivator(),\n new StandaloneModeActivator(),\n new ModuleHealActivator(),\n new StateServiceActivator(),\n new ChartBaseActivator(),\n new SchedulerActivator(),\n new ReportBaseActivator(),\n new RestrictionActivator(),\n new ReportActivator(),\n new WriteActivator());\n SimpleWork.supply(CommonOperator.class, new CommonOperatorImpl());\n String envpath = \"//Applications//FineReport10_325//webapps//webroot//WEB-INF\";\n SimpleWork.checkIn(envpath);\n I18nResource.getInstance();\n module.start();\n\n\n ResultWorkBook rworkbook = null;\n try {\n // read the workbook\n TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(\"//doc//Primary//Parameter//Parameter.cpt\");\n // get the parameters and set value\n Parameter[] parameters = workbook.getParameters();\n parameters[0].setValue(\"华东\");\n // define a parameter map to execute the workbook\n java.util.Map parameterMap = new java.util.HashMap();\n for (int i = 0; i < parameters.length; i++) {\n parameterMap.put(parameters[i].getName(), parameters[i]\n .getValue());\n }\n\n FileOutputStream outputStream;\n\n // unaltered export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xls\"));\n ExcelExporter excel = new ExcelExporter();\n excel.setVersion(true);\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // unaltered export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xlsx\"));\n StreamExcel2007Exporter excel1 = new StreamExcel2007Exporter();\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xls\"));\n PageExcelExporter page = new PageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n page.setVersion(true);\n page.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xlsx\"));\n PageExcel2007Exporter page1 = new PageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n page1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xls\"));\n PageToSheetExcelExporter sheet = new PageToSheetExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n sheet.setVersion(true);\n sheet.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xlsx\"));\n PageToSheetExcel2007Exporter sheet1 = new PageToSheetExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n sheet1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // Large data volume export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.zip\"));\n LargeDataPageExcelExporter large = new LargeDataPageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())), true);\n\n // Large data volume export to xlsx\n // outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.xlsx\"));\n // LargeDataPageExcel2007Exporter large = new LargeDataPageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook), true);\n large.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n outputStream.close();\n module.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void my_timesheet_report()\n {\n\t boolean timesheetreppresent =mytimesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\" My Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }", "public static void exportData(Context context){\r\n \t\tinvokeLoggerService(context, MainPipeline.ACTION_ARCHIVE_DATA);\r\n \t}", "public void userAppointmentsReport() {\n reportLabel.setText(\"\");\n reportLabel1.setText(\"\");\n reportLabel2.setText(\"\");\n reportLabel3.setText(\"\");\n reportsList = DBReports.getUserAppointments();\n System.out.println(reportsList.toArray().length);\n StringBuilder sb = new StringBuilder();\n sb.append(\"Appointments Added By User Report:\" + \"\\n\");\n\n reportsList.forEach(r -> sb.append(\"\\n\" + r.getUserName().toUpperCase() + \"\\n\" +\n r.getAppointmentCount() + \" appointments scheduled for \" + r.getCustomerCount() + \" customers\\n\"));\n reportLabel.setText(sb.toString());\n }", "public void ifFileExistsAndCreate() {\n DbHelper dbHelper = new DbHelper(context);\n File file = new File(directory_path);\n if (!file.exists()) {\n file.mkdirs();\n }\n SQLiteToExcel sqliteToExcel2 = new SQLiteToExcel(context, dbHelper.getDatabaseName(), directory_path);\n sqliteToExcel2.exportAllTables(fileName, new SQLiteToExcel.ExportListener() {\n\n @Override\n public void onStart() {\n Log.d(\"start\", \"Started Exported\");\n\n }\n\n @Override\n public void onCompleted(String filePath) {\n Log.d(\"succesfully\", \"Successfully Exported\");\n }\n\n @Override\n public void onError(Exception e) {\n Log.d(\"error\", e.getMessage());\n\n }\n });\n }", "private static void Worker(Connection con, String d1, String d2) throws SQLException, IOException {\n var id = 0;\n var CREATE_USER_ID = 0;\n long CREATE_USER_DATE = 0;\n var url = \"\";\n\n Path path = Paths.get(userHome + \"/photos.txt\");\n var content = \"\";\n\n PreparedStatement ps = con.prepareStatement(\"select id, url, foto, CREATE_USER_ID, CREATE_USER_DATE from lksz.fotok where CREATE_USER_DATE>='\" + d1 + \"' and CREATE_USER_DATE<'\" + d2 + \"' order by id\");\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n id = rs.getInt(1);\n url = rs.getString(2);\n CREATE_USER_ID = rs.getInt(4);\n CREATE_USER_DATE = rs.getLong(5);\n\n try {\n Blob b = rs.getBlob(3); //2 means 2nd column data\n if (b != null) {\n byte barr[] = b.getBytes(1, (int) b.length()); //1 means first image\n\n FileOutputStream fout = new FileOutputStream(\"/export/exp/\" + url);\n fout.write(barr);\n\n fout.close();\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n System.out.println(ind + \": \" + \"/export/exp/\" + url);\n ind++;\n content = id + \"|\" + url + \"|\" + CREATE_USER_ID + \"|\" + CREATE_USER_DATE + \"\\n\";\n try {\n Files.write(path, content.getBytes(), StandardOpenOption.APPEND);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n rs.close();\n ps.close();\n }", "@Override\r\n public void execute(Workbook workbook) {\n InputStream fileStream = this.getResourceStream(\"xlsx/Employee absence schedule.xlsx\");\r\n workbook.open(fileStream);\r\n }", "public void processInput(Exchange exchange) {\n String fileName = (String) exchange.getIn().getHeaders().get(Exchange.FILE_NAME);\n logger.info(\"fileProcessing:{}\",fileName);\n try {\n List<DailyReconcilationRecord> dailyReconcilationRecordList = (List<DailyReconcilationRecord>)exchange.getIn().getBody();\n try (XSSFWorkbook xssfWorkbook = new XSSFWorkbook()) {\n XSSFSheet lasSheet = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_LAS);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_LAS, 0);\n int i = 0;\n setColumnWidthForSheet(lasSheet);\n CellStyle cellStyle = xssfWorkbook.createCellStyle();\n cellStyle.setAlignment(HorizontalAlignment.LEFT);\n logger.info(\"started creating las sheet\");\n for (DailyReconcilationRecord dailyReconcilationRecord : dailyReconcilationRecordList) {\n XSSFRow row = lasSheet.createRow(i);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getRequestId(), 0);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getBarcode(), 1);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getCustomerCode(), 2);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getStopCode(), 3);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getPatronId(), 4);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getCreateDate(), 5);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getLastUpdatedDate(), 6);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getRequestingInst(), 7);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getOwningInst(), 8);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getDeliveryMethod(), 9);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getStatus(), 10);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getErrorCode(), 11);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getErrorNote(), 12);\n i++; \n }\n logger.info(\"completed creating las sheet\");\n Sheet readLasSheet = xssfWorkbook.getSheetAt(0);\n XSSFSheet scsbSheet = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_SCSB);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_SCSB, 1);\n createHeader(scsbSheet);\n XSSFCellStyle dateCellStyle = getXssfCellStyleForDate(xssfWorkbook);\n logger.info(\"started creating scsb sheet\");\n for (int j = 1; j <= readLasSheet.getLastRowNum(); j++) {\n readValuesFromLasSheet(xssfWorkbook, readLasSheet, scsbSheet, dateCellStyle, j);\n }\n logger.info(\"completed creating scsb sheet\");\n compareLasAndScsbSheets(xssfWorkbook,cellStyle);\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(ReCAPConstants.DAILY_RR_FILE_DATE_FORMAT);\n FileOutputStream fileOutputStream = new FileOutputStream(filePath + \"/\" + ReCAPConstants.DAILY_RR + simpleDateFormat.format(new Date()) + \".xlsx\");\n xssfWorkbook.write(fileOutputStream);\n fileOutputStream.flush();\n fileOutputStream.close();\n logger.info(\"total number of sheets created {}\",xssfWorkbook.getNumberOfSheets());\n camelContext.startRoute(ReCAPConstants.DAILY_RR_FS_ROUTE_ID);\n logger.info(\"started \"+ReCAPConstants.DAILY_RR_FS_ROUTE_ID);\n }\n }\n catch (Exception e){\n logger.error(ReCAPConstants.LOG_ERROR + e);\n }\n logger.info(\"fileProcessed:{}\",fileName);\n }", "public void timesheet_report()\n {\n\t boolean timesheetreppresent =timesheetrep.size()>0;\n\t if(timesheetreppresent)\n\t {\n\t\t // System.out.println(\"Timesheet report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"Timesheet report is not present\");\n\t }\n }", "public abstract boolean exportStatistics(String statsFileName) throws SQLException;", "public static File createStatisticsFile(User currentUser){\n\t\t\n\t\t//TODO WHOLE APP TO USE ONE HREF.\n\t\t//final String href = \"http://localhost:9000/\";\n\t\t\n\t\ttry {\n\t\t\t// creates the \"excel sheet\" with its name;\n\t\t\tHSSFWorkbook workbook = new HSSFWorkbook();\n\t HSSFSheet sheet = workbook.createSheet(\"Statistics\"); \n\t String fileName = UUID.randomUUID().toString().replace(\"-\", \"\") + \".xls\";\n\t // creates the folder with the file name; \n\t new File(statsFilePath).mkdirs();\n\t File statisticFile = new File(statsFilePath +fileName);\n\t \n\t applyTheStringViewForStats(currentUser);\n\t\t\t \n\t //SETTING STYLE\n\t HSSFCellStyle style = workbook.createCellStyle();\n\t style.setBorderTop((short) 6); \n\t style.setBorderBottom((short) 1); \n\t style.setFillBackgroundColor(HSSFColor.GREY_80_PERCENT.index);\n\t style.setFillForegroundColor(HSSFColor.GREY_80_PERCENT.index);\n\t style.setFillPattern(HSSFColor.GREY_80_PERCENT.index);\n\t \n\t HSSFFont font = workbook.createFont();\n\t font.setFontName(HSSFFont.FONT_ARIAL);\n\t font.setFontHeightInPoints((short) 10);\n\t font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t font.setColor(HSSFColor.BLACK.index);\t \n\t style.setFont(font);\n\t style.setWrapText(true);\n\t \n\t //Header cells (the first header row) and added style !\n\t HSSFRow rowhead= sheet.createRow((short)0);\n\t \n\t HSSFCell bitpikId = rowhead.createCell(0);\n\t bitpikId.setCellValue(new HSSFRichTextString(\"BitPik id\"));\n\t bitpikId.setCellStyle(style);\n\t \n\t HSSFCell productName = rowhead.createCell(1);\n\t productName.setCellValue(new HSSFRichTextString(\"Ime proizvoda\"));\n\t productName.setCellStyle(style);\n\t \n\t HSSFCell productPrice = rowhead.createCell(2);\n\t productPrice.setCellValue(new HSSFRichTextString(\"Cijena\"));\n\t productPrice.setCellStyle(style);\n\t \n\t HSSFCell publishedDate = rowhead.createCell(3);\n\t publishedDate.setCellValue(new HSSFRichTextString(\"Datum objave\"));\n\t publishedDate.setCellStyle(style); \n\t \n\t HSSFCell isSold = rowhead.createCell(4);\n\t isSold.setCellValue(new HSSFRichTextString(\"Prodat artikal\"));\n\t isSold.setCellStyle(style); \n\t \n\t HSSFCell isSpecial = rowhead.createCell(5);\n\t isSpecial.setCellValue(new HSSFRichTextString(\"Izdvojen\"));\n\t isSpecial.setCellStyle(style); \n\t \n\t HSSFCell noOfClicks = rowhead.createCell(6);\n\t noOfClicks.setCellValue(new HSSFRichTextString(\"Br. pregleda\"));\n\t noOfClicks.setCellStyle(style); \n\t \n\t HSSFCell noOfComments = rowhead.createCell(7);\n\t noOfComments.setCellValue(new HSSFRichTextString(\"Br. komentara\"));\n\t noOfComments.setCellStyle(style);\n\t \n\t rowhead.setHeight((short)20);\n\t //Creating rows for each product from the list allProducts. \n\t // starting from the row (number 1.) - we generate each cell with its value;\n\t int rowIndex = 1;\n\t \n\t for (Product product: allProducts){\n\t\t \tHSSFRow row= sheet.createRow(rowIndex);\n\t\t \trow.createCell(0).setCellValue(product.id);\n\t\t row.createCell(1).setCellValue(product.name);\n\t\t row.createCell(2).setCellValue(product.price);\n\t\t row.createCell(3).setCellValue(product.publishedDate); \t \n\t\t row.createCell(4).setCellValue(product.statsProducts.isItSold); \t\n\t\t row.createCell(5).setCellValue(product.statsProducts.isItSpecial); \n\t\t \n\t\t row.createCell(6).setCellValue(product.statsProducts.noOfClicksS); \t\n\t\t Logger.info(\"noOfclicks Prod.\" +product.name + \" je > \" +product.statsProducts.noOfClicksS);\n\t\t row.createCell(7).setCellValue(product.statsProducts.noOfComments); \n\t\t Logger.info(\"noOfcomments Prod.\" +product.name + \" je > \" +product.statsProducts.noOfClicksS);\n\t\t rowIndex++;\n\t }\n\t \n\t //rowhead.setRowStyle(style);\n\t //auto-sizing all of the columns in the sheet generated;\n\t for(int i=0; i<8; i++){\n\t \t sheet.autoSizeColumn((short) i);\t\n\t }\t \n\t \n\t // putting the File in FileOutPutStream();\n\t FileOutputStream fileOut = new FileOutputStream(statisticFile);\n\t workbook.write(fileOut);\n\t fileOut.flush();\n\t fileOut.close();\n\t workbook.close();\n\t \n\t return statisticFile;\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\tLogger.error(\"Statistic file exception \", e );\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger.error(\"IO exception\", e);\n\t\t} \n\t\treturn null;\n\t}", "private void ExportCSV() {\n //checks if you have given this app the permission to write to external storage\n int checkVal = context.checkCallingOrSelfPermission(\"android.permission.WRITE_EXTERNAL_STORAGE\");\n if (checkVal != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Turn on WRITE_EXTERNAL_STORAGE permission\", Toast.LENGTH_LONG).show();\n return;\n }\n\n //makes new list for workTime\n final List<WorkTime> workTimeArrayList = new ArrayList<>();\n\n //gets the workTimes from the database\n Database.getWorkTimeRef().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n WorkTime workTime = snapshot.getValue(WorkTime.class);\n\n //if hasCheckDates is true the workTimes will be filtered based on the dates\n if (hasCheckDate) {\n //create new date instances\n Date after = new Date();\n Date before = new Date();\n Date check = new Date(workTime.getDate() * 1000L);\n\n //tries to parse the dates\n try {\n after = sdf.parse(btnStartDate.getText().toString());\n before = sdf.parse(btnEndDate.getText().toString());\n } catch (ParseException e) {\n e.printStackTrace();\n Toast.makeText(context, \"Couldn't parse the dates\", Toast.LENGTH_SHORT).show();\n }\n\n //if the date is with in range it will be added to to list\n if (check.after(after) && check.before(before)){\n workTimeArrayList.add(workTime);\n }\n } else {\n //with no filter all will be added to the list\n workTimeArrayList.add(workTime);\n }\n }\n\n //creates the header for the CSV file\n csvFile = new StringBuilder();\n csvFile.append(FILE_HEADER);\n csvFile.append(NEW_LINE_SEPARATOR);\n\n //loops trough all the workTimes in the list\n for (final WorkTime workTime : workTimeArrayList) {\n Database.getProjectsRef().child(workTime.getProjectID()).child(\"name\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.getValue() != null) {\n\n //adds the worktime to the CSV file\n projectname = dataSnapshot.getValue().toString();\n csvFile.append(projectname)\n .append(COMMA_DELIMITER)\n .append(String.valueOf(workTime.getDescription()))\n .append(COMMA_DELIMITER)\n .append(String.valueOf(workTime.getTime()))\n .append(COMMA_DELIMITER)\n .append(sdf.format(new Date(workTime.getDate() * 1000L)))\n .append(COMMA_DELIMITER)\n .append(String.valueOf(workTime.getWorktimeID()))\n .append(COMMA_DELIMITER)\n .append(String.valueOf(workTime.getUserID()))\n .append(COMMA_DELIMITER)\n .append(NEW_LINE_SEPARATOR);\n\n //keeps track of the arraylist position\n arrayLength++;\n }\n\n //if the array is done the file will be exported\n if (arrayLength >= workTimeArrayList.size() ){\n export();\n arrayLength = 0;\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {}\n });\n }\n\n //if there are no worktimes in the filter display this message\n if (workTimeArrayList.size() == 0){\n Toast.makeText(context, \"There are no hours to be exported between these dates\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }", "Set<TimeJournalBean> findUserActivityByDate(Date date, Employee employee);", "public void exportExcel(final List<Project> projects) throws Exception {\n\n\t\tlog.info(\"Entered exportExcel \");\n\n\t\t/* Check if previous week report is older than one week */\n\t\tLocalDate previousReportDate = findPreviousWeekDate();\n\t\tLocalDate now = LocalDate.now();\n\t\tint daysOfDifference = (now.getDayOfYear() - previousReportDate.getDayOfYear());\n\t\tSystem.err.println(\"Days of difference : \" + daysOfDifference);\n\t\tif (daysOfDifference > maximumWeekDays)\n\t\t\tthrow new Exception(baseHistoryPath + \" doesn't contain the previous week report.\");\n\n\t\t/* Read previous week report */\n\t\tList<Project> previousWeekProjects = readPreviousWeekReport(previousReportDate);\n\t\t// Collections.sort(previousWeekProjects, new NameComporator())\n\t\t// Collections.sort(projects, new NameComporator())\n\n\t\t/* Create XSSFWorkbook & XSSFSheet */\n\t\tXSSFWorkbook workbook = new XSSFWorkbook();\n\t\tXSSFSheet sheet = workbook.createSheet(\"Datatypes in Java\");\n\n\t\t// --------------- Create Styles -----------------------//\n\n\t\t/* Init Styles */\n\t\tinitStyles(workbook);\n\n\t\t/* Iterate the data */\n\t\tint[] rowNum = { 0 };\n\n\t\t/* Create row 0-Descriptions */\n\t\tRow row0 = sheet.createRow(rowNum[0]);\n\t\tfor (int i = 0; i <= 4; i++) {\n\n\t\t\t/* Create Row Count */\n\t\t\tCell cell = row0.createCell(i);\n\t\t\tcell.setCellStyle(blueStyle);\n\t\t\tif (i == 0)\n\t\t\t\tcell.setCellValue(\"NO\");\n\t\t\telse if (i == 1)\n\t\t\t\tcell.setCellValue(\"Category\");\n\t\t\telse if (i == 2)\n\t\t\t\tcell.setCellValue(\"Component\");\n\t\t\telse if (i == 3)\n\n\t\t\t\tcell.setCellValue(\"Last Week\");\n\t\t\telse if (i == 4)\n\t\t\t\tcell.setCellValue(\"This week\");\n\n\t\t\tif (i <= 2)\n\t\t\t\tcell.setCellStyle(blueStyleLeft);\n\t\t\telse\n\t\t\t\tcell.setCellStyle(blueStyle);\n\t\t}\n\n\t\tprojects.forEach(thisWeekProject -> {\n\t\t\trowNum[0]++;\n\t\t\tRow row = sheet.createRow(rowNum[0]);\n\n\t\t\tint[] colNum = { 0 };\n\n\t\t\t/* Create Row Count */\n\t\t\tCell rowCountCell = row.createCell(colNum[0]++);\n\t\t\trowCountCell.setCellStyle(defaultStyle);\n\t\t\trowCountCell.setCellValue(rowNum[0]);\n\n\t\t\t/* Application Category */\n\t\t\tCell categoryCell = row.createCell(colNum[0]++);\n\t\t\tcategoryCell.setCellValue(thisWeekProject.getCategory());\n\n\t\t\t/* Application Name */\n\t\t\tCell nameCell = row.createCell(colNum[0]++);\n\t\t\tnameCell.setCellValue(thisWeekProject.getName());\n\n\t\t\t// --------------- Add Coverage -----------------------//\n\n\t\t\t/* Add Previous Week Coverage */\n\t\t\tProject previousWeekProject = previousWeekProjects.stream()\n\t\t\t\t\t.filter(project -> project.getName().equals(thisWeekProject.getName())).findFirst().get();\n\t\t\tCell previousWeekCovCell = row.createCell(colNum[0]++);\n\t\t\tif (previousWeekProject.getCoverage().equals(\"No Coverage\"))\n\t\t\t\tpreviousWeekCovCell.setCellStyle(orangeStyle);\n\t\t\telse\n\t\t\t\tpreviousWeekCovCell.setCellStyle(defaultStyleRight);\n\t\t\tpreviousWeekCovCell.setCellValue(previousWeekProject.getCoverage());\n\n\t\t\t//Print Table to Console?\n\t\t\tif (printToConsole) {\n\t\t\t\tSystem.err.println(\"----------------------------------------\");\n\t\t\t\tSystem.err.println(\n\t\t\t\t\t\trowNum[0] + \" This Week => \" + thisWeekProject.getName() + \":\" + thisWeekProject.getCoverage());\n\t\t\t\tSystem.err.println(rowNum[0] + \" Prev Week => \" + previousWeekProject.getName() + \":\"\n\t\t\t\t\t\t+ previousWeekProject.getCoverage());\n\n\t\t\t\tSystem.err.println(\"----------------------------------------\");\n\t\t\t}\n\n\t\t\t/* Add Current Week Coverage */\n\t\t\tCell thisWeekCovCell = row.createCell(colNum[0]++);\n\t\t\tDouble coveragePreviousWeek = previousWeekProject.getCoverageAsDouble();\n\t\t\tDouble coverageThisWeek = thisWeekProject.getCoverageAsDouble();\n\t\t\tif (coveragePreviousWeek > coverageThisWeek)\n\t\t\t\tthisWeekCovCell.setCellStyle(redStyle);\n\t\t\telse if (coverageThisWeek > coveragePreviousWeek)\n\t\t\t\tthisWeekCovCell.setCellStyle(greenStyle);\n\t\t\telse if (thisWeekProject.getCoverage().equals(\"No Coverage\"))\n\t\t\t\tthisWeekCovCell.setCellStyle(orangeStyle);\n\t\t\telse\n\t\t\t\tthisWeekCovCell.setCellStyle(defaultStyleRight);\n\t\t\tthisWeekCovCell.setCellValue(thisWeekProject.getCoverage());\n\t\t});\n\n\t\t// Auto size column widths\n\t\tfor (int i = 0; i < 7; i++)\n\t\t\tsheet.autoSizeColumn(i);\n\t\tsheet.setColumnWidth(0, 1500);\n\t\tsheet.setColumnWidth(3, 3500);\n\t\tsheet.setColumnWidth(4, 3500);\n\n\t\t/* Create excel file */\n\t\tFile file = getSonarQubeReport(basePath, LocalDate.now());\n\t\tlog.error(\"File {} exists {}... deleting = {}\", file.getName(), file.exists(), FileUtils.deleteQuietly(file));\n\n\t\t/* Write excel file */\n\t\ttry (FileOutputStream outputStream = new FileOutputStream(file.getAbsolutePath())) {\n\t\t\tworkbook.write(outputStream);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\t/* Copy the file to the history folder */\n\t\tFiles.move(Paths.get(file.getAbsolutePath()), Paths.get(baseHistoryPath, file.getName()),\n\t\t\t\tStandardCopyOption.REPLACE_EXISTING);\n\n\t\tlog.info(\"Exited exportExcel \");\n\t}", "public void checkBlackOutPeriod(){\n\n\n // loop through all filings and output filing date value in milli seconds\n System.out.println(\"checking black out period status for filings : \"+blackOutPeriodDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n BaseTrademarkApplication current = iter.next();\n\n if((current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"TEAS RF New Application\") )|| (current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"New Application\") ) ){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the black out period\");\n\n //baseTradeMarkApplicationService.save(current);\n\n // we need to check current filings to make sure there are no active office action\n\n if(current.hasActiveOfficeAction() == false){\n\n OfficeActions officeActions = new OfficeActions();\n officeActions.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n officeActions.setStandardCharacterMark(current.isStandardTextMark());\n officeActions.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n officeActions.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n officeActions.setParentSerialNumber(current.getTrademarkName());\n officeActions.setParentRegistrationNumber(current.getRegistrationID());\n officeActions.setActiveAction(true);\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod();\n officeActions.setDueDate(new Date(dueDate));\n //officeActions.setOfficeActionCode(\"Missing transliteration\");\n\n\n // create office action event here\n // filing document is only created if an office action is created with required actions\n\n\n\n\n // required actions section\n\n\n // required action Translation\n if (current.getTradeMark().isStandardCharacterMark() || current.getTradeMark().getTrademarkDesignType().equals(\"Design with Text\")) {\n if (current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageTranslationUSText() == null || current.getTradeMark().getForeignLanguageType_translation() == null ){\n\n // create required action here\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Translation of Foreign Wording\");\n requiredActions.setTranslationTextForeign(current.getTradeMark().getForeignLanguageTranslationOriginalText());\n requiredActions.setTranslationTextEnglish(current.getTradeMark().getForeignLanguageTranslationUSText());\n requiredActions.setTranslationTextLanguage(current.getTradeMark().getForeignLanguageType_translation());\n\n\n\n officeActions.addRequiredActions(requiredActions);\n\n\n\n }\n\n\n }\n\n // required action disclaimer\n\n if(current.getTradeMark().getDisclaimerDeclarationList().size() == 0){\n // you have to provide at least one disclaimer\n RequiredActions requiredActions = new RequiredActions();\n requiredActions.setRequiredActionType(\"Disclaimer Required\");\n\n officeActions.addRequiredActions(requiredActions);\n\n }\n\n\n // office action is created only if there are required actions\n if(officeActions.getRequiredActions().size() > 0){\n current.setFilingStatus(\"Non-Final Action Mailed\");\n officeActions.setOfficeActionCode(\"Non-Final Action Mailed\");\n\n\n // create an default office action object and attach it to filing\n current.addOfficeAction(officeActions);\n officeActions.setTrademarkApplication(current);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Office Action Outgoing\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n }\n\n baseTradeMarkApplicationService.save(current);\n\n\n\n\n }\n\n\n\n\n // also check for number of required actions.\n // if there are none. office action is not saved\n\n\n\n\n\n // set relevant office actions\n\n\n\n }\n else{\n System.out.println(\"filing is still in the black out period\");\n\n }\n }\n else{\n System.out.println(\"Filing is not Submitted yet.\");\n }\n }\n\n\n }", "public static void main(String[] args) throws SQLException {\n\tGregorianCalendar calender = new GregorianCalendar();\n calender.add(Calendar.DAY_OF_MONTH, -1);\n String dtYesterdday = new SimpleDateFormat(\"yyyyMMdd\").format(calender.getTime());\n System.out.println(dtYesterdday);\n \n try {\n Class.forName(driverName);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n logger.error(e);\n System.exit(1);\n }\n //replace \"hive\" here with the name of the user the queries should run as\n Connection con = DriverManager.getConnection(\"jdbc:hive2://117.121.97.2:10000/yuanjk\", \"yuanjk\", \"7REYo1jF\");\n Statement stmt = con.createStatement();\n \n //insert available urls to yuanjk.wexin_official_account_url_overwrite_daily_tmp table\n String hiveInsertSql=hiveInsertSqlP1+dtYesterdday+\" LIMIT 40\";\n System.out.println(\"Running: \" + hiveInsertSql);\n stmt.execute(hiveInsertSql);\n \n //filter out crawled urls\n// System.out.println(\"Running: \" + hiveCleanSql);\n// stmt.execute(hiveCleanSql);\n /*\n //export available urls to local file\n System.out.println(\"Running: \" + hiveExportSql);\n ResultSet res = stmt.executeQuery(hiveExportSql);\n try{\n \tFileWriter fileWriter = new FileWriter(rootWorkDirectory);\n \tBufferedWriter writer = new BufferedWriter(fileWriter);\n \ttry{\n while (res.next()) {\n System.out.println(res.getString(1) + \"\\t\" + res.getString(2));\n writer.write(res.getString(1) + \"\\t\" + res.getString(2));\n }\n \t}finally{\n \t\twriter.flush();\n \t\twriter.close();\n \t}\n }catch(IOException e){\n \tlogger.error(e);\n }\n */\n// String tableName = \"yuanjk.wexin_official_account_url_overwrite_daily\";\n// stmt.execute(\"drop table if exists \" + tableName);\n// stmt.execute(\"create table \" + tableName + \" (key int, value string)\");\n \n\n // show tables\n// String sql = \"show tables '\" + tableName + \"'\";\n \n /*\n System.out.println(\"Running: \" + sql);\n ResultSet res = stmt.executeQuery(sql);\n if (res.next()) {\n System.out.println(res.getString(1));\n }\n */\n /*\n // describe table\n sql = \"describe \" + tableName;\n System.out.println(\"Running: \" + sql);\n res = stmt.executeQuery(sql);\n while (res.next()) {\n System.out.println(res.getString(1) + \"\\t\" + res.getString(2));\n }\n */\n /*\n // load data into table\n // NOTE: filepath has to be local to the hive server\n // NOTE: /tmp/a.txt is a ctrl-A separated file with two fields per line\n String filepath = \"/tmp/a.txt\";\n sql = \"load data local inpath '\" + filepath + \"' into table \" + tableName;\n System.out.println(\"Running: \" + sql);\n stmt.execute(sql);\n \n // select * query\n sql = \"select * from \" + tableName;\n System.out.println(\"Running: \" + sql);\n res = stmt.executeQuery(sql);\n while (res.next()) {\n System.out.println(String.valueOf(res.getInt(1)) + \"\\t\" + res.getString(2));\n }\n \n // regular hive query\n sql = \"select count(1) from \" + tableName;\n System.out.println(\"Running: \" + sql);\n res = stmt.executeQuery(sql);\n while (res.next()) {\n System.out.println(res.getString(1));\n }\n */\n }", "public void restock(String fileName) {\n\t\tString timeFormat = \"dd'/'MM'/'yyyy' 'hh:mm:ss a\";\n\t\tFile log = new File(\"Log.txt\");\n\t\tLocalDateTime dateTime = LocalDateTime.now();\n\t\t\n\t\ttry(PrintWriter tracker = new PrintWriter(new FileOutputStream(log,true))){\n\t\t\ttracker.println(dateTime.format(DateTimeFormatter.ofPattern(timeFormat)) + \" \" + \"Restocking Vending Machine\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Audit error: log not found\");\n\t\t}\n\t\t\n\t\t/*String timeFormat2 = \"dd'_'MM'_'yyyy'-'hh_mm_ss_a\";\n\t\tString time = dateTime.format(DateTimeFormatter.ofPattern(timeFormat2));\n\t\tthis.salesReportFileName = \"SalesReport:\" + time + \".txt\";\n\t\tFile salesReport = new File(salesReportFileName);*/\n\t\t\n\t\t\n\t\tSimpleDateFormat dt = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\"); \n\t\tDate date = new Date();\n\t\tsalesReportFileName = \"SalesReport-\" + dt.format(date) + \".txt\";\n\t\tFile salesReport = new File(salesReportFileName);\n\t\t\n\t\ttry {\n\t\t\tsalesReport.createNewFile();\n\t\t} catch (IOException e1) {\n\t\t}\n\t\t\n\t\tFile inputFile = new File(fileName);\n\t\t\n\t\ttry(Scanner fileScanner = new Scanner(inputFile)){\n\t\t\n\t\twhile (fileScanner.hasNextLine()) {\n\t\t\tString line = fileScanner.nextLine();\n\t\t\tString [] lineArr = line.split(\"\\\\|\");\n\t\t\t\n\t\t\tString slotLocation = lineArr[0];\n\t\t\tString productName = lineArr[1];\n\t\t\tBigDecimal price = new BigDecimal(lineArr[2]);\n\t\t\tString category = lineArr[3];\n\t\t\tif (category.contentEquals(\"Drink\")) {\n\t\t\t\t\n\t\t\t\tBeverage product = new Beverage(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\t\n\t\t\tif (category.contentEquals(\"Chip\")) {\n\t\t\t\t\n\t\t\t\tChips product = new Chips(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation,product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\tif (category.contentEquals(\"Gum\")) {\n\t\t\t\t\n\t\t\t\tGum product = new Gum(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t\t\n\t\t\tif (category.contentEquals(\"Candy\")) {\n\t\t\t\t\n\t\t\t\tCandy product = new Candy(slotLocation, productName, price);\n\t\t\t\tsellables.put(slotLocation, product);\n\t\t\t\torderedSellables.add(product);\n\t\t\t\tsales.put(productName, 0);\n\t\t\t}\n\t\t}\n\t} catch (FileNotFoundException e) {\n\t\t\n\t\tSystem.out.println(\"File not found\");\n\t\tSystem.exit(1);\n\t}\n\n}", "@RequestMapping(\"/userExcelExport.action\")\r\n @Secured(\"ROLE_ADMIN\")\r\n public void export(HttpServletResponse response) throws IOException {\n \r\n List<User> users = userService.findAll();\r\n\r\n response.setContentType(\"application/vnd.ms-excel\");\r\n response.setHeader(\"extension\", \"xls\");\r\n\r\n OutputStream out = response.getOutputStream();\r\n\r\n Workbook workbook = new HSSFWorkbook();\r\n CreationHelper createHelper = workbook.getCreationHelper();\r\n\r\n CellStyle headerStyle = workbook.createCellStyle();\r\n Font headerFont = workbook.createFont();\r\n headerFont.setFontHeightInPoints((short)10);\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n headerStyle.setFont(headerFont);\r\n\r\n Sheet sheet = workbook.createSheet();\r\n\r\n sheet.setColumnWidth(0, 20 * 256);\r\n sheet.setColumnWidth(1, 20 * 256);\r\n sheet.setColumnWidth(2, 20 * 256);\r\n\r\n Row row = sheet.createRow(0);\r\n\r\n Cell c = row.createCell(0);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Username\"));\r\n\r\n c = row.createCell(1);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"First Name\"));\r\n\r\n c = row.createCell(2);\r\n c.setCellStyle(headerStyle);\r\n c.setCellValue(createHelper.createRichTextString(\"Last Name\"));\r\n\r\n int rowNo = 1;\r\n for (User user : users) {\r\n row = sheet.createRow(rowNo);\r\n\r\n c = row.createCell(0);\r\n c.setCellValue(createHelper.createRichTextString(user.getUserName()));\r\n\r\n c = row.createCell(1);\r\n c.setCellValue(createHelper.createRichTextString(user.getFirstName()));\r\n\r\n c = row.createCell(2);\r\n c.setCellValue(createHelper.createRichTextString(user.getName()));\r\n\r\n rowNo++;\r\n }\r\n\r\n workbook.write(out);\r\n\r\n out.close();\r\n\r\n }", "public static void main(String[] args){\n \n String loginResponse = \"\";\n String jSessionID = \"\";\n String jsonData = \"\";\n String csvData = \"\";\n String writeToFileOutput = \"\";\n // Change the baseURL to your own jira server's address and port number\n // Note: adding \"rest/\" at the end may not be necessary in your \n // environment\n String baseURL = \"http://ec2-18-235-248-253.compute-1.amazonaws.com:2990/jira/rest/\";\n String loginURL = \"auth/1/session\";\n String biExportURL = \"getbusinessintelligenceexport/1.0/message\";\n // The analysisStartData and analysisEndDate specify an inclusive\n // period over time over which you want to extract issues that \n // have been either added or updated.\n String analysisStartDate = \"01-DEC-18\";\n String analysisEndDate = \"31-DEC-18\";\n // The loginUserName and loginPassWord are the credentials for a user\n // who has permission to view the issues that you wish to export.\n String loginUserName = \"admin\";\n String loginPassWord = \"admin\";\n boolean errorsOccurred = false;\n String exportDirectory = \"./downloads/\";\n \n if(!errorsOccurred)\n {\n loginResponse = loginToJira(baseURL, loginURL, loginUserName, loginPassWord);\n if(loginResponse == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jSessionID = parseJSessionID(loginResponse);\n if(jSessionID == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jsonData = getJsonData(baseURL, biExportURL, jSessionID, analysisStartDate, analysisEndDate);\n if(jsonData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n csvData = formatAsCSV(jsonData);\n if(csvData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n writeToFileOutput = writeToFile(csvData, exportDirectory);\n if(writeToFileOutput == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n System.out.println(\"SUCCESS\");\n } else {\n System.out.println(\"FAILURE\");\n }\n }", "public String export() throws SQLException, IOException {\n\t\t\treturn employeeDAO.export();\n\t\t}", "public static void writeNewCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, true);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n int lastElement = activities.size();\n Activity activity = activities.get(lastElement - 1);\n bw.write(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles.name + \" \" + \"(\"\n + activity.Roles.subRole + \")\" + \"\\n\");\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n }", "public void readAndWrite() throws Exception {\r\n File reportExcelFile = new File(reportFileName);\r\n if (!reportExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Report Excel file not found in path.\");\r\n }\r\n\r\n File resultExcelFile = new File(resultFileName);\r\n if (!resultExcelFile.exists()) {\r\n throw new FileNotFoundException(\r\n \"Expected Result Excel file not found in path.\");\r\n }\r\n\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(reportExcelFile,\r\n reportFileMapIndex, true);\r\n ReadResultExcelFile.getInstance().preCheckExcelXLSFile(resultExcelFile,\r\n resultFileMapIndex, false);\r\n\r\n ReadResultExcelFile.getInstance().getResultExcelXLSData(\r\n resultExcelFile, resultFileMapIndex);\r\n writeColumnHeader();\r\n ReadResultExcelFile.getInstance().generateExcelFromReportData(\r\n reportExcelFile, resultExcelFile, reportFileMapIndex);\r\n\r\n }", "public void cargarArchivoCSVWeekly(int trimestre) throws Exception\n\t{\n\t\tboolean primeraLectura = true;\n\n\t\tCSVReader reader = new CSVReader(new FileReader(\"./data/bogota-cadastral-2018-\" + trimestre + \"-WeeklyAggregate.csv\"));\n\n\t\tfor(String[] line: reader)\n\t\t{\n\t\t\tif(!primeraLectura)\n\t\t\t{\n\t\t\t\tdouble[] dato = {Double.parseDouble(line[0]), Double.parseDouble(line[1]), Double.parseDouble(line[2]), Double.parseDouble(line[3]), Double.parseDouble(line[4]), Double.parseDouble(line[5]), Double.parseDouble(line[6])};\n\t\t\t\tstackWeekly.push(dato);\n\t\t\t}\n\t\t\tprimeraLectura = false;\n\t\t}\n\t\treader.close();\n\t}", "@Scheduled(cron = \"0 30 06 * * *\",zone=\"America/New_York\")\n public void populateDatabase(){\n localDateTime = LocalDateTime.now();\n log.info(\"Executed now: \"+ localDateTime.toString());\n\n // Checks if table in database is empty\n // If not empty, clears the table and populates it with new data\n if(checkEmpty()==0)\n log.info(\"Empty Table\");\n else {\n deleteTableRecords();\n log.info(\"Table not Empty\");\n }\n\n URL url = null;\n\n // Get recent date, append it to URL and establish a connection\n String pattern = \"MM-dd-yyyy\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n Date date = Date.from(Instant.now().minus(Duration.ofDays(1)));\n\n\n String dateStr = simpleDateFormat.format(date);\n\n try {\n url = new URL(\"https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/\"+dateStr+\".csv\");\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n HttpURLConnection httpURLConnection = null;\n try {\n httpURLConnection = (HttpURLConnection) url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int responseCode = 0;\n try {\n responseCode = httpURLConnection.getResponseCode();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // On successful connection, read records line by line, store records in a table\n if(responseCode==200)\n {\n log.info(\"-- Successful Connection\");\n CSVReader reader = null;\n try {\n\n BufferedReader input = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()),8192);\n reader = new CSVReader(input);\n String[] line;\n int skipFirstLine = 0;\n while ((line = reader.readNext()) != null)\n {\n if(skipFirstLine==0)\n {\n skipFirstLine++;\n continue;\n }\n\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n Corona corona = new Corona();\n corona.setLastUpdate(LocalDateTime.parse(line[4],dateTimeFormatter));\n if(line[7].equals(\"\"))\n line[7]=\"0\";\n if(line[9].equals(\"\"))\n line[9]=\"0\";\n if(line[10].equals(\"\"))\n line[10]=\"0\";\n if(line[8].equals(\"\"))\n line[8]=\"0\";\n if(line[5].equals(\"\"))\n line[5]=\"0\";\n if(line[6].equals(\"\"))\n line[6]=\"0\";\n\n try {\n\n corona.setConfirmed(Long.valueOf(line[7]));\n corona.setRecovered(Long.valueOf(line[9]));\n corona.setActive(Long.valueOf(line[10]));\n corona.setDeaths(Long.valueOf(line[8]));\n corona.setLatitude(Double.valueOf(line[5]));\n corona.setLongitude(Double.valueOf(line[6]));\n } catch (NumberFormatException n)\n {\n n.printStackTrace();\n }\n corona.setCountry(line[3]);\n corona.setProvince(line[2]);\n corona.setCombinedKey(line[11]);\n\n\n\n coronaRepository.save(corona);\n log.info(corona.toString());\n\n\n }\n } catch (IOException | CsvValidationException e){\n e.printStackTrace();\n } finally {\n if(reader!=null)\n {\n try\n {\n reader.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }\n }", "private void fillUserDaily() throws Exception {\n Db db = getDb();\n try {\n db.enter();\n String sqlSelect = \"SELECT COUNT(*), SUM(volume_s_to_c), date(datetime), u.t_user_id, site_id, type, mime_type, auth, request_statuscode, COALESCE(a.t_http_agent_id, 0) FROM t_http_log_data l LEFT JOIN http.t_http_agent a ON (a.agent_name = l.user_agent AND ((a.version IS NULL AND l.agent_version IS NULL) OR a.version = l.agent_version)) INNER JOIN http.t_user u ON u.user_name = username WHERE NOT l.intranet GROUP BY date(datetime), u.t_user_id, site_id, type, mime_type, site_name, auth, request_statuscode, a.t_http_agent_id\";\n String sqlInsert = \"INSERT INTO http.t_user_daily (occurences, volume, calc_day, t_user_id, t_domain_site_id, trafic_type, mime_type_id, t_authorization_id, request_statuscode, t_http_agent_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n String sqlUpdate = \"UPDATE http.t_user_daily SET occurences = occurences + ?, volume = volume + ? WHERE calc_day = ? AND t_user_id = ? AND t_domain_site_id = ? AND trafic_type = ? AND mime_type_id = ? AND t_authorization_id = ? AND request_statuscode = ? AND t_http_agent_id = ?\";\n PreparedStatement pstSelect = db.prepareStatement(sqlSelect);\n PreparedStatement pstInsert = db.prepareStatement(sqlInsert);\n PreparedStatement pstUpdate = db.prepareStatement(sqlUpdate);\n ResultSet rs = db.executeQuery(pstSelect);\n if (rs.next()) {\n do {\n Integer mimeId = mime.getMimeTypeId(rs.getString(7));\n pstUpdate.setInt(1, rs.getInt(1));\n pstUpdate.setLong(2, rs.getLong(2));\n pstUpdate.setDate(3, rs.getDate(3));\n pstUpdate.setInt(4, rs.getInt(4));\n pstUpdate.setInt(5, rs.getInt(5));\n pstUpdate.setInt(6, rs.getInt(6));\n pstUpdate.setObject(7, mimeId);\n pstUpdate.setInt(8, rs.getInt(8));\n pstUpdate.setInt(9, rs.getInt(9));\n pstUpdate.setInt(10, rs.getInt(10));\n if (db.executeUpdate(pstUpdate) == 0) {\n pstInsert.setInt(1, rs.getInt(1));\n pstInsert.setLong(2, rs.getLong(2));\n pstInsert.setDate(3, rs.getDate(3));\n pstInsert.setInt(4, rs.getInt(4));\n pstInsert.setInt(5, rs.getInt(5));\n pstInsert.setInt(6, rs.getInt(6));\n pstInsert.setObject(7, mimeId);\n pstInsert.setInt(8, rs.getInt(8));\n pstInsert.setInt(9, rs.getInt(9));\n pstInsert.setInt(10, rs.getInt(10));\n db.executeUpdate(pstInsert);\n }\n } while (rs.next());\n } else {\n _logger.debug(\"No user daily to insert\");\n }\n } finally {\n db.exit();\n }\n }", "public static void writeCSV(Calendar cal) {\n\n try {\n\n BufferedWriter bw = null;\n\n String fileString = \"P5Calendar.csv\";\n String fileLine = \"\";\n\n FileWriter fw = new FileWriter(fileString, false);\n bw = new BufferedWriter(fw);\n\n ArrayList<Activity> activities = cal.getActivities();\n\n for (int j = 0; j < 1; j++) {\n bw.write(\"Year\" + \",\" + \"Month\" + \",\" + \"Activity\" + \",\" + \"Role\" + \"\\n\");\n }\n\n for (int i = 0; i < activities.size(); i++) {\n Activity activity = activities.get(i);\n bw.append(activity.Year + \",\" + activity.Month + \",\" + activity.Name + \",\" + activity.Roles);\n }\n\n bw.close();\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n\n }", "public ArrayList<Log> GetLogs(){\n ArrayList<Log> LL = new ArrayList<>();\n try{\n String query = \"Select * from GeneralLog\";\n Statement stm = mssqlConecction.conn.createStatement();\n ResultSet rs = stm.executeQuery(query);\n while(rs.next()){\n Log l = new Log();\n l.action=rs.getString(\"action\");\n l.date = rs.getDate(\"date\");\n l.table = rs.getString(\"table\");\n l.new_value = rs.getString(\"new_value\");\n l.old_Value = rs.getString(\"old_value\");\n l.username = rs.getString(\"username\");\n LL.add(l);\n }\n return LL;\n }catch(Exception e){\n return null;\n }\n }", "public static Result downloadStatistics(){\n\t\tUser currentUser = SessionHelper.getCurrentUser(ctx());\n\t\t// Null Catching\n\t\tif (currentUser == null) {\n\t\t\tLogger.of(\"user\").warn(\"Not registered User tried to access the fucntion > download the statistics file\");\n\t\t\treturn redirect(routes.Application.index());\n\t\t}\n\t\t// Method in Statscontroller which generates and totally fills the excel sheet with data needed in the file;\n\t\tFile statsFile = createStatisticsFile(currentUser);\n\t\tresponse().setContentType(\"application/x-download\"); \n\t\tresponse().setHeader(\"Content-disposition\",\"attachment; filename=statistics.xls\");\n\t\treturn ok(statsFile);\n\t\n\t}", "private void exportInvToXLS1() {\n\n progress = new ProgressDialog(NewScannerActivity.this);\n /* progress.setTitle(\"Loading\");\n progress.setMessage(\"Wait while loading...\");\n progress.show();*/\n// To dismiss the dialog\n\n\n //setProgressBarIndeterminateVisibility(true);\n closeDriver();\n\n if (date == null) date = \"_\";\n if (subdiv == null) subdiv = \"market\";\n\n date = date.replaceAll(\":\", \"_\");\n date = date.replaceAll(\"/\", \"-\");\n int offl = subdiv.indexOf(\" - offline\");\n if (offl > 0) subdiv = subdiv.substring(0, offl);\n //date=date.replaceAll(\"offline document\",\"\");\n filename = \"inv\" + \"_\" + date + \"_\" + subdiv;\n Log.d(\"my\", \"filename = \" + filename);\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Export to file\");\n\n// Set up the input\n final EditText input = new EditText(this);\n input.setText(filename);\n input.setSelected(true);\n input.setSelectAllOnFocus(true);\n\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_TEXT);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"CSV\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n filename = input.getText().toString();\n\n ExportExcelThread exportExcelThread = new ExportExcelThread(\"csv\");\n exportExcelThread.start();\n }\n });\n\n\n builder.setNeutralButton(\"XLS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n filename = input.getText().toString();\n\n ExportExcelThread exportExcelThread = new ExportExcelThread(\"xls\");\n exportExcelThread.start();\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n\n builder.show();\n\n\n }", "@Scheduled(cron = \"*/10 * * * * *\")\n\tpublic void startJob() {\n\n\t\tBooleanBuilder booleanIssuer = new BooleanBuilder();\n\t\tbooleanIssuer.and(QIssuer.issuer.status.eq(Issuer.Status.ACTIVE));\n\n\t\tQIssuer qIssuer = QIssuer.issuer;\n\t\tJPAQuery<?> query = new JPAQuery<Void>(entityManager);\n\t\tList<Issuer> listIssuer = query.select(qIssuer).from(qIssuer).where(booleanIssuer).fetch();\n\n\t\tfor (Issuer issuer : listIssuer) {\n\t\t\tSystem.out.println(issuer.toString());\n\t\t}\n\n\t\tFileWriter fileWirter = null;\n\t\tif (!(CollectionUtils.isEmpty(listIssuer))) {\n\t\t\ttry {\n\t\t\t\tfileWirter = new FileWriter(\"test.csv\");\n\t\t\t\tfileWirter.append(FILE_HEADER.toString());\n\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\tfor (Issuer issuer : listIssuer) {\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getId()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getIssuerCode());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(issuer.getName());\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getStatus()));\n\t\t\t\t\tfileWirter.append(COMMA_DELIMITER);\n\t\t\t\t\tfileWirter.append(String.valueOf(issuer.getLastUpdate()));\n\t\t\t\t\tfileWirter.append(NEW_LINE_SEPARATOR);\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"writer successfully !\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tslackService.send(\" \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private void todayReport() {\n\t\tListSeries dollarEarning = new ListSeries();\n\t\tString[] dates = new String[1];\n\t\t/* Create a DateField with the default style. */\n Calendar calendar=Calendar.getInstance();\n\t\t\n\t\tvReportDisplayLayout.removeAllComponents();\n\t\tdates[0] = String.valueOf(calendar.get(Calendar.MONTH)+1) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.DATE)) + \"/\" + \n\t\t\t\tString.valueOf(calendar.get(Calendar.YEAR));\n\t\tdollarEarning = getTodayData();\n\t\t\n\t\tdisplayChart chart = new displayChart();\n\t\t\n\t\tdReportPanel.setContent(chart.getDisplayChart(dates, dollarEarning));\n\t\tvReportDisplayLayout.addComponent(dReportPanel);\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void exportXLS() {\n\t\t// Create a Workbook\n\t\tWorkbook workbook = new HSSFWorkbook(); // new HSSFWorkbook() for\n\t\t\t\t\t\t\t\t\t\t\t\t// generating `.xls` file\n\n\t\t/*\n\t\t * CreationHelper helps us create instances of various things like DataFormat,\n\t\t * Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way\n\t\t */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n\n\t\t// Create a Sheet\n\t\tSheet sheet = workbook.createSheet(\"العقود\");\n\n\t\t// Create a Font for styling header cells\n\t\tFont headerFont = workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short) 14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\n\t\t// Create a CellStyle with the font\n\t\tCellStyle headerCellStyle = workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\n\t\t// Create a Row\n\t\tRow headerRow = sheet.createRow(0);\n\n\t\tString[] columns = { \"الرقم\", \"رقم العقد \", \"تاريخ البداية\", \"تاريخ النهاية\", \"المستثمر\", \"حالة الفاتورة\" };\n\t\t// Create cells\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tCell cell = headerRow.createCell(i);\n\t\t\tcell.setCellValue(columns[i]);\n\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\n\t\t// Create Cell Style for formatting Date\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum = 1;\n\t\tint num = 1;\n//\t\tfor (ContractDirect contObj : contractsDirectList) {\n//\t\t\tRow row = sheet.createRow(rowNum++);\n//\t\t\trow.createCell(0).setCellValue(num);\n//\t\t\trow.createCell(1).setCellValue(contObj.getContractNum());\n//\n//\t\t\tif (!tableHigriMode) {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartContDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndContDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t} else {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t}\n//\n//\t\t\tInvestor inv = (Investor) dataAccessService.findEntityById(Investor.class, contObj.getInvestorId());\n//\t\t\trow.createCell(4).setCellValue(inv.getName());\n//\t\t\trow.createCell(5).setCellValue(contObj.getPayStatusName());\n//\t\t\tnum++;\n//\t\t}\n\n\t\t// Resize all columns to fit the content size\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tsheet.autoSizeColumn(i);\n\t\t}\n\n\t\t// Write the output to a file\n\n\t\ttry {\n\t\t\tString path = \"D:/العقود.xls\";\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\tworkbook.write(fileOut);\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\n\t\t\tworkbook.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Closing the workbook\n\n\t}", "public ArrayList<String> populateLogNameList(String from, String to){\r\n\tConnection con=null;\r\n\t\r\n\t\tArrayList<String> testNameList=new ArrayList<String>();\r\n\t\r\n\ttry {\r\n\t\t\r\n con = Connect.prepareConnection();\r\n con.setAutoCommit(false);\r\n ResultSet rs=null;\r\n //count number of records for which processing of sheets has been started or completed\r\n PreparedStatement ps = null; SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\"); \r\n\t\t\r\n\t\tjava.util.Date fromdate = sdf.parse(from); \r\n\t\tjava.sql.Timestamp timest = new java.sql.Timestamp(fromdate.getTime()); \r\n\t\t\r\n\t\tjava.util.Date todate = sdf.parse(to); \r\n\t\tjava.sql.Timestamp timeen = new java.sql.Timestamp(todate.getTime()); \r\n\t\t\r\n ps = con.prepareStatement(\r\n \"SELECT distinct Test_name FROM testheader where (Test_status=? OR Test_status=?) AND Conduct_date BETWEEN ? AND ? order by Test_name\");\r\n ps.setString(1, message.getString(\"processed\"));\r\n ps.setString(2, message.getString(\"processed\"));\r\n ps.setTimestamp(3, timest);\r\n ps.setTimestamp(4, timeen);\r\n \r\n rs = ps.executeQuery();\r\n \r\n \t while(rs.next()){\r\n \t\t testNameList.add(rs.getString(1));\r\n }\r\n \r\n \t con.commit();\r\n \r\n }\r\n catch(Exception e){\r\n \tlog.error(\"error in retrieving test name for log interface \" + e);\r\n }\r\n finally{\r\n \tConnect.freeConnection(con);\r\n }\r\n \treturn testNameList;\r\n \r\n}", "@Scheduled(cron = \"0 0 9-17 * * MON-FRI\")\n\tpublic void scheduleTaskWeekly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 9 - 17 O'clock Every Weekdays - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public Breakdown generateDiurnalReport(Date startDate, String[] demoArr) {\n\n Breakdown result = new Breakdown();\n AppUsageDAO auDAO = new AppUsageDAO();\n Date startHour = startDate;\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:00\");\n //for each hour (for 24 loop)\n for (int i = 0; i < 24; i++) {\n\n HashMap<String, Breakdown> miniMap = new HashMap<String, Breakdown>();\n result.addInList(miniMap);\n\n Date endHour = new Date(startHour.getTime() + 1000 * 60 * 60);\n miniMap.put(\"period\", new Breakdown(sdf.format(startHour) + \"-\" + sdf.format(endHour)));\n\n //get number of targetted users\n Date endDate = new Date(startDate.getTime() + 1000 * 60 * 60 * 24);\n ArrayList<User> targetList = auDAO.retrieveUserByDemo(startDate, endDate, demoArr);\n int targetCount = targetList.size();\n //get userList for this hour, filtered by demo\n ArrayList<User> userList = auDAO.retrieveUserByDemo(startHour, endHour, demoArr);\n double secondsThisHour = 0;\n\n //for each user\n for (User user : userList) {\n\n //retrieve appUsageList\n ArrayList<AppUsage> auList = auDAO.retrieveByUserHourly(user.getMacAddress(), startHour, endHour);\n\n Date oldTime = null;\n if (auList.size() > 0) {\n oldTime = auList.get(0).getDate();\n }\n\n //For each appusage in appUsageList\n for (int j = 1; j < auList.size(); j++) {\n Date newTime = auList.get(j).getDate();\n\n //calculate usageTime and add to secondsThisHour\n //difference between app usage timing\n long difference = Utility.secondsBetweenDates(oldTime, newTime);\n\n //If difference less than/equal 2 minutes\n if (difference <= 2 * 60) {\n // add difference to totalSeconds if <= 2 mins\n secondsThisHour += difference;\n } else {\n // add 10sec to totalSeconds if > 2 mins\n secondsThisHour += 10;\n }\n\n oldTime = newTime;\n\n }\n //Add 10 seconds for the last appusage in the list\n if (auList.size() > 0) {\n Date lastTime = auList.get(auList.size() - 1).getDate();\n\n long difference = Utility.secondsBetweenDates(lastTime, endHour);\n\n if (difference > 10) {\n difference = 10;\n }\n secondsThisHour += difference;\n\n }\n\n }\n //divide by all users in this hour to get average usage time in this hour\n if (targetCount > 0) {\n secondsThisHour /= targetCount;\n\n }\n\n //store in breakdown\n long time = Math.round(secondsThisHour);\n miniMap.put(\"duration\", new Breakdown(\"\" + time));\n\n startHour = endHour;\n }\n\n return result;\n }", "public static void saveExcel() {\r\n\t\ttry {\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(Constant.EXCEL_PATH);\r\n\t\t\tworkBook.write(fileOut);\r\n\t\t\tfileOut.flush();\r\n\t\t\tfileOut.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Log> finLogALL() {\n\t\tString sql = \"SELECT * FROM t_log ORDER BY ASC\";\n\t\tList<Log> list = null;\n\t\ttry {\n\t\t\tlist = qr.query(sql, new BeanListHandler<Log>(Log.class));\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "public void log(String logThis){\n\t\t\n\t\t DateFormat df = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t Date today = Calendar.getInstance().getTime();\n\t String reportDate = df.format(today);\n\t\t\n\t\t\t{\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tFile log = new File(\"C:\\\\Users\\\\Student\\\\Downloads\\\\m1-java-capstone-vending-machine-A-Copy\\\\m1-java-capstone-vending-machine\\\\Log.txt\");\t\n\t\t\t\tBufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(log, true));\n\n\t\t bufferedWriter.write(reportDate + \"||\" + logThis);\n\t\t bufferedWriter.newLine();\n\n\t\t bufferedWriter.close();\n\t\t\t\t\n\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t}", "@LogMethod\r\n private void publishDataToDateBasedStudy()\r\n {\r\n log(\"Prepare visit map to check PTID counts in study navigator.\");\r\n\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_STUDY3);\r\n\r\n clickAndWait(Locator.linkWithText(\"Manage\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n clickAndWait(Locator.linkWithText(\"Create New Timepoint\"));\r\n setFormElement(Locator.name(\"label\"), \"Preexisting Timepoint\");\r\n setFormElement(Locator.name(\"sequenceNumMin\"), \"50\");\r\n setFormElement(Locator.name(\"sequenceNumMax\"), \"89\");\r\n selectOptionByText(Locator.name(\"typeCode\"), \"Screening\");\r\n\r\n clickButton(\"Save\");\r\n assertElementPresent(Locator.tagWithAttribute(\"a\", \"data-original-title\", \"edit\"), 1);\r\n\r\n //select the Lab1 folder and view all the data for the test assay\r\n navigateToFolder(getProjectName(), TEST_ASSAY_FLDR_LAB1);\r\n clickAndWait(Locator.linkWithText(TEST_ASSAY));\r\n clickAndWait(Locator.linkWithText(\"view results\"));\r\n\r\n //select all the data rows and click publish\r\n DataRegionTable table = new DataRegionTable(\"Data\", getDriver());\r\n table.checkAll();\r\n table.clickHeaderButton(\"Copy to Study\");\r\n\r\n checkCheckbox(Locator.xpath(\"//input[@id='chooseStudy']\"));\r\n\r\n // Make sure the selected study is Study3\r\n selectOptionByText(Locator.xpath(\"//select[@name='targetStudy']\"), getTargetStudyOptionText(TEST_ASSAY_FLDR_STUDY3));\r\n\r\n clickButton(\"Next\");\r\n assertTextPresent(\"Copy to \" + TEST_ASSAY_FLDR_STUDY3 + \" Study: Verify Results\");\r\n\r\n //populate initial set of values and verify the timepoint preview column\r\n String[] dates = new String[]{\"2000-02-02\", \"2000-03-03\", \"2000-04-04\", \"2000-05-05\", \"2000-06-06\", \"2001-01-01\", \"2000-01-01\", \"2000-02-02\", \"2000-03-03\"};\r\n int idx = 1;\r\n for (String d : dates)\r\n {\r\n setFormElement(Locator.xpath(\"(//input[@name='date'])[\" + idx + \"]\"), d);\r\n idx++;\r\n }\r\n\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[1]\"), \"new1\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[2]\"), \"new2\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[3]\"), \"new3\");\r\n setFormElement(Locator.xpath(\"(//input[@name='participantId'])[4]\"), \"new4\");\r\n\r\n DataRegionTable copyStudy = new DataRegionTable(\"Data\", getDriver());\r\n copyStudy.clickHeaderButton(\"Re-Validate\");\r\n\r\n //validate timepoints:\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='AAA07XMC-02'] and following-sibling::td[text()='301.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='AAA07XMC-04'] and following-sibling::td[not(text())]]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 90 - 95' and following-sibling::td/a[text()='AAA07XSF-02'] and following-sibling::td[not(text())]]\"));\r\n\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 120 - 127' and following-sibling::td/a[text()='AssayTestControl1'] and following-sibling::td[text()='5.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 152 - 159' and following-sibling::td/a[text()='AssayTestControl2'] and following-sibling::td[text()='6.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 0 - 7' and following-sibling::td/a[text()='BAQ00051-09'] and following-sibling::td[text()='7.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Day 32 - 39' and following-sibling::td/a[text()='BAQ00051-08'] and following-sibling::td[text()='8.0']]\"));\r\n assertElementPresent(Locator.xpath(\"//td[text()='Preexisting Timepoint' and following-sibling::td/a[text()='BAQ00051-11'] and following-sibling::td[text()='9.0']]\"));\r\n\r\n copyStudy.clickHeaderButton(\"Copy to Study\");\r\n\r\n log(\"Verifying that the data was published\");\r\n assertTextPresent(\r\n TEST_RUN1_COMMENTS,\r\n \"2000-01-01\");\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Study Navigator\"));\r\n\r\n log(\"Test participant counts and row counts in study overview\");\r\n String[] row2 = new String[]{TEST_ASSAY, \"9\", \"1\", \"2\", \"2\", \"1\", \"1\", \"1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n // Manually click the checkbox -- normal checkCheckbox() method doesn't seem to work for checkbox that reloads using onchange event\r\n clickAndWait(Locator.checkboxByNameAndValue(\"visitStatistic\", \"RowCount\"));\r\n row2 = new String[]{TEST_ASSAY, \"9 / 9\", \"1 / 1\", \"2 / 2\", \"2 / 2\", \"1 / 1\", \"1 / 1\", \"1 / 1\"};\r\n assertTableRowsEqual(\"studyOverview\", 1, new String[][]{row2});\r\n\r\n log(\"Test that correct timepoints were created\");\r\n\r\n clickTab(\"Overview\");\r\n clickAndWait(Locator.linkWithText(\"Manage Study\"));\r\n clickAndWait(Locator.linkWithText(\"Manage Timepoints\"));\r\n assertTextPresent(\r\n \"Day 0 - 7\",\r\n \"Day 32 - 39\",\r\n \"Day 90 - 95\",\r\n \"Day 120 - 127\",\r\n \"Day 152 - 159\");\r\n }", "public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}", "private LogService()\n {\n logWriter = new CleanSweepLogWriterImpl();\n\n Calendar date = Calendar.getInstance();\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH)+1;\n int day = date.get(Calendar.DAY_OF_MONTH);\n\n todaysDate=\"\";\n if(day<10) {\n todaysDate += year + \"\" + month + \"0\" + day;\n }\n else\n {\n todaysDate += year + \"\" + month + \"\" + day;\n }\n\n }", "public void actionExport_actionPerformed(ActionEvent e) throws Exception {\n\t\t\n\t\tFile tempFile;\n\t\t\t\t\n\t\tKDTable table = getTableForCommon();\n\t\tif(table != null){\n\t\t\tInteger rowMax = queryHelper.getCanExportMaxRowIndex(table.getName());\n\t\t\tif(table.getRowCount()>rowMax.intValue()){\n\t\t\t\tMsgBox.showInfo(this,\"您没有全部公司的权限,您只能导出前\"+rowMax.toString()+\"行\");\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttempFile = File.createTempFile(\"eastemp\", \".xls\");\n\t\t\t\ttable.getIOManager().setTempFileDirection(\n\t\t\t\t\t\ttempFile.getPath());\n\t\t\t\ttable.getIOManager().exportExcelToTempFile(false);\n\t\t\t\ttempFile.deleteOnExit();\n\t\t\t}\n\t\t}\n\t}", "private void collectLogs(Configuration config) {\r\n\t\tFileUtils loader = new FileUtils(DataCache.getInstance(config\r\n\t\t\t\t.getUniqueId()));\r\n\r\n\t\tfor (String l2 : config.getL2machines()){\r\n\t\t\ttry {\r\n\t\t\t\tloader.download(\"server-\" + l2 + LOG_EXT, config.getResultLocation());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (String l1 : config.getL1machines()){\r\n\t\t\ttry {\r\n\t\t\t\tloader.download(\"client-\" + l1 + LOG_EXT, config.getResultLocation());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (config.getLoadmachines().size() > 0) {\r\n\t\t\tfor (String load : config.getLoadmachines()){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloader.download(\"load-\" + load + LOG_EXT, config.getResultLocation());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tlog.error(\"Failed to download logs for the test. \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tList<String> regex = Arrays.asList(\".*gz\", \".*csv\", \".*log\");\r\n\t\tString finalZipName = config.getTestName() + \"-\" + config.getTestCase()\r\n\t\t\t\t+ \"-\" + config.getUniqueId() + LOG_EXT;\r\n\r\n\t\tFile results = new File(finalZipName);\r\n\t\ttry {\r\n\t\t\tloader.gzipFiles(config.getResultLocation(), regex, results);\r\n\t\t\tconfig.setResultLog(results.getAbsolutePath());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void fillAccess (String username,String employ_ID){\n try{\n connection = DBConnection.getConnection();\n if (connection != null){\n System.out.println(\"Connection succesfull\");\n PreparedStatement ps ;\n ps = connection.prepareStatement(\"INSERT INTO sessionLog (employ_ID,username,todaysDate )\" +\n \"VALUES (?,?,?) \");\n ps.setString(1, employ_ID);\n ps.setString(2, username);\n ps.setString(3, todaysDay.toString());\n ps.executeUpdate();\n ps.close();\n connection.close();\n System.out.println(\"Query executed, connection terminated \");\n String message = \"New login for user :\"+employ_ID + \" ,\" +\" Name:\" +username+\", on :\" + todaysDay.toString();\n //String location=\"C:\\\\Users\\\\regga\\\\IdeaProjects\\\\NurseryApp\\\\src\\\\nurseryApp\\\\Resources\\\\logs\\\\Stafflog.txt\";\n String location=\"Stafflog.txt\";\n PrintToFile p2f=new PrintToFile(message,location,\"11 jan\");\n p2f.print();\n\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic static ExtentReports getInstance()\n\t{\n\t\tif (Log.extent == null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n//\t\t\t\tString systime = Genericmethod.getTimeStampValue().replace(\":\", \"-\");\n\t\t\t\tLog.extent = new ExtentReports(\"Automation_Report//SLAUTOMATE_Report_Transcripts.html\", false, DisplayOrder.OLDEST_FIRST);\n\t\t\t}\n\t\t\tcatch (Exception e1)\n\t\t\t{\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFileInputStream fs;\n\t\t\t\tfs = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\java\\\\com\\\\test\\\\automation\\\\uIAutomation\\\\config\\\\config.properties\");\n\t\t\t\tconfig = new Properties();\n\t\t\t\tconfig.load(fs);\n\t\t\t\tString envirment = config.getProperty(\"Environment\");\n\t\t\t\tString release = config.getProperty(\"Release\");\n\t\t\t\tString browserType = config.getProperty(\"BrowserType\");\n\t\t\t\tTimeZone timeZone = TimeZone.getDefault();\n\t\t\t\tString TimeZonename = timeZone.getDisplayName();\n\t\t\t\tString gitBranch = config.getProperty(\"GitBranch\");\n\t\t\t\tString url = config.getProperty(\"TestURL\");\n\t\t\t\t/*String style = \".test { border: 2px solid #00BFFF; }\"\n\t\t\t\t\t\t+ \"body, .test .right span, .collapsible-header { background: #cce5ff; }\"\n\t\t\t\t\t\t+ \".cat-other { border-color: white !important; color: white; }\"\n\t\t\t\t\t\t+ \".panel-lead { font-size:14px }\" + \"nav .right { color: #324259; }\"\n\t\t\t\t\t\t+ \"span.label.info { font-size: 16px; font-weight: 400; padding: 3px 5px; }\";\n\t\t\t\t\n\t\t\t\tLog.extent.config().documentTitle(\"Straighterline Automation Report\").reportName(\"Straighterline\")\n\t\t\t\t\t\t.insertCustomStyles(style).reportHeadline(\"Automation Report\");*/\n\t\t\t\t\n\t\t\t\tLog.extent.addSystemInfo(\"Selenium Version\", \"2.53.1\").addSystemInfo(\"Testing Environment\", envirment)\n\t\t\t\t\t\t.addSystemInfo(\"Release\", release).addSystemInfo(\"Test URL\", url)\n\t\t\t\t\t\t.addSystemInfo(\"TimeZone\", TimeZonename).addSystemInfo(\"Git branch\", gitBranch)\n\t\t\t\t\t\t.addSystemInfo(\"Browser type\", browserType)\n\t\t\t\t\t\t.addSystemInfo(\"User Name\", \"delaPlex\").addSystemInfo(\"Host Name\", \"QMC185-delaPlex\");\n\t\t\t} \n\t\t\tcatch (Exception e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn Log.extent;\n\t}", "public String getInsuranceDetails(String dataSet,String centreAcc){\n\t\tDbFunctions dbfunc = new DbFunctions();\n\t\treturn (dbfunc.getInsuranceDetails(dataSet, centreAcc));\n\t\t/*String month= dbfunc.monthYear();\n\t\t\n\t\ttry{\n\t\t\tClass.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\"); \n\t\t\ttestConnection = DriverManager.getConnection(\"jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};\"\n\t\t\t\t\t+ \"DBQ=\"+ EnvironmentSetup.strDataSheetPath + \";readOnly=false\");\n\t\t\tQueryStatement = EnvironmentSetup.dBConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\tstrQuery = \"SELECT PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName from TestData where DataSet = '\" + dataSet + \"'\";\n\t\t\t\n\t\t\ttestResultSet = QueryStatement.executeQuery(strQuery);\n\t\t\ttestResultSet.beforeFirst();\n\t\t\tString PrimaryInsuranceCo =\"\";\n String PrimarySponsorName=\"\";\n String InsurancePlanType=\"\";\n String InsurancePlanName=\"\";\n \n\t\t\twhile (testResultSet.next()){\n\t\t\t\t\n PrimaryInsuranceCo =testResultSet.getString(\"PrimaryInsuranceCo\");\n PrimarySponsorName =testResultSet.getString(\"PrimarySponsorName\");\n InsurancePlanType= testResultSet.getString(\"InsurancePlanType\");\n InsurancePlanName=testResultSet.getString(\"InsurancePlanName\");\n // getInsuranceDetails.put(PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName);\n //downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+\"- Account Group -\"+centreAcc;\n downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+centreAcc;\n \t\t\n break;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\tEnvironmentSetup.logger.info(\"Executing Query on Objects: \" + ex.toString());\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\ttestResultSet.close();\t\t\n\t\t\t\ttestResultSet = null;\n\t\t\t} catch (SQLException e) {\n\t\t\t\t//TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t\t//DAMAN-National Health Insurance Company-National Health Insurance Company (DAMAN)-ALL-March2017-DAMAN - NW1-DAMAN - NW1 - GLO. (C0,D0,Dn100,Ch0)- Account Group -Pharmacy\n\t\tSystem.out.println(downloadedFile);\n\t\treturn downloadedFile;*/\n\t\t\n\t\t}", "void export(UtilityDataExportQuery query) throws ApplicationException;", "private void doExport() {\n\t\tSQLiteDatabase db = null;\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tdb = openOrCreateDatabase(MyDbHelper.DATABASE_NAME, SQLiteDatabase.OPEN_READWRITE, null);\n\t\t\tcursor = db.rawQuery(\"SELECT * \" +\n \" FROM \" + LocationTable.TABLE_NAME +\n \" ORDER BY \" + LocationTable.COLUMN_TIMESTAMP + \" ASC\",\n null);\n \n\t\t\tint timestampColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_TIMESTAMP);\n int latitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LATITUDE);\n int longitudeColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_LONGITUDE);\n int accuracyColumnIndex = cursor.getColumnIndexOrThrow(LocationTable.COLUMN_ACCURANCY);\n \n\t\t\tif (cursor.moveToFirst()) {\n\t\t\t\tStringBuffer fileBuf = new StringBuffer();\n\t\t\t\tString beginTimestamp = null;\n\t\t\t\tString endTimestamp = null;\n\t\t\t\tString timestamp = null;\n\t\t\t\tdo {\n\t\t\t\t\ttimestamp = cursor.getString(timestampColumnIndex);\n\t\t\t\t\tif (beginTimestamp == null) {\n\t\t\t\t\t\tbeginTimestamp = timestamp;\n\t\t\t\t\t}\n\t\t\t\t\tdouble latitude = cursor.getDouble(latitudeColumnIndex);\n\t\t\t\t\tdouble longitude = cursor.getDouble(longitudeColumnIndex);\n\t\t\t\t\tdouble accuracy = cursor.getDouble(accuracyColumnIndex);\n\t\t\t\t\tfileBuf.append(sevenSigDigits.format(longitude)+\",\"+sevenSigDigits.format(latitude)+\"\\n\");\n\t\t\t\t} while (cursor.moveToNext());\n\t\t\t\t\n\t\t\t\tendTimestamp = timestamp;\n\t\t\t\t\n\t\t\t\tcloseFileBuf(fileBuf, beginTimestamp, endTimestamp);\n\t\t\t\tString fileContents = fileBuf.toString();\n\t\t\t\tLog.d(ActivityName, fileContents);\n\t\t\t\tFile sdcard_path = Environment.getExternalStorageDirectory();\n\t\t\t\tFile sdDir = new File(sdcard_path, \"GPSLogger\");\n\t\t\t\tsdDir.mkdirs();\n\t\t\t\tFile file = new File(sdDir, zuluFormat(beginTimestamp) + \".kml\");\n\t\t\t\tFileWriter sdWriter = new FileWriter(file, false);\n\t\t\t\tsdWriter.write(fileContents);\n\t\t\t\tsdWriter.close();\n \t\t\tToast.makeText(getBaseContext(),\n \t\t\t\t\t\"Export completed!\",\n \t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t} else {\n\t\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\t\"I didn't find any location points in the database, so no KML file was exported.\",\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t}\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying access the SD card. Make sure your handset is not connected to a computer and the SD card is properly installed\",\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} catch (Exception e) {\n\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\"Error trying to export: \" + e.getMessage(),\n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t} finally {\n\t\t\tif (cursor != null && !cursor.isClosed()) {\n\t\t\t\tcursor.close();\n\t\t\t}\n\t\t\tif (db != null && db.isOpen()) {\n\t\t\t\tdb.close();\n\t\t\t}\n\t\t}\n\t}", "public void createXLS(String fileName){\r\n FileOutputStream fo = null;\r\n int totalColumns;\r\n try {\r\n WorkBookHandle h=new WorkBookHandle();\r\n WorkSheetHandle sheet1 = h.getWorkSheet(\"Sheet1\");\r\n \r\n int currentRow=1;\r\n char currentColumn;\r\n int underSessions;\r\n for(StudentResult i:(List<StudentResult>)results){\r\n if(results.indexOf(i)==0){\r\n sheet1.add(\"Register No.\", \"A1\");\r\n sheet1.add(\"Name of Student\", \"B1\");\r\n currentColumn='C';\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.subCode, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n }\r\n sheet1.add(\"SGPA\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(\"No. of Under-sessions\", String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n totalColumns=currentColumn;\r\n }\r\n \r\n currentRow++;\r\n sheet1.add(i.regNo,\"A\"+String.valueOf(currentRow));\r\n sheet1.add(i.studentName,\"B\"+String.valueOf(currentRow));\r\n currentColumn='C';\r\n underSessions=0;\r\n for(ExamResult j:i.subjectResults){\r\n sheet1.add(j.grade, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n if(MainFrame1.UNDER_SESION_GRADES.contains(j.grade)){\r\n underSessions++;\r\n } \r\n currentColumn++;\r\n }\r\n sheet1.add(i.averageGradePoint, String.valueOf(currentColumn)+String.valueOf(currentRow));\r\n currentColumn++;\r\n sheet1.add(underSessions, String.valueOf(currentColumn)+String.valueOf(currentRow)); \r\n }\r\n fo = new FileOutputStream(\"Result.xls\");\r\n h.writeBytes(fo);\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (WorkSheetNotFoundException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n try {\r\n fo.close();\r\n } catch (IOException ex) {\r\n Logger.getLogger(SpreadSheetCreator.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "private void pushSavedReport() throws JSONException {\n final Cursor cursor = getSavedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows = 0;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final int reportId = cursor.getInt(\n cursor.getColumnIndex(ReportEntry.COLUMN_REPORT_ID));\n ExpenseReport expenseReport = new ExpenseReport();\n expenseReport.setName(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_NAME)));\n expenseReport.setApproverEmail(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_APPROVER_EMAIL)\n ));\n\n expenseReport.setComment(cursor.getString(cursor.getColumnIndex(\n ReportEntry.COLUMN_COMMENT)));\n\n ERTRestApi.apiSaveReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseReport expenseReportResponse =\n gson.fromJson(\n response.toString(),\n ExpenseReport.class\n );\n\n if(!getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.EDITED_REPORT.toString())) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED);\n }\n\n\n updateExpenseLineItemReportId(reportBaseId,\n expenseReportResponse.getId()\n );\n setReportValuesFromServer(reportBaseId, expenseReportResponse);\n\n pushSavedExpenseLineItem();\n\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi.ERTRestApiError error) {\n int updatedRows = updateReportSyncStatus(reportBaseId, SyncStatus.SAVED_REPORT);\n Log.d(LOG_TAG, \"updated rows save report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n if(getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.SAVED_REPORT.toString())) {\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n }\n\n Log.d(LOG_TAG, \"updated rows save report:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetlogCount();\r\n\t\t\t\r\n\t\t} catch (SQLException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tNetlogs netlogs = new Netlogs(result);\r\n\t\tString path = this.getClass().getClassLoader().getResource(\"\").getPath();\r\n\t\tSystem.out.println(path);\r\n\t\tpath = path.replace(\"WEB-INF/classes/\", \"\");\r\n\t\tString path1 = path + \"netlog/\";\r\n\t\tLong time = System.currentTimeMillis()/1000;\r\n\t\tXml2Java.beanToXML(netlogs,path1+\"145-330000-\"+time.toString()+\"-00001-WA-SOURCE_NETLOG_0001-0.xml\");\r\n\r\n\t\tZipUtil.ZipMultiFile(path1, path+\"145-353030334-330300-330300-netlog-00001.zip\");\r\n\t}", "public void checkOfficeActionPeriod1(){\n\n System.out.println(\"checking Office Action period 1 status for filings : \"+firstOfficeActionDuration);\n\n BaseTradeMarkApplicationService baseTradeMarkApplicationService = serviceBeanFactory.getBaseTradeMarkApplicationService();\n\n\n for(Iterator<BaseTrademarkApplication> iter = baseTradeMarkApplicationService.findAll().iterator(); iter.hasNext(); ) {\n\n BaseTrademarkApplication current = iter.next();\n if(current.getApplicationFilingDate() != null && current.getFilingStatus().equals(\"Non-Final Action Mailed\") == true){\n // check that date + duration against current time\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod()) < new Date().getTime()){\n\n System.out.println(\"Filing has expired from the office action period\");\n\n // check if office action has been completed ..\n for(Iterator<OfficeActions> iter3 = current.getOfficeActions().iterator(); iter3.hasNext(); ) {\n OfficeActions current3 = iter3.next();\n\n if(current3.isOfficeActionCompleted() == false && current.getFilingStatus().contains(\"Abandoned\") == false){\n\n // remove office action ..or set it to inactive\n // so on the dashboard. we only show actions that are active\n //\n // do the same thing. create petition object and attach it to the filing\n Petition petition = new Petition();\n petition.setParentMarkImagePath(current.getTradeMark().getTrademarkImagePath());\n petition.setStandardCharacterMark(current.isStandardTextMark());\n petition.setStandardCharacterText(current.getTradeMark().getTrademarkStandardCharacterText());\n petition.setParentMarkOwnerName(current.getPrimaryOwner().getOwnerDisplayname());\n petition.setParentSerialNumber(current.getTrademarkName());\n petition.setParentRegistrationNumber(current.getRegistrationID());\n\n petition.setActionID(String.valueOf(current3.getInternalID()));\n\n long dueDate = new Date().getTime()+current.getBlackOutPeriod()+current.getOfficeActionResponsePeriod()+current.getPetitionPeriod();\n petition.setDueDate(new Date(dueDate));\n\n\n current.setFilingStatus(\"Abandoned - Failure to Respond or Late Response\");\n petition.setOfficeActionCode(\"Abandoned - Failure to Respond or Late Response\");\n petition.setPetitionTitle(\"Failure to Respond Timely to Office Action\");\n\n petition.setActivePetition(true);\n current.addPetition(petition);\n petition.setTrademarkApplication(current);\n current3.setActiveAction(false);\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Abandoned\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n\n }\n\n\n\n }\n\n\n\n // only execute below code if office action is not completed...\n\n\n }\n else{\n System.out.println(\"filing is still in respond to office action period or filing is in a different state\");\n\n\n }\n }\n else{\n if(current.getFilingStatus().equals(\"TEAS RF New Application\") || current.getFilingStatus().equals(\"New Application\") ){\n if((current.getApplicationFilingDate().getTime() + current.getBlackOutPeriod() + current.getOfficeActionResponsePeriod() ) < new Date().getTime()){\n boolean acceptedFiling = true;\n\n for(Iterator<OfficeActions> iter4 = current.getOfficeActions().iterator(); iter4.hasNext(); ) {\n OfficeActions current4 = iter4.next();\n if(current4.isActiveAction() && current4.getOfficeActionCode().equals(\"global default action\") == false){\n if(current4.isOfficeActionCompleted() == true){\n // skip examiner review period\n // filing is accepted\n // change filing status\n // create filing document event\n\n current4.setActiveAction(false);\n\n\n\n }\n else {\n acceptedFiling = false;\n\n System.out.println(\"office action is not completed\");\n }\n\n }\n\n\n }\n\n if(acceptedFiling == true){\n current.setFilingStatus(\"Accepted Filing\");\n current.setApplicationAcceptedDate(new Date());\n\n // create accepted filing date\n\n\n\n\n FilingDocumentEvent filingDocumentEvent = new FilingDocumentEvent();\n filingDocumentEvent.setEventDescription(\"Filing Accepted\");\n\n filingDocumentEvent.setDocumentType(\"XML\");\n Date date = new Date();\n filingDocumentEvent.setEventDate(date);\n\n current.addFilingDocumentEvent(filingDocumentEvent);\n\n\n // go back and set any active actions to in-active\n //for(Iterator<OfficeActions> iter2 = current.getOfficeActions().iterator(); iter2.hasNext(); ) {\n // OfficeActions current2 = iter2.next();\n // current2.setActiveAction(false);\n\n //}\n\n baseTradeMarkApplicationService.save(current);\n\n }\n // if there are no office actions ..it is also compelete\n\n }\n // check for accepted filings\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n\n }\n\n }", "public static void writeIntoCSVFromTable() {\n try {\n backItUp(ROOT);\n backItUp(ROOT + Calendar.getInstance().getTime() + \"/\");\n } catch (Throwable e) {\n itsLogger.error(e.getMessage(), e);\n }\n\n }", "public void exportResultsToFile(){\r\n\t\t\t\t\r\n\t\t// This if clause shouldn't fire as the icon is grayed out if there is no tab open\r\n\t\tif(currentView == null \r\n\t\t\t\t|| currentView.getDynamicModelView() == null \r\n\t\t\t\t|| currentView.getDynamicModelView().getModel() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open, and a model and table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif(currentView.getDynamicModelView().getModel().getDefaultHistory() == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A table must be present before results can be exported\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tDynamicModelHistory history = currentView.getDynamicModelView().getModel().getDefaultHistory();\r\n\r\n\t\tStringBuffer buffer = new StringBuffer(30000);\r\n\r\n\t\tif(history != null && history.getTimePointCount() > 0 && history.getSnapshot(0) != null){\r\n\t\t\r\n\t\t\t// Get the filename\r\n\t\t\tYorkGUIUtils guiUtils = new YorkGUIUtils();\r\n\t\t\tString selectedFile = guiUtils.getUserToDefineFilename(this, propertiesMemento.getBaseDir(), \"txt csv\", \"Results files (.txt, .csv)\", JFileChooser.SAVE_DIALOG);\r\n\r\n\t\t\tif(selectedFile == null || guiUtils.wasCancelled()){\r\n\t\t\t\trequestFocusInWindow();\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\t\r\n\t\t\tlogger.info(\"Selected file for exporting results:\" + selectedFile);\r\n\t\t\r\n\t\t\tbuffer.append(\"time point\").append(\"\\t\");\r\n\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\tbuffer.append(t).append(\"\\t\");\r\n\t\t\t}\r\n\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\r\n\t\t\tfor(Iterator<String> it = history.getSnapshot(0).keySet().iterator(); it.hasNext();){\r\n\t\t\t\tString name = it.next();\r\n\t\t\t\tbuffer.append(name).append(\"\\t\");\r\n\t\t\t\t// For all time points\r\n\t\t\t\tfor(int t = 0; t < history.getTimePointCount(); t++){\r\n\t\t\t\t\tbuffer.append(history.getSnapshot(t).get(name).getOutputValue()).append(\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t}\r\n\t\t\tFileLoader.save(selectedFile, buffer.toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\tJOptionPane.showMessageDialog(this, \"No results available in the selected tab. Run the model first.\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/report/xls\")\r\n\tpublic ModelAndView generateXLSReport() {\r\n\r\n\t\tMap<String, Object> parameterMap = new HashMap<String, Object>();\r\n\r\n\t\tList<Person> personList = personService.getAll();\r\n\r\n\t\tJRDataSource person_list = new JRBeanCollectionDataSource(personList);\r\n\r\n\t\tparameterMap.put(\"person_list\", person_list);\r\n\r\n\t\treturn new ModelAndView(\"personReportList_xls\", parameterMap);\r\n\r\n\t}", "public String execute() throws Exception {\r\n try {\r\n if (new File(excelFile).canRead()) {\r\n sheetTabs = new ArrayList<String>();\r\n tableData = ToHtml.generateStatsPage(sheetIndex, excelFile, sheetTabs);\r\n }\r\n excelOpenError = \"\";\r\n } catch (IllegalArgumentException e){\r\n excelOpenError = WORKBOOK_NO_FOUND_ERROR;\r\n\r\n File excel = new File(excelFile);\r\n if (excel.exists()) {\r\n excel.delete();\r\n }\r\n }\r\n\r\n return SUCCESS;\r\n }", "public void outputToExcel(String startTime,String endTime) throws ParseException {\n\t\tDate[] dates = new Date[2];\r\n\t\tif (startTime != null && endTime != null) {\r\n\t\t\t\r\n\t\t\tString dateRange = startTime +\" - \"+endTime;\r\n\t\t\tdates = WebUtil.changeDateRangeToDate(dateRange);\r\n\t\t}else {\r\n\t\t\tdates[0] = null;\r\n\t\t\tdates[1] = null;\r\n\t\t}\r\n\t\t\r\n\t\tList<Profit> profits = profitMapper.getProfit(dates[0], dates[1]);\r\n\t\tList<CourseProfit> courseProfits = courseSelectMapper.getCourseProfit(dates[0],WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<CardProfit> cardProfits = cardFeeMapper.getCardProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\tList<MachineBuyConfig> machineBuyConfigs = machineConfigMapper.getMachineProfit(dates[0], WebUtil.getEndTime(dates[1], 1));\r\n\t\t\r\n\t\tMap<String, String> profitMap = new LinkedHashMap<String, String>();\r\n\t\tprofitMap.put(\"date\", \"时间\");\r\n\t\tprofitMap.put(\"vip\", \"会员收益\");\r\n\t\tprofitMap.put(\"course\", \"课程收益\");\r\n\t\tprofitMap.put(\"mechine\", \"器械支出\");\r\n\t\tprofitMap.put(\"sum\", \"总计\");\r\n\t\tString sheetName = \"财务总表\";\r\n\t\t\r\n\t\tMap<String, String> courseProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcourseProfitMap.put(\"selectTime\", \"时间\");\r\n\t\tcourseProfitMap.put(\"courseName\", \"课程名称\");\r\n\t\tcourseProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcourseProfitMap.put(\"courseCost\", \"课程收益\");\r\n\t\tString courseSheet = \"课程收益\";\r\n\t\t\r\n\t\tMap<String, String> cardProfitMap = new LinkedHashMap<String, String>();\r\n\t\tcardProfitMap.put(\"startTime\", \"时间\");\r\n\t\tcardProfitMap.put(\"vipName\", \"会员姓名\");\r\n\t\tcardProfitMap.put(\"cardType\", \"办卡类型\");\r\n\t\tcardProfitMap.put(\"cardFee\", \"办卡收益\");\r\n\t\tString cardSheet = \"办卡收益(1、年卡会员 2、季卡会员 3、月卡会员)\";\r\n\t\t\r\n\t\tMap<String, String> machineOutMap = new LinkedHashMap<String, String>();\r\n\t\tmachineOutMap.put(\"time\", \"时间\");\r\n\t\tmachineOutMap.put(\"machineName\", \"器械名称\");\r\n\t\tmachineOutMap.put(\"machineBrand\", \"器械品牌\");\r\n\t\tmachineOutMap.put(\"machineCost\", \"单价\");\r\n\t\tmachineOutMap.put(\"machineCount\", \"购买数量\");\r\n\t\tmachineOutMap.put(\"sumCost\", \"支出\");\r\n\t\tString machineSheet = \"器械支出\";\r\n\t\t\r\n\t\tExportExcel.excelExport(profits, profitMap, sheetName);\r\n\t\tExportExcel.excelExport(courseProfits, courseProfitMap, courseSheet);\r\n\t\tExportExcel.excelExport(cardProfits, cardProfitMap, cardSheet);\r\n\t\tExportExcel.excelExport(machineBuyConfigs, machineOutMap, machineSheet);\r\n\t}", "public String getInsuranceDetailsForResubmission(String dataSet,String centreAcc){\n\t\tDbFunctions dbfunc = new DbFunctions();\n\t\treturn (dbfunc.getInsuranceDetailsForResubmission(dataSet, centreAcc));\n\t\t/*String month= dbfunc.monthYear();\n\t\t\n\t\ttry{\n\t\t\tClass.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\"); \n\t\t\ttestConnection = DriverManager.getConnection(\"jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)};\"\n\t\t\t\t\t+ \"DBQ=\"+ EnvironmentSetup.strDataSheetPath + \";readOnly=false\");\n\t\t\tQueryStatement = EnvironmentSetup.dBConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n\t\t\tstrQuery = \"SELECT PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName from TestData where DataSet = '\" + dataSet + \"'\";\n\t\t\t\n\t\t\ttestResultSet = QueryStatement.executeQuery(strQuery);\n\t\t\ttestResultSet.beforeFirst();\n\t\t\tString PrimaryInsuranceCo =\"\";\n String PrimarySponsorName=\"\";\n String InsurancePlanType=\"\";\n String InsurancePlanName=\"\";\n \n\t\t\twhile (testResultSet.next()){\n\t\t\t\t\n PrimaryInsuranceCo =testResultSet.getString(\"PrimaryInsuranceCo\");\n PrimarySponsorName =testResultSet.getString(\"PrimarySponsorName\");\n InsurancePlanType= testResultSet.getString(\"InsurancePlanType\");\n InsurancePlanName=testResultSet.getString(\"InsurancePlanName\");\n // getInsuranceDetails.put(PrimaryInsuranceCo,PrimarySponsorName,InsurancePlanType,InsurancePlanName);\n //downloadedFile = PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+\"- Account Group -\"+centreAcc;\n downloadedFile = \"Resubmission-\"+PrimaryInsuranceCo+ \"-\" +PrimarySponsorName+\"-All-\"+month+\"-\"+InsurancePlanType+\"-\"+InsurancePlanName+centreAcc;\n \t\t\n break;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex){\n\t\t\tex.printStackTrace();\n\t\t\tEnvironmentSetup.logger.info(\"Executing Query on Objects: \" + ex.toString());\n\t\t} finally{\n\t\t\ttry {\n\t\t\t\ttestResultSet.close();\n\t\t\t\ttestResultSet=null;\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\t//TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t\t//DAMAN-National Health Insurance Company-National Health Insurance Company (DAMAN)-ALL-March2017-DAMAN - NW1-DAMAN - NW1 - GLO. (C0,D0,Dn100,Ch0)- Account Group -Pharmacy\n\t\tSystem.out.println(downloadedFile);\n\t\treturn downloadedFile;\n\t\t*/\n\t\t}", "@Override\r\n\tpublic void exportExcel(SapDataCollection sapDataCollection,\r\n\t\t\tJSONObject json, HttpServletResponse response) throws IOException,\r\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\r\n\t\t\tIllegalAccessException, InvocationTargetException,\r\n\t\t\tURISyntaxException {\n\t\tString path = \"\";\r\n\t\tList<RuntimeColumnInfo> kna1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNA1);\r\n\t\tList<RuntimeColumnInfo> knb1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNB1);\r\n\t\tList<RuntimeColumnInfo> knvvcols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNVV);\r\n\t\tlong kna1totalNum = commonService.findTotalNum(sapDataCollection,\"Kna1\", json);\r\n\t\tlong knb1totalNum = commonService.findTotalNum(sapDataCollection,\"Knb1\", json);\r\n\t\tlong knvvtotalNum = commonService.findTotalNum(sapDataCollection,\"Knvv\", json);\r\n\t\tString[] kna1titles = new String[kna1cols.size()],kna1fields=new String[kna1cols.size()];\r\n\t\tString[] knb1titles = new String[kna1cols.size()],knb1fields=new String[knb1cols.size()];\r\n\t\tString[] knvvtitles = new String[kna1cols.size()],knvvfields=new String[knvvcols.size()];\r\n\t\tint k=0;\r\n\t\tfor(RuntimeColumnInfo col : kna1cols){\r\n\t\t\tkna1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tkna1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knb1cols){\r\n\t\t\tknb1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknb1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knvvcols){\r\n\t\t\tknvvtitles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknvvfields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\tString today = sf.format(c.getTime());\r\n\t\tString frefixOfFileName = \"customer_\"+today;\r\n\t\tif(kna1totalNum>0){\r\n\t\t\tlong pages = kna1totalNum%PERSIZE==0?kna1totalNum/PERSIZE:kna1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_kna1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_kna1\";\r\n\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knb1totalNum>0){\r\n\t\t\tlong pages = knb1totalNum%PERSIZE==0?knb1totalNum/PERSIZE:knb1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knb1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knb1\";\r\n\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knvvtotalNum>0){\r\n\t\t\tlong pages = knvvtotalNum%PERSIZE==0?knvvtotalNum/PERSIZE:knvvtotalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knvv_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knvv\";\r\n\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString zipname = frefixOfFileName;\r\n\t\texcelService.downloadZip(path, zipname, response);\r\n\t\texcelService.deleteByFilePath(path);\r\n\t}", "private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "Map<Date, Integer> getFullImpressions(Step step) throws SQLException;", "public void split_weeky_data(String path) {\n\n\t\t/**\n\t\t * Hashtable<UserID, Hashtable<Week Day, Observation Sequence>> obstable\n\t\t */\n\t\tHashtable<Integer, Hashtable<String, Obs>> obstable = new Hashtable<>();\n\n\t\tSimpleDateFormat parserSDF = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setFirstDayOfWeek(Calendar.MONDAY);\n\n\t\tint cnt = 0;\n\t\tint week_no = get_week_no(path);\n\t\tString subpath = path.substring(0, path.lastIndexOf('.'));\n\t\tString week1_path = subpath + \"_WEEK_\" + week_no + \".CSV\";\n\t\tString week2_path = subpath + \"_WEEK_\" + (week_no + 1) + \".CSV\";\n\n\t\tFile w1file = new File(week1_path);\n\t\tFile w2file = new File(week2_path);\n\t\t// if file doesnt exists, then create it\n\t\ttry {\n\t\t\tif (!w1file.exists()) {\n\t\t\t\tw1file.createNewFile();\n\t\t\t}\n\n\t\t\tif (!w2file.exists()) {\n\t\t\t\tw2file.createNewFile();\n\t\t\t}\n\n\t\t\tFileWriter week1_fw = new FileWriter(w1file.getAbsoluteFile());\n\t\t\tBufferedWriter week1_bw = new BufferedWriter(week1_fw);\n\n\t\t\tFileWriter week2_fw = new FileWriter(w2file.getAbsoluteFile());\n\t\t\tBufferedWriter week2_bw = new BufferedWriter(week2_fw);\n\n\t\t\tBufferedReader reader;\n\t\t\ttry {\n\t\t\t\treader = new BufferedReader(new FileReader(path));\n\n\t\t\t\tString line;\n\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\tString lineSplit[] = line.split(CLM);\n\t\t\t\t\tcal.setTime(parserSDF.parse(lineSplit[1]));\n\t\t\t\t\tint recent = cal.get(Calendar.WEEK_OF_YEAR);\n\n\t\t\t\t\tif (week_no == recent) {\n\t\t\t\t\t\tweek1_bw.append(line);\n\t\t\t\t\t\tweek1_bw.newLine();\n\t\t\t\t\t\t//\n\t\t\t\t\t} else {\n\t\t\t\t\t\tweek2_bw.append(line);\n\t\t\t\t\t\tweek2_bw.newLine();\n\t\t\t\t\t\t//\n\t\t\t\t\t}\n\n\t\t\t\t\t// if (Integer.parseInt(lineSplit[0]) != 1) {\n\t\t\t\t\t// break;\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t\tweek1_bw.close();\n\t\t\t\tweek2_bw.close();\n\t\t\t} catch (FileNotFoundException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t} catch (ParseException ex) {\n\t\t\t\tLogger.getLogger(ObsTripsBuilder.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}" ]
[ "0.5661913", "0.55981934", "0.5580458", "0.5519234", "0.55011076", "0.5444414", "0.54343617", "0.5368288", "0.5323018", "0.53100485", "0.5303381", "0.52815306", "0.5262931", "0.5256167", "0.52211416", "0.52144396", "0.5209375", "0.51988757", "0.5181354", "0.5178529", "0.51666445", "0.5159564", "0.51493645", "0.5146467", "0.5145249", "0.51430583", "0.5130346", "0.5125842", "0.5094105", "0.5063729", "0.50607467", "0.502814", "0.5027822", "0.50243855", "0.5021217", "0.4996888", "0.49931926", "0.49815282", "0.4921855", "0.49163872", "0.4893017", "0.4890721", "0.48895666", "0.48772717", "0.48768628", "0.48758316", "0.48737708", "0.48723754", "0.48592317", "0.48496208", "0.48489407", "0.48339254", "0.4831853", "0.4831038", "0.48226744", "0.47996303", "0.47940066", "0.47890973", "0.4783645", "0.47822148", "0.47729003", "0.47683495", "0.47500956", "0.4745127", "0.47441974", "0.47343472", "0.47322264", "0.4730013", "0.47176826", "0.47124082", "0.47079936", "0.470529", "0.47037342", "0.4703536", "0.4703155", "0.4698611", "0.46981323", "0.46968484", "0.4695142", "0.46849838", "0.46828854", "0.46813852", "0.4680781", "0.46771517", "0.46749786", "0.46718812", "0.46708727", "0.46693614", "0.46631208", "0.46621004", "0.46614307", "0.46608636", "0.46572444", "0.46570086", "0.46510705", "0.46491683", "0.4636595", "0.46365485", "0.4635777", "0.46312645" ]
0.72566545
0
//////////////////////////////////// Tested Methods //////////////////////////////////// findHighestRentProperty() auction() thereIsUnownedProperty() getUnownedProperties() checkShareOfStocks() buyStock() auctionStock() getIdByStockName()
@Test public void testFindHighestRentProperty() { Board board = new Board(4); SquareProperty outer = (SquareProperty)board.getSquareFromBoard(84); SquareProperty inner = (SquareProperty)board.getSquareFromBoard(53); outer.rent = 3000; inner.rent = 4000; Bank ba = board.bank; int[] a = ba.findHighestRentProperty(3); int[] b = ba.findHighestRentProperty(4); assertTrue("findHighestRentProperty() works",ba.repOk() && (outer.position == a[1] && outer.row == a[0]) && (inner.position == b[1] && inner.row == b[0])); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FoodItem mostExpensive() {\n FoodItem mostExpensive = null;\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if not first, compare the most expensive yet to current,\n // and change the most expensive if current's price is grater\n if (i != 0) {\n // if price is bigger than all tested yet\n if (currentItem.getPrice() > mostExpensive.getPrice()) {\n // set it as biggest yet\n mostExpensive = new FoodItem(currentItem); // avoid aliasing\n }\n }\n else \n mostExpensive = new FoodItem(currentItem); //avoid aliasing\n }\n // return biggest\n return mostExpensive;\n }", "public double maxRentProp() {\r\n\t\treturn properties[maxRentPropertyIndex()].getRentAmount();\r\n\t}", "public int maxRentPropertyIndex() {\r\n\t\tint propIndex = 0;\r\n\t\tdouble maxRentProperty = 0;\r\n\t\tfor(int i=0;i<properties.length;i++) {\r\n\t\t\tif (properties[i]==null) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (properties[i].getRentAmount()>maxRentProperty) {\r\n\t\t\t\tmaxRentProperty = properties[i].getRentAmount();\r\n\t\t\t\tpropIndex = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn propIndex;\r\n\t}", "public FishingRod getBestRod();", "public double getMaximumStock () {\r\n\t\treturn maximumStock;\r\n\t}", "public Product findBestSelling() {\n\t\tString hql=\"SELECT p FROM Row r JOIN r.product p GROUP BY p.id ORDER BY SUM(cant) DESC \";\n\t\tQuery query = this.sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setFirstResult(0);\n query.setMaxResults(1);\n Product prod = (Product) query.getSingleResult();\n\t\treturn prod;\n\t}", "public long getPropertyBalanceMax();", "public interface Property {\n\n\t/**\n\t * Returns the name of the property.\n\t * @return property name\n */\n\tString getName();\n\n\t/**\n\t * Returns the cost to buy the property if it is unowned.\n\t * @return cost in dollars\n */\n\tint getCost();\n\n\t/**\n\t * Returns true if the property is mortgaged.\n\t * @return true if mortgaged\n */\n\tboolean getMortgaged();\n\n\t/**\n\t * Controls whether the property is mortgaged or not.\n\t * @param mortgaged whether or not the property is mortgaged\n */\n\tvoid setMortgaged(boolean mortgaged);\n\n\t/**\n\t * Returns the mortgage rate of the property.\n\t * @return mortgage rate in dollars\n */\n\tint getMortgageRate();\n\n\t/**\n\t * Returns the rent the given player should pay.\n\t * @param owner player that owns the property\n\t * @param tenantDiceRoll the roll the tenant made to get to this space\n\t * @return rent cost in dollars\n */\n\tint getRent(Player owner, int tenantDiceRoll);\n\n}", "public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }", "Price getHighestPricedTrade(Collection<Trade> trades);", "public int getBestPrice() {\n\t\treturn this.bestPrice;\n\t}", "public PropertyCard findCheapest() {\r\n\t\t\r\n\t\t\r\n\t\tif(this.properties.size() == 0) {\r\n\t\t\t//System.out.println(\"returning null\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tPropertyCard lowestCard = this.properties.get(0).getLowest();\r\n\t\tint lowest = lowestCard.getValue();\r\n\t\t\r\n\t\tfor(CardStack c: this.properties) {\r\n\t\t\tif(c.getLowest().getValue() < lowest) {\r\n\t\t\t\tlowestCard = c.getLowest();\r\n\t\t\t\tlowest = c.getLowest().getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn lowestCard;\r\n\t}", "public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}", "private Restaurant findHighestRevenueRestaurant(){\r\n Restaurant tempRestaurant = new Restaurant(\"dummy\", OrderType.BOTH);\r\n for(Restaurant restaurant : restaurantMap.getRestaurantMap().values()){\r\n if(restaurant.getRevenue() > tempRestaurant.getRevenue()){\r\n tempRestaurant = restaurant;\r\n }\r\n }\r\n return tempRestaurant;\r\n }", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "@Override\n\tpublic int getStock() {\n\t\treturn 2;\n\t}", "Object getWorst();", "@Override\n\tpublic List<SaleInfo> getMostSoldProduct() {\n\t\treturn productDao.getMostSoldProduct();\n\t}", "private int getHighestLevelFromProperties(){\n GameModel gameModel = GameModel.getInstance();\n int highestReachedLevel;\n int level = gameModel.getCurrentLevelIndex();\n String highest = properties.getProperty(\"highestReachedLevel\");\n if (highest!=null){ //if property not saved\n highestReachedLevel = Integer.parseInt(highest);\n } else {\n highestReachedLevel = level;\n }\n return highestReachedLevel;\n }", "Object getBest();", "public double getHighPrice() {\n return this.highPrice;\n }", "long getMaxItemFindings();", "@Override\n public Score getBest() {\n Session session = FACTORY.openSession();\n\n try {\n List<Score> bestScores = session.createQuery(\"FROM Score s WHERE s.value = (SELECT max(s.value) FROM Score s)\", Score.class)\n .list();\n\n session.close();\n\n return bestScores.isEmpty() ? new Score(0L) : bestScores.get(0);\n } catch (ClassCastException e) {\n LOG.error(\"Error happened during casting query results.\");\n return null;\n }\n }", "public long getPropertyBalanceMax()\n {\n return iPropertyBalanceMax.getValue();\n }", "public int getStock() {\n return stock;\n }", "int getSellCurrent();", "public int getStock(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.stock;\n}\n}\nreturn -1;\n}", "@Test\n\t\tpublic void testGetBestBid()\n\t\t{\n\t\t\tassertEquals(\"Best bid incorrect\", buyOrder2, exchange.getBestBid(stock));\n\t\t\t\n\t\t}", "public int getOpponentMaxRating() {\n return getIntegerProperty(\"MaxRating\");\n }", "@Override\n public Note getHighest() {\n if (this.sheet.isEmpty()) {\n throw new IllegalArgumentException(\"No note is added.\");\n }\n Note currentHigh = new Note(this.high.getDuration(), this.high.getOctave\n (), this.high.getStartMeasure(), this.high.getPitch(), this.high\n .getIsHead(), this.high.getInstrument(), this.high.getVolume());\n for (int i = 0; i < this.sheet.size(); i++) {\n for (Note n : this.sheet.get(i)) {\n if (currentHigh.compareTo(n) == -1) {\n currentHigh = n;\n }\n }\n }\n return currentHigh;\n }", "protected int getHighestInnovation() {\n\t\treturn highest;\n\t}", "public Computer findMostExpensiveComputerV2( ) { \n\t\tComputer highest= computers.get(0);\n\t\tint index=1; \n\t\twhile (index<computers.size()){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t\tindex ++;\n\t\t}\n\t\treturn highest;\n\n\t}", "public Integer getHighOpinion() {\n return highOpinion;\n }", "public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}", "public Collection<Object> findPurchaserSpendMoreMoney(){\n\t\tcheckAdminRole();\n\t\tCollection<Object> res=new ArrayList<Object>();\n\t\tres=purchaserRepository.findPurchaserSpendMoreMoney();\n\t\treturn res;\n\t}", "public Integer getStock() {\n return stock;\n }", "public double getHighPrice() {\r\n\t\treturn highPrice;\r\n\t}", "public int getStock() {\n\t\treturn stock;\n\t}", "public String getUnitPriceHigh() {\n return this.UnitPriceHigh;\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public Money findMaxPrice(long n) {\n\t\tif (!hashMap.containsKey(n)) {\n\t\t\treturn new Money();\n\t\t}\n\t\tTreeSet<Long> idSet = hashMap.get(n);\n\t\tMoney max = new Money();\n\t\tboolean flag = false;\n\t\tfor (Long id : idSet) {\n\t\t if(treeMap.containsKey(id)){\n\t\t\tMoney current = treeMap.get(id).price;\n\t\t\tif (max.compareTo(current) == -1 || !flag) {\n\t\t\t\tmax = current;\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}", "public int prIce_Per_GUeSt(int NO_OF_PEOPLE){\r\n if (NO_OF_PEOPLE>50){\r\n price_per_guest=lower_price_per_guest;\r\n System.out.println(\"PER_PERSON_PRICE = \"+lower_price_per_guest);\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n return total_price;\r\n }\r\n else\r\n {price_per_guest=Highest_price_per_guest;\r\n int total_price = price_per_guest* NO_OF_PEOPLE;\r\n System.out.println(\"PER_PERSON_PRICE = \"+Highest_price_per_guest);\r\n return total_price;}\r\n }", "public Computer findMostExpensiveComputerV3( ) {\n\n\t\tComputer highest= computers.get(0);\n\n\t\tfor (Computer c : computers)\n\t\t\tif (highest.getPrice()<c.getPrice()) {\n\t\t\t\thighest=c;\n\n\t\t\t}\n\n\n\t\treturn highest;\n\t}", "public double getHigh(){\n return /*home*/ this.high /*and eat everything*/;\r\n //then go to sleep for a day or three \r\n }", "public String getOriginalPriceHigh() {\n return this.OriginalPriceHigh;\n }", "int getSellQuantity();", "public double getMinimumStock () {\r\n\t\treturn minimumStock;\r\n\t}", "BigDecimal getHighPrice();", "public double getWitnessedMaxPrice() {\t\r\n\t\treturn witnessed_max_price;\r\n\t}", "public Employee getHighestRevenueEmployee() {\n\t\tEmployee employee = new Employee();\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://mysql3.cs.stonybrook.edu:3306/mwcoulter?useSSL=false\",\"mwcoulter\",\"111030721\");\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\n\t\t\t\t\t\"SELECT R.CustRepId, P.FirstName, P.LastName, E.Email, Count(*) \" +\n\t\t\t\t\t\"FROM Person P, Rental R, Employee E \" +\n\t\t\t\t\t\"WHERE P.SSN = R.CustRepId AND E.SSN = P.SSN \"+\n\t\t\t\t\t\"group by P.FirstName, P.LastName \" +\n\t\t\t\t\t\"ORDER BY COUNT(*) DESC; \"\n\t\t\t\t\t);\n\t\t\trs.next();\n\t\t\temployee.setEmployeeID(String.valueOf(rs.getInt(\"CustRepId\")));\n\t\t\temployee.setFirstName(rs.getString(\"FirstName\"));\n\t\t\temployee.setLastName(rs.getString(\"LastName\"));\n\t\t\temployee.setEmail(rs.getString(\"Email\"));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\n\t\treturn employee;\n\t\t\n\t}", "public int getWorth()\n {\n return worth;\n }", "public int getPropertyBalance();", "public java.math.BigDecimal getHigh() {\n return high;\n }", "protected void computeOWLOntologyObjectPropertyUsage(){\n\t\tfor(OWLOntology ont : super.getOntologies()){\n\t\t\tfor(OWLObjectProperty prop : ont.getObjectPropertiesInSignature()){\n\t\t\t\t\n\t\t\t\tint objectPropUsageInt = getOWLObjectPropertyUsage(prop);\n\t\t\t\t\n\t\t\t\tobjectPropertyUsageMap.put(prop, objectPropUsageInt);\n\t\t\n\t\t\t\t//find the class with the maximum usage \n\t\t\t\t//In these exclude the owl:thing class because\n\t\t\t\t//this information is redundant \n\t\t\t\tif (!prop.isTopEntity()) {\n\t\t\t\t\tif(max < objectPropUsageInt){\n\t\t\t\t\t\tmax = objectPropUsageInt;\n\t\t\t\t\t\tpropertyWithMaxUsage = prop;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public String getDiscountPriceHigh() {\n return this.DiscountPriceHigh;\n }", "public Proveedor findTopByOrderByIdDesc();", "public BigDecimal getProportionHigh() {\n\t\treturn proportionHigh;\n\t}", "public T getBestElement() {\n\t\tT bestElement = null;\n\t\tdouble bestProb = -1;\n\t\tfor (T element : itemProbs_.keySet()) {\n\t\t\tdouble thisProb = itemProbs_.get(element);\n\t\t\tif (thisProb > bestProb) {\n\t\t\t\tbestProb = thisProb;\n\t\t\t\tbestElement = element;\n\t\t\t}\n\t\t}\n\t\treturn bestElement;\n\t}", "@Test\n\tpublic void mostPopularBike()\n\t{\t\t\n\t\tassertEquals(controller.getReport().getMostPopularBike(), \"BIKE1\");\n\t}", "public String cheapest()\n {\n if(stocks.size() == 0)\n {\n return \"\";\n }\n Stock min = stocks.get(0);\n for (Stock c: stocks)\n {\n if (stocks.size() > 0)\n {\n if (c.getPrice() < min.getPrice())\n {\n min = c;\n }\n }\n }\n return min.getSymbol();\n }", "public double getHighestReward() {\n if (this.highestReward == -1.0) {\n double tempHighestReward = -1.0;\n for (B bidder : this.bidders) {\n if (bidder.getReward() > tempHighestReward) {\n tempHighestReward = bidder.getReward();\n }\n }\n this.highestReward = tempHighestReward;\n }\n return this.highestReward;\n }", "private Integer findMaxPaidPurchasePriceById(int id) {\n PurchaseCB cb = new PurchaseCB();\n cb.query().setMemberId_Equal(id);\n cb.query().setPaymentCompleteFlg_Equal_True();\n cb.query().scalar_Equal().max(new SubQuery<PurchaseCB>() {\n public void query(PurchaseCB cb) {\n cb.specify().columnPurchasePrice();\n }\n });\n cb.fetchFirst(1); // 最大価格が同じものが複数あった場合にもselectEntityを使うため\n Purchase purchase = purchaseBhv.selectEntity(cb);\n if (purchase == null) {\n return null;\n }\n return purchase.getPurchasePrice();\n }", "public Card bestEight()\n {\n String mostSuit = \"\";\n int most = 0;\n Hashtable<String, Integer> cardSuit = new Hashtable<String, Integer>();\n //Count the number of cards in players hand for each suit\n for(Card cardInHand: this.hand)\n {\n String suit = cardInHand.getSuit();\n if(cardSuit.containsKey(suit))\n {\n cardSuit.put(suit, cardSuit.get(suit) + 1);\n }\n else\n {\n cardSuit.put(suit, 1);\n }\n }\n //find the highest one.\n for(String key: cardSuit.keySet())\n {\n if(cardSuit.get(key) > most) {\n mostSuit = key;\n most = cardSuit.get(key);\n }\n }\n return new Card(mostSuit, \"8\");\n }", "@Test\n\t\tpublic void testGetBestOffer()\n\t\t{\t\t\t\n\t\t\tassertEquals(\"Best bid incorrect\", sellOrder1, exchange.getBestOffer(stock));\n\t\t}", "public Integer getBestTrophies()\n\t{\n\t\treturn bestTrophies;\n\t}", "int getChestsAmount();", "public Region findHighestEarningRegion() {\n Region highest = regionList[0];\n for (int i = 1; i < numRegions; i++) {\n if (highest.calcEarnings() <= regionList[i].calcEarnings())\n highest = regionList[i];\n }\n return highest;\n }", "public String getUnitPriceDiscountHigh() {\n return this.UnitPriceDiscountHigh;\n }", "private RolapCalculation getScopedMaxSolveOrder() {\n // Finite state machine that determines the member with the highest\n // solve order.\n RolapCalculation maxSolveMember = null;\n ScopedMaxSolveOrderFinderState state =\n ScopedMaxSolveOrderFinderState.START;\n for (int i = 0; i < calculationCount; i++) {\n RolapCalculation calculation = calculations[i];\n switch (state) {\n case START:\n maxSolveMember = calculation;\n if (maxSolveMember.containsAggregateFunction()) {\n state = ScopedMaxSolveOrderFinderState.AGG_SCOPE;\n } else if (maxSolveMember.isCalculatedInQuery()) {\n state = ScopedMaxSolveOrderFinderState.QUERY_SCOPE;\n } else {\n state = ScopedMaxSolveOrderFinderState.CUBE_SCOPE;\n }\n break;\n\n case AGG_SCOPE:\n if (calculation.containsAggregateFunction()) {\n if (expandsBefore(calculation, maxSolveMember)) {\n maxSolveMember = calculation;\n }\n } else if (calculation.isCalculatedInQuery()) {\n maxSolveMember = calculation;\n state = ScopedMaxSolveOrderFinderState.QUERY_SCOPE;\n } else {\n maxSolveMember = calculation;\n state = ScopedMaxSolveOrderFinderState.CUBE_SCOPE;\n }\n break;\n\n case CUBE_SCOPE:\n if (calculation.containsAggregateFunction()) {\n continue;\n }\n\n if (calculation.isCalculatedInQuery()) {\n maxSolveMember = calculation;\n state = ScopedMaxSolveOrderFinderState.QUERY_SCOPE;\n } else if (expandsBefore(calculation, maxSolveMember)) {\n maxSolveMember = calculation;\n }\n break;\n\n case QUERY_SCOPE:\n if (calculation.containsAggregateFunction()) {\n continue;\n }\n\n if (calculation.isCalculatedInQuery()) {\n if (expandsBefore(calculation, maxSolveMember)) {\n maxSolveMember = calculation;\n }\n }\n break;\n }\n }\n\n return maxSolveMember;\n }", "public interface StockItem {\n String getSymbol();\n\n String getName();\n\n BigDecimal getValue();\n\n int getVolume();\n\n Date getLastTradeDateTime();\n\n BigDecimal getGains();\n\n BigDecimal getOpenValue();\n\n BigDecimal getCloseValue();\n}", "public interface SellOrderRepository extends GenericCrudRepository<SellOrder, String> {\n\n //when the price&time are equal, should put biggest amount first\n List<SellOrder> findAscPendingOrdersByPriceTime(Date toTime, BigMoney price, OrderBookId orderBookId, int size);\n\n SellOrder findPendingOrder(String id);\n\n SellOrder findLowestPricePendingOrder(OrderBookId orderBookId);\n}", "public Long getMaximumquantity() {\r\n return maximumquantity;\r\n }", "public Building mostFitInPopulation(){\n\t\tCollections.sort(population);\n\t\treturn population.get(population.size() - 1);\n\t}", "public Integer getTopmoney() {\n return topmoney;\n }", "public int getRestockQuantity() {\n return restockQuantity;\n }", "public int getWorth() { return 1; }", "@Override\r\n\tpublic Integer getMaxInvSrno() {\n\t\tQStnLooseMt qStnLooseMt = QStnLooseMt.stnLooseMt;\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\t\tInteger retVal = -1;\r\n\t\t\r\n\t\tCalendar date = new GregorianCalendar();\r\n\t\t\r\n\t\tList<Integer> maxSrno = query\r\n\t\t\t.from(qStnLooseMt)\r\n\t\t\t.where(qStnLooseMt.invDate.year().eq(date.get(Calendar.YEAR))).list(qStnLooseMt.srNo.max());\r\n\t\t\r\n\t\tfor (Integer srno : maxSrno) {\r\n\t\t\tretVal = (srno == null ? 0 : srno);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "public int getMaxprice() {\n return maxprice;\n }", "protected HomePieceOfFurniture getHighestSurroundingPieceOfFurniture(HomePieceOfFurniture piece) {\n List<HomePieceOfFurniture> ignoredFurniture = Collections.emptyList();\n return getHighestSurroundingPieceOfFurniture(piece, ignoredFurniture);\n }", "@Override\r\n\tpublic List prodStockseach() {\n\t\treturn adminDAO.seachProdStock();\r\n\t}", "public BigDecimal getPriceLastOrd();", "@Override\n public Note getHighestNote() {\n List<Note> currentNotes = this.getNotes();\n int size = currentNotes.size();\n Note highestNote = null;\n\n for (int i = 0; i < size; i++) {\n Note currentNote = currentNotes.get(i);\n\n if (currentNote.ishigher(highestNote)) {\n highestNote = currentNote;\n }\n }\n if (highestNote == null) {\n throw new IllegalArgumentException(\"No Notes To Compare\");\n }\n return highestNote;\n }", "int givePropScore(int propSize, int crownNum) throws Exception;", "@Override\n\tpublic int getProfit() {\n\t\treturn 0;\n\t}", "public int getBestGuy () {\r\n return poblac.getBestGuy();\r\n }", "private String getStock() {\n\t\treturn stock;\n\t}", "@Override\r\n\tpublic int getRent() {\n\t\tint rent = 0;\r\n\t\tif (owner != null) {// if the instance is owned, the rent is calculated.\r\n\t\t\trent = cup.roll() * baseRent * owner.ownedTypes(this);// Gets a roll\r\n\t\t}\r\n\t\treturn rent;\r\n\t}", "public int getProductPrice(){\n return this.productRelation.getCost();\n }", "static void displayMaxProfitableStock(ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max profitable stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif((temp.valueInDollars()-temp.costInDollars()) < (array[i].valueInDollars()-array[i].costInDollars()))\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum profitable stock\r\n\t\tSystem.out.println(\"Maximum Profitable Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "public RetailOrder getRetailOrder() {\n return retailOrder;\n }", "public Integer getStockNumber() {\n return stockNumber;\n }", "public java.lang.Integer getIssueStock () {\n\t\treturn issueStock;\n\t}", "@Override\r\n\tpublic Double getModel_stockf_prop_score() {\n\t\treturn super.getModel_stockf_prop_score();\r\n\t}", "public Float getGoodsPrize() {\n return goodsPrize;\n }", "private ProductBookSide getSellSide() {\n\t\treturn sellSide;\n\t}", "@Override\n\tpublic double rentalPrice() {\n\t\treturn 70.00;\n\t}", "public final int getHigh() {\n\treturn(this.high);\n }", "int getIndividualDefense();" ]
[ "0.6158708", "0.60941124", "0.6067071", "0.60623556", "0.6036995", "0.59208125", "0.58788836", "0.57699305", "0.5669219", "0.5661837", "0.566044", "0.5650988", "0.5621015", "0.55491275", "0.5516646", "0.5514178", "0.5512263", "0.54921913", "0.54748094", "0.5465602", "0.5457867", "0.5407483", "0.54040164", "0.5398513", "0.5397942", "0.53912693", "0.5380692", "0.5363922", "0.5363223", "0.5351832", "0.53504705", "0.5348614", "0.53398544", "0.5328941", "0.5321214", "0.53190506", "0.53130543", "0.53124577", "0.5306724", "0.5300611", "0.5281434", "0.5270405", "0.526631", "0.52591777", "0.5250373", "0.52486295", "0.5245893", "0.5231914", "0.52318686", "0.52035975", "0.51993006", "0.5190346", "0.5188202", "0.5184034", "0.5178888", "0.5162325", "0.5158924", "0.51539123", "0.51521605", "0.5146626", "0.5138605", "0.5134946", "0.5128162", "0.5117636", "0.51081276", "0.51055133", "0.5104934", "0.5092416", "0.50920814", "0.5079607", "0.50749874", "0.5065765", "0.5064371", "0.50615185", "0.5060849", "0.5055995", "0.5044946", "0.5043694", "0.5042913", "0.50384927", "0.50377506", "0.5030014", "0.50219864", "0.5020491", "0.50109214", "0.50104296", "0.50102925", "0.50094694", "0.5003923", "0.5001714", "0.50015855", "0.49994874", "0.49941966", "0.49939594", "0.49918514", "0.4987778", "0.49849513", "0.4983522", "0.49774936", "0.4974781" ]
0.678843
0
Navigate via Intent. The intent must contain a NAVIGATE_ID field with the menu id of the section desired to navigate to.
public void navigateWithIntent(Intent intent) { mIntent = intent; if (mIntent != null) { Bundle args = mIntent.getExtras(); if (args != null) { int menuId = args.getInt(NAVIGATE_ID); navigate(menuId); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goToMenu() {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }", "private void goToNavActivity() {\n Intent i = new Intent(MainActivity.this, NavActivity.class);\n startActivity(i);\n finish();\n }", "public void startNavigation(){\n\n Uri gmmIntentUri = Uri.parse(\"google.navigation:q=\"+lat+\",\"+lng);\n Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);\n mapIntent.setPackage(\"com.google.android.apps.maps\");\n\n if (mapIntent.resolveActivity(getPackageManager()) != null) {\n\n startActivity(mapIntent);\n\n }\n\n\n\n }", "private void navigateToConversationsActivity() {\n startActivity(this.conversationsIntent);\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n Intent intent = new Intent(context, cla);\n intent.putExtras(bundle);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.push_left_out);\n }", "@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }", "public void goToMenu (View view)\n {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }", "private void goToActivity(Class goToClass) {\n Intent intent = new Intent(MenuActivity.this, goToClass);\n intent.putExtra(USER_ID,user.getId());\n intent.putExtra(USERNAME,user.getUserName());\n startActivity(intent);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public static void navigate(AppCompatActivity activity, View transitionImage, Friend obj, String snippet, String uid, String displayName) {\r\n Intent intent = new Intent(activity, ActivityChatDetails.class);\r\n intent.putExtra(KEY_FRIEND, obj);\r\n intent.putExtra(KEY_SNIPPET, snippet);\r\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(activity, transitionImage, KEY_FRIEND);\r\n ActivityCompat.startActivity(activity, intent, options.toBundle());\r\n }", "private void launchDeepLinkActivity(Intent intent) {\n LogUtils.LOGE(\"***> Here\", \"launchDeepLinkActivity:\" + intent);\n Intent newIntent = new Intent(intent).setClass(this, ParseDeepLinkActivity.class);\n startActivity(newIntent);\n }", "private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\tpublic void onClick(final View v) {\r\n\t\t\t\tIntent intent = new Intent(android.content.Intent.ACTION_VIEW,\r\n\t\t\t\t\t\tUri.parse(\"google.navigation:q=\" + data.getLatitude()+\",\"+data.getLongitude() ));\r\n\t\t\t\t\t\tv.getContext().startActivity(intent);\r\n\t\t\t}", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\r\n\t\tbundle = new Bundle();\r\n\r\n\t\tbundle.putString(\"menu\",getApplicationContext().toString());\r\n\t\tswitch (item.getItemId())\r\n\t\t{\r\n\t\t\tcase R.id.action_cart: {\r\n\t\t\t\tintent= new Intent(this, MyCart.class);\r\n\t\t\t\tbundle.putString(\"next_page\",\"MyCart.class\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcase R.id.action_notification: {\r\n\t\t\t\tintent= new Intent(this, Notification.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\tcase R.id.action_login: {\r\n\r\n\t\t\t\tintent= new Intent(this, login.class);\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\tcase R.id.myplan: {\r\n\t\t\t\tintent= new Intent(this, MyPlan.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\r\n\r\n\t\t\t\tcase android.R.id.home:\t{\r\n\t\t\t\t\tNavUtils.navigateUpFromSameTask(this);\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tdefault: return super.onOptionsItemSelected(item);\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t}", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "private void navigateActivity(int activityID) {\n if(activityID == COLOUR_REQUEST_CODE) {\n Intent intent = new Intent(this, SelectColour.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"colour\", model.getBrushColour());\n intent.putExtras(bundle);\n\n this.startActivityForResult(intent, COLOUR_REQUEST_CODE);\n }\n else if(activityID == BRUSH_REQUEST_CODE) {\n Intent intent = new Intent(this, SelectBrush.class);\n Bundle bundle = new Bundle();\n bundle.putInt(\"width\", model.getBrushWidth());\n bundle.putString(\"cap\", model.getBrushCap() == Paint.Cap.ROUND ? \"round\" : \"square\");\n intent.putExtras(bundle);\n\n this.startActivityForResult(intent, BRUSH_REQUEST_CODE);\n }\n }", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tintent.putExtras(bundle);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "private void goToMainActivity(){\n Log.d(TAG, \"goToMainActivity: called\");\n saveUserLogin(login);\n\n Intent intent = new Intent(\"android.intent.action.MapActivity\");\n view.getContext().startActivity(intent);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }", "public void navigateToMainActivity(final Context context) {\n if (context != null) {\n Intent intentToLaunch = MainActivity.getCallingIntent(context);\n context.startActivity(intentToLaunch);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n public static void goToIntent(Context ctx, Class<?> clazz) {\n Intent intent = new Intent(ctx, clazz);\n ctx.startActivity(intent);\n ((Activity) ctx).setResult(Activity.RESULT_CANCELED);\n ((Activity) ctx).finishAffinity();\n }", "@Override\n\tpublic void startActivity(Intent intent) {\n\t if (Intent.ACTION_SEARCH.equals(intent.getAction())) {\n\t intent.putExtra(\"ACTIVE_VIEW_PAGE\", mPager.getCurrentItem());\n\t }\n\t super.startActivity(intent);\n\t}", "public void gotoInkomsten(View v){\n Intent inkomsten;\n inkomsten = new Intent(getBaseContext(),InkomstenActivity.class);\n startActivity(inkomsten);\n }", "@Override\n public void goToEvent() {\n startActivity(new Intent(AddGuests.this, DetailEventRequest.class)); }", "private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }", "public static void openActivity(Activity fromActivity, Class toActivity, Bundle bundle, boolean finishThis) {\r\n Intent intent = new Intent(fromActivity, toActivity);\r\n if (bundle != null) {\r\n intent.putExtras(bundle);\r\n }\r\n fromActivity.startActivity(intent);\r\n if (finishThis) {\r\n fromActivity.finish();\r\n }\r\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_activity_main_search:\n Intent searchActivityIntent = new Intent(MainActivity.this, SearchActivity.class);\n this.startActivity(searchActivityIntent);\n return true;\n case R.id.menu_activity_main_notifications:\n Intent notificationsActivityIntent = new Intent(MainActivity.this, NotificationsActivity.class);\n this.startActivity(notificationsActivityIntent);\n return true;\n case R.id.menu_activity_main_help:\n Intent helpActivityIntent = new Intent(MainActivity.this, HelpActivity.class);\n this.startActivity(helpActivityIntent);\n return true;\n case R.id.menu_activity_main_about:\n Intent aboutActivityIntent = new Intent(MainActivity.this, AboutActivity.class);\n this.startActivity(aboutActivityIntent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tint id = v.getId();\n\t\tif(id==R.id.route_dh)\n\t\t\tstartNavi();\n\t\telse if(id==R.id.iv_back)\n\t\t\tfinish();\n\t}", "public static void navigateToActivity(Context A, Class <?> B, Bundle extras) {\n Intent myIntent = new Intent(A, B);\n myIntent.putExtras(extras);\n A.startActivity(myIntent);\n }", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "void navigateToStoreOrders() {\n Intent gotoStoreOrders = new Intent(this, StoreOrdersActivity.class);\n startActivity(gotoStoreOrders);\n }", "public void goToInstractions(View view)\n {\n Intent intent = new Intent(MainActivity.this, InstructionsActivity.class);\n startActivity(intent);\n }", "@Override\n public void onPushActivity(SectionFragment fragment, Intent intent) {\n startActivityForResult(intent, 1);\n }", "private void switchView(Class destination, int intentType) {\r\n\t Intent intent = new Intent(this, destination);\r\n intent.setFlags(intentType);\r\n startActivity(intent);\r\n\t}", "void navigateToOrderingCoffee() {\n Intent gotoOrderCoffee = new Intent(this, OrderingCoffeeActivity.class);\n startActivity(gotoOrderCoffee);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n Intent nextScreen;\n Intent callIntent;\n Intent mailIntent;\n\n switch (item.getItemId()) {\n case R.id.action_call:\n try {\n\n callIntent = new Intent(Intent.ACTION_DIAL);\n callIntent.setData(Uri.parse(\"tel:\"+getString(R.string.tel_number)));\n startActivity(callIntent);\n } catch (ActivityNotFoundException activityException) {\n Log.e(\"Calling a Phone Number\", \"Call failed\", activityException);\n }\n\n\n return true;\n\n case R.id.action_mail:\n\n try {\n\n mailIntent = new Intent(Intent.ACTION_SENDTO); // it's not ACTION_SEND\n mailIntent.setType(\"text/plain\");\n mailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.mail_subject));\n mailIntent.setData(Uri.parse(\"mailto:\"+getString(R.string.mail_adress))); // or just \"mailto:\" for blank\n mailIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // this will make such that when user returns to your app, your app is displayed, instead of the email app.\n startActivity(mailIntent);\n\n } catch (ActivityNotFoundException activityException) {\n Log.e(\"Mailing an adress\", \"Mail failed\", activityException);\n }\n\n return true;\n\n case R.id.action_linkedin:\n\n try {\n\n Uri uriUrl = Uri.parse(getString(R.string.url_linkedin));\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n\n } catch (ActivityNotFoundException activityException) {\n Log.e(\"Mailing an adress\", \"Mail failed\", activityException);\n }\n\n return true;\n\n case R.id.action_language:\n\n nextScreen = new Intent(getApplicationContext(), Language.class);\n\n startActivity(nextScreen);\n\n return true;\n\n case R.id.action_settings:\n\n nextScreen = new Intent(getApplicationContext(), Settings.class);\n\n startActivity(nextScreen);\n\n return true;\n\n case R.id.action_exit:\n this.finishAffinity();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.iv_address_to_home:\n\t\t\tIntent intent1 = new Intent();\n\t\t\tintent1.setClass(this, MainActivity.class);\n\t\t\tstartActivity(intent1);\n\t\t\tbreak;\n\t\tcase R.id.iv_address_return_mymarket:\n\t\t\tthis.finish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "private void gotoOptions() {\n Intent launchOptions = new Intent(this, Preferences.class);\n startActivity(launchOptions);\n }", "public static void navigateToActivity(Context A, Class <?> B, Bundle extras, int flags) {\n Intent myIntent = new Intent(A, B);\n myIntent.putExtras(extras);\n myIntent.setFlags(flags);\n A.startActivity(myIntent);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase 1:\r\n\t\t\tIntent intent_main = new Intent(getBaseContext(),\r\n\t\t\t\t\tMainActivity.class);\r\n\t\t\tstartActivity(intent_main);\r\n\t\t\treturn true;\r\n\t\tcase 2:\r\n\t\t\tIntent intent_settings = new Intent(getBaseContext(),\r\n\t\t\t\t\tLoginActivity.class);\r\n\t\t\tstartActivity(intent_settings);\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent i1= new Intent(MainActivity.this,page1.class);\n\t\t\tstartActivity(i1);\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.SamePlacesCommunity.Main.FeedServiceActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "public void goToEntitySelectActivity() {\n Intent intent = new Intent(LoginActivity.this, EntitySelectActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }", "private void goLogin(){\n Intent intent = new Intent(Menu.this, MainActivity.class);\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n ARouter.getInstance().build(\"/app2/plugintest2\").withString(RouterConfig.ROUTER_URL_PARAMS, \"data from app1 module's PluginTest1Activity\").navigation();\n }", "void startNewActivity(Intent intent);", "public void navigate(@NonNull LatLng from, @NonNull LatLng to) {\n Intent navigation = new Intent(\n Intent.ACTION_VIEW,\n Uri.parse(\"http://maps.google.com/maps?saddr=\" + from.latitude + \",\" + from.longitude + \"&daddr=\" + to.latitude + \",\" + to.longitude + \"\"));\n navigation.setPackage(\"com.google.android.apps.maps\");\n Log.i(TAG, String.format(\"starting navigation from %s to %s\", from, to));\n startActivity(navigation);\n }", "public void GoToScenario1 (View view) {\n Intent GoToScenario1Intent = new Intent(getApplicationContext(), Scenario1_01.class);\n startActivity(GoToScenario1Intent);\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n navigationView.getMenu().getItem(0).setChecked(false);\n } else if (id == R.id.howto) {\n CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();\n intentBuilder.setToolbarColor(this.getResources().getColor(R.color.colorPrimaryDark));\n intentBuilder.setUrlBarHidingEnabled(true);\n intentBuilder.setCloseButtonIcon(toBitmap(Objects.requireNonNull(getDrawable(R.drawable.ic_arrow_back))));\n intentBuilder.setDefaultShareMenuItemEnabled(true);\n intentBuilder.build().launchUrl(this, Uri.parse(howtourl));\n overridePendingTransition (R.anim.slide_in_right, R.anim.slide_out_left);\n intentBuilder.setShowTitle(true);\n } else if (id == R.id.lod) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://indiecam.page.link/linkoftheday\"));\n startActivity(browserIntent);\n overridePendingTransition (R.anim.slide_in_left, R.anim.slide_out_right);\n Toast.makeText(getApplicationContext(),\n \"Take a look at this!\",\n Toast.LENGTH_LONG)\n .show();\n } else if (id == R.id.share) {\n navigationView.getMenu().getItem(1).setChecked(false);\n Intent intentInvite = new Intent(Intent.ACTION_SEND);\n intentInvite.setType(\"text/plain\");\n String body = \"https://play.google.com/store/apps/details?id=com.indie.cam\";\n String subject = \"Download IndieCam android to connect with me!\";\n intentInvite.putExtra(Intent.EXTRA_SUBJECT, subject);\n intentInvite.putExtra(Intent.EXTRA_TEXT, body);\n startActivity(Intent.createChooser(intentInvite, \"Share IndieCam app\"));\n return true;\n } else if (id == R.id.rate) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=com.indie.cam\")));\n overridePendingTransition (R.anim.slide_in_left, R.anim.slide_out_right);\n } else if (id == R.id.IndieChat) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://play.google.com/store/apps/details?id=chat.indie.cam\")));\n overridePendingTransition (R.anim.slide_in_left, R.anim.slide_out_right);\n } else if (id == R.id.email) {\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(\n \"mailto\", \"[email protected]\", null));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"IndieCam free - android app - user feedback\");\n emailIntent.putExtra(Intent.EXTRA_TEXT, \"(Your text here..)\");\n startActivity(Intent.createChooser(emailIntent, \"Contact IndieCam\"));\n overridePendingTransition (R.anim.bounce, R.anim.bounce);\n } else if (id == R.id.like) {\n startActivity(getOpenFacebookIntent(getApplicationContext()));\n overridePendingTransition (R.anim.slide_in_left, R.anim.slide_out_right);\n Toast.makeText(getApplicationContext(),\n \"Opening Facebook Page..\",\n Toast.LENGTH_LONG)\n .show();\n } else if (id == R.id.about) {\n CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder();\n intentBuilder.setToolbarColor(this.getResources().getColor(R.color.colorPrimaryDark));\n intentBuilder.setUrlBarHidingEnabled(true);\n intentBuilder.setCloseButtonIcon(toBitmap(Objects.requireNonNull(getDrawable(R.drawable.ic_arrow_back))));\n intentBuilder.setDefaultShareMenuItemEnabled(true);\n intentBuilder.build().launchUrl(this, Uri.parse(abouturl));\n overridePendingTransition (R.anim.slide_in_right, R.anim.slide_out_left);\n intentBuilder.setShowTitle(true);\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void gotoAMazeActivity(View view) {\n\t\tIntent intent = new Intent(this, AMazeActivity.class);\n\t\tstartActivity(intent);\n\t\tLog.v(\"MainActivity\", \"Created the intent to move to AMazeActivity\");\n\t}", "public void startActivity(Activity activity, final String activityName, final Bundle extras)\n {\n EngagementActivityManager.getInstance().setCurrentActivity(activity, activityName);\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.startActivity(activityName, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }", "void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n switch (item.getItemId())\n {\n case R.id.m_home:\n Intent homeintent = new Intent(this,Home_Activity.class);\n startActivity(homeintent);\n\n break;\n\n case R.id.m_profile:\n Intent intent = new Intent(this, Profile_Activity.class);\n startActivity(intent);\n Toast.makeText(this, \"profile\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.m_premiumPlans:\n Intent intentpre = new Intent(this, PrimiumPlan_Activity.class);\n startActivity(intentpre);\n Toast.makeText(this, \"Prminum plan\", Toast.LENGTH_SHORT).show();\n break;\n\n case R.id.m_redeemGiftVoucher:\n Intent i = new Intent(this, RedeemGiftVoucher_Activity.class);\n startActivity(i);\n Toast.makeText(this, \"redeem\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.m_privacyPolicy:\n Intent p = new Intent(this, PrivacyPolicy_Activity.class);\n startActivity(p);\n Toast.makeText(this, \"privacy policy\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.m_referEarn:\n Intent refintent = new Intent(this, ReferEarn_Activity.class);\n startActivity(refintent);\n break;\n case R.id.m_RateApp:\n Intent intentrate = new Intent(android.content.Intent.ACTION_VIEW);\n intentrate.setData(Uri.parse(\"https://play.google.com/store/apps/details?id=com.amazon.avod.thirdpartyclient\"));\n startActivity(intentrate);\n break;\n case R.id.m_shareApp:\n Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);\n sharingIntent.setType(\"text/plain\");\n String shareBody = \"Here is the share content body\";\n sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, \"Subject Here\");\n sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);\n startActivity(Intent.createChooser(sharingIntent, \"Share via\"));\n break;\n case R.id.m_logout:\n FirebaseAuth.getInstance().signOut();\n Intent logout = new Intent(this, LoginActivity.class);\n startActivity(logout);\n break;\n\n\n }\n binding.drawerlayout.closeDrawer(GravityCompat.START);\n return true;\n }", "public void showAbout(View view){\n startActivity(intent);\n }", "public void goToHome() {\n navController.navigate(R.id.nav_home);\n }", "private void nextActivity(String id)\n\t{\n\t\tIntent intent=new Intent(kanto_Map, PropertyList.class);\n\t\tintent.putExtra(\"Id\", id);\n\t\tkanto_Map.startActivity(intent);\n\t}", "@Override\n public void onClick(View v) {\n final Intent i = new Intent(Resultat.this, MenuPrincipal.class);\n startActivity(i);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // navigate to the about page\n case R.id.about_page:\n startActivity(new Intent(getApplicationContext(), AboutActivity.class));\n return true;\n // go to employee contacts page\n case R.id.employee_contacts_page:\n startActivity(new Intent(getApplicationContext(), EmployeeContactsActivity.class));\n return true;\n case R.id.user_info_page:\n startActivity(new Intent(getApplicationContext(), UserInfoActivity.class));\n return true;\n case R.id.login_page:\n startActivity(new Intent(getApplicationContext(), LoginActivity.class));\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }", "public static void navigateToActivity(Context A, Class <?> B) {\n Intent myIntent = new Intent(A, B);\n A.startActivity(myIntent);\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n navController.navigate(R.id.two);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n \t switch (item.getItemId()) {\n \t case 0:{\n \t \t Intent viewIntent = new Intent(\"android.intent.action.VIEW\", \n\t\t\t\t\t\t Uri.parse(\"http://www.newconex.heliohost.org/contatos.php\"));\n\t\t\t\t startActivity(viewIntent);\t\t\t\n \t }case 1:{\n \t \t this.finish();\n \t }\n \t \n \t }\n \t return true;\n \t}", "public void drawerClickAndGo(int position)\n {\n Context a= MainActivity.this;\n Class b = Agenda.class ;//just init so there is no error\n\n\n if (position==0)\n //current position\n return;\n\n if (position==1)\n b = Agenda.class;\n\n\n Intent intent= new Intent(a,b);\n startActivity(intent);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, MatchList.class);\n intent.putExtra(Constants.Intent_Extras.NEXT_PAGE, Constants.Intent_Extras.SUPER_SCOUTING);\n startActivity(intent);\n }", "public void createBrowserIntent(View view){\n Uri uri = Uri.parse(\"https://www.linkedin.com/in/chidi-uwaleke-3769b9a8/\");\n\n //Step 2: Create a browserIntent with action 'Intent.ACTION_VIEW'\n Intent browserIntent = new Intent(Intent.ACTION_VIEW);\n\n //Step 3: Set the data of the intent\n browserIntent.setData(uri);\n\n //Step 4: Start the intent\n startActivity(browserIntent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n // get the id of menu item selected\n switch (item.getItemId()){\n case R.id.action_home :\n // initialize and Intent for the MainActivity and start it\n intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n return true;\n case R.id.action_add_contact :\n // initialize and Intent for the MainActivity and start it\n intent = new Intent(this, AddContact.class);\n startActivity(intent);\n return true;\n case R.id.action_view_family :\n intent = new Intent(this, ViewGroup.class);\n intent.putExtra(\"_group\", \"Family\");\n startActivity(intent);\n return true;\n case R.id.action_view_friends :\n intent = new Intent(this, ViewGroup.class);\n intent.putExtra(\"_group\", \"Friends\");\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.push_left_in, R.anim.push_left_out);\n\t}", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "private void goToLoginScreen()\n {\n Intent intent = new Intent(this, Login.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0,\n\t\t\t\t\t\tint arg1) {\n\t\t\t\t\tIntent i = new Intent(getActivity().getApplicationContext(),MainActivity.class);\n\t\t\t\t\tgetActivity().startActivity(i);\n\t\t\t\t}", "public void GoToScenario2 (View view) {\n Intent GoToScenario2Intent = new Intent(getApplicationContext(), Scenario2_01.class);\n startActivity(GoToScenario2Intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent\tin=new Intent(Intent.ACTION_VIEW,Uri.parse(uri2));\n\t\t\t\tstartActivity(in);\n\t\t\t\t\n\t\t\t}", "public void gotoActivity(Context context, Class<?> cla) {\n\t\tIntent intent = new Intent(context, cla);\n\t\tstartActivity(intent);\n\t\toverridePendingTransition(android.R.anim.slide_in_left, R.anim.slide_out_right);\n\t}", "@Override\r\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\r\n int id = menuItem.getItemId();\r\n switch (id){\r\n case R.id.account:\r\n Intent prof = new Intent(this, Account.class);\r\n prof.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(prof);\r\n break;\r\n case R.id.home:\r\n Intent home = new Intent(this, Homepage.class);\r\n home.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(home);\r\n break;\r\n case R.id.setting:\r\n Intent policy = new Intent(this,Settingpage.class);\r\n policy.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(policy);\r\n break;\r\n case R.id.feedback:\r\n Intent feed = new Intent(this,Feedbackpage.class);\r\n feed.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(feed);\r\n break;\r\n case R.id.share:\r\n Intent shareit = new Intent(Intent.ACTION_SEND);\r\n shareit.setType(\"text/plain\");\r\n shareit.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n shareit.putExtra(Intent.EXTRA_TEXT, \"Share application\"); //message that is shared.\r\n startActivity(Intent.createChooser(shareit,\"Share via.\"));\r\n break;\r\n case R.id.logout:\r\n Intent i = new Intent(this, LogIn.class);\r\n// set the new task and clear flags\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\r\n startActivity(i);\r\n Toast.makeText(this, \"Successfully Logged out\", Toast.LENGTH_LONG).show();\r\n }\r\n\r\n return false;\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n Class c = Methods.onOptionsItemSelected(id);\n if (c != null) {\n Intent intent = new Intent(getBaseContext(), c);\n startActivity(intent);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(ActivityIndex.this, ActivityTrialMessage.class);\n intent.putExtra(\"fromIndex\", true);\n startActivity(intent);\n }", "void mo21580A(Intent intent);", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n switch (item.getItemId()) \n { \n case android.R.id.home:\n Intent intenthome = new Intent(ctx, AdminClubActivity.class);\n startActivity(intenthome); \n return true;\n \n case R.id.action_home:\n Intent intent = new Intent(ctx, MainActivity.class);\n startActivity(intent); \n return true;\n \n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public void go_to_setting(){\n Intent i=new Intent(LoginSelection.this, Configuration.class);\n startActivity(i);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_who) {\n\n Uri uri = Uri.parse(\"http://instagram.com/_u/mohammadreza2012\");\n Intent likeIng = new Intent(Intent.ACTION_VIEW, uri);\n\n likeIng.setPackage(\"com.instagram.android\");\n\n try {\n startActivity(likeIng);\n } catch (ActivityNotFoundException e) {\n startActivity(new Intent(Intent.ACTION_VIEW,\n Uri.parse(\"http://instagram.com/mohammadreza2012\")));\n }\n return true;\n }\n if (id == R.id.action_about) {\n startActivity(new Intent(MainActivity.this, ActivityAbout.class));\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void navigateToHome() {\n Intent intent = new Intent(this, MainMenu.class);\n startActivity(intent);\n finish();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\t//intent.putExtra(\"path\",path);\n\t\t\t\tintent.setClass(MainInterfceActivity.this, PersonalInfoActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void startActivity(Intent intent) {\n\t\tsuper.startActivity(intent);\n\t\toverridePendingTransition(R.anim.in_from_right, R.anim.out_to_left);\n\t}", "@Override\r\npublic void onClick(View arg0) {\n\tswitch(arg0.getId())\r\n\t{\r\n\t\tcase R.id.bt_other:\r\n\t\t/*Intent i=new Intent();\r\n\t\t\tstartActivity(i);\r\n\t\t\tsetContentView(R.layout.other);*/\r\n\t\t\tIntent Intent=new Intent(MainPage.this,DataSend.class);\r\n\t\t\tIntent.putExtra(\"KEY_LIST\", device);\r\n\t\t\tIntent.putExtra(\"KEY_LISTNUMBER\", count);\r\n\t\t\tstartActivity(Intent);\r\n\t\t\t/*Intent Intent1=new Intent(MainPage.this,AdminPanel.class);\r\n\t\t\tIntent1.putExtra(\"KEY_LIST\", device);\r\n\t\t\tstartActivity(Intent1);*/\r\n \t//setContentView(R.layout.adminhome);\r\n\t\tbreak;\r\n\t}\r\n}", "@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,long id) {\n\t\tIntent intent = new Intent();\r\n\t\tAccountDetail accountDetail = accountDetails.get(position);\r\n\t\tintent.setAction(accountDetail.getAction());\r\n\t\tintent.putExtra(BrowserActivity.BROWSERACTIVITY_URI, accountDetail.getUri());\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "private void goToLogin()\n {\n Intent intent = new Intent(getActivity(), Login_Page.class);\n getActivity().startActivity(intent);\n }", "public static void navigateToActivityByClassName(Context context, String className, int flags) throws ClassNotFoundException {\n Class <?> c = null;\n if ( className != null ) {\n try {\n c = Class.forName(className);\n } catch (ClassNotFoundException e) {\n QUFactory.QLog.debug(\"ClassNotFound\", e);\n }\n }\n\n navigateToActivity(context, c, flags);\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle, int requestCode) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivityForResult(intent, requestCode);\n }", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n\n if(id == R.id.accountButton){\n //go to AccountActivity\n Intent intent = new Intent(this, AccountActivity.class);\n startActivity(intent);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irss = new Intent(man_lamar.this,ITCutiesReaderAppActivity.class);\n\t\t\t\tstartActivity(irss);\n\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tUri webpage = Uri.parse(currentItem.getStoryUrl());\n\n\t\t\t\t// Create web browser intent\n\t\t\t\tIntent storyOnWebIntent = new Intent(Intent.ACTION_VIEW, webpage);\n\n\t\t\t\t// Check web activity can be handled by the device and start activity\n\t\t\t\tif (storyOnWebIntent.resolveActivity(mContext.getPackageManager()) != null) {\n\t\t\t\t\tmContext.startActivity(storyOnWebIntent);\n\t\t\t\t}\n\n\t\t\t}" ]
[ "0.63294387", "0.6072197", "0.597208", "0.59360945", "0.58458316", "0.58258367", "0.5796168", "0.5761857", "0.5740074", "0.5710704", "0.5688775", "0.5661179", "0.56559956", "0.5647973", "0.56379443", "0.56039536", "0.55898654", "0.55212355", "0.5519664", "0.551839", "0.5507603", "0.54282284", "0.542209", "0.5416984", "0.5415364", "0.5412157", "0.53926903", "0.5386843", "0.5359445", "0.5351863", "0.5347555", "0.5338963", "0.5336516", "0.53332597", "0.53316164", "0.5329757", "0.532364", "0.53186584", "0.5306933", "0.530114", "0.528833", "0.5286102", "0.52834725", "0.5280371", "0.52609766", "0.5257038", "0.52433145", "0.5241576", "0.5216263", "0.51991034", "0.5198398", "0.51983434", "0.5189753", "0.51895994", "0.5189002", "0.5180672", "0.5179112", "0.5178382", "0.517328", "0.51674473", "0.51609427", "0.515759", "0.51545846", "0.5154324", "0.51490706", "0.514876", "0.5148107", "0.51444405", "0.5141623", "0.5140095", "0.5124253", "0.51230323", "0.5118485", "0.5118452", "0.5118016", "0.51178294", "0.511499", "0.51089936", "0.5107881", "0.51074314", "0.5107281", "0.5103998", "0.5103849", "0.51036346", "0.50999236", "0.5097394", "0.50967145", "0.5088604", "0.50779223", "0.5063368", "0.50622207", "0.5062054", "0.506082", "0.5057827", "0.50528735", "0.5050226", "0.5046798", "0.5043709", "0.5038271", "0.5035906" ]
0.74036163
0
We can allow state loss because the fragment will start for the first time
public void commitFragmentTransaction(FragmentTransaction transaction) { transaction.commitAllowingStateLoss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onFragmentPaused() {\n\t}", "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "@Override\r\n\tpublic void onFragmentStop() {\n\t}", "@Override\r\n\tpublic void onFragmentResume() {\n\t}", "@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}", "@Override\n public void refreshFragment() {\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "@Override\n public void onRestate() {\n }", "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "private final void m136464d() {\n BaseFragment baseFragment;\n if (this.f98816d && this.f98817e && getView() != null && (baseFragment = this.f98814b) != null) {\n if (baseFragment.isDetached() || baseFragment.getContext() == null) {\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79985\"), null, 2, null);\n return;\n }\n if (baseFragment.getActivity() != null) {\n FragmentActivity activity = baseFragment.getActivity();\n if ((activity != null ? activity.getApplication() : null) != null) {\n m136459a(baseFragment);\n return;\n }\n }\n VideoXOnlineLog.m139074c(VideoXOnlineLog.f101073b, C6969H.m41409d(\"G458AC31F8D3FA424C5019E5CF3ECCDD27BA5C71BB83DAE27F2549946FBF1E0D86797D413B135B973A60B825AFDF79986\"), null, 2, null);\n }\n }", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n FragmentManager fm = getSupportFragmentManager();\n Fragment fragment = fm.findFragmentById(R.id.fragmentContainer);\n if(fragment != null) {\n outState.putParcelable(\"state\", ((FeedFragment)fragment).getState());\n Log.d(TAG, \"restore\");\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // retain this fragment\n setRetainInstance(true);\n }", "private void resetFragment() {\n\t\tFragment fragment = hMapTabs.get(mSelectedTab).get(0);\n\t\thMapTabs.get(mSelectedTab).clear();\n\t\thMapTabs.get(mSelectedTab).add(fragment);\n\t\tFragmentManager manager = getSupportFragmentManager();\n\t\tFragmentTransaction ft = manager.beginTransaction();\n\t\tft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n\t\tft.replace(R.id.realtabcontent, fragment);\n\t\tft.commit();\n\n\t\tshouldDisplayHomeUp();\n\n\t}", "public void run() {\n assert getFragmentManager() != null;\n Fragment currentFragment = getActivity().getSupportFragmentManager().findFragmentById(R.id.content_main);\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n if (Build.VERSION.SDK_INT >= 26) {\n ft.setReorderingAllowed(false);\n }\n ft.detach(currentFragment).attach(currentFragment).commit();\n }", "@Override\n public void onResume() {\n\n super.onResume();\n orderDishFragment.refreshDish();//refresh soldout dish state when it is commit by myself\n }", "private void updateFragment() {\n Fragment fragment = getSupportFragmentManager().findFragmentByTag(CURRENT_FRAGMENT);\n if (fragment != null) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.detach(fragment).attach(fragment).commit();\n }\n }", "@Override\r\n protected void onSaveInstanceState(Bundle outState) {\n getSupportFragmentManager().putFragment(outState, \"myFragment\", stepVideoFragment);\r\n super.onSaveInstanceState(outState);\r\n }", "private void reDoFragments() {\n pageAdapter.notifyChangeInPosition(pageAdapter.getCount());\n\n fragments.clear();\n\n int i = 1;\n for (Article a : articles) {\n String count = String.format(\"%d of %d\", i++, articles.size());\n fragments.add(NewsFragment.newInstance(a.getTitle(), a.getAuthor(), a.getDescription(), a.getUrlToImage(), a.getTime(), count, a.getUrl()));\n }\n\n pageAdapter.notifyDataSetChanged();\n pager.setCurrentItem(0);\n }", "@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tMyUtilsContest.CUR_RFRAGTAG = MyUtilsContest.BottomTag.Tag_one;\n\t}", "@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}", "@Override\n public boolean onBackPreseed() {\n return false;\n }", "private void scanOnceMore() {\n\n barcodeReaderFragment = new BarcodeReaderFragment();\n barcodeReaderFragment.setListener(ScannerFragment.this);\n FragmentTransaction fragmentTransaction = getChildFragmentManager().beginTransaction();\n if (isScanning.get()) fragmentTransaction.remove(barcodeReaderFragment);\n else fragmentTransaction.replace(R.id.scannerFragment, barcodeReaderFragment);\n isScanning.set(!isScanning.get());\n fragmentTransaction.commit();\n }", "public void fragmentationOccured(ByteBufferWithInfo newFragment) {}", "private void setLastFragment() {\n Log.d(\"setLastFragments\", \"setLastFragments: start\");\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"setLastFragments\", \"setLastFragments: begin\");\n Fragment showFragment = getLast();\n fragmentTransaction.show(showFragment);\n Log.d(\"setLastFragments\", \"setLastFragments: show\");\n fragmentTransaction.commit();\n }", "private void reset() {\n if (this.dead) return;\n /*this.state = {\n activeFragmentedOperation: null,\n lastFragment: false,\n masked: false,\n opcode: 0,\n fragmentedOperation: false\n };*/\n this.state = new State(-1, false, false, 0, false);\n this.fragmentedBufferPool.reset(true);\n this.unfragmentedBufferPool.reset(true);\n this.expectOffset = 0;\n this.expectBuffer = null;\n this.expectHandler = null;\n this.overflow = new LinkedList<ByteBuffer>();///[];\n this.currentMessage = new LinkedList<Object>();///[];\n}", "@Override\n protected void onSaveInstanceState(Bundle savedInstanceState) {\n //Save the state of the Fragment (true = open , false = closed)\n savedInstanceState.putBoolean(STATE_FRAGMENT ,isFragmentDisplayed);\n super.onSaveInstanceState(savedInstanceState);\n }", "@Override\n protected void onViewCreatedFinish(Bundle saveInstanceState) {\n\n addFragments();\n addListener();\n mVpContent.setAdapter(new FragmentPagerAdapter(getSupportFragmentManager()) {\n @Override\n public Fragment getItem(int position) {\n return mFragments.get(position);\n }\n\n @Override\n public int getCount() {\n return mFragments.size();\n }\n });\n mVpContent.setOffscreenPageLimit(4);\n mTbIndexTab.setTabItemSelected(R.id.ti_index_store);\n mVpContent.setCurrentItem(0);\n refreshMeDot(0);\n\n ActivityManager.getInstance().popOtherActivity(MainActivity.class);\n\n createFile();\n }", "@Override\n public void onResult(AsyncTaskResult<Result> result)\n {\n mFragmentTransition = new Timestamped(mTimestamp, mResultFunction.value(result));\n if (isResumed())\n {\n new FragmentEnvironment<>(this).host().execute(getContext(), mFragmentTransition);\n mFragmentTransition = null;\n }\n }", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\tfragment.refreshComplete();\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\tfragment.refreshComplete();\n\t\t\t}", "public abstract boolean fragmentStackUnderFlow();", "public BookDetailFragment() {\n setRetainInstance(true);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(CURRENT_FRAGMENT, navigation.getSelectedItemId());\n }", "protected boolean saveAsLastFragment() {\n return true;\n }", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "private void recreate_fragments(){\n GoogleMapsUtils google_maps_utils = new GoogleMapsUtils(getApplicationContext(), this, mToolbar_navig_utils);\n google_maps_utils.getLocationPermission();\n\n if(getPageAdapter()!=null)\n getPageAdapter().getMapsFragment().getMapView().removeAllViews();\n\n // Launch progressBar\n if(mProgressBar!=null) {\n runOnUiThread(() -> mProgressBar.setVisibility(View.VISIBLE));\n }\n }", "public void onfff() {\r\n\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n if(!(frag.isHidden()))\r\n {\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .hide(frag)\r\n .commit();\r\n }\r\n }", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onPause() {\n super.onPause();\n Log.i(sFragmentName, \"onPause()\");\n }", "public StintFragment() {\n }", "@Override\n protected void onResumeFragments() {\n\n Logger.INSTANCE.LogV(\"LifeCycle\", \"Main.onResumeFragments\");\n\n super.onResumeFragments();\n mOnResumeFragmentsCalled = true;\n\n if (mHandleOpenDocError) {\n handleOpenDocError();\n mHandleOpenDocError = false;\n } else if (mHandleLastTabClosed) {\n handleLastTabClosed();\n mHandleLastTabClosed = false;\n } else if (mTabbedHostBundle != null) {\n startTabHostFragment(mTabbedHostBundle);\n mTabbedHostBundle = null;\n } else if (mNavigationDrawerView != null && mNavigationDrawerView.getMenu() != null) {\n MenuItem menuItem = null;\n if (isFirstTimeRun()) {\n mIsFirstTimeRunConsumed = false; // consumed\n menuItem = mNavigationDrawerView.getMenu().findItem(R.id.item_file_list);\n } else if (mProcessedFragmentViewId != MENU_ITEM_NONE) {\n menuItem = mNavigationDrawerView.getMenu().findItem(mProcessedFragmentViewId);\n }\n if (menuItem != null) {\n selectNavigationItem(menuItem);\n }\n }\n\n if (mReturnFromSettings) {\n mReturnFromSettings = false;\n if (mProcessedFragmentViewId == R.id.item_viewer) {\n if (PdfViewCtrlTabsManager.getInstance().getLatestViewedTabTag(this) != null) {\n startTabHostFragment(null);\n }\n }\n }\n }", "@Override\n public void onResultViewFinished() {\n MainFragment mainFragment = new MainFragment();\n\n createTransactionAndReplaceFragment(mainFragment, getString(R.string.frg_tag_main));\n }", "private void refreshFragmentAfterdownloadedData() {\n Fragment fragmentToday = new FragmentToday();\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft.replace(R.id.fragmentToday, fragmentToday, \"FragmentToday\");\n ft.commit();\n\n Fragment fragment5days = new Fragment5days();\n FragmentTransaction ft5days = getSupportFragmentManager().beginTransaction();\n ft5days.replace(R.id.fragment5days, fragment5days, \"Fragment5days\");\n ft5days.commit();\n }", "@Override\n public void onFragmentAttached() {\n }", "private boolean loadFragment(Fragment fragment) {\n //switching fragment\n if (fragment != null) {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.fragment_container, fragment)\n .commit();\n return true;\n }\n return false;\n }", "public void refresh(){\n // close loading dialogs if they are open\n Fragment dialog = getSupportFragmentManager().findFragmentByTag(\"loading\");\n if (dialog != null) {\n loadingDialog.dismiss();\n }\n\n // update timestamp\n if (timestamp != null) {\n TextView time = findViewById(R.id.result_time_text);\n time.setText(getString(R.string.last_result, timestamp));\n }\n\n // destroy and recreate fragments with latest data\n Fragment loadedFragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container);\n Fragment newFragment;\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n if (loadedFragment instanceof PsiFragment) {\n newFragment = PsiFragment.newInstance(psiValues);\n }\n else if (loadedFragment instanceof Pm25Fragment) {\n newFragment = Pm25Fragment.newInstance(pm25Values);\n }\n else{\n newFragment = HomeFragment.newInstance(psiValues,pm25Values);\n }\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.commit();\n }", "public void onRestorePendingState() {\n }", "public void initFragments() {\n Log.d(\"initFragments\", \"initFragments: start\");\n if (!focus) {\n Log.d(\"initFragments\", \"initFragments: not focused\");\n return;\n }\n\n if (calendarFragment != null)\n getSupportFragmentManager().beginTransaction().remove(calendarFragment).commit();\n if (scheduleFragment != null)\n getSupportFragmentManager().beginTransaction().remove(scheduleFragment).commit();\n if (userHomeFragment != null)\n getSupportFragmentManager().beginTransaction().remove(userHomeFragment).commit();\n if (medicineFragment != null)\n getSupportFragmentManager().beginTransaction().remove(medicineFragment).commit();\n\n Log.d(\"initFragments\", \"initFragments: new\");\n calendarFragment = new CalendarFragment();\n scheduleFragment = new CheckupFragment();\n userHomeFragment = new UserHomeFragment();\n medicineFragment = new MedicationFragment();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Log.d(\"initFragments\", \"initFragments: begin transaction\");\n fragmentTransaction.add(R.id.navigationFrame, calendarFragment);\n fragmentTransaction.hide(calendarFragment);\n fragmentTransaction.add(R.id.navigationFrame, scheduleFragment);\n fragmentTransaction.hide(scheduleFragment);\n fragmentTransaction.add(R.id.navigationFrame, userHomeFragment);\n fragmentTransaction.hide(userHomeFragment);\n fragmentTransaction.add(R.id.navigationFrame, medicineFragment);\n fragmentTransaction.hide(medicineFragment);\n fragmentTransaction.commit();\n\n if (lastFragment == null) {\n Log.d(\"initFragments\", \"initFragments: null last fragment\");\n lastFragment = \"calendarFragment\";\n setFragment(calendarFragment);\n }\n else {\n Log.d(\"initFragments\", \"initFragments: set last fragment\");\n setLastFragment();\n }\n }", "private void onClick_recargar(){\n this.onDestroy();\n ((principal)getActivity()).loadLastFragment();\n }", "public void goMainStampCard() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager\n .beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.abc_fade_in,\n R.anim.abc_fade_out);\n fragmentTransaction.addToBackStack(null);\n FragmentMainStampCard fragmentMain = FragmentMainStampCard\n .newInstances();\n fragmentTransaction.replace(R.id.container, fragmentMain);\n fragmentTransaction.commit();\n }", "@Override\n public void run() {\n mProxyPrefs = new Preferences.ProxyPrefs(false, false, null, -1, null);\n mListFragment.loadNew(loaderState, mProxyPrefs.parcelableProxy);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n //Save the fragment's instance\n// savedInstanceState.putString(\"fragClassName\", fragmentClass.toString());\n// final Fragment fragmentInFrame = getSupportFragmentManager().findFragmentById(R.id.flcontent);\n// getSupportFragmentManager().putFragment(outState, fragmentInFrame.getTag(), myFragment);\n//// getSupportFragmentManager().putFragment(outState, \"myFragmentName\", myFragment);\n }", "protected void onBegin() {}", "private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }", "@Override\n public void onViewStateInstanceRestored(boolean instanceStateRetained) {\n }", "@Override\n public void onResume(){\n fm = getFragmentManager();\n super.onResume();\n }", "@Override\n public void run() {\n try {\n prepareRideMatchingFragments();\n if(fromRegularRideActivity)\n {\n fromRegularRideActivity = false;\n return;\n }\n handlePageChange(currentPosition);\n }catch (Throwable th)\n {\n Log.e(LOG_TAG,\"prepareRideMatchingFragments failed in onresume \",th);\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Log.d(\"Main Activity\",\"inside oncreate\" );\n\n // Check whether the activity is using the layout version with\n // the fragment_container FrameLayout. If so, we must add the first fragment\n if (findViewById(R.id.fragment_container) != null) {\n\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n \tMyListFragment test = new MyListFragment();\n \t test.setArguments(getIntent().getExtras());\n \t Log.d(\"Main Activity\",\"inside oncreate, inside savedinstance! null\" );\n getSupportFragmentManager().beginTransaction().replace(android.R.id.content, test, \"your_fragment_tag\").commit();\n \treturn;\n }\n else{\n MyListFragment firstFragment = new MyListFragment();\n Log.d(\"Main Activity\",\"inside oncreate else part\" );\n firstFragment.setArguments(getIntent().getExtras());\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fragment_container, firstFragment).commit();\n }\n }}", "public void restartFragment(String fragmentTag) {\r\n\r\n fragmentManager = getSupportFragmentManager();\r\n\r\n Fragment fragment = fragmentManager\r\n .findFragmentByTag(fragmentTag);\r\n\r\n FragmentTransaction fragmentTransaction = fragmentManager\r\n .beginTransaction();\r\n fragmentTransaction.detach(fragment);\r\n fragmentTransaction.attach(fragment);\r\n\r\n try {\r\n\r\n fragmentTransaction.commit();\r\n\r\n } catch (IllegalStateException e) {\r\n\r\n try {\r\n fragmentTransaction.commitAllowingStateLoss();\r\n } catch (IllegalStateException ex) {\r\n Log.d(TAG,\r\n \"Fatal Exception: java.lang.IllegalStateException commit already called\"\r\n + ex.getMessage()\r\n );\r\n }\r\n Log.d(TAG, \"Failed to commit fragment.\");\r\n }\r\n }", "public void startDreamScreenFragment() {\n if (this.currentLight != null) {\n try {\n Log.i(tag, \"startDreamScreenFragment\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n for (int i = 0; i < fragmentManager.getBackStackEntryCount(); i++) {\n fragmentManager.popBackStack();\n }\n fragmentManager.beginTransaction().replace(R.id.frameLayout, DreamScreenFragment.newInstance()).commitAllowingStateLoss();\n setToolbarTitle();\n } catch (IllegalStateException e) {\n Log.i(tag, \"startSplashActivity, IllegalStateException \" + e.toString());\n restartApp();\n }\n } else {\n Log.e(tag, \"startDreamScreenFragment currentLight is null\");\n }\n }", "@Override\n\tpublic void stateChanged() {\n\t\t\n\t}", "protected void onBSResume() {\n checkBSActivityRunning();\n mDrawer.addBSParentView(mInitialWaveform, mInitialDithering);// show\n // user UI\n // on back\n // screen\n isResumed = true;\n mCalled = true;\n }", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "private void loadHomeFragment() {\n // selecting appropriate nav menu item\n selectNavMenu();\n\n // if user select the current navigation menu again, don't do anything\n // just close the navigation drawer\n if (getSupportFragmentManager().findFragmentByTag(CURRENT_TAG) != null) {\n drawer.closeDrawers();\n\n return;\n }\n // Sometimes, when fragment has huge data, screen seems hanging\n // when switching between navigation menus\n // So using runnable, the fragment is loaded with cross fade effect\n Runnable mPendingRunnable = new Runnable() {\n @Override\n public void run() {\n // update the main content by replacing fragments\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }\n };\n\n // If mPendingRunnable is not null, then add to the message queue\n if (mPendingRunnable != null) {\n mHandler.post(mPendingRunnable);\n }\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tinsertView();\n\t}", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void resume() {\n\t\t\r\n\t}", "public void restartInstantMessageFragment() {\r\n\r\n restartFragment(INSTANT_MESSAGE_FRAGMENT_TAG);\r\n }", "@Override\n public void resume() {\n // Not used\n }", "public void loadFragment(Fragment fragment) { Animation connectingAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_up);\n//\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.nowShowingFrame, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override protected void onPause() {\n overridePendingTransition(0, 0);\n super.onPause();\n }", "@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "@Override\n public void resume() {\n \n }", "@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tendloading();\r\n\t\t// getnewtime();\r\n\t\tLog.e(TAG, \"onresume---->\");\r\n\t\tBaseActivityticket.curFragmentTag = getString(R.string.five_star);\r\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (mHasLoad) {\n return;\n }\n initFragment();\n }", "public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }", "private void screenStartUpState() {\n isMainShown = true;\n setTitle(\"\");\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.rLayoutMain, fragmentList.get(0)).addToBackStack(null).commit();\n listView.setItemChecked(0, true);\n drawerLayout.closeDrawer(listView);\n }", "public boolean is_fragment() {\r\n\t\treturn is_fragment_;\r\n\t}", "@Override\r\n public void resume() {\r\n\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (Pending_Refresh) {\n\n\t\t\tFrag_Paused = false;\n\t\t\tOnHomeUpdateFinished();\n\n\t\t}\n\t\tLog.e(\"mainactivity\", \"resumed\");\n\t}", "@Override\n public void run() {\n confirmImage.setVisibility(View.GONE);\n activity.replaceFragment(new Fragment_Buyer_Orders());\n\n }", "@Override\n public void resume() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\tpreserved(bitmap);\n\t\t}", "@Override\n public void resume() {\n \n }", "private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }", "@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n int i = 1;\n }" ]
[ "0.6654249", "0.63548285", "0.6283217", "0.62251914", "0.62056535", "0.61326134", "0.6048941", "0.6048941", "0.6048941", "0.6048941", "0.6048941", "0.6048941", "0.6035814", "0.6030018", "0.602129", "0.6016329", "0.5939947", "0.59234494", "0.59218085", "0.59140575", "0.5870468", "0.5828598", "0.57933396", "0.57667273", "0.5746799", "0.5744692", "0.5736594", "0.56951755", "0.569266", "0.569074", "0.56833833", "0.56824195", "0.5675405", "0.56635815", "0.56557816", "0.56557816", "0.56353843", "0.56294316", "0.5626051", "0.56242424", "0.561711", "0.5608078", "0.5607928", "0.5605082", "0.55977863", "0.55909985", "0.5572844", "0.5572181", "0.55682117", "0.55645007", "0.55602", "0.55554765", "0.55545235", "0.55378264", "0.5509217", "0.5508965", "0.55039054", "0.55015177", "0.54990005", "0.5497605", "0.54946244", "0.5480824", "0.5480432", "0.5479993", "0.547711", "0.5474671", "0.5472588", "0.5472578", "0.54706734", "0.54701024", "0.5463008", "0.5462104", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54599285", "0.54579407", "0.5457763", "0.5454134", "0.54533625", "0.5452198", "0.5451791", "0.5450143", "0.54434997", "0.5438758", "0.5436711", "0.54304093", "0.54294354", "0.54252994", "0.5423751", "0.54204774", "0.5407485", "0.5405276", "0.5405267", "0.5401465" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc=new Scanner(System.in); String st=sc.nextLine(); int maxcount=0; int count=0; char ch='a'; for(int i=0;i<st.length();i++) { count=0; for(int j=i+1;j<st.length();j++) { if(st.charAt(i)==st.charAt(j)) { count++; } } if(count>maxcount) { maxcount=count; ch=st.charAt(i); } } System.out.println(ch); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Information about a depot. You can have multiple Depots in your login view, thus this class should be comparable/sortable.
@Value.Immutable @JsonDeserialize(as = ImmutableFfbDepotInfo.class) public interface FfbDepotInfo extends Comparable<FfbDepotInfo> { static ImmutableFfbDepotInfo.Builder builder() { return ImmutableFfbDepotInfo.builder(); } /** * A name of th depot. Actually, it is much more like a category ("Standarddepot", "VL-Depot", etc.). * * @return the Depotname as String. */ String getDepotname(); @JsonProperty("depotnummer") FfbDepotNummer getDepotNummer(); @JsonProperty("bestand") @JsonDeserialize(using = GermanNumberToBigDecimalDeserializer.class) BigDecimal getGesamtDepotBestand(); /** * Each fund is represendet by {@link FfbFondsbestand}. * * @return a list of funds. */ List<FfbFondsbestand> getFondsbestaende(); /** * Compare to other by {@link #getDepotNummer()}, {@link #getDepotname()} and {@link #getGesamtDepotBestand()}. */ @Override default int compareTo(final FfbDepotInfo other) { final Comparator<FfbDepotInfo> comparator = Comparator .comparing(FfbDepotInfo::getDepotNummer) .thenComparing(FfbDepotInfo::getDepotname) .thenComparing(FfbDepotInfo::getGesamtDepotBestand); return comparator.compare(this,other); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDepotname();", "@GetMapping(\"/getDepotList\")\n\tpublic List<Depot> getDepotList() {\n\t\treturn busService.getDepotList();\n\t}", "public String getDepName() {\n return DepName;\n }", "@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof Depot))\n {\n return false;\n }\n Depot other = (Depot) object;\n if ((this.depotId == null && other.depotId != null) || (this.depotId != null && !this.depotId.equals(other.depotId)))\n {\n return false;\n }\n return true;\n }", "public boolean isInDepot() {\n\t\treturn isInDepot;\n\t}", "public void PrintDepartmentInfo(String depName) {\n\t\tdNode search = FindByName(depName);\n\t\tif (search != null)\n\t\t\tsearch.data.PrintDepartment();\n\t\telse\n\t\t\tSystem.out.println(\"Could not Find Department \" + depName + \" to Print Info About\");\n\t}", "public Depot getDepotOnThisLine() {\n return depotOnThisLine;\n }", "public String getDepLoc() {\n\t\treturn depLoc;\n\t}", "public static void listarDepartamentos() {\n\t\tList<Dept> departamento;\n\t\tSystem.out.println(\"\\nListamis todos los Departamentos\");\n\t\tdepartamento= de.obtenListaDept();\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"Deptno\", \"Dname\", \"Loc\");\n\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\",\"__________\", \"__________\", \"__________\");\n\t\tfor(Dept e : departamento) {\n\t\t\tSystem.out.printf(\"%-20s%-20s%-20s\\n\", e.getDeptno(), e.getDname(), e.getLoc());\n\t\t}\n\t\t\n\t}", "@Override\n public List<Dependente> todosOsDepentendes() {\n return dBC.todosOsDepentendes();\n\n }", "public int getDepID() {\n\t\treturn depID;\n\t}", "public int getDepNo() {\n\n return depNo;\n }", "public void torpedoInfo() {\r\n System.out.println(\"[\" + TiePilot.sep + \"]\");\r\n System.out.println(\"Cannon Model: \" + ModelNumber);\r\n System.out.println(\"Max Fire Range: \" + MaxFiringRange);\r\n System.out.println(\"Torpedo Cap: \" + TorpedoCapacity);\r\n System.out.println(\"Current Torpedo Count: \" + this.getCurrentTorpedoCount());\r\n System.out.println(\"[\" + TiePilot.sep + \"]\");\r\n }", "@RequiresLock(\"SeaLock\")\r\n @Vouch(\"controlled alias of f_dependents for performance\")\r\n protected final Set<Drop> getDeponentsReference() {\r\n return f_deponents;\r\n }", "public void zugInsDepot() {\n depot++;\n }", "public java.lang.String getDepName() {\r\n return localDepName;\r\n }", "public static void cylinderorderlist(){\n\t\tAccount a = (Account) Cache.get(\"authUser\");\r\n\t\t\r\n\t\t\r\n\t\tList<OrderCylinder> o = OrderCylinder.findAll();\r\n\t\t\r\n\t\tSystem.out.println(\"The Dealers for Whom Order has beed placed \"+ o);\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Current Dealer Logged in\"+a);\r\n\t\t\r\n\t\t// Get the Dealer Details of him\r\n\t\tDealer d = Dealer.find(\"byDealershipId\",a.uniquenumber).first();\r\n\t\t\r\n\t\tSystem.out.println(\"Dealer for the Account\"+d);\r\n\t\t// Now, get the Ordered Cylinders\r\n\t\tList<OrderCylinder> l = OrderCylinder.find(\"byDealerId\", d).fetch();\r\n\t\t\r\n\t\t//Orders placed for the Dealer are as follows\r\n\t\t\r\n\t\tSystem.out.println(\"Orders Placed for Dealer are as follows\"+l);\r\n\t\t\r\n\t\trender(a,l);\r\n\t\t\r\n\t}", "public void setDepotPath (String depotPath) {\r\n this.depotPath = depotPath;\r\n }", "public Tree getDepTree() {\r\n return depTree;\r\n }", "public Depot (String id, int node){\r\n this.id=id;\r\n this.node=node;\r\n }", "public static void listDept() {\n\t\t// loop thru all department obj of the deptInfo list\n\t\tfor (Department dept : deptInfo) {\n\t\t\tSystem.out.println(dept.getDeptId() + dept.getDeptName() + dept.getDeptPhoneNum());\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Department [adress=\" + adress + \", postCode=\" + postCode + \", city=\" + city + \", phone=\" + phone + \"]\";\n\t}", "@Override\n public String getInfo() {\n return \"Car:\\n\" + \"\\tBrand: \" + getBrand() + \"\\n\" + \"\\tModel: \" + getModel() + \"\\n\"\n + \"\\tRegistration Number: \" + getRegistrationNumber() + \"\\n\"\n + \"\\tNumber of Doors: \" + getNumberOfDoors() + \"\\n\"\n + \"\\tBelongs to \" + owner.getName() + \" - \" + owner.getAddress();\n }", "public String getDepartment(){\n\t\treturn departName;\n\t}", "public Departement() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public List<Departmentdetails> getDepartmentDetails();", "public void AddDep(Department dep) {\n\t\tddi.Add(dep);\n\t\t\n\t}", "public static String parseResourceDepot(IResourceDepot depot) {\n\n StringBuilder routeSB = new StringBuilder();\n\n routeSB.append(\"Id: \" + depot.getDepotId());\n routeSB.append(\" / Type: \" + depot.getTypeName() + \" \");\n routeSB.append(\" / MaxTotalCapacity: \" + depot.getMaximalTotalCapacity());\n routeSB.append(\" / UsedCapacity: \" + depot.getCurrentTotalMatchedLoad());\n\n List<ILoadCapacity> loads = depot.getItems();\n\n if (!loads.isEmpty()) {\n for (int ii = 0; ii < loads.size(); ii++) {\n routeSB.append(\n \"\\n(\"\n + ii\n + \") LoadCapacity: \\n\"\n + PNDReportExtractionExample.parseLoadCapacity(loads.get(ii)));\n if (ii < loads.size() - 1) {\n routeSB.append(\"\\n\");\n }\n }\n }\n\n return routeSB.toString();\n }", "public String getAssignedDepotForVehicleId(AgencyAndId vehicle);", "public ViewObjectImpl getDepartments() {\n return (ViewObjectImpl)findViewObject(\"Departments\");\n }", "public String getProductOwner();", "public String getDepartment() {\r\n return department;\r\n }", "public Department getDepartment() {\n return department;\n }", "@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }", "public static void accessoriesorderlist(){\r\n\t\t\r\n\t\tAccount a = (Account) Cache.get(\"authUser\");\r\n\t\tDealer d = Dealer.find(\"byDealershipId\", a.uniquenumber).first();\r\n\t\tif(a != null){\r\n\t\t\tList<OrderAccessories> l = OrderAccessories.find(\"byDealerId\",d ).fetch();\r\n\t\t\trender(l);\r\n\t\t}\r\n\t\telse \r\n\t\t\tDealerControllerMap.pleaselogin();\r\n\r\n\t}", "public java.lang.String getDepID() {\r\n return localDepID;\r\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "public String getDepartment() {\n return department;\n }", "@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(Decouverte_.id.getName(), getId()) //\n .add(Decouverte_.dateDecouverte.getName(), getDateDecouverte()) //\n .add(Decouverte_.observations.getName(), getObservations()) //\n .toString();\n }", "public void setDepLoc(String depLoc) {\n\t\tthis.depLoc = depLoc;\n\t}", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "@Override\n\tpublic List<?> infoObraRecursoEquipo(ObraRecursoEquipoDTO dto) {\n\t\treturn null;\n\t}", "public SpecialDepot() {\n specialContainers = new ArrayList<>();\n }", "public List<Department> FindAllDep() {\n\t\treturn ddi.findAllDeps();\n\t}", "public List<Magasin> findMagasinByDepot(int depot) {\n\t\tQuery query= session.createQuery(\"select c from Magasin c where c.depot.id =:depot\");\n\t\n\t\tquery.setParameter(\"depot\", depot);\n\t\t\n\t\t return query.list(); \n\t\t\n\t}", "private ApiInfo apiInfo() {\n return new ApiInfo(\n \"ORDER REST API\",\n \"Springboot + Mysql + REST API aplicación basada en Ordenes, productos y Monedas.\",\n \"0.1\",\n \"All rights otorged\",\n new Contact(\"Ing. Andrés Pesántez\", \"www.javadesarrrollo.com\", \"[email protected]\"),\n \"API license\",\n \"http://www.google.es\",\n Collections.emptyList());\n }", "@Override\n\tpublic String getListTitle() {\n\t\treturn \"Service/Département\";\n\t}", "public String getDepartmentName() {\n return departmentName;\n }", "public Departement getDepartement() {\n\t\treturn departement;\n\t}", "public String getDebtor() {\n return debtor;\n }", "@Override\n public String getDescription() {\n return \"Digital goods delisting\";\n }", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "public String getDepartment() {\r\n\t\treturn department;\r\n\t}", "@GetMapping(\"/retrieveinfos\")\n\tpublic ResponseEntity<List<Departement>> getAllDepartement(@RequestParam(required=false) String nomDep){\n\t\ttry {\n\t\t\tList<Departement> departement = new ArrayList<Departement>();\n\t\t\tif (nomDep == null)\n\t\t\t\tdepartementServices.getDepartementInfo().forEach(departement::add);\n\t\t\telse \n\t\t\t\tdepartementServices.getDepartement(nomDep).forEach(departement::add);\n\t\t\tif (departement.isEmpty()) {\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t\t\t}\n\t\t\treturn new ResponseEntity<>(departement, HttpStatus.OK);\n\t\t}catch(Exception e) {\n\t\t\treturn new ResponseEntity<>(null, HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}", "public ProveedorInfo() {\n\t\tnombre = EMPTY_STRING;\n\t\tdescripcion = EMPTY_STRING;\n\t\tcaHash = new Hashtable<String, String>();\n\t\tservidores = new Vector<ServidorOcsp>();\n\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Refueling [OrderID=\" + OrderID + \", ownerID=\" + ownerID + \", CarNumber=\" + CarNumber + \", GasStation=\"\r\n\t\t\t\t+ GasStation + \", address=\" + address + \", GasType=\" + GasType + \", RateForLiter=\" + RateForLiter\r\n\t\t\t\t+ \", Qunatity=\" + Qunatity + \", Price=\" + Price + \", Date=\" + Date + \", pumpNumber=\" + pumpNumber\r\n\t\t\t\t+ \", service=\" + service + \", time=\" + time + \", saleID=\" + saleID + \"]\";\r\n\t}", "public synchronized String getDepartment()\r\n {\r\n return department;\r\n }", "public Department(int depID, String name, String adress, int dNo, String postCode, String city, String phone) {\n\t\tsuper(name);\n\t\tthis.depID = depID;\n\t\tthis.adress = adress;\n\t\tthis.dNo = dNo;\n\t\tthis.postCode = postCode;\n\t\tthis.city = city;\n\t\tthis.phone = phone;\n\t\tcl = new ArrayList<CompositeLine>();\n\t}", "public String getDepartment() {\n return departmentField.getText();\n }", "public String getTotalDeposits(){\n double sum = 0;\n for(Customer record : bank.getName2CustomersMapping().values()){\n for(Account acc: record.getAccounts()){\n sum += acc.getOpeningBalance();\n }\n }\n return \"Total deposits: \"+sum;\n }", "public String toString() {\r\n StringBuffer out = new StringBuffer(this.getDaogenVersion());\r\n out.append(\"\\nclass ViewDetallesPagos, mapping to table ViewDetallesPagos\\n\");\r\n out.append(\"Persistent attributes: \\n\"); \r\n out.append(\"IDCUENTACONTABLE = \" + this.IDCUENTACONTABLE + \"\\n\"); \r\n out.append(\"DECOMPARENDO = \" + this.DECOMPARENDO + \"\\n\"); \r\n out.append(\"CODIGOCUENTA = \" + this.CODIGOCUENTA + \"\\n\"); \r\n out.append(\"NOMBRECUENTA = \" + this.NOMBRECUENTA + \"\\n\"); \r\n out.append(\"VIGENCIAINICIAL = \" + this.VIGENCIAINICIAL + \"\\n\"); \r\n out.append(\"VIGENCIAFINAL = \" + this.VIGENCIAFINAL + \"\\n\"); \r\n out.append(\"FILTROPORFECHAS = \" + this.FILTROPORFECHAS + \"\\n\"); \r\n out.append(\"IDTARIFA = \" + this.IDTARIFA + \"\\n\"); \r\n out.append(\"IDCONCEPTO = \" + this.IDCONCEPTO + \"\\n\"); \r\n out.append(\"NOMBRECONCEPTO = \" + this.NOMBRECONCEPTO + \"\\n\"); \r\n out.append(\"IDITEM = \" + this.IDITEM + \"\\n\"); \r\n out.append(\"VALORPAGO = \" + this.VALORPAGO + \"\\n\"); \r\n out.append(\"FECHAPAGO = \" + this.FECHAPAGO + \"\\n\"); \r\n out.append(\"VIGENCIA = \" + this.VIGENCIA + \"\\n\"); \r\n return out.toString();\r\n }", "public String GetDept()\r\n {\r\n return Department;\r\n }", "@Override\n public final String toString() {\n return \"DepartmentDto{\"\n + \"departmentId=\"\n + departmentId\n + \", departmentName='\"\n + departmentName + '\\''\n + \", avgSalary=\" + avgSalary + '}';\n }", "public String toString() {\n return \"Module Dependency : \" + getName() + \":\" + getVersion();\n }", "@objid (\"8e2d55b0-6072-4148-b226-a652c8d5c95d\")\n public static SmDependency getOwnerDep() {\n return OwnerDep;\n }", "public String[] departmentNames(){\r\n int size = this.listOfDepartments.size();\r\n String[] deps = new String[size];\r\n for(int i = 0; i < size; i++){\r\n deps[i] = this.listOfDepartments.get(i);\r\n }\r\n return deps;\r\n }", "public Depart getModel() {\n\t\treturn dep;\n\t}", "@Override\n\tpublic DevolucionPedido getDevolucionPedidoByName(String nameDevolucionPedido) {\n\t\treturn _devolucionPedidoDao.getDevolucionPedidoByName(nameDevolucionPedido);\n\t}", "@Override\n\tpublic void mostrarDeposito() {\n\t\tSystem.out.println(\"Depósito: \"+depositoActual+\"litros\");\n\t}", "@Override\r\n public String toString() {\r\n return \"Datos de Jugador: \"\r\n + \"\\n\" + \"Alias : \" + this.getAlias()\r\n + \"\\n\" + \"Nombre: \" + this.getNombre()\r\n + \"\\n\" + \"Edad : \" + this.getEdad()\r\n + \"\\n\" + \"Partidas Ganadas: \" + this.getPartidasGanadasToString()\r\n + \"\\n\" + \"Partidas Perdidas: \" + this.getPartidasPerdidasToString()\r\n + \"\\n\" + \"Partidas Empatadas: \" + this.getPartidasEmpatadasToString();\r\n }", "private String getOrderSummary() {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == 0) {\n return Constants.FREE_MESSAGE;\n }\n\n final String name = ((EditText) findViewById(R.id.name_edit_text))\n .getText().toString();\n\n return Constants.NAME + \": \" +\n (name.isEmpty() ? Constants.DEFAULT_NAME : name) + \"\\n\" +\n getToppingsSummary() + \"\\n\" +\n Constants.QUANTITY + \": \" + numberOfCoffees + \"\\n\" +\n Constants.TOTAL + \": \" +\n NumberFormat.getCurrencyInstance().format(getTotalPrice()) + \"\\n\" +\n Constants.BYE_GREETING;\n }", "@Override\n public String toString() {\n return\n ownerId + \"|\" + petId + \"|\" + name + \"|\" + species + \"|\" + gender + \"|\" + active + \"|\" + breed + \"|\" +\n color + \"|\" + birthdayOffset + \"|\" + comment + \"|\" + refVet1 + \"|\" + refVet2 + \"|\" +\n primaryDoctorId + \"|\" + firstVisitOffset + \"|\" + lastVisitOffset + \"|\" + weight;\n }", "public String getLot()\n {\n return lot;\n }", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tswitch(this) {\r\n\t\t\tcase SALES: return \"Sales\";\r\n\t\t\tcase MKTG: return \"Marketing\";\r\n\t\t\tcase HMRS: return \"Human Resources\";\r\n\t\t\tcase FINA: return \"Finance\";\r\n\t\t\tcase INTE: return \"Information Tecnology\";\r\n\t\t\t\tdefault: return \"Unknown Department\"; \r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}", "public void visitRemoteOrderDisplay( DevCat devCat ) {}", "public Departmentdetails getDepartmentByName(String departmentName);", "public interface IOrderDetails {\n String getOrderNumber();\n String getOrderDate();\n String getTrainNumber();\n String getDispatchStation();\n String getDestinationStation();\n String getDepartureDate();\n String getArrivalDate();\n String getWagonRoad();\n String getWagonOwner();\n String getWagonNumber();\n String getWagonType();\n String getNumberOfSeats();\n String getSeats();\n String getAdditionalInformation();\n String getPrice();\n String getOrderState();\n String getEcState();\n String getEcDate();\n}", "public List<Gadget> getGadgetList() {\n List<Gadget> gadgets = new ArrayList<>();\n orders.entrySet().stream().forEach((s) -> s.getValue().forEach((s1) -> gadgets.add(s1)));\n return gadgets;\n }", "public interface ItemInfo extends Info, Comparable<ItemInfo> {\n RepoPath getRepoPath();\n\n boolean isFolder();\n\n /**\n * @return The file/folder name of this item\n * @see org.artifactory.repo.RepoPath#getName()\n */\n String getName();\n\n String getRepoKey();\n\n String getRelPath();\n\n long getCreated();\n\n long getLastModified();\n\n String getModifiedBy();\n\n String getCreatedBy();\n\n long getLastUpdated();\n\n boolean isIdentical(ItemInfo info);\n}", "public String getDepartmentid() {\n return departmentid;\n }", "public List<String> dumpOrders(Galaxy g, Player player){\r\n\t\tList<String> ordersTextList = new ArrayList<String>();\r\n\t\t// add expenses\r\n\t\tfor (Expense anExpence : expenses){\r\n\t\t\tordersTextList.add(\"Expense: \" + anExpence.getText(g,this));\r\n\t\t}\r\n\r\n\t\t// add ship movements\r\n\t\tfor (ShipMovement aShipMovement : shipMoves){\r\n\t\t\tordersTextList.add(aShipMovement.getText(g));\r\n\t\t}\r\n\t\t\r\n\t\t// add squadron moves to carriers\r\n\t\tfor (ShipToCarrierMovement aShipToCarrierMovement : shipToCarrierMoves) {\r\n\t\t\tordersTextList.add(aShipToCarrierMovement.getText(g));\r\n\t\t}\r\n\r\n\t\t// add changes in planet visibility\r\n\t\tfor (String aPlanetName : planetVisibilities){\r\n\t\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\tPlanet tempPlanet = g.findPlanet(aPlanetName);\r\n\t\t\tsb.append(\"Change planet \" + tempPlanet.getName() + \" to \");\r\n\t\t\tif (tempPlanet.isOpen()){ // change to closed\r\n\t\t\t\tsb.append(\"closed\");\r\n\t\t\t}else{ // change to open\r\n\t\t\t\tsb.append(\"open\");\r\n\t\t\t}\r\n\t\t\tsb.append(\" status.\");\r\n\t\t\tordersTextList.add(sb.toString());\r\n\t\t}\r\n\r\n\t\t// add changes in abandoning planets\r\n\t\tfor (String aPlanetName : abandonPlanets){\r\n\t\t\tPlanet tempPlanet = g.findPlanet(aPlanetName);\r\n\t\t\tordersTextList.add(\"Planet \" + tempPlanet.getName() + \" is to be abandoned.\");\r\n\t\t}\r\n\r\n\t\t// add ships do be selfdestroyed\r\n\t\tfor (Integer shipId : shipSelfDestructs){\r\n\t\t\tSpaceship tempss = g.findSpaceship(shipId);\r\n\t\t\tordersTextList.add(\"Spaceship \" + tempss.getName() + \" is to be destroyed.\");\r\n\t\t}\r\n\r\n\t\t// add VIPs do be selfdestroyed\r\n\t\tfor (Integer vipId : VIPSelfDestructs){\r\n\t\t\tVIP tempVIP = g.findVIP(vipId);\r\n\t\t\tordersTextList.add(\"VIP \" + tempVIP.getName() + \" is to be retired.\");\r\n\t\t}\r\n\r\n\t\t// add ships do be selfdestroyed\r\n\t\tfor (Integer buildingId : buildingSelfDestructs){\r\n\t\t\tBuilding tempBuilding = g.findBuilding(buildingId,player);\r\n\t\t\tordersTextList.add(\"Building \" + tempBuilding.getBuildingType().getName() + \" at \" + tempBuilding.getLocation().getName() + \" is to be destroyed.\");\r\n\t\t}\r\n\r\n\t\t// add VIP movements\r\n\t\tfor (VIPMovement aVIPMovement : VIPMoves){\r\n\t\t\tordersTextList.add(aVIPMovement.getText(g));\r\n\t\t}\r\n\r\n\t\t// Change planet notes\r\n\t\tfor (PlanetNotesChange change : planetNotesChanges) {\r\n\t\t\tordersTextList.add(change.getText());\r\n\t\t}\r\n\r\n\t\t// other orders (i.e. abandon game)\r\n\t\tif (abandonGame){\r\n\t\t\tordersTextList.add(\"Abandon game\");\r\n\t\t}\r\n\r\n\t\tif (ordersTextList.size() == 0){\r\n\t\t\tordersTextList.add(\"No orders exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn ordersTextList;\r\n\t}", "public void setIsInDepot(boolean b) {\n\t\tisInDepot = b;\n\t}", "public List<InfoServicio> getInfoServicios(){\n\t\treturn infoServicios;\n\t}", "public final String getDepartmentName() {\n return departmentName;\n }", "public interface RfpHotel extends RfpCompany {\n\n EntityImage getImage();\n\n int getRating();\n\n HotelChain getChain();\n\n List<String> getAmenities();\n\n HotelCategory getCategory();\n\n String getBrandChainName();\n\n String getMasterChainName();\n\n String getMasterChainId();\n}", "public interface DepartmentService {\n public Map<String,Object> departmentList();\n public Map<String,Object> departmentAdd(Map<String,Object> params);\n public Map<String,Object> departmentEdit(Map<String,Object> params);\n public Map<String,Object> departmentDelete(Map<String,Object> params);\n public Map<String,Object> departmentDeleteCascade(Map<String,Object> params);\n public Map<String,Object> departmentNewRoot();\n\n}", "public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to view the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of viewing orders************\");\n\t}", "@Override\n public String toString() {\n return \"Id del Libro: \"+id+\" Nombre del Libro: \"+nombre+\" Disponibilidad: \"+disponibilidad;\n }", "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"Service/Département\";\n\t}", "@Override\n public String toString(){\n\n return \"\\n\\n\"+super.toString()+\",\" + \"Dni: \"+ this.dni +\",\"+ \" Nombre: \"+this.Nombre+\",\"+\" ciudad: \"\n +\", \"+\"Ubicacion: \"+this.ubicacion+\", \"+\"Tarjeta de Crédito: \"+this.tarjetaCredito+\", \"+\n \"\\nProductos en Venta{\"+this.productosEnVenta+\"}\"+\", \" + \"\\nProductos Vendidos{\"+this.productosVendidos+\"}\"+\n \", \"+\"\\nProductos Comprados{\"+this.productosComprados+\"}\";\n }", "private String getDepartmentString() {\n String[] departments = contact.getDepartment().split(\"\\\\$\");\n String result = \"\";\n for (String dept : departments)\n result += dept.replace('~', ',') + \"\\n\";\n return result;\n }", "@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}", "public TreeControlI getDepartments() {\n\t\treturn cts.getTree(cts.ROOT,true,\"dep.do?method=select&id=\",\"select\");\n\t}", "@Override\n public String toString() {\n return \"GodownStockDetailsDTO{\" +\n \"id=\" + getId() +\n \", date='\" + getDate() + \"'\" +\n \", quantity=\" + getQuantity() +\n \", description='\" + getDescription() + \"'\" +\n \", status=\" + getStatus() +\n \", price=\" + getPrice() +\n \", godownStock=\" + getGodownStockId() +\n \", financialYearGodownStockDetails=\" + getFinancialYearGodownStockDetailsId() +\n \", financialYearGodownStockDetails='\" + getFinancialYearGodownStockDetailsBatchName() + \"'\" +\n \"}\";\n }", "@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }", "@Generated\n public Depositi getDepositi() {\n long __key = this.iddep;\n if (depositi__resolvedKey == null || !depositi__resolvedKey.equals(__key)) {\n __throwIfDetached();\n DepositiDao targetDao = daoSession.getDepositiDao();\n Depositi depositiNew = targetDao.load(__key);\n synchronized (this) {\n depositi = depositiNew;\n \tdepositi__resolvedKey = __key;\n }\n }\n return depositi;\n }" ]
[ "0.58235973", "0.577952", "0.562819", "0.5465582", "0.5234355", "0.52252597", "0.50157505", "0.5008721", "0.49769157", "0.49213657", "0.49061742", "0.48862898", "0.48859435", "0.48704255", "0.48524222", "0.48437893", "0.48386362", "0.48252288", "0.4808986", "0.4807526", "0.4799828", "0.47645006", "0.47528052", "0.47411543", "0.4725646", "0.46328735", "0.46307182", "0.46268544", "0.45898497", "0.45858476", "0.45613632", "0.45514306", "0.454851", "0.45465028", "0.45389834", "0.45301744", "0.45269984", "0.45269984", "0.45269984", "0.45269984", "0.45269984", "0.45264298", "0.45236742", "0.45202047", "0.44943953", "0.44929054", "0.449153", "0.44885394", "0.44846097", "0.4481571", "0.4471372", "0.4458791", "0.44566128", "0.44538346", "0.44399306", "0.44399306", "0.44399306", "0.44186002", "0.44156286", "0.44146606", "0.441316", "0.44088554", "0.44084445", "0.44044542", "0.4395602", "0.43932387", "0.43918684", "0.43896392", "0.43890557", "0.4378416", "0.4376693", "0.4373932", "0.4372711", "0.43653804", "0.43540984", "0.43475544", "0.43441105", "0.43415082", "0.43271065", "0.43246588", "0.4322909", "0.43227538", "0.43226802", "0.432251", "0.43192276", "0.4317957", "0.43139857", "0.43137157", "0.43136182", "0.431211", "0.4310225", "0.43098283", "0.43049383", "0.43028256", "0.4300905", "0.4291756", "0.4289812", "0.42874852", "0.42836678", "0.42778435" ]
0.5317301
4
A name of th depot. Actually, it is much more like a category ("Standarddepot", "VLDepot", etc.).
String getDepotname();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn \"Cold Coffee\";\n\t}", "@Override\n\tpublic java.lang.String getName() {\n\t\treturn _lineaGastoCategoria.getName();\n\t}", "public String getDepName() {\n return DepName;\n }", "public String getName ( ) {\r\n\t\treturn \"TASS Mark IV Patches Catalog\";\r\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Deuces\";\n\t}", "@Override\r\n\tpublic String foodName() {\n\t\treturn null;\r\n\t}", "String getName() ;", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "java.lang.String getDeskName();", "@Override\n\tpublic String name() {\n\t\treturn \"Chicken Burger\";\n\t}", "public String getName()\r\n {\n return \"tan\";\r\n }", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }", "public String getName()\r\n \t{\n \t\treturn (explicit ? (module.length() > 0 ? module + \"`\" : \"\") : \"\")\r\n \t\t\t\t+ name + (old ? \"~\" : \"\"); // NB. No qualifier\r\n \t}", "public String getNameProd() {\n\t\treturn nameProd;\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.617362", "0.6135537", "0.6044463", "0.60243237", "0.60101205", "0.5866998", "0.58602107", "0.58454", "0.58301324", "0.5808252", "0.5806096", "0.57904875", "0.5779297", "0.57787895", "0.57734233", "0.5769294", "0.57623076", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828", "0.5755828" ]
0.7686667
0
declares a variable which can be used to transfer messages using intents
@Override protected void onCreate(Bundle savedInstanceState) { //code executed on creation of the activity super.onCreate(savedInstanceState); setContentView(R.layout.activity_view_cwlist); //sets the xml content to display }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void sendMessage() {\n Intent intent = new Intent(this, GoToMessage.class);\n intent.putExtras(getIntent().getExtras());\n Bundle args = new Bundle();\n args.putString(\"nickname\", mNickname);\n //args.putSerializable(\"convoitem\", item);\n args.putString(\"topic\", mContact.getTopic());\n args.putInt(\"chatid\", mContact.getChatID());\n intent.putExtras(args);\n startActivity(intent);\n }", "@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n\n if( messageEvent.getPath().equalsIgnoreCase(\"/0\")) {\n String value = new String(messageEvent.getData(), StandardCharsets.UTF_8);\n Intent intent = new Intent(this, MainActivity.class );\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n //you need to add this flag since you're starting a new activity from a service\n String string = value;\n String[] parts = string.split(\",\");\n String part1 = parts[0];\n String part2 = parts[1];\n String part3 = parts[2];\n\n\n intent.putExtra(\"0\", part1);\n intent.putExtra(\"1\", part2);\n intent.putExtra(\"2\", part3);\n startActivity(intent);\n } else {\n super.onMessageReceived( messageEvent );\n }\n\n }", "public void sendToActivity(String message){\n //In questo metodo \"avviso\" l'app che è arrivato un nuovo dato dal raspberry.\n\n Intent intent = new Intent(\"NOTIFY_ACTIVITY\");\n\n if(message != null){\n intent.putExtra(\"CURRENT_ACTIVITY\",message);\n }\n\n //invio messaggio tramite broadcaster\n broadcast.sendBroadcast(intent);\n\n }", "public void sendMessageToActivity(String msg) {\n Intent intent = new Intent(\"color\"); // You can also include some extra data.\n Log.d(\"color1\", msg);\n intent.putExtra(\"color\", msg);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "private void sendToBtAct(String msg) {\n Intent intent = new Intent(\"getTextToSend\");\n // You can also include some extra data.\n intent.putExtra(\"tts\", msg);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n\n id = intent.getExtras().getString(\"idRedApoyo\");\n final String funcion = \"viewAlertas\";\n\n\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n srvrMessage = intent.getStringExtra(\"message\");\n if (srvrMessage != null) {\n String[] parametreler = srvrMessage.split(\"&\");\n String[] esitlik;\n final Dictionary<String, String> collection = new Hashtable<String, String>(parametreler.length);\n for (String parametre : parametreler) {\n esitlik = parametre.split(\"=\");\n if (esitlik.length == 2)\n collection.put(esitlik[0], esitlik[1]);\n }\n String gelenkomut = collection.get(\"komut\");\n\n GlobalApplication.Komutlar komut;\n\n try\n {\n komut = GlobalApplication.Komutlar.valueOf(gelenkomut);\n }\n catch (Exception ex)\n {\n komut = GlobalApplication.Komutlar.Default;\n }\n\n switch (komut)\n {\n case guncellemeyiBaslat:\n veriGuncellemeyiBaslat();\n break;\n case dosyalar:\n kacinci = Integer.parseInt(collection.get(\"kacinci\"));\n kacinci++;\n g.commonAsyncTask.client.sendMessage(\"komut=veriGonder&kacinci=\" + kacinci + \"&sadeceXML=0\");\n break;\n case aktarimTamamlandi:\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n alertDialog.show();\n SetViewGroupEnabled.setViewGroupEnabled((RelativeLayout) findViewById(R.id.settings), true);\n if(g.bitmapDictionary !=null && g.bitmapDictionary.size()>0)\n g.bitmapDictionary = null;\n }\n });\n dosyaAktarimiVarMi = false;\n break;\n case modemBilgileri:\n SharedPreferences.Editor editor = preferences.edit();\n try {\n editor.putString(\"SSID\", collection.get(\"SSID\"));\n editor.putString(\"ModemSifresi\", collection.get(\"Sifre\"));\n editor.apply();\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarılı\",\n \"Modem bilgileri kayıt edildi.\");\n alertDialog.show();\n } catch (Exception e) {\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarısız!\",\n \"Modem bilgileri kayıt edilemedi.\");\n alertDialog.show();\n }\n default:\n break;\n }\n\n\n }\n }", "protected void onSendMessage(View view){\n et = (EditText)findViewById(R.id.message);\n String message = et.getText().toString();\n Intent intent = new Intent(this, ReceiveMessageActivity.class);\n intent.putExtra(\"message\",message);\n startActivity(intent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle bundle = RemoteInput.getResultsFromIntent(intent);\n if (bundle != null) {\n //Should actually use extractMessagingStyleFromNotification() or use database..\n CharSequence replyText = bundle.getCharSequence(KEY_REMOTE_INPUT);\n Message reply = new Message(replyText, USER_NAME);\n MainActivity.MESSAGES.add(reply);\n\n MainActivity.sendMessageChannel(context);\n }\n }", "public interface Request extends Message\n\t{\n String DESTINATION = \"aether.message.dest\";\n }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n setContentView(R.layout.enviar_msg);\n etMensaje = (EditText)findViewById(R.id.etMensaje);\n \n //Interceptamos valor de la pila del activity anterior\n Intent intento = this.getIntent();\n destino = intento.getStringExtra(\"destino\");\n }", "void sendMessage() {\n\n\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n\r\n int thisConversationId = intent.getIntExtra(\"conversation_id\", -1);\r\n Bundle remoteInput = RemoteInput.getResultsFromIntent(intent);\r\n if (remoteInput != null){\r\n CharSequence replyText = remoteInput.getCharSequence(\"voice_reply_key\");\r\n Log.d(\"BasicNotifications\", \"Found voice reply [\" + replyText+ \"] from conversation_id\");\r\n }\r\n }", "public void OnMessageReceived(String msg);", "public void startSecondActivity(){\n\n Bundle b = new Bundle();\n b.putString(\"LM\", \"There are \" + count + \" faces in the photo\");\n if (tts.handler != null){\n Message msg = tts.handler.obtainMessage(0);\n msg.setData(b);\n tts.handler.sendMessage(msg);\n }\n }", "public static void getMessage() {\r\n\t\tLog.i(TAG,\r\n\t\t\t\t\"+++ GOT MESSAGE FROM ARDUINO +++\" + getArduinoMessage());\r\n\t\tString[] msgSplit = getArduinoMessage().split(\":\");\r\n\t\tString keyWord = \"\";\r\n\t\tString firstVaule = \"\";\r\n\t\tString secondValue = \"\";\r\n\r\n\t\tif (msgSplit.length > 0) {\r\n\t\t\tkeyWord = msgSplit[1];\r\n\t\t\tfirstVaule = msgSplit[2];\r\n\t\t\tsecondValue = msgSplit[3];\r\n\t\t}\r\n\r\n\t\tif (keyWord.equals(\"xy\")) {\r\n\t\t\tgetTelescopeAltAz(firstVaule, secondValue);\r\n\t\t\tstartTracking();\r\n\t\t}\r\n\t\tif (keyWord.equals(\"xyt\")) {\r\n\t\t\tLog.i(TAG, \"+++ GOT TELESCOPE POSITION \" + firstVaule + \" \"\r\n\t\t\t\t\t+ secondValue);\r\n\t\t\tstar++;\r\n\t\t\tgetTelescopeAltAz(firstVaule, secondValue, star );\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\t\tmoveMessage=intent.getExtras().getString(\"sms\");\n\t\t\t}", "protected Element myVar(){\n\t\treturn el(\"bpws:variable\", new Node[]{\n\t\t\t\tattr(\"messageType\", \"nswomo:receiveMessage\"),\n\t\t\t\tattr(\"name\", VARNAME)\n\t\t});\n\t}", "@Override\n public void onReceive(Context context, Intent i) {\n String textReceived = i.getStringExtra(\"text\");\n String amtReceived = i.getStringExtra(\"num\");\n\n if(i.getAction().equals(\"Preeti.custom.intent.response\")) {\n MainActivity.setCcy(textReceived, amtReceived);\n }\n }", "private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }", "public interface TwilioService {\n String ACCOUNT_ID_TEST = \"ACCXXXX\";\n String ACCOUNT_TOKEN_TEST = \"ACXXX\";\n String FROM = \"XXXXX\";\n\n}", "@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }", "public Intent intent( String inAction ) {\r\n\t\treturn new Intent( kMessagePlayer ).putExtra( \"action\" , inAction );\r\n\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n\n\n code = intent.getStringExtra(SMSreceiver.CODE);\n System.out.println(\"got the code information\");\n if (code.length() == 4) {\n try {\n\n otp1.setText(String.valueOf(code).charAt(0));\n otp2.setText(String.valueOf(code.charAt(1)));\n otp3.setText(String.valueOf(code.charAt(2)));\n otp4.setText(String.valueOf(code.charAt(3)));\n SharedPreferences sharedpreferences = getSharedPreferences(\"buddyotp\", Context.MODE_PRIVATE);\n w = sharedpreferences.getInt(\"shareflow\", 1);\n }\n catch (Exception e)\n {}}}", "@Override\n public void onClick(View v) {\n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n str = extras.getString(\"data_to_be_sent\") + \"\\r\\n\" + answer.getText().toString() ;\n }\n Intent intent = new Intent(getBaseContext(), Question4.class);\n intent.putExtra(\"data_to_be_sent\",str);\n startActivity(intent);\n }", "public interface Message\n\t{\n\t\tpublic static final String LINK_ID = \"aether.message.link.id\";\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "@Override\r\n public void onClick(View v) {\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n }", "private void loadMessengerView(String recipeintUsername)\n {\n\n //create new intent\n Intent intent = new Intent(getContext(), MyIntentService.class);\n //set load messenger action (convo)\n intent.setAction(MyIntentService.LOAD_CONVO_ACTION);\n //add recipeint username to intent\n intent.putExtra(\"recipeintUsername\", recipeintUsername);\n //start the intent service\n getActivity().startService(intent);\n\n }", "String getSender();", "@Override\n public void onChatMessageFragmentInteraction(MessageEnum message, Object result) {\n ((MyMessage)result).setSenderId(this.user.getUserId());\n ((MyMessage)result).setReceiverId(this.receiverId);\n ((MyMessage)result).setBookId(this.selectedBook.getBookId());\n //send message to message list\n databaseHandler.sendMessageToDatabase((MyMessage)result);\n //message should come back with reference change?\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n if(\"com.example.brdcst_rec.toast\".equals(intent.getAction())){\n Integer received = intent.getIntExtra(\"com.example.brdcst_rec.text\", -1);\n Intent in = new Intent(context, BrowserActivity.class);\n in.putExtra(\"number\", received);\n context.startActivity(in);\n }\n }", "String getReceiver();", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 100;\n\t\t\t\t\tmsg.obj = split[1]+\",\"+split[2];\n\t\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t\t}", "public void sendMessage(View view) {\n\n Log.d(DEBUG, \"About to create intent with John 3:16\");\n\n Intent intent = new Intent(this, DisplayScripturesActivity.class);\n\n EditText editText1 = (EditText) findViewById(R.id.book);\n String bookValue = editText1.getText().toString();\n\n EditText editText2 = (EditText) findViewById(R.id.chapter);\n String chapterValue = editText2.getText().toString();\n\n EditText editText3 = (EditText) findViewById(R.id.verse);\n String verseValue = editText3.getText().toString();\n\n //put all extra info in the intent\n intent.putExtra(SCRIPTURE_BOOK, bookValue);\n intent.putExtra(BOOK_CHAPTER, chapterValue);\n intent.putExtra(CHAPTER_VERSE, verseValue);\n startActivity(intent);\n }", "private void sendMessage(String content, String room) {\n }", "@Override\n\tprotected void obtainIntentValue() {\n\n\t}", "@Override\n public void onClick(View v) {\n\n Intent Chat_Intent = new Intent(getActivity(), com.example.jason.barterworld.ChatActivity.class);\n\n Chat_Intent.putExtra(\"msg_key\",msg_key);\n\n startActivity(Chat_Intent);\n\n\n\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n String payload = new String(msg.getRecords()[0].getPayload());\n Toast.makeText(this, payload, Toast.LENGTH_LONG).show();\n Log.i(TAG, payload);\n }", "void onMessageReceived(Message message);", "private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }", "public int getMsgType(){\r\n return localMsgType;\r\n }", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tBundle bundle=msg.getData();\n\t\t\t\t\n\t\t\t\tif(bundle.getInt(\"ready\") == 1){\n\t\t\t\t\t//Receive info and assign to player\n\t\t\t\t\tIntent j = new Intent();\n\t\t\t\t\tj.setClassName(\"com.example.client\",\n\t\t\t\t\t\t\t\"com.example.client.GameScreen\");\n\t\t\t\t\tstartActivity(j);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\t//Time out\n\t\t\t\t\t\talertMessage();\t\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}", "public void sendMessage(View buttonView)\n {\n state = 0;\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.Message);\n EditText editTextPhoneNumber = (EditText) findViewById(R.id.Phone);\n String message = editText.getText().toString();\n String phoneNumberMessage = editTextPhoneNumber.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n intent.putExtra(EXTRA_PHONEMESSAGE, phoneNumberMessage);\n startActivity(intent);\n }", "void processIntent(Intent intent) {\n Parcelable[] rawMsgs = intent.getParcelableArrayExtra(\n NfcAdapter.EXTRA_NDEF_MESSAGES);\n // only one message sent during the beam\n NdefMessage msg = (NdefMessage) rawMsgs[0];\n // record 0 contains the MIME type, record 1 is the AAR, if present\n menuInfo = new String(msg.getRecords()[0].getPayload());\n \n Toast.makeText(getApplicationContext(), menuInfo, Toast.LENGTH_LONG).show();\n }", "public void receiveMyMessage(String msg) {\n \t\n final String str = msg;\n \n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n receivedTextView1.setText(str);\n }\n });\n }", "void mo23490a(C9067a aVar, TransferListener transferListener);", "private void handleMessage(Message msg) {\n switch (msg.what) {\n case R.id.clientReady: // 음성인식 준비 가능\n txtResult.setText(\"Connected\");\n writer = new AudioWriterPCM(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/NaverSpeechTest\");\n writer.open(\"Test\");\n break;\n case R.id.audioRecording:\n writer.write((short[]) msg.obj);\n break;\n case R.id.partialResult:\n mResult = (String) (msg.obj);\n mResult += mResult;\n txtResult.setText(mResult);\n break;\n case R.id.finalResult: // 최종 인식 결과\n SpeechRecognitionResult speechRecognitionResult1 = (SpeechRecognitionResult) msg.obj;\n List<String> results1 = speechRecognitionResult1.getResults();\n StringBuilder strBuf1 = new StringBuilder();\n for(String result : results1) {\n strBuf1.append(result);\n //strBuf.append(\"\\n\");\n break;\n }\n mResult = strBuf1.toString();\n txtResult.setText(mResult);\n\n requestChatbot();\n\n break;\n case R.id.recognitionError:\n if (writer != null) {\n writer.close();\n }\n mResult = \"Error code : \" + msg.obj.toString();\n txtResult.setText(mResult);\n btnStart.setText(R.string.str_start);\n btnStart.setEnabled(true);\n break;\n case R.id.clientInactive:\n if (writer != null) {\n writer.close();\n }\n btnStart.setText(R.string.str_start);\n btnStart.setEnabled(true);\n break;\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }", "public void sendMessage(View view) {\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n\n EditText editText = (EditText) findViewById(R.id.editText);\n\n String message = editText.getText().toString();\n\n intent.putExtra(EXTRA_MESSAGE, message);\n\n\n\n startActivity(intent);\n\n }", "public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}", "private void getDataFromIntent() {\n\t\tfinal Intent intent = getIntent();\n\t\tdata.setmUsername(intent.getStringExtra(Constants.PARAM_USERNAME));\n\t\tdata.setmPassword(intent.getStringExtra(Constants.PARAM_PASSWORD));\n\t\tdata.setmHost(intent.getStringExtra(Constants.PARAM_HOST));\n\t\tdata.setmPort(intent.getIntExtra(Constants.PARAM_PORT, 389));\n\t\tdata.setmEncryption(intent.getIntExtra(Constants.PARAM_ENCRYPTION, 0));\n\t\tdata.setmRequestNewAccount((data.getmUsername() == null));\n\t\tdata.setmConfirmCredentials(intent.getBooleanExtra(Constants.PARAM_CONFIRMCREDENTIALS, false));\n\t}", "private IBinder getActivityToken() {\n\t\tIBinder binder = null;\n\n\t\ttry {\n\t\t\t//Class clazz = Class.forName(\"com.qiyi.framework.surfacetransferservice.MainActivity\");\n\t\t\t//Field token = clazz.getField(\"mToken\");\n\t\t\tClass clazz = Class.forName(\"android.app.Activity\");\n\t\t\tif(MainActivity.this == null) {\n\t\t\t\tLog.d(TAG, \"ACTIVITY IS NULL!!!\");\n\t\t\t}\n\t\t\t//Class clazz = activity.getClass();\n\t\t\tField token = clazz.getDeclaredField(\"mToken\");\n\t\t\tif (token == null) return null;\n\t\t\t//mToken is private field.\n\t\t\ttoken.setAccessible(true);\n\t\t\tIBinder msg = (IBinder)token.get(MainActivity.this);\n\t\t\tbinder = msg;\n\t\t\tLog.e(TAG, \"aaaaa ====\" + msg.toString());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn binder;\n\t}", "public void afficherMessage();", "@Override\n public void onReceive(Context context, Intent intent) {\n\n Bundle getBundle = intent.getBundleExtra(REMINDER_BUNDLE);\n\n\n String title = getBundle.getString(\"title\");\n String number = ParseUser.getCurrentUser().getString(ParseUser.getCurrentUser().getUsername());\n\n Log.i(\"Send SMS\", \"\");\n Toast.makeText(context, (title+context.getString(R.string.msgcontent)), Toast.LENGTH_SHORT).show();\n\n try {\n SmsManager smsManager = SmsManager.getDefault();\n smsManager.sendTextMessage(number, null, (title+context.getString(R.string.msgcontent)), null, null);\n Toast.makeText(context, \"SMS sent.\", Toast.LENGTH_LONG).show();\n }\n\n catch (Exception e) {\n Toast.makeText(context, \"SMS faild, please try again.\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n\n textView.setText(message);\n }", "@Override\n public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(), Prescription.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"Chatroomcode\", chatCode);\n i.putExtras(bundle);\n startActivity(i);\n CustomIntent.customType(Chat.this, \"fadein-to-fadeout\");\n }", "@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }", "@Override\r\n public void handleMessage(Message inputMessage) {\n actualMainActivityInstance.putDataOnPage((String)inputMessage.obj);\r\n }", "void sendMessage(String msg);", "void received(String s);", "@Nullable\n @Override\n public IBinder onBind(Intent intent) {\n return messenger.getBinder();\n }", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "@Override\n public void handleMessage(Message msg) {\n FragmentActivity activity = MainActivity.this;\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n switch (msg.arg1) {\n case BluetoothCommService.STATE_CONNECTED:\n setStatus(getString(R.string.title_connected_to, mConnectedDeviceName));\n //mConversationArrayAdapter.clear();\n break;\n case BluetoothCommService.STATE_CONNECTING:\n setStatus(R.string.title_connecting);\n break;\n case BluetoothCommService.STATE_LISTEN:\n case BluetoothCommService.STATE_NONE:\n setStatus(R.string.title_not_connected);\n break;\n }\n break;\n case Constants.MESSAGE_WRITE:\n byte[] writeBuf = (byte[]) msg.obj;\n // construct a string from the buffer\n String writeMessage = new String(writeBuf);\n //mConversationArrayAdapter.add(\">: \" + writeMessage);\n break;\n case Constants.MESSAGE_READ:\n byte[] readBuf = (byte[]) msg.obj;\n // construct a string from the valid bytes in the buffer\n String readMessage = new String(readBuf, 0, msg.arg1);\n //mConversationArrayAdapter.add(mConnectedDeviceName + \": \" + readMessage);\n\n int pos;\n pos = readMessage.indexOf('I');\n if(pos >= 0) {\n String s = readMessage.substring(pos + 1);\n //Log.i(TAG, s);\n\n try {\n valueInI = Double.parseDouble(s);\n //mTextViewI.setText(String.format(\"%.2f\", valueInS * 0.01955));\n mTextViewI.setText(String.format(\"%.2f\", valueInI));\n mTextViewValue.setText(String.format(\"%.2f\", valueInI * k + d));\n\n DataHolder.getInstance().setData(0, valueInS);\n DataHolder.getInstance().setData(1, valueInI);\n DataHolder.getInstance().setData(2, valueInF);\n //if(mTechActivity != null) {\n //mTechActivity.valueInI = valueInI;\n // mTechActivity.updateValueInI(valueInI);\n //}\n } catch (Exception e) {\n Log.e(TAG, e.toString());\n }\n }\n pos = readMessage.indexOf('F');\n if(pos >= 0) {\n String s = readMessage.substring(pos + 1);\n //Log.i(TAG, s);\n\n try {\n valueInF = Double.parseDouble(s);\n mTextViewF.setText(String.format(\"%.2f\", valueInF));\n } catch (Exception e) {\n Log.e(TAG, e.toString());\n }\n }\n break;\n case Constants.MESSAGE_DEVICE_NAME:\n // save the connected device's name\n mConnectedDeviceName = msg.getData().getString(Constants.DEVICE_NAME);\n if (null != activity) {\n Toast.makeText(activity, \"CONNECTED TO \"\n + mConnectedDeviceName, Toast.LENGTH_SHORT).show();\n }\n break;\n case Constants.MESSAGE_TOAST:\n if (null != activity) {\n Toast.makeText(activity, msg.getData().getString(Constants.TOAST),\n Toast.LENGTH_SHORT).show();\n }\n break;\n }\n }", "@Override\n public void onAcceptMessageVal(int messVal) {\n }", "@Override\n\tpublic void onMessage(Message m) {\n\t\t\t\ttry {\n\n\t\t\t\t\tTextMessage ms = (TextMessage) m;\n\n\t\t\t\t\tString linea = ms.getText();\n\n\t\t\t\t\tString args[] = linea.split(\" - \");\n\n\t\t\t\t\tif (args[0].equals(\"consulta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\t\t\t\t\t\tif (args[1].equals(\"1\")) {\t\t\t\t\t\n\t\t\t\t\t\t\t//registrarPedido(args[2], args[3], args[4], args[5]);\n\t\t\t\t\t\t}else if (args[1].equals(\"2\")) {\n\t\t\t\t\t\t\t//cambiarEstado(args[2], args[3]);\n\t\t\t\t\t\t}else if (args[1].equals(\"3\")) {\n\t\t\t\t\t\t\t//ArrayList<String> ejecuciones = consultarEjecucionDeEtapas(args[2], args[3], args[4]);\n\t\t\t\t\t\t\t//responderConEjecucionesDeEtapas(ejecuciones);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if (args[0].equals(\"respuesta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\n\t\t\t\t\t\tif ( args[1].equals(\"1\") || args[1].equals(\"2\") ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if( args[1].equals(\"3\") ){\n\t\t\t\t\t\t\tString[] data = linea.substring( 16, ( linea.length() - 1 ) ).split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> ejec = new ArrayList<String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\t\t\t\t\t\tString data0 = data[i];\n\t\t\t\t\t\t\t\tejec.add(data0);\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t//Numero del Pedido\n//\t\t\t\t\t\t\t\tString numPedido = data0[0];\n//\t\t\t\t\t\t\t\t//Codigo de la EstaciÛn\n//\t\t\t\t\t\t\t\tString codEstacion = data0[1];\n//\t\t\t\t\t\t\t\t//Numero de ejecuciones\n//\t\t\t\t\t\t\t\tString numEjecuciones = data0[2];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t}\n\t\t\t}", "@Override\n public void onReceive(Context context, Intent intent) {\n final Bundle bundle = intent.getExtras();\n try {\n if (bundle != null) {\n /*\n Bundle dengan key \"pdus\" sudah merupakan standar yang digunakan oleh system\n */\n final Object[] pdusObj = (Object[]) bundle.get(\"pdus\");\n if (pdusObj != null) {\n for (Object aPdusObj : pdusObj) {\n SmsMessage currentMessage = getIncomingMessage(aPdusObj, bundle);\n String senderNum = currentMessage.getDisplayOriginatingAddress();\n String message = currentMessage.getDisplayMessageBody();\n Log.d(TAG, \"senderNum: \" + senderNum + \"; message: \" + message);\n Intent showSmsIntent = new Intent(context, SmsReceiverActivity.class);\n showSmsIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n showSmsIntent.putExtra(SmsReceiverActivity.EXTRA_SMS_NO, senderNum);\n showSmsIntent.putExtra(SmsReceiverActivity.EXTRA_SMS_MESSAGE, message);\n context.startActivity(showSmsIntent);\n }\n } else {\n Log.d(TAG, \"onReceive: SMS is null\");\n }\n }\n } catch (Exception e) {\n Log.d(TAG, \"Exception smsReceiver\" + e);\n }\n }", "interface ViewMessages {\n\n String ENTER= \"Enter\";\n String FIRST_NAME = \"first name\";\n String LAST_NAME = \"last name\";\n String LOGIN = \"login\";\n String EMAIL = \"email\";\n String PHONE= \"phone\";\n String CITY= \"city\";\n String APPARTMENT_NUMBER= \"appartment number\";\n String HOUSE_NUMBER= \"house number\";\n String STREET= \"street\";\n String WRONG_INPUT = \"Wrong input.\";\n String RESULT = \"Your note\";\n String WRONG_LOGIN = \"Login is already used.\";\n\n\n}", "@Override\r\n\t\tpublic void onReceive(Context context, Intent intent) {\n\t\t\tString lrcMessageString=intent.getStringExtra(\"lrcMessage\");\r\n\t\t\tlrcText.setText(lrcMessageString);\r\n\t\t}", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "public interface Message extends Serializable {\n\t/**\n\t * Kui server saab kliendi sõnumi vastu\n\t * @param s kliendi sessioon\n\t */\n\tvoid onReceive(ClientSession s);\n\t/**\n\t * Kui klient võtab serveri sõnumi\n\t * \n\t * @param c - Client\n\t */\n\tvoid onReceive(Client c);\n\t/**\n\t * Meetod tagastab adressaadi.\n\t * @return aadress, kellele sõnu saadetakse\n\t */\n\tString getAdress();\n}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\tcase 0:\n\t\t\t\ttv_read.setText(msg.obj.toString());\n\t\t\t\tToast.makeText(N20PINPadControllerActivity.this, \"recv\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n if (msg.what == 0) {\n Intent intent = new Intent(HuanYing.this, MyZhuYe.class);\n startActivity(intent);\n finish();\n }\n if (msg.what == 1) {\n int shuzi = (Integer) msg.obj;\n tv.setText(shuzi + \"\");\n }\n }", "void onSendMessageComplete(String message);", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n String chat = chat_field.getText().toString();\n\n\n LandingActivity current_activity = (LandingActivity)getActivity();\n if(current_activity != null){\n new Chat(chat, current_user.getUsername(), getActivity());\n }\n //Construct the new Object\n\n }", "private void sendMessage(String text)\n {\n Message msg = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n bundle.putString(\"text\",text);\n msg.setData(bundle);\n msg.what = 1;\n mHandler.sendMessage(msg);\n }", "@Override\n protected void onMessage(Context context, Intent intent) {\n Log.i(TAG, \"Received message\");\n String message = intent.getExtras().getString(\"price\");\n \n // notifies user\n generateNotification(context, message);\n }", "private void ReceiveFromOther(String message){\n ChatMessage chatMessage = new ChatMessage(message, false, false);\n mAdapter.add(chatMessage);\n\n }", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }", "private void processCustomMessage(Context context, Bundle bundle, int type) {\n\n String extirm = bundle.getString(JPushInterface.EXTRA_EXTRA);\n if (!TextUtils.isEmpty(extirm)) {\n info = JSON.parseObject(extirm, JgPustInfo.class);\n }\n\n if (type == 1) {\n startApp(context);\n }\n\n//\t\tif (MainActivity.isForeground) {\n//\t\t\tString message = bundle.getString(JPushInterface.EXTRA_MESSAGE);\n//\t\t\tString extras = bundle.getString(JPushInterface.EXTRA_EXTRA);\n//\t\t\tIntent msgIntent = new Intent(MainActivity.MESSAGE_RECEIVED_ACTION);\n//\t\t\tmsgIntent.putExtra(MainActivity.KEY_MESSAGE, message);\n//\t\t\tif (!ExampleUtil.isEmpty(extras)) {\n//\t\t\t\ttry {\n//\t\t\t\t\tJSONObject extraJson = new JSONObject(extras);\n//\t\t\t\t\tif (null != extraJson && extraJson.length() > 0) {\n//\t\t\t\t\t\tmsgIntent.putExtra(MainActivity.KEY_EXTRAS, extras);\n//\t\t\t\t\t}\n//\t\t\t\t} catch (JSONException e) {\n//\n//\t\t\t\t}\n//\n//\t\t\t}\n//\t\t\tcontext.sendBroadcast(msgIntent);\n//\t\t}\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(context, MessageActivity.class);\n intent.putExtra(\"id\",id);\n context.startActivity(intent);\n }", "@Override\n public void onReceive(Context context, Intent intent)\n {\n //---get the SMS message passed in---\n /*Since the SMS message is contained in a Bundle object,\n we must get that Bundle from the intent. The method\n getExtras() returns a Bundle.\n\n A Bundle is generally used for passing data between\n various Activities of android. It can hold different types\n of values and pass to the new activity.\n */\n Bundle bundle = intent.getExtras();\n\n //---if the Bundle object is not empty, then we will\n //---convert it to a string\n if (bundle != null)\n {\n String receivedMessage = convertBundleToString(bundle);\n //---display the new SMS message---\n Toast.makeText(context, receivedMessage, Toast.LENGTH_SHORT).show();\n Intent i = new Intent(context, MainActivity.class);\n /*\n FLAG_ACTIVITY_SINGLE_TOP - If set, the activity will not be\n launched if it is already running at the top of the history stack.\n\n FLAG_ACTIVITY_NEW_TASK - a final int, that, if set, this activity\n will become the start of a new task on this history stack.\n If a task is already running for the activity you are now starting,\n then a new activity will not be started; instead, the current task will\n simply be brought to the front of the screen with the state it was last in.\n */\n i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n i.putExtra(\"message\", receivedMessage);\n context.startActivity(i);\n }\n }", "public Chat_1(String toaNimi) {\n\n nimi = toaNimi;\n\n }", "void onAction(TwitchUser sender, TwitchMessage message);", "public void mo726b(C0391a aVar) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n obtain.writeStrongBinder(aVar != null ? aVar.asBinder() : null);\n this.f822a.transact(4, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "public interface FtdiInformationListener {\n public static int INFO = 0;\n\n public static int ERROR = 1;\n public static int OUTPUT_ERROR = 2;\n public static int INPUT_ERROR = 3;\n\n public static int NEW_DATA = 4;\n\n public static int DEVICE_CONNECTED = 10;\n public static int DEVICE_DISCONNECTED = 11;\n\n\n public void sendMessage(String message, int type);\n}", "@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }", "private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n //EditText editText = (EditText) findViewById(R.id.edit_message);\n //String message = editText.getText().toString();\n //intent.putExtra(EXTRA_MESSAGE, message);\n\n startActivity(intent);\n }", "public void handleMessage(Message message){\r\n\r\n // Application Protocol : 100 ==> 정상\r\n if(message.what == 100){\r\n scrollView.post(new Runnable(){\r\n public void run(){\r\n scrollView.fullScroll(ScrollView.FOCUS_DOWN);\r\n }\r\n });\r\n\r\n }else if(message.what==200){\r\n System.out.println(\"핸들러에 온 메시지가 200프로토콜로 왔습니다.\");\r\n\r\n final Booking booking = (Booking)message.obj;\r\n System.out.println(\":: booking.getMovieNm() in Activity : \"+booking.getMovie().getMovieNm());\r\n\r\n RelativeLayout relativeLayout = (RelativeLayout)View.inflate(AddBookingActivity.this, R.layout.booking_layout, null );\r\n\r\n TextView selectedTitle = (TextView)findViewById(R.id.selected_title_textview);\r\n selectedTitle.setText(booking.getMovie().getMovieNm());\r\n\r\n TextView selectedTime = (TextView)findViewById(R.id.selected_time_textview);\r\n selectedTime.setText(booking.getScreenContent().getScreenOpenTime());\r\n\r\n TextView selectedCount = (TextView)findViewById(R.id.selected_count_textview);\r\n selectedCount.setText(Integer.toString(booking.getHeadCount())+\"명\");\r\n\r\n TextView selectedPrice = (TextView)findViewById(R.id.selected_price_textview);\r\n selectedPrice.setText(Integer.toString(booking.getTotalTicketPrice())+\"원\");\r\n\r\n Button button = (Button)findViewById(R.id.request_pay_button);\r\n button.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View view) {\r\n Intent intent = new Intent(AddBookingActivity.this, KakaoPayActivity.class);\r\n intent.putExtra(\"booking\", booking);\r\n startActivity(intent);\r\n }\r\n });\r\n }\r\n }", "public interface GameMsg {\n\n int MSG_WHAT_START = 0;\n\n int MSG_WHAT_REFRESH = 1;\n\n int MSG_WHAT_GAP = 2;\n\n int MSG_WHAT_END = 3;\n\n int MSG_ANIM_STOP = 4;\n\n int MODEL_RAT = 0;\n\n int MODEL_MUSHROOM = 1;\n}", "@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_1;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }", "@Override\n\t \t\tpublic void handleMessage(Message msg) {\n\t \t\treceive();\n\t \t\t\t// myTextView.setText(String.valueOf(cnt));\n\t \t\t}", "void mo23214a(Message message);", "private void initObjects() {\n String emailFromIntent = getIntent().getStringExtra(\"NAMA\");\n textViewName.setText(emailFromIntent);\n }", "void sendStoredText(int subId, String callingPkg, Uri messageUri, String scAddress,\n PendingIntent sentIntent, PendingIntent deliveryIntent);", "@Override\n public void onReceive(Context context, Intent intent) {\n String action = intent.getAction();\n switch (action) {\n case RoosterConnectionService.NEW_MESSAGE:\n// k = RoosterConnectionService.NEW_MESSAGE;\n String from = intent.getStringExtra(RoosterConnectionService.BUNDLE_FROM_JID);\n String body = intent.getStringExtra(RoosterConnectionService.BUNDLE_MESSAGE_BODY);\n// if(body.toUpperCase().contains(\"V\".toUpperCase()) ) {\n message(body);\n// }\n return;\n\n case RoosterConnectionService.UI_AUTHENTICATED:\n Toast.makeText(getApplicationContext(), \"authenticated\", Toast.LENGTH_SHORT).show();\n// Log.d(TAG,\"Got a broadcast to show the main app window\");\n //Show the main app window\n// showProgress(false);\n// Intent i2 = new Intent(mContext,ContactListActivity.class);\n// startActivity(i2);\n// finish();\n\n break;\n }\n\n\n }", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n messenger = new Messenger(service);\n try {\n Message msg = Message.obtain(null, 2);\n msg.replyTo = mMessenger;\n messenger.send(msg);\n } catch (Exception e) {\n e.printStackTrace();\n }\n startActivity(new Intent(SplashActivity.this, ElawalletaActivity.class));\n finish();\n }" ]
[ "0.60447645", "0.5980294", "0.5841254", "0.5823279", "0.5804173", "0.5683666", "0.5659453", "0.56554145", "0.5641702", "0.563599", "0.5603712", "0.55741084", "0.5571194", "0.5567978", "0.5512647", "0.55102414", "0.5499526", "0.5494557", "0.54933304", "0.5490035", "0.54702646", "0.54685503", "0.54640055", "0.545184", "0.5443308", "0.54370576", "0.54347444", "0.5429539", "0.54286045", "0.5425758", "0.5419784", "0.54147756", "0.54136455", "0.541209", "0.5410186", "0.54095805", "0.5407237", "0.54049593", "0.5404431", "0.5404401", "0.540318", "0.53997767", "0.5390954", "0.53859466", "0.53773236", "0.5374158", "0.53684396", "0.53636134", "0.5357306", "0.5357306", "0.53530157", "0.5351706", "0.5344016", "0.53388834", "0.53363454", "0.53225696", "0.53223747", "0.5321427", "0.5319944", "0.53183", "0.5314051", "0.5310524", "0.52957314", "0.5295656", "0.5295243", "0.5294553", "0.52920765", "0.5291924", "0.52816063", "0.52808875", "0.5279706", "0.5273776", "0.52718174", "0.5269016", "0.52688634", "0.52637196", "0.52624315", "0.5261184", "0.5254473", "0.5250854", "0.5249943", "0.52499324", "0.5248857", "0.5246657", "0.5242185", "0.5241181", "0.5237538", "0.52340215", "0.52337927", "0.52301276", "0.522965", "0.5217588", "0.52169156", "0.5209325", "0.52087516", "0.52087414", "0.520772", "0.5203293", "0.52029335", "0.5201014", "0.52002454" ]
0.0
-1
handles the Order by Name button
public void onClickOrderName(View view){ Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity intent.putExtra(EXTRA_MESSAGE, "Name"); //add the "Name" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList startActivity(intent); //start the new activity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }", "@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "public void orderByName() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getName().compareTo(((Customer)o2).getName());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t\tif (e.getComponent() == jLTill)\n\t\t{\n\t\t\tArrayList<Order> tempOL = globalFrame.getTill().getOrders();\n\t\t\tglobalFrame.setOrder(tempOL.get(jLTill.getSelectedIndex()));\n\t\t\tglobalFrame.updateOrderItemList();\n\t\t\tglobalFrame.updateOrderList();\n\t\t}\n\t}", "@Override\n public void execute() {\n itemList.sort_names();\n }", "public SortByNameCommand(ItemList itemList){\n this.itemList = itemList;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tif(state.equalsIgnoreCase(\"nameAsc\"))\n\t\t\t\t{\n\t\t\t\t\tpopulateTable(\"nameDsc\");\n\t\t\t\t}\n\t\t\t\telse if(state.equalsIgnoreCase(\"nameDsc\"))\n\t\t\t\t{\n\t\t\t\t\tpopulateTable(\"nameAsc\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpopulateTable(\"nameAsc\");\n\t\t\t\t}\n\n\n\t\t\t}", "@Override\n public List<Order> findByTuoteName(String name) {\n List<Order> ordersByProductName = new ArrayList<>();\n for (int i = 0; i < this.orders.size(); i++) {\n \n if (this.orders.get(i).getProduct().getName().equals(name)) {\n ordersByProductName.add(this.orders.get(i));\n }\n }\n return ordersByProductName;\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(\"balance\".equals(e.getActionCommand())){\n\t\t\tsortType = 1;\n\t\t}else if(\"sold\".equals(e.getActionCommand())){\n\t\t\tsortType = 2;\n\t\t}else if(\"spoiled\".equals(e.getActionCommand())){\n\t\t\tsortType = 3;\n\t\t}\n\t\trefresh();\n\t}", "public SMplace_order() {\n initComponents();\n table();\n }", "@FXML\n private void updateDateOrder(ActionEvent event) {\n\n if (sortOrder == Order.DATE_ASC) {\n\n sortOrder = Order.DATE_DESC;\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.DATE_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "public void tableSort(String colomName){\n\t\tTestLog.log.info(\"sort according to the colom \");\n\t\ttry{\n\t\t\tdriver.findElement(By.xpath(\"//*[contains(text(),'\"+colomName+\"')]\")).click();\n\t\t}catch (Exception ex) {\n\t\t\tTestLog.log.info(\"sorting fails\" + ex);\n\t\t}\n\t}", "private String viewOrderBy( String orderby ) {\n if(orderby.equals(\"Name\")) {\n orderby = \"db.nama\";\n }\n else if(orderby.equals(\"Category\")) {\n orderby = \"kategori\";\n }\n else if(orderby.equals(\"Sale Price\")) {\n orderby = \"harga_jual\";\n }\n else if(orderby.equals(\"Modal Price\")) {\n orderby = \"harga_modal\";\n }\n return orderby;\n }", "@When(\"^Order and print the products by name ascendant$\")\n public void order_and_print_the_products_by_name_ascendant() throws Throwable {\n \tint i=0;\n \tfor(i=0;i<5;i++) { \t\t\n \t\t\n \t\tSystem.out.println(pageHome.product2().get(i).getText());\n\n \t}\n }", "@Test (priority = 1, dataProvider=\"sortbyname\")\n public void sort_By_Name(String sortByname) {\n\t Menu_Products_obj = new Menu_Products(driver);\n\t String actual=Menu_Products_obj.open_menu1(sortByname);\n \tAssert.assertTrue(actual.contains(sortByname));\n Allure.step(\"Product is displayed As Expected\"); \t\n \t \n\t homepage_obj.sort_Byname_ASC();\n\t homepage_obj.sort_Byname_DESC();\n\t \n }", "@FXML\n private void updateRegionOrder(ActionEvent event) {\n\n if (sortOrder == Order.REGION_ASC) {\n\n sortOrder = Order.REGION_DESC;\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.REGION_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "public void myorders() {\r\n\t\t\tdriver.findElement(orders).click();\r\n\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void onButtonClicked() {\n\t\tclientFactory.getPlaceController().goTo(\r\n\t\t\t\tnew CellTableSortingPlace(\"sortingtable\"));\r\n\t}", "@Override\n public JSONObject viewOrderByManager(String username) {\n return in_orderformdao.viewOrderFormByManager(username);\n }", "public void setOrder(Order order){\n this.order = order;\n }", "public void setOrder(String Order) {\n this.Order = Order;\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "private void newOrderbutton(String txt) {\n Button btn = new Button(txt);\n newBtnStyle(btn);\n\n boolean containsbtn = false;\n btn.setId(txt);\n for (Node node : activeOrders.getChildren()) {\n String button = ((Button) node).getText();\n if (txt.equals(button))\n containsbtn = true;\n\n }\n if (!containsbtn) {\n activeOrders.getChildren().add(btn);\n\n changeActive(btn);\n } else {\n //Alert clerc about the amount to pay back.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Nyt bord\");\n alert.setHeaderText(\"Bord: \" + txt + \" eksistere allerede\");\n alert.showAndWait();\n }\n }", "void showOrdersText();", "public String getOrderItemName() {\n return orderItemName;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }", "java.lang.String getOrderByDataItem();", "@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}", "public void listOrder()\r\n {o.listOrder();}", "void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnOrder:\n onBtnOrderClick();\n break;\n default:\n break;\n }\n }", "public void orderAlphabet(){\n market.orderAlphabet();\n car = market.products;\n }", "private SortOrder(String strName) { m_strName = strName; }", "public String getOrder() {\n return this.Order;\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "@Override\n\tpublic void orderCook(String name) {\n\t\t\n\t}", "void getOrders();", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n\tpublic void getSpecificOrders() {\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n String tableName = ((JButton) e.getSource()).getText();\n Order order = new Order(tableName);\n if (e.getSource().getClass().equals(button.getClass())) {\n frame.dispose();\n Tables table = new Tables(tableName, order);\n table.createTableGUI();\n }\n }", "public void changeSortOrder();", "private void setOrderField() \n\t{\n\t\tString size = currentOrder.get(\"size\");\n\t\tString temperature = currentOrder.get(\"drinkTemperature\");\n\t\tString drinkName = currentOrder.get(\"name\");\n\t\t\n\t\torderField.setText(\"Order Status: \" + size + \" \" + temperature + \" \" + drinkName);\n\t}", "private void processSortButton() {\n try {\n dataOutputArea.setText(\"\");\n\n //Stop a user from sorting before a World exists to search\n if(this.world == null) {\n JOptionPane.showMessageDialog(null, \"You must read a data file first!\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return;\n }\n //First if stops a user from attempting to sort any type of thing other than a Ship by any attribute other than Name\n if (!sortCriteriaThingBox.getSelectedItem().toString().toLowerCase().equals(\"ship\") && !sortAttributeBox.getSelectedItem().toString().toLowerCase().equals(\"name\")) {\n JOptionPane.showMessageDialog(null, \"You can only sort Ships by an attribute other than 'Name'!\", \"Error\", JOptionPane.WARNING_MESSAGE);\n //This if will sort whatever Thing is selected by calling sortMyThingByName in the World class\n } else if (sortAttributeBox.getSelectedItem().toString().toLowerCase().equals(\"name\")) {\n String sortThing = sortCriteriaThingBox.getSelectedItem().toString();\n String sortResultByName = world.sortMyThingByName(sortThing);\n dataOutputArea.setText(sortResultByName);\n } else {\n String sortAttribute = sortAttributeBox.getSelectedItem().toString();\n String sortResultByAttribute = world.sortShipByAttribute(sortAttribute);\n dataOutputArea.setText(sortResultByAttribute);\n }\n } catch(Exception e7) {\n JOptionPane.showMessageDialog(null, \"Something went wrong while sorting!\\n\\n\" + e7.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n } //end of catch()\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tnextOrder();\r\n\t\t\t\t\t\t}", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "void showOrderText(int ID) throws OrderNotFoundException;", "@Override\n public void onSortByName() {\n mSorter.sortLocationsByName(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tint row = table.getSelectionModel().getLeadSelectionIndex();\r\n\t\t\t\tif (e.getClickCount() == 1) {\r\n\t\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t \t\tfor(int i = 0; i < productBySearch.size(); i++){\r\n\t\t \t\t\tif(String.valueOf(model.getValueAt(row, id_column)).equals(String.valueOf(productBySearch.get(i).getID()))){\r\n\t\t \t\t\t\ttextField_name_input.setText(productBySearch.get(i).getName());\r\n\t\t \t\t\t\ttextField_description_input.setText(productBySearch.get(i).getDescription());\r\n\t\t \t\t\t\ttextField_quantity_input.setText(String.valueOf(productBySearch.get(i).getQuantity()));\r\n\t\t \t\t\t\tbreak;\r\n\t\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t}\r\n\t\t\t\t}\r\n\t\t\t}", "List<Product> findAllByOrderByNameAsc();", "private String doSortOrder(SlingHttpServletRequest request) {\n RequestParameter sortOnParam = request.getRequestParameter(\"sortOn\");\n RequestParameter sortOrderParam = request.getRequestParameter(\"sortOrder\");\n String sortOn = \"sakai:filename\";\n String sortOrder = \"ascending\";\n if (sortOrderParam != null\n && (sortOrderParam.getString().equals(\"ascending\") || sortOrderParam.getString()\n .equals(\"descending\"))) {\n sortOrder = sortOrderParam.getString();\n }\n if (sortOnParam != null) {\n sortOn = sortOnParam.getString();\n }\n return \" order by @\" + sortOn + \" \" + sortOrder;\n }", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "public void orderById() {\n Collections.sort(customers, new Comparator() {\n\n public int compare(Object o1, Object o2) {\n return ((Customer)o1).getId().compareTo(((Customer)o2).getId());\n }\n });\n\n //avisa que a tabela foi alterada\n fireTableDataChanged();\n }", "@Override\n\tpublic void getOrders() {\n\t\t\n\t}", "public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to view the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of viewing orders************\");\n\t}", "@FXML\n private void sorteerAction(ActionEvent event) {\n \n taOutput.setText(woordenMethods.calcsort(DEFAULT_TEXT));\n //throw new UnsupportedOperationException(\"Not supported yet.\"); \n }", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "private void orderHomePage() {\n setLayout(new FlowLayout(FlowLayout.CENTER));\n\n JButton button = new JButton(\"New Order\");\n add(button);\n\n button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JButton) {\n JButton button1 = (JButton)e.getSource();\n\n if (button1.getText().equals(button.getText())) {\n removeAll(); // Removes everything from the panel\n message();\n orderFood();\n }\n }\n }\n });\n }", "private void orderItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\topenSortDialog(SessionListActivity.this);\n\t\t\t}", "public void orderClicked(View view) {\n Log.d(\"Method\", \"orderClicked()\");\n orderPlace();\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "public void setOrder(Integer order) {\n this.order = order;\n }", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }", "public void setOrder(int order) {\n\t\tthis.order = order;\n\t}", "public void setOrder(Integer order) {\n this.order = order;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMyButtonEditor.this.fireEditingCanceled(); \n\t\t\t\t//查看详情\n\t\t\t\t\n\t\t\t\tif(mdtjf!=null){\n\t\t\t\t\tmdtjf.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\tMyTableModel model = (MyTableModel) jtb.getModel();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> data = model.getTableData();\n\t\t\t\t\t\n\t\t\t\t\tVector<List<String>> newData = new Vector<List<String>>();\n\t\t\t\t\t\n\t\t\t\t\tList<String> list = data.get(jtb.getSelectedRow());\n\t\t\t\t\t\n\t\t\t\t\tString name = list.get(0).split(\"×\")[0];\n\t\t\t\t\t\n\t\t\t\t\tList<String> newList = new ArrayList<String>();\n\t\t\t\t\t\n\t\t\t\t\t//添加菜名\n\t\t\t\t\tnewList.add(name);\n\t\t\t\t\t//添加份数为1份,即查看每份所需材料,Order中已对数据进行处理,故无需管后面几项\n\t\t\t\t\t//Order中处理只根据菜名和份数,即可算出所需的所有东西\n\t\t\t\t\t//这里直接添加菜名+份数1份,利用order可查看1份菜品所需的材料\n\t\t\t\t\tnewList.add(\"1\");\n\t\t\t\t\t\n\t\t\t\t\tnewData.add(newList);\n\t\t\t\t\t\n\t\t\t\t\tMyTableModel newModel = new MyTableModel(jf);\n\t\t\t\t\tnewModel.setTableData(newData);\n\t\t\t\t\t\n\t\t\t\t\tOrder order = new Order(jf, newModel, ALL_DISHES);\n\t\t\t\t\t\n\t\t\t\t\tmdtjf = new MyDetailTableJF(order);\n\t\t\t\t\tmdtjf.setVisible(true);\n\t\t\t\t\t\n\t\t\t}", "public void setOrderby(String Orderby) {\n this.Orderby = Orderby;\n }", "public void setOrder(int value) {\n this.order = value;\n }", "void showOrdersGui();", "String getOrderId();", "List<Inventory> executeOrder(OrderForm orderForm) throws Exception;", "public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}", "public void saveOrder() {\n setVisibility();\n Order order = checkInputFromUser();\n if (order == null){return;}\n if(orderToLoad != null) DBSOperations.remove(connection,orderToLoad);\n DBSOperations.add(connection, order);\n }", "public String getAscName() {\r\n return _ascName;\r\n }", "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "private String displayOrder(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n EditText myNameText = (EditText) findViewById(R.id.enter_name_view);\n myName = myNameText.getText().toString();\n\n String message = \"Name: \" + myName + \"\\n\" +\n \"Add whipped cream? \" + myCheckedStateWhipped + \"\\n\"+\n \"Add chocolate? \" + myCheckedStateChocolate + \"\\n\"+\n \"Quantity: \" + myQuantity + \"\\n\" +\n \"Total: \" + NumberFormat.getCurrencyInstance().format(number) +\"\\n\";\n priceTextView.setText(message);\n\n return message;\n }", "public String sortOrder();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tFragmentManager fm = getActivity().getSupportFragmentManager();\n\t\t\t\tFragment_Order_Create_ListDlg editNameDialog = new Fragment_Order_Create_ListDlg();\n\t\t\t\t// editNameDialog.getDialog().setTitle(\"Nhập số lượng\");\n\t\t\t\teditNameDialog.setHandleData(FragmentOrderCreate_ViewOrConfirm.this);\n\t\t\t\teditNameDialog.show(fm, \"fragment_edit_name\");\n\t\t\t}", "public void submitOrder(View view) {\n\n //For cream CheckBox\n CheckBox checkCream = findViewById(R.id.whipped_cream_check_box);\n boolean hasWhippedCream = checkCream.isChecked();\n //For chocolate CheckBox\n CheckBox checkChocolate = findViewById(R.id.chocolate_check_box);\n boolean hasChocolate = checkChocolate.isChecked();\n\n //For entering your name\n EditText editName = findViewById(R.id.enter_name_edit_text);\n\n int price = calculatePrice(hasWhippedCream, hasChocolate);\n\n String summary = createOrderSummary(price, hasWhippedCream, hasChocolate);\n\n nameChecker(editName, summary);\n }", "@Override\n public JSONObject viewOrderByDirector() {\n return in_orderformdao.viewOrderFormByDirector();\n }", "public void ordersToDoControl()\n\t{\n\t\tviewOrdersToDo = new OrdersToDoView();\n\t\ttry\n\t\t{\n\t\t\tArrayList<BookInformation> allBooks = adminModel.loadOrdersToDo();\n\t\t\tviewOrdersToDo.showTable(allBooks);\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tviewOrdersToDo.showMe();\n\t \n\t\tviewOrdersToDo.setMainMenuActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tAdminController con = new AdminController(adminModel);\n\t\t\t\tcon.adminMainMenuControl();\n\t\t\t\tviewOrdersToDo.closeFrame();\t\n\n\t\t\t}\n\t\t});\n\t\tviewOrdersToDo.setMakeOrderActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tArrayList<Integer> ordersToDo = viewOrdersToDo.getSelectedOrders();\n\t\t\t\t\tfor(Integer id : ordersToDo)\n\t\t\t\t\t{\n\t\t\t\t\t\tadminModel.confirmOrder(id);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "void all_Data_retrieve_Price_Asc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Price asc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t}", "public void setSortOrder(String sortOrder);", "@Override\n public void onClick(View v) {\n orderField = \"orderTime\";\n btn_single_time.setTextColor(getResources().getColor(R.color.colorff6c02));\n btn_array_time.setTextColor(getResources().getColor(R.color.color000000));\n submitInitOrRefreshOrSearch();\n }", "void newOrder();", "public void setOrder(int o) throws SystemException {\n group.setDisplayItemOrder(o);\n ModelInputGroupLocalServiceUtil.updateModelInputGroup(group);\n }", "public void clickOrders() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersLnk\"), \"Orders\"); \n\t\tThread.sleep(1000);\n\t}", "@Override\n public void toggleSortOrder(int column) {\n if (column == TablesTableModel.COLUMN_CREATED || column == TablesTableModel.COLUMN_SEATS) {\n List<? extends SortKey> sortKeys = getSortKeys();\n if (sortKeys.size() == 2) {\n // clear sort on second click\n setSortKeys(null);\n } else {\n // setup sort on first click\n List<SortKey> list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n setSortKeys(list);\n }\n } else {\n super.toggleSortOrder(column);\n }\n }", "int getOrder(){\r\n\t\t\treturn this.order;\r\n\t\t}", "public void visit(OrderBy obj) {\n for (int i = 0; i < obj.getVariableCount(); i++) {\n SingleElementSymbol element = obj.getVariable(i);\n String name = visitor.namingContext.getElementName(element, false);\n if (name != null) {\n \t boolean needsAlias = true;\n \t \n \t Expression expr = SymbolMap.getExpression(element);\n \t \n \t if (!(expr instanceof SingleElementSymbol)) {\n \t expr = new ExpressionSymbol(element.getShortName(), expr);\n \t } else if (expr instanceof ElementSymbol) {\n \t needsAlias = needsAlias(name, (ElementSymbol)expr);\n \t } \n \t \n \t if (needsAlias) {\n \t element = new AliasSymbol(element.getShortName(), (SingleElementSymbol)expr);\n \t obj.getOrderByItems().get(i).setSymbol(element);\n \t }\n \t element.setOutputName(name);\n }\n \n visitNode(element);\n \n if (name != null && element instanceof ElementSymbol) {\n \t\telement.setOutputName(SingleElementSymbol.getShortName(element.getOutputName()));\n \t}\n }\n }", "public String gatherOrder(View view) {\n\n // get user input\n EditText userInputNameView = (EditText) findViewById(R.id.user_input);\n String userInputName = userInputNameView.getText().toString();\n\n // check if whipped cream is selected\n CheckBox extraCheese = (CheckBox) findViewById(R.id.extra_cheese_checked);\n boolean hasExtraCheese = extraCheese.isChecked();\n\n // check if pepperoni is selected\n CheckBox pepperoni = (CheckBox) findViewById(R.id.pepperoni_checked);\n boolean hasPepperoni = pepperoni.isChecked();\n\n // check if pepperoni is selected\n CheckBox hawaiian = (CheckBox) findViewById(R.id.hawaiian_checked);\n boolean hasHawaiin = hawaiian.isChecked();\n\n Spinner crust = (Spinner) findViewById(R.id.crust_spinner);\n String crustType = crust.getSelectedItem().toString();\n\n Spinner size = (Spinner) findViewById(R.id.size_spinner);\n String sizeVal = size.getSelectedItem().toString();\n\n // calculate and store the total price\n double totalPrice = calculatePrice(hasExtraCheese, hasPepperoni, hasHawaiin, sizeVal);\n\n // create and store the order summary\n String orderSummaryMessage = createOrderSummary(userInputName, hasExtraCheese, hasPepperoni,\n hasHawaiin, crustType, sizeVal, totalPrice);\n\n // Write the relevant code for making the buttons work(i.e implement the implicit and explicit intents\n return orderSummaryMessage;\n }", "public void showOrderGui(int ID) throws OrderNotFoundException;", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtName = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n lstProducts = new javax.swing.JList<>();\n jLabel2 = new javax.swing.JLabel();\n btnSaveOrder = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Name\");\n\n lstProducts.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(lstProducts);\n\n jLabel2.setText(\"Choose products\");\n\n btnSaveOrder.setText(\"Save\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 323, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnSaveOrder))\n .addContainerGap(119, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 178, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnSaveOrder)\n .addContainerGap(44, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void setAscName(String ascName) {\r\n this._ascName = ascName;\r\n }", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setName(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET name='\"+data.getName()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "public void setOrder(Integer order) {\n\t\tthis.order = order;\n\t}" ]
[ "0.75501406", "0.6553838", "0.6548652", "0.64094275", "0.63370854", "0.6171022", "0.61540127", "0.6019339", "0.6019007", "0.5895409", "0.5886849", "0.5882019", "0.587477", "0.5869047", "0.58656687", "0.58487564", "0.5846268", "0.5823841", "0.5819026", "0.58150196", "0.5801906", "0.5788756", "0.57661736", "0.5752696", "0.5741668", "0.5692851", "0.56805", "0.56680906", "0.56680906", "0.56644976", "0.56579053", "0.56421214", "0.564099", "0.56381726", "0.5633951", "0.5623738", "0.56172526", "0.5616459", "0.5612137", "0.5605188", "0.5591571", "0.5591571", "0.55823433", "0.5578414", "0.5575051", "0.5550822", "0.5546818", "0.55373555", "0.55333287", "0.5533304", "0.552322", "0.55220777", "0.5516131", "0.5513121", "0.551144", "0.5501374", "0.54825103", "0.54804915", "0.54725134", "0.5469043", "0.5467056", "0.5465784", "0.5463477", "0.54591453", "0.54591453", "0.54577285", "0.54573", "0.54373336", "0.54330784", "0.54017496", "0.5400942", "0.5384898", "0.537981", "0.53771204", "0.5373109", "0.5367599", "0.53666925", "0.53661853", "0.5360211", "0.53546846", "0.5353579", "0.5350376", "0.53497493", "0.5348778", "0.5346732", "0.53432256", "0.5338887", "0.5337081", "0.5336357", "0.53344077", "0.53230995", "0.5321764", "0.5315604", "0.53153855", "0.530301", "0.53011495", "0.5299906", "0.52920556", "0.5277269", "0.5273282" ]
0.5981322
9
handles the Order by Date button
public void onClickOrderDate(View view){ Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity intent.putExtra(EXTRA_MESSAGE, "Date"); //add the "Date" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList startActivity(intent); //start the new activity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void updateDateOrder(ActionEvent event) {\n\n if (sortOrder == Order.DATE_ASC) {\n\n sortOrder = Order.DATE_DESC;\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.DATE_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "void setOrderwithdate() {\r\n\r\n\t\tOrderAbyDate oad = new OrderAbyDate();\r\n\r\n\t\tMap<Integer, Map<Integer, Integer>> data = oad.getOrderByDate();\r\n\r\n\t\tjava.util.List<Integer> ls = new ArrayList<>(data.keySet());\r\n\r\n\t\tfor (int i = 0; i < ls.size(); i++) {\r\n\r\n\t\t\tdropyear1.getItems().add(\"\" + ls.get(i));\r\n\r\n\t\t}\r\n\r\n\t\tif (ls.size() > 0) {\r\n\r\n\t\t\tdropyear1.getSelectionModel().selectedItemProperty()\r\n\t\t\t\t\t.addListener(new ChangeListener<String>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\t\tObservableValue<? extends String> observable,\r\n\t\t\t\t\t\t\t\tString oldValue, String newValue) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t\t\t\tsetBarchartorder(\r\n\t\t\t\t\t\t\t\t\tdata.get(Integer.parseInt(newValue)),\r\n\t\t\t\t\t\t\t\t\tnewValue);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\tdropyear1.getSelectionModel().select(0);\r\n\r\n\t\t}\r\n\r\n\t}", "public void sortByDate(){\n output.setText(manager.display(true, \"date\"));\n }", "public OrdersByOrderDate() {\n this.title = \"*** View Orders by order date ***\";\n }", "public void setOrderDate(Date orderDate) {\n this.orderDate = orderDate;\n }", "private void gButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gButtonActionPerformed\n // TODO add your handling code here:\n try {\n java.sql.Date fDate = new java.sql.Date(new SimpleDateFormat(\"M-d-yy\").parse(fromDate.getText()).getTime()); \n java.sql.Date tDate = new java.sql.Date(new SimpleDateFormat(\"M-d-yy\").parse(toDate.getText()).getTime()); \n DefaultTableModel tData = or.getOrderData(fDate,tDate);\n oTable.setModel(tData);\n setSales(tData);\n }\n catch(Exception ex) {\n System.out.println(ex);\n \n }\n }", "private void btnSortArrivalDateActionPerformed(java.awt.event.ActionEvent evt) {\n Arbol miArbol = new Arbol();\n root = null;\n txaMostrar.setText(\"\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date llegada = null;\n \n for (int i = 0; i < princ.getsArreglo().length; i++) {\n System.out.println(\"i = \" + i);\n if (princ.getsArreglo()[i][6] != null) {\n try {\n llegada = sdf.parse(princ.getsArreglo()[i][6] + \"03-00-00\");\n } catch (ParseException ex) {\n Logger.getLogger(FrmDetalles.class.getName()).log(Level.SEVERE, null, ex);\n }\n agregarNodo(new NodoArbol(llegada));\n }\n }\n imprimeInOrder();\n \n \n }", "java.lang.String getOrderDate();", "public void setOrderDate(String orderDate) {\r\n\t\tthis.orderDate = orderDate;\r\n\t}", "public void getOrdersByDate() throws FlooringDaoException {\n boolean validDate = true;\n do {\n try {\n String date = view.getOrdersDate();\n List<Order> ordersByDate = new ArrayList<>();\n ordersByDate = service.getOrdersByDate(date);\n validDate = true;\n view.displayOrdersByDate(ordersByDate);\n } catch (FlooringDaoException ex) {\n view.displayError(\"Orders file not found for given date. Please make sure your date is entered EXACTLY as YYYY-MM-DD or try a different date.\");\n validDate = false;\n }\n } while (!validDate);\n }", "public Date getOrderDate() {\n return orderDate;\n }", "public Date getOrderDate() {\n return orderDate;\n }", "public void setDateOrder(DateOrder dateOrder)\r\n {\r\n m_dateOrder = dateOrder;\r\n }", "public List<Order> getOrdersByDate(Date date);", "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "@Override\n public void onClick(View v) {\n orderField = \"orderTime\";\n btn_single_time.setTextColor(getResources().getColor(R.color.colorff6c02));\n btn_array_time.setTextColor(getResources().getColor(R.color.color000000));\n submitInitOrRefreshOrSearch();\n }", "@Override\n public void onClick(Date date) {\n Event_dialog(date);\n }", "@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "String getOrderDate(){\n\t\treturn this.orderDate;\n\t}", "public String getOrderDate() {\r\n\t\treturn orderDate;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n dcStartDate = new com.toedter.calendar.JDateChooser();\n dcEndDate = new com.toedter.calendar.JDateChooser();\n btnShowOrder = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtOrderDetails = new javax.swing.JTable();\n btnBack = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 102, 102));\n\n jLabel1.setBackground(new java.awt.Color(0, 102, 102));\n jLabel1.setFont(new java.awt.Font(\"Papyrus\", 1, 26)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"DATE WISE ORDERS DETAILS PANEL\");\n\n jPanel2.setBackground(new java.awt.Color(0, 102, 102));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Enter Dates\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Sylfaen\", 1, 24), new java.awt.Color(255, 255, 255))); // NOI18N\n jPanel2.setForeground(new java.awt.Color(255, 255, 255));\n jPanel2.setEnabled(false);\n\n jLabel2.setBackground(new java.awt.Color(0, 102, 102));\n jLabel2.setFont(new java.awt.Font(\"Sitka Small\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Start Date\");\n\n jLabel3.setBackground(new java.awt.Color(0, 102, 102));\n jLabel3.setFont(new java.awt.Font(\"Sitka Small\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"End Date\");\n\n btnShowOrder.setBackground(new java.awt.Color(0, 204, 153));\n btnShowOrder.setFont(new java.awt.Font(\"Imprint MT Shadow\", 1, 24)); // NOI18N\n btnShowOrder.setText(\"Show Order\");\n btnShowOrder.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 150, 150)));\n btnShowOrder.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnShowOrderActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(dcStartDate, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dcEndDate, javax.swing.GroupLayout.PREFERRED_SIZE, 186, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnShowOrder, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(191, 191, 191))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(dcStartDate, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)\n .addComponent(dcEndDate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addComponent(btnShowOrder, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jPanel3.setBackground(new java.awt.Color(0, 102, 102));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"All Orders Details\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Imprint MT Shadow\", 1, 24), new java.awt.Color(255, 255, 255))); // NOI18N\n\n jtOrderDetails.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Order Id\", \"Order Date\", \"Sub Total\", \"Discount\", \"GST\", \"GST Amount\", \"Grand Total\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(jtOrderDetails);\n\n btnBack.setFont(new java.awt.Font(\"Imprint MT Shadow\", 1, 24)); // NOI18N\n btnBack.setText(\"Back\");\n btnBack.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(204, 51, 0), 1, true));\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(274, 274, 274)\n .addComponent(btnBack, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(331, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 444, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnBack)\n .addGap(0, 13, Short.MAX_VALUE))\n );\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Logout\");\n jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel4MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(230, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(30, 30, 30))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 659, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4)\n .addContainerGap())))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addGap(30, 30, 30)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public String getOrderDate() {\n\t\treturn orderDate;\n\t}", "@Override\n public void onClick(View v) {\n \t\tString text = textField.getText().toString();\n \t\t//String priority = priorityField.getText().toString();\n\t\t\t\tCalendar newDate = Calendar.getInstance();\n\t\t\t\tnewDate.set(datePicker.getYear(),\n\t\t\t\t\tdatePicker.getMonth(), datePicker.getDayOfMonth());\n \t\tlistener.onAddDialogDone(text, newDate);\n \t\tgetDialog().dismiss();\n }", "private void dateFieldDtActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }", "public Date getDate() {\n return order.getDate();\n }", "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}", "private void dateEntryViewActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void setDateOrdered (Timestamp DateOrdered);", "@Override\n public void onSortByDate() {\n mSorter.sortLocationsByDate(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "public List<Order> displayOrders(LocalDate date) throws FlooringMasteryDaoException {\n\n List<Order> orders = dao.getOrdersByDate(date);\n return orders;\n\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowDialog(SET_DATE_DIALOG);\n\n\t\t\t}", "boolean hasOrderDate();", "public void dailyOrders(){\n\t\tint i;\n\t\tint listSize = orderLog.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Daily Customer Orders: \";\n\t\tfor(i = lastOrderOfThePreviousDay; i < listSize; i++){\n\t\t\toutputText = outputText + \"\\n\" + orderLog.get(i).printSimplify();\n\t\t}\n\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(\"balance\".equals(e.getActionCommand())){\n\t\t\tsortType = 1;\n\t\t}else if(\"sold\".equals(e.getActionCommand())){\n\t\t\tsortType = 2;\n\t\t}else if(\"spoiled\".equals(e.getActionCommand())){\n\t\t\tsortType = 3;\n\t\t}\n\t\trefresh();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString resultString = sqlHelper.searchDate(company_nameString\n\t\t\t\t\t\t, Long.valueOf(numberEditText.getText().toString()));\n\t\t\t\n\t\t\t\tToast.makeText(getApplicationContext(), \"检定日期为\" + resultString, Toast.LENGTH_LONG).show();\n\t\t\t}", "public Timestamp getDateOrdered();", "public void actionPerformed(ActionEvent event)\n {\n UnsortedDate212List unsorted = Project4.getUnsorted();\n TreeMap<Date212,Integer> sortedMap = Project4.getSortedMap();\n String menuName = event.getActionCommand();\n if (menuName.equals(\"Insert\")) {\n while(true) {\n inputDate = JOptionPane.showInputDialog(\"Please enter a date in format:YYYYMMDD. If you are tired type the word DONE\");\n if(inputDate.equalsIgnoreCase(\"done\"))\n break;\n updateLists(unsorted, sortedMap, inputDate);\n }\n DateGUI gui = new DateGUI(unsorted,sortedMap);\n gui.displayDates();\n }\n\n }", "public void setOpdate(String opdate) {\n this.opdate = opdate;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "void onClickDateRange();", "public DateOrder getDateOrder()\r\n {\r\n return (m_dateOrder);\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n month=month+1;\n String currentInfo=\"\";\n Cursor cursor=myDb.getRow(mId1);// finding selected row item to store the selected date\n if(cursor.moveToFirst()){\n do{\n currentInfo=cursor.getString(cursor.getColumnIndex(myDb.KEY_DATE));\n\n }while (cursor.moveToNext());\n cursor.close();\n }\n currentInfo =year+\"-\"+month+\"-\"+day;\n //Storing the date at selected row\n myDb.updateRow(mId1, currentInfo);\n\n populateListViewFromDB();\n }", "public void bRevDetailsActionPerformed() {\n try {\n Date today = new Date();\n Calendar cal = new GregorianCalendar();\n cal.setTime(today);\n cal.add(Calendar.DAY_OF_MONTH, +30);\n Date today30 = cal.getTime();\n String day30 = formatter.format(today30.getTime());\n ResultSet rs = DBControl.getResultFromLocalDB(\"SELECT * FROM fas_details WHERE '\" + day30 + \"' > veh_rev_exp AND veh_rev_exp != '\" + nul + \"' ORDER BY veh_rev_exp\");\n DefaultTableModel dtm = (DefaultTableModel) tblRevenue.getModel();\n dtm.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(\"equipment_no\"));\n v.add(rs.getString(\"registration_no\"));\n v.add(rs.getString(\"veh_rev_no\"));\n v.add(rs.getString(\"veh_rev_issue\"));\n v.add(rs.getString(\"veh_rev_exp\"));\n dtm.addRow(v);\n }\n } catch (Exception ex) {\n Logger.getLogger(fas_reports.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "void all_Data_retrieve_Days_asc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Days_on_Market asc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(CSVActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(CSVActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public Builder setOrderDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n orderDate_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t\tif (e.getComponent() == jLTill)\n\t\t{\n\t\t\tArrayList<Order> tempOL = globalFrame.getTill().getOrders();\n\t\t\tglobalFrame.setOrder(tempOL.get(jLTill.getSelectedIndex()));\n\t\t\tglobalFrame.updateOrderItemList();\n\t\t\tglobalFrame.updateOrderList();\n\t\t}\n\t}", "@Test(priority = 7)\n\tpublic void validateSortingByDate() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(0, locator);\n\t\theroImg.validateDate(1, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(1, locator);\n\t\theroImg.validateDate(2, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "public Date getSelectedDate();", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(DATE_DIALOG_ID);\r\n\t\t\t}", "@Override\n public void onReceiveDateFromDialog(Date date) {\n // Attempt to mark currently opened event as done\n databaseHandler.markEventDone(selectedEvent, date);\n prepareData();\n }", "@Override\r\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tdatejoin = txt_dateJoin.getText();\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void setDateOp(Date dateOp) {\n this.dateOp = dateOp;\n }", "public void updateDate(){\n\t duedate_priority++;\n\t}", "public void saveDate(View view) {\n// create an object of order\n Order order = new Order(name, Integer.parseInt(price));\n dbHandler.addOrder(order);\n Toast.makeText(getApplicationContext(), \"Hooray! Data Saved in DB\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setDateButtonActionPerformed(java.awt.event.ActionEvent evt) {\n Date newDate = calendario.getDate();\n if(newDate != null) {\n java.sql.Date date = new java.sql.Date(newDate.getTime());\n control.setDate(date);\n control.crearAlerta(\"Informacion\", \"La fecha \" + date + \" ha sido agregada\" , this);\n } else {\n control.crearAlerta(\"Advertencia\", \"Debe escoger una fecha\", this);\n }\n }", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, start_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public JSONObject viewOrderByDirector() {\n return in_orderformdao.viewOrderFormByDirector();\n }", "public void ordersToDoControl()\n\t{\n\t\tviewOrdersToDo = new OrdersToDoView();\n\t\ttry\n\t\t{\n\t\t\tArrayList<BookInformation> allBooks = adminModel.loadOrdersToDo();\n\t\t\tviewOrdersToDo.showTable(allBooks);\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tviewOrdersToDo.showMe();\n\t \n\t\tviewOrdersToDo.setMainMenuActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tAdminController con = new AdminController(adminModel);\n\t\t\t\tcon.adminMainMenuControl();\n\t\t\t\tviewOrdersToDo.closeFrame();\t\n\n\t\t\t}\n\t\t});\n\t\tviewOrdersToDo.setMakeOrderActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tArrayList<Integer> ordersToDo = viewOrdersToDo.getSelectedOrders();\n\t\t\t\t\tfor(Integer id : ordersToDo)\n\t\t\t\t\t{\n\t\t\t\t\t\tadminModel.confirmOrder(id);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(cbbChooseTime.getSelectedIndex() == 0 || dateChooser.getDate() == null) {\n\t\t\t\tJOptionPane.showMessageDialog(getPanel(), \"Hãy đảm bảo đã chọn đủ ngày và giờ.\\n\");\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tfor(int i = 0 ; i < 8 ; i ++) {// reset tất cả các màu các nút sẽ là màu cam\n\t\t\t\t\tif(listButtonYard.get(i).getStatus() != 2) {\n\t\t\t\t\t\tlistButtonYard.get(i).getButton().setBackground(Color.ORANGE);\n\t\t\t\t\t\tlistButtonYard.get(i).setStatus(0);// đánh dấu là chưa đặt\n\t\t\t\t\t\tlistButtonYard.get(i).getButton().setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlistOrder = OrderService.getInstance().getOrderByDate_Time(dateChooser.getDate(), ((Time)cbbChooseTime.getSelectedItem()).getIdTime());//lấy danh sách Order theo ngày và time\n\t\t\t\tfor(int i = 0 ; i < listOrder.size() ; i++) {\n\t\t\t\t\tint id = listOrder.get(i).getIdYard();//lấy id Sân đã được đặt\n\t\t\t\t\tfor(Button_Yard item : listButtonYard) {\n\t\t\t\t\t\tif(item.getIdYard() == id) {\n\t\t\t\t\t\t\titem.getButton().setBackground(new Color(50, 205, 50));// set Color cho sân đã được đặt là màu xanh lá cây\n\t\t\t\t\t\t\titem.setStatus(1);// đánh dấu sân đã được đặt\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void sortByTime(View view){\n // Only allow client to book a itinerary\n if (!userInfo[0].substring(0,5).equals(\"ADMIN\")) {\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(true);\n }\n EditText dateEditText = (EditText) findViewById(R.id.dateEditText);\n EditText originEditText = (EditText) findViewById(R.id.originEditText);\n EditText destinationEditText = (EditText) findViewById(R.id.destinationEditText);\n // Take search input from the user\n String date = dateEditText.getText().toString();\n String origin = originEditText.getText().toString();\n String destination = destinationEditText.getText().toString();\n\n try {\n // Display stored itineraries to the user\n ArrayList<Itinerary> itineraries;\n itineraries = system.getItineraries(date, origin, destination);\n itineraries = system.sortByTime(itineraries);\n\n String displayString = \"\";\n int counter = 0;\n for (Itinerary itin : itineraries) {\n displayString += String.valueOf(counter) + \": \" + itin.toString();\n counter++;\n }\n\n selectionItinerary = itineraries;\n\n TextView displayText = (TextView) findViewById(R.id.displayText);\n if (displayString.equals(\"\")){\n displayString = \"No itineraries found\";\n }\n displayText.setText(displayString);\n }catch (Exception e){\n // Let user know if no itineraries were found based on input\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"No itineraries found\");\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(false);\n }\n }", "@OnClick(R.id.search_estate_ed_date_entry_1)\n public void onClickEntryDate1(View view) {\n mEntryDatePickerDialog1.show();\n }", "@Override\n public List<Order> getAllOrders(LocalDate date) throws PersistenceException{\n return new ArrayList<Order>(orders.values());\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddTripActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\r\n\tpublic void onButtonClicked() {\n\t\tclientFactory.getPlaceController().goTo(\r\n\t\t\t\tnew CellTableSortingPlace(\"sortingtable\"));\r\n\t}", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "@Override\n public void onClick(View v) {\n int year = dpStartDate.getYear();\n int month = dpStartDate.getMonth();\n int day = dpStartDate.getDayOfMonth();\n String startDate = Input.formatDateUserInput (\"dateYearFirst\", day, month, year,\n 0,0);\n year = dpEndDate.getYear();\n month = dpEndDate.getMonth();\n day = dpEndDate.getDayOfMonth();\n String endDate = Input.formatDateUserInput (\"dateYearFirst\", day, month, year,\n 0,0);\n\n ReportCalorieBalancePerPeriodAsyncTask reportCaloriePerPeriodAsyncTask = new ReportCalorieBalancePerPeriodAsyncTask();\n reportCaloriePerPeriodAsyncTask.execute(startDate, endDate);\n }", "private void updateDateButtonText() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT); \n String dateForButton = dateFormat.format(mCalendar.getTime()); \n mDateButton.setText(dateForButton);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\n\t\t\tint m = cal.get(Calendar.MONTH);\n\t\t\tint d = cal.get(Calendar.DAY_OF_MONTH);\n\t\t\tint y = cal.get(Calendar.YEAR);\n\t\t\t\n\t\t\n\t\t\t\n\t\t\tDatePickerDialog dpd = new DatePickerDialog(MainActivity.this, dateListener, y, m, d);\n\t\t\tdpd.setButton(DatePickerDialog.BUTTON_POSITIVE, \"Search\", dpd);\n\t\t\tdpd.show();\n\t\t\t\t//new DatePickerDialog(MainActivity.this, dateListener, y, m, d).show();\n\t\t\t}", "private void clickAndCheckDateButton ( final String viewDate ) {\n final List<WebElement> radioList = driver.findElements( By.name( \"date\" ) );\n\n for ( final WebElement element : radioList ) {\n final String v = element.getAttribute( \"value\" );\n final ZonedDateTime datetimeLabor = ZonedDateTime.parse( v );\n String g = \"\";\n if ( datetimeLabor.getMonthValue() < 10 ) {\n g += \"0\" + datetimeLabor.getMonthValue() + \"/\";\n }\n else {\n g += datetimeLabor.getMonthValue() + \"/\";\n }\n if ( datetimeLabor.getDayOfMonth() < 10 ) {\n g += \"0\" + datetimeLabor.getDayOfMonth() + \"/\";\n }\n else {\n g += datetimeLabor.getDayOfMonth() + \"/\";\n }\n g += datetimeLabor.getYear();\n if ( g.equals( viewDate ) ) {\n element.click();\n // assertTextPresent( \"Labor and Delivery Reports for: \" +\n // viewDate );\n return;\n }\n }\n\n fail( \"The date isn't in the radio list.\" );\n }", "private void buttonEventClicked(MouseEvent evt) {\n if (!frameSearch.getTpDataBase().getTbBaseDate().getSelectionModel().isSelectionEmpty()) {\n String aux = frameSearch.getTpDataBase().getTbBaseDate().getModel().getValueAt(frameSearch.getTpDataBase().getTbBaseDate().getSelectedRow(), 0).toString();\n int aux2 = Integer.parseInt(aux);\n frameSearch.getPnSearch().getTxLocation().setText(cm.get(aux2).getPath());\n frameSearch.getPnSearch().getTxtOwner().setText(cm.get(aux2).getOwner());\n frameSearch.getPnSearch().getTxSearch().setText(cm.get(aux2).getFileName());\n frameSearch.getPnSearch().getChFolder().setSelected(cm.get(aux2).isFolder());\n if (cm.get(aux2).isKeySensitive()) {\n frameSearch.getPnSearch().getChKeySensitive().setSelected(false);\n } else {\n frameSearch.getPnSearch().getChKeySensitive().setSelected(true);\n }\n\n frameSearch.getPnSearch().getChFileHidden().setSelected(cm.get(aux2).isHidden());\n frameSearch.getPnSearch().getChReadOnly().setSelected(cm.get(aux2).isReadOnly());\n frameSearch.getPnSearch().getChContent().setSelected(cm.get(aux2).isCheckContent());\n frameSearch.getPnSearch().getChOwner().setSelected(cm.get(aux2).isCheckOwner());\n frameSearch.getPnSearch().getTxtContent().setText(cm.get(aux2).getContent());\n this.setExtencion(cm.get(aux2).getExtencionAux());\n frameSearch.getPnSearch().getChSearchText().setSelected(cm.get(aux2).isExtensionEnable());\n frameSearch.getPnAdvanced().getChFechas().setSelected(cm.get(aux2).isCheckMod());\n frameSearch.getPnAdvanced().getChCreation().setSelected(cm.get(aux2).isCheckCre());\n frameSearch.getPnAdvanced().getChAccess().setSelected(cm.get(aux2).isChecAccess());\n this.setSelectedDates(cm.get(aux2).getIniModFile(), cm.get(aux2).getFinModFile(), cm.get(aux2).getIniAccessFile(), cm.get(aux2).getFinAccessFile(),\n cm.get(aux2).getIniCreationFile(), cm.get(aux2).getFinCreationFile());\n frameSearch.getPnAdvanced().getJcbSize().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getJcbSize(), cm.get(aux2).getTypeSize()));\n frameSearch.getPnAdvanced().getCbSize().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getCbSize(), cm.get(aux2).getSignSize()));\n frameSearch.getPnAdvanced().getTxSize().setText(String.valueOf(cm.get(aux2).getSize()));\n frameSearch.getPnAdvanced().getChsSize().setSelected(cm.get(aux2).isCheckSize());\n frameSearch.getPnAdvanced().getChAttributes().setSelected(cm.get(aux2).isCheckMulti());\n frameSearch.getPnAdvanced().getChTerm().setSelected(cm.get(aux2).isCheckDuration());\n frameSearch.getPnAdvanced().getJcbSizeDuration().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getJcbSizeDuration(), cm.get(aux2).getOperator()));\n frameSearch.getPnAdvanced().getCbTerm().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getCbTerm(), cm.get(aux2).getScale()));\n frameSearch.getPnAdvanced().getTxTerm().setText(String.valueOf(cm.get(aux2).getCantMulti()));\n this.setExtencionMulti(cm.get(aux2).getFormatsMulti());\n frameSearch.getPnAdvanced().getCbFrameRate().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getCbFrameRate(), cm.get(aux2).getFrameRate()));\n frameSearch.getPnAdvanced().getCbVideoCode().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getCbVideoCode(), cm.get(aux2).getVideoCode()));\n frameSearch.getPnAdvanced().getCbResolution().setSelectedIndex(this.setSelectedValue(frameSearch.getPnAdvanced().getCbResolution(), cm.get(aux2).getResolution()));\n frameSearch.getTpDataBase().getTxBdata().setText(cm.get(aux2).getNameOwnwe());\n }\n }", "@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setExpiry_date(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET expiry_date='\"+data.getExpiry_date()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n int mYear = year;\n int mMonth = monthOfYear;\n int mDay = dayOfMonth;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n String formatedDate = sdf.format(new Date(year-1900, mMonth, mDay));\n\n SimpleDateFormat sdf2 = new SimpleDateFormat(\"yyyyMMdd\");\n formatedDateMYSQL = sdf2.format(new Date(year-1900, mMonth, mDay));\n\n buttonDate.setText(\"\"+formatedDate+\"\");\n buttonDate.setTag(formatedDateMYSQL);\n\n mAuthTask = new getTaskDetail(useremail,\"\");\n\n mAuthTask.execute((Void) null);\n\n }", "@Override\n public void date_()\n {\n }", "@Override\n\tpublic List<mOrders> getListOrderByDueDate(String DueDate) {\n\t\ttry{\n\t\t\tbegin();\n\t\t\tCriteria criteria = getSession().createCriteria(mOrders.class);\n\t\t\tcriteria.add(Restrictions.eq(\"O_DueDate\", DueDate));\n\t\t\t\n\t\t\tCriterion status1 = Restrictions.eq(\"O_Status_Code\", Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED);\n\t\t\tCriterion status2 = Restrictions.eq(\"O_Status_Code\", Constants.ORDER_STATUS_NOT_IN_ROUTE);\n\t\t\t\n\t\t\tLogicalExpression orExp = Restrictions.or(status1, status2);\n\t\t\t\n\t\t\tcriteria.add(orExp);\n\t\t\t\n\t\t\tList<mOrders> o= criteria.list();\n\t\t\tcommit();\n//\t\t\tfor(int i=0; i<o.size(); i++){\n//\t\t\t\tSystem.out.println(name()+\"::getListOrderByDueDate--\"+o.get(i).toString());\n//\t\t\t}\n\t\t\treturn o;\n\t\t} catch (HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally {\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, end_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public boolean hasOrderByDay() {\n return orderByDay_ != null;\n }", "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tnextOrder();\r\n\t\t\t\t\t\t}", "private void updateComponents() {\n try {\n java.sql.Date cDate = new java.sql.Date(System.currentTimeMillis());\n java.sql.Date sDate = Date.valueOf(\"1971-01-01\");\n DefaultTableModel tData = or.getOrderData(sDate,cDate);\n oTable.setModel(tData);\n setSales(tData);\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "public void doChangeItemDueDate(ActionEvent actionEvent) {\n // grab the item\n // setDueDate(item);\n }", "@Override\n public List<Order> getAllOrders(String date) throws FlooringMasteryPersistenceException {\n \n Map<Integer, Order> hm = ordersByDate.get(date); // get the hashmap by the date\n\n return new ArrayList<>(hm.values()); // get and return the list of orders from the <Integer, Order> hashmap\n \n }", "@FXML\n private void sorteerAction(ActionEvent event) {\n \n taOutput.setText(woordenMethods.calcsort(DEFAULT_TEXT));\n //throw new UnsupportedOperationException(\"Not supported yet.\"); \n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddVehicleActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "public void setOpDate (java.util.Date opDate) {\r\n\t\tthis.opDate = opDate;\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\r\n\t\t\t\tif (select_date.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Order Date\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse if (select_time.equals(\"\")) {\r\n\r\n\t\t\t\t\tToast.makeText(getActivity(), \"Please Enter Order time\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tdb = new DBAdapter(getActivity());\r\n\t\t\t\t\tdb.open();\r\n\r\n\t\t\t\t\tmenuItems = db.getRecords();\r\n\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tJSONArray jobService = new JSONArray();\r\n\r\n\t\t\t\t\t\tString service[] = new String[menuItems.size()];\r\n\t\t\t\t\t\tString present_flag = \"0\";\r\n\t\t\t\t\t\tint j = 0;\r\n\r\n\t\t\t\t\t\tfor (int val = 0; val < menuItems.size(); val++) {\r\n\r\n\t\t\t\t\t\t\tservice[val] = \" \";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < menuItems.size(); i++) {\r\n\r\n\t\t\t\t\t\t\tJSONObject orderjsonObject = new JSONObject();\r\n\t\t\t\t\t\t\torderjsonObject.put(\"service_id\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_SERVICE_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_1\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR1_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_1\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR1));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_2\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR2_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_2\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR2));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_3\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR3_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_3\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR3));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"var_4\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_VAR4_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"customvar_4\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CUST_VAR4));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"activity_id\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_ACTIVITY_ID));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"activity_count\", menuItems\r\n\t\t\t\t\t\t\t\t\t.get(i).get(KEY_ACTIVITY_COUNT));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"price\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_SERVICE_PRICE));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"status\",\r\n\t\t\t\t\t\t\t\t\tmenuItems.get(i).get(KEY_SERVICE_STATUS));\r\n\t\t\t\t\t\t\torderjsonObject.put(\"couponCode\", menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_COUPON_CODE));\r\n\r\n\t\t\t\t\t\t\tjobService.put(orderjsonObject);\r\n\r\n\t\t\t\t\t\t\tfor (int k = 0; k <= j; k++) {\r\n\r\n\t\t\t\t\t\t\t\tif (service[k].equals(menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_ID))) {\r\n\r\n\t\t\t\t\t\t\t\t\tpresent_flag = \"1\";\r\n\t\t\t\t\t\t\t\t\tk = j + 1;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (present_flag.equals(\"0\")) {\r\n\r\n\t\t\t\t\t\t\t\tservice[j] = menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_ID);\r\n\t\t\t\t\t\t\t\tservice_details.append(menuItems.get(i).get(\r\n\t\t\t\t\t\t\t\t\t\tKEY_SERVICE_NAME)\r\n\t\t\t\t\t\t\t\t\t\t+ \",\");\r\n\t\t\t\t\t\t\t\tj++;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tservice_details.replace(service_details.length() - 1,\r\n\t\t\t\t\t\t\t\tservice_details.length(), \"\");\r\n\r\n\t\t\t\t\t\tJSONObject userjsonObject = new JSONObject();\r\n\t\t\t\t\t\tuserjsonObject.put(\"userEmail\", email);\r\n\t\t\t\t\t\tuserjsonObject.put(\"scheduleDate\", select_date);\r\n\t\t\t\t\t\tuserjsonObject.put(\"scheduleTime\", select_time);\r\n\t\t\t\t\t\tuserjsonObject.put(\"first_name\", firstname);\r\n\t\t\t\t\t\tuserjsonObject.put(\"last_name\", lastname);\r\n\t\t\t\t\t\tuserjsonObject.put(\"phone_no\", phone);\r\n\t\t\t\t\t\tuserjsonObject.put(\"addressId\", \"\");\r\n\t\t\t\t\t\tuserjsonObject.put(\"state\", state_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"city\", city_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"location\", location_id);\r\n\t\t\t\t\t\tuserjsonObject.put(\"land_mark\", landmark);\r\n\t\t\t\t\t\tuserjsonObject.put(\"street\", street);\r\n\t\t\t\t\t\tuserjsonObject.put(\"flat_no\", flatno);\r\n\t\t\t\t\t\tuserjsonObject.put(\"address\", address);\r\n\t\t\t\t\t\tuserjsonObject.put(\"pincode\", pincode);\r\n\t\t\t\t\t\tuserjsonObject.put(\"totalCost\", total_cost);\r\n\t\t\t\t\t\tuserjsonObject.put(\"paymentType\", payment_type);\r\n\t\t\t\t\t\tuserjsonObject.put(\"paymentStatus\", payment_status);\r\n\r\n\t\t\t\t\t\tJSONArray checkOutService = new JSONArray();\r\n\t\t\t\t\t\tcheckOutService.put(userjsonObject);\r\n\r\n\t\t\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\t\t\tjsonObject.put(\"checkOutService\", checkOutService);\r\n\t\t\t\t\t\tjsonObject.put(\"jobService\", jobService);\r\n\r\n\t\t\t\t\t\tJSONArray checkoutArray = new JSONArray();\r\n\t\t\t\t\t\tcheckoutArray.put(jsonObject);\r\n\r\n\t\t\t\t\t\tJSONObject checkout = new JSONObject();\r\n\t\t\t\t\t\tcheckout.put(\"checkout\", checkoutArray);\r\n\r\n\t\t\t\t\t\tcheckout_data = checkout.toString();\r\n\t\t\t\t\t\tLog.d(\"checkout\", checkout_data);\r\n\r\n\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (Utils.checkConnectivity(getActivity())) {\r\n\r\n\t\t\t\t\t\tCheckoutAsynctask get_checkout = new CheckoutAsynctask(\r\n\t\t\t\t\t\t\t\tgetActivity());\r\n\t\t\t\t\t\tget_checkout.checkoutintf = CheckoutProcessFragment.this;\r\n\t\t\t\t\t\tget_checkout.execute(checkout_data);\r\n\r\n\t\t\t\t\t\tfor (int i = 0; i < menuItems.size(); i++) {\r\n\r\n\t\t\t\t\t\t\tString checklist_id = menuItems.get(i)\r\n\t\t\t\t\t\t\t\t\t.get(KEY_CHECKOUTLIST_ID).toString();\r\n\r\n\t\t\t\t\t\t\tremove = db.deleteRecord(checklist_id);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\tshowNetworkDialog(\"internet\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdb.close();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "private void monthFieldDtActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "public boolean hasOrderByDay() {\n return orderByDayBuilder_ != null || orderByDay_ != null;\n }", "public void setOrderDate(LocalDate orderDate) {\n try {\n if(orderDate!=null){\n LocalDate newOrderDAte = new LocalDate(orderDate.getMonth(), orderDate.getDay(), orderDate.getYear());\n this.orderDate = newOrderDAte;\n }\n else{\n this.orderDate=new LocalDate();\n throw new SupplyOrderException(\"Invalid date\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startYear = year;\n startMonth = monthOfYear + 1;\n startDay = dayOfMonth;\n try {\n dateChoisie = df.parse(String.valueOf(startYear + \"-\" + startMonth + \"-\" + startDay));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.e(\"DATE CHOISIE\",df.format(dateChoisie));\n switch (v.getId()){\n case R.id.buttonDateDebut:\n editDateDebut.setText(df.format(dateChoisie));\n break;\n case R.id.buttonDateFin:\n editDateFin.setText(df.format(dateChoisie));\n break;\n }\n }" ]
[ "0.76820785", "0.69684684", "0.68615705", "0.6824169", "0.6550582", "0.6528189", "0.6474472", "0.64553607", "0.64232755", "0.6385855", "0.62971026", "0.62971026", "0.62857187", "0.62125176", "0.61224246", "0.61130697", "0.61009574", "0.6091828", "0.60733145", "0.6059535", "0.60052836", "0.5975401", "0.5969626", "0.59653383", "0.59447724", "0.59275126", "0.59048426", "0.588691", "0.58789486", "0.5865519", "0.5860961", "0.5843882", "0.5821743", "0.5770523", "0.5766023", "0.57625365", "0.5698205", "0.56927806", "0.56816083", "0.5671346", "0.5665763", "0.5650468", "0.5645639", "0.56114256", "0.5602966", "0.5600879", "0.5599664", "0.5598769", "0.5598769", "0.5598706", "0.5586679", "0.5581542", "0.55713004", "0.5562349", "0.5546687", "0.552986", "0.5524088", "0.552232", "0.5518062", "0.5503548", "0.55011976", "0.5495489", "0.54854685", "0.5483351", "0.54721236", "0.54693145", "0.54687357", "0.54604065", "0.5456679", "0.5452797", "0.54523957", "0.54510844", "0.5446789", "0.5442248", "0.5431671", "0.5430092", "0.5428312", "0.54280066", "0.5426823", "0.5425022", "0.5420716", "0.54126656", "0.54038465", "0.54015833", "0.54000133", "0.53959554", "0.53913254", "0.5390424", "0.5387801", "0.53865546", "0.53776544", "0.5377327", "0.5375965", "0.5374368", "0.5372539", "0.53709507", "0.5367068", "0.5362994", "0.5361971", "0.5360595" ]
0.62571764
13
handles the Order by Weighting button
public void onClickOrderWeight(View view){ Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity intent.putExtra(EXTRA_MESSAGE, "Weight"); //add the "Weight" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList startActivity(intent); //start the new activity }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n // Add weight back into database\n mWeightDb.addWeight(mSelectedWeight); // Add weight to database\n mWeightAdapter.addWeight(mSelectedWeight); // Add item to list\n }", "@Override\n\tpublic void onWeightClick(View v) {\n\t\t\n\t}", "public void setOrderWeight(double orderWeight) {\n _courseImage.setOrderWeight(orderWeight);\n }", "public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(\"balance\".equals(e.getActionCommand())){\n\t\t\tsortType = 1;\n\t\t}else if(\"sold\".equals(e.getActionCommand())){\n\t\t\tsortType = 2;\n\t\t}else if(\"spoiled\".equals(e.getActionCommand())){\n\t\t\tsortType = 3;\n\t\t}\n\t\trefresh();\n\t}", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "private void setWeight(float weight){\n this.weight = weight;\n }", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public void makeOrder(Order order) {\n for(Order_Item x : order.getOrdered()){\n TableRow item_row = build_row(x.getItem().getName(), String.valueOf(x.getQuantity()), (x.getPrice()*x.getQuantity()) + \"€\");\n orderLayout.addView(item_row);\n }\n\n refreshPriceView();\n }", "public void addWeight(TextView weight){\n displayedWeights.add(weight);\n }", "public void addWeight(){\n\t\tweight++;\n\t}", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t\tif (e.getComponent() == jLTill)\n\t\t{\n\t\t\tArrayList<Order> tempOL = globalFrame.getTill().getOrders();\n\t\t\tglobalFrame.setOrder(tempOL.get(jLTill.getSelectedIndex()));\n\t\t\tglobalFrame.updateOrderItemList();\n\t\t\tglobalFrame.updateOrderList();\n\t\t}\n\t}", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "public void sortByCost(View view){\n // Only allow a user to book a itinerary for them self\n if (!userInfo[0].substring(0,5).equals(\"ADMIN\")) {\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(true);\n }\n EditText dateEditText = (EditText) findViewById(R.id.dateEditText);\n EditText originEditText = (EditText) findViewById(R.id.originEditText);\n EditText destinationEditText = (EditText) findViewById(R.id.destinationEditText);\n // Get search specifications from the user input\n String date = dateEditText.getText().toString();\n String origin = originEditText.getText().toString();\n String destination = destinationEditText.getText().toString();\n\n try {\n // Get the itineraries and display it to the user\n ArrayList<Itinerary> itineraries;\n itineraries = system.getItineraries(date, origin, destination);\n itineraries = system.sortByCost(itineraries);\n\n String displayString = \"\";\n int counter = 0;\n for (Itinerary itin : itineraries) {\n displayString += String.valueOf(counter) + \": \" + itin.toString();\n counter++;\n }\n\n selectionItinerary = itineraries;\n\n TextView displayText = (TextView) findViewById(R.id.displayText);\n if (displayString.equals(\"\")){\n displayString = \"No itineraries found\";\n }\n displayText.setText(displayString);\n }catch (Exception e){\n // Let user no if itineraries where not found based on their input\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"No itineraries found\");\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(false);\n }\n }", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public void actionPerformed(ActionEvent event) {\n\t\t\n\t\tint order = drawing.getOrder();\n\t\tif (event.getSource() == increase) {\n\t\t\tif (order < MAX)\n\t\t\t\torder++;\n\t\t}\n\t\telse {\n\t\t\tif (order > MIN)\n\t\t\t\torder--;\n\t\t}\n\t\torderLabel.setText(\"Order: \" + order);\n\t\tdrawing.setOrder(order);\n\t\trepaint();\n\t}", "@RequestMapping(value = \"/weight/{weight}\", method = RequestMethod.GET)\n public List<Element> weight(@PathVariable final int weight) {\n\n List<Element> elements = this.chemistryService.findElementsByAtomicWeight(weight);\n\n Collections.sort(elements);\n\n return elements;\n }", "@FXML\r\n private void orderButtonClicked(ActionEvent event) {\n \tcontentPane.getChildren().clear();\r\n \tOperation operation = new Operation(connection);\r\n \tArrayList<Item> arraylist =operation.getMenu(\"food\");\r\n \tint count=0,i=105;\r\n \tVBox box = new VBox();\r\n box.setSpacing(15);\r\n box.setPadding(new Insets(10, 10, 10, 10));\r\n box.setAlignment(Pos.BASELINE_LEFT);\r\n \tfor(Item arrayelement : arraylist) {\r\n \t\tSystem.out.println(\"test count\" + count++);\r\n \t\t\r\n \t\tHBox hbox1 = new HBox();\r\n \t\t\r\n \t\tLabel itemLabel = new Label(arrayelement.getItemName());\r\n// \t\tLabel priceLabel = new Label(String.valueOf(arrayelement.getPrice()));\r\n \t\tFont newFont = new Font(\"System\", 10);\r\n \t itemLabel.alignmentProperty();\r\n \t\titemLabel.setFont(newFont);\r\n// \t\tpriceLabel.setFont(newFont);\r\n \t\tTextField quantTextField = new TextField();\r\n \t\tquantTextField.setPromptText(\"Quantity\");\r\n \t\tquantTextField.setAlignment(Pos.BASELINE_RIGHT);\r\n hbox1.getChildren().addAll(itemLabel,quantTextField);\r\n \r\n hbox1.setAlignment(Pos.BASELINE_RIGHT);\r\n hbox1.setSpacing(50);\r\n box.getChildren().add(hbox1);\r\n \r\n \t}\r\n \tButton confirmButton = new Button(\"Confirm\");\r\n confirmButton.setStyle(\"-fx-background-color: #e63347;\" +\r\n \"-fx-background-radius: 7;\" +\r\n \"-fx-text-fill: white\");\r\n confirmButton.setPrefSize(130, 40);\r\n \r\n //box.getChildren().add(confirmButton);\r\n \tcontentPane.getChildren().addAll(box,confirmButton);\r\n }", "public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }", "@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }", "public void onClickOrder(View view) {\n\n //The Functions bellow are converting intiger values into strings which can then be written to the arduino via a Serial Connection\n String VodkaOrder = Integer.toString(Vodka_Measure);\n String RumOrder = Integer.toString(Rum_Measure);\n String GinOrder = Integer.toString(Gin_Measure);\n String WhiskeyOrder = Integer.toString(Whiskey_Measure);\n String TonicWaterOrder = Integer.toString(TonicWater_Measure);\n String CranberryJuiceOrder = Integer.toString(CranberryJuice_Measure);\n String OrangeJuiceOrder = Integer.toString(OrangeJuice_Measure);\n String PineappleJuiceOrder = Integer.toString(Pineapple_Measure);\n String MintOrder = Integer.toString(Mint_Measure);\n String SugarOrder = Integer.toString(Sugar_Measure);\n String LimeJuiceOrder = Integer.toString(Lime_Measure);\n String LimeSliceOrder = Integer.toString(Lime_Slice);\n String StirOrder = Integer.toString(Stir);\n String MashOrder = Integer.toString(Mash);\n String ShakeOrder = Integer.toString(Shake);\n String IceOrder = Integer.toString(Ice_Measure);\n String KaluaOrder = Integer.toString(Kalua);\n String CointreauOrder = Integer.toString(Cointreau);\n String VermouthOrder = Integer.toString(Vermouth);\n String PeachSchnappsOrder = Integer.toString(Peach_Schnapps);\n String CreamDeCacoOrder = Integer.toString(Cream_De_Cacao);\n String DrinkSizeOrder = Integer.toString(DrinkSize);\n\n //Actually writing the data to the arduino using the new strings created above\n serialPort.write(VodkaOrder.getBytes());\n serialPort.write(RumOrder.getBytes());\n serialPort.write(GinOrder.getBytes());\n serialPort.write(WhiskeyOrder.getBytes());\n serialPort.write(TonicWaterOrder.getBytes());\n serialPort.write(CranberryJuiceOrder.getBytes());\n serialPort.write(OrangeJuiceOrder.getBytes());\n serialPort.write(PineappleJuiceOrder.getBytes());\n serialPort.write(MintOrder.getBytes());\n serialPort.write(SugarOrder.getBytes());\n serialPort.write(LimeJuiceOrder.getBytes());\n serialPort.write(LimeSliceOrder.getBytes());\n serialPort.write(StirOrder.getBytes());\n serialPort.write(MashOrder.getBytes());\n serialPort.write(ShakeOrder.getBytes());\n serialPort.write(IceOrder.getBytes());\n serialPort.write(KaluaOrder.getBytes());\n serialPort.write(CointreauOrder.getBytes());\n serialPort.write(VermouthOrder.getBytes());\n serialPort.write(PeachSchnappsOrder.getBytes());\n serialPort.write(CreamDeCacoOrder.getBytes());\n serialPort.write(DrinkSizeOrder.getBytes());\n\n //A small text so the user knows what he/she ordered!\n\n tvAppend(textView, \"\\nYour Drink Order is one \" + DrinkSizeText + \" \" + DrinkName + \" (\" + DrinkType + \")\" + \"\\n\");\n\n\n\n\n myDialog.dismiss(); //Closes the popup after the order button is pressed, and order data is sent\n\n\n\n }", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(double w){\n weight = w;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int id = waiterGraphicalUserInterface.getId();\n Order order = restaurant.getOrder(id);\n FileWriter fileWriter = new FileWriter(restaurant,order);\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n addOrderBtn = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n plusCoffeeBtn = new javax.swing.JToggleButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n waffleQuantityTxt = new javax.swing.JTextField();\n coffeeQuantityTxt = new javax.swing.JTextField();\n plusWaffleBtn = new javax.swing.JToggleButton();\n minusWaffleBtn = new javax.swing.JToggleButton();\n minusCoffeeBtn = new javax.swing.JToggleButton();\n jPanel2 = new javax.swing.JPanel();\n coffeeTypeCombo = new javax.swing.JComboBox<>();\n waffleTypeCombo = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n changeTxt = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n orderListbox = new javax.swing.JList<>();\n jLabel8 = new javax.swing.JLabel();\n totalTxt = new javax.swing.JTextField();\n jButton3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Belgian Waffle Ordering System\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"Belgian Waffle Ordering System\");\n\n jButton1.setLabel(\"Clear Orders\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n addOrderBtn.setText(\"Add Orders\");\n addOrderBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addOrderBtnActionPerformed(evt);\n }\n });\n\n plusCoffeeBtn.setText(\"+\");\n plusCoffeeBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n plusCoffeeBtnActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Waffle Quantity:\");\n\n jLabel6.setText(\"Coffee Quantity:\");\n\n waffleQuantityTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n waffleQuantityTxtActionPerformed(evt);\n }\n });\n\n plusWaffleBtn.setText(\"+\");\n plusWaffleBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n plusWaffleBtnActionPerformed(evt);\n }\n });\n\n minusWaffleBtn.setText(\"-\");\n minusWaffleBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n minusWaffleBtnActionPerformed(evt);\n }\n });\n\n minusCoffeeBtn.setText(\"-\");\n minusCoffeeBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n minusCoffeeBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(26, 26, 26)\n .addComponent(minusWaffleBtn))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(minusCoffeeBtn)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(coffeeQuantityTxt, javax.swing.GroupLayout.DEFAULT_SIZE, 75, Short.MAX_VALUE)\n .addComponent(waffleQuantityTxt))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(plusWaffleBtn)\n .addComponent(plusCoffeeBtn))\n .addGap(154, 154, 154))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(plusWaffleBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(waffleQuantityTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(minusWaffleBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(coffeeQuantityTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(minusCoffeeBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(plusCoffeeBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n coffeeTypeCombo.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n\n waffleTypeCombo.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n waffleTypeCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n waffleTypeComboActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Waffle Order:\");\n\n jLabel3.setText(\"Coffee Order:\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 746, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(waffleTypeCombo, 0, 618, Short.MAX_VALUE)\n .addComponent(coffeeTypeCombo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap()))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 160, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(waffleTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(coffeeTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel7.setText(\"Change\");\n\n changeTxt.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n changeTxt.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n changeTxt.setText(\"0.00\");\n\n orderListbox.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jScrollPane2.setViewportView(orderListbox);\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel8.setText(\"Total\");\n\n totalTxt.setFont(new java.awt.Font(\"Tahoma\", 0, 48)); // NOI18N\n totalTxt.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n totalTxt.setText(\"0.00\");\n totalTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n totalTxtActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(81, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7)\n .addComponent(totalTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 362, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addGap(62, 62, 62))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 408, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(changeTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(54, 54, 54))))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(totalTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addGap(11, 11, 11)\n .addComponent(changeTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jButton3.setText(\"Void Selected\");\n jButton3.setVerifyInputWhenFocusTarget(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Finalize Orders\");\n jButton2.setVerifyInputWhenFocusTarget(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Sales Report\");\n jButton4.setActionCommand(\"\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(addOrderBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE)\n .addGap(200, 200, 200)\n .addComponent(jButton4))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(741, 741, 741))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE))\n .addGap(797, 797, 797))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(84, 84, 84)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addOrderBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(92, Short.MAX_VALUE))\n );\n\n pack();\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "public void setWeight(float w) {\n weight = w;\n }", "public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}", "@Override\n public void onClick(View view) {\n switch (view.getId()) {\n\n // If the addWeight FAB is clicked\n case R.id.weightTableAddButton:\n if (mSelectedWeightPosition != RecyclerView.NO_POSITION) {\n mActionMode.finish();\n }\n Navigation.findNavController(getView()).navigate(R.id.navigation_add_weight);\n break;\n default:\n if (mActionMode != null) {\n mActionMode.finish();\n }\n break;\n }\n }", "public void sendWeightText(String weight) {\r\n\t\tthis.weight.clear();\r\n\t\tthis.weight.sendKeys(weight);\r\n\t}", "public void onClick(View arg0) {\n\t\t\t\tString string = et_weight.getText().toString();\n\t\t\t\tif (\"\".equals(string)) {\n\t\t\t\t\tMyToast.showShort(getActivity(), \"请填写体重\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tputil.WriteTargetWeight(Integer.parseInt(et_weight.getText().toString()));\n\t\t\t\tweight2.setText(putil.ReadTargetWeight()+\"\");\n\t\t\t}", "public static Comparator<Trio<Pair<String, Integer>, Pair<String,Integer>, Integer>> sortByWeight()\n\t{\n\t\tComparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>> comp = new Comparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>>() {\n\t\t\n\t\t\tpublic int compare(Trio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight1,\n\t\t\t\t\tTrio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight2) \n\t\t\t{\n\t\t\t\t\n\t\t\t\treturn weight1.getThird() - weight2.getThird();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn comp;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n requestOrderJButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n backJButton = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n foodComboBox = new javax.swing.JComboBox();\n quanTextField = new javax.swing.JTextField();\n\n requestOrderJButton.setText(\"Request Order\");\n requestOrderJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n requestOrderJButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Food name\");\n\n backJButton.setText(\"<<Back\");\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Quantity\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(backJButton)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\n .addComponent(requestOrderJButton))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(foodComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(quanTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))))\n .addGap(61, 61, 61))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(foodComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel2))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(quanTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(64, 64, 64)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton)\n .addComponent(requestOrderJButton))\n .addContainerGap(77, Short.MAX_VALUE))\n );\n }", "public void updateWeights() {\n\t\t\n\t}", "private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }", "private boolean inputWeightDialog(final double weight, final boolean ifStop, final String pmn04, final boolean ifInput) {\n final EditTextDialog dialog = new EditTextDialog(this,weight+\"\",\"请输入\"+pmn04+\"的重量\",\"kg\");\n dialog.setOnPositiveListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(dialog.editText.getText().toString().equals(\"\")){\n PopUtil.showPopUtil(\"输入有误,请重新输入\");\n return;\n }\n for (PNSub pnSub : wmsService.pn.getPnsubs()) {\n if (pnSub.isIfChangeWeight() && pnSub.getPmn04().equals(pmn04)) {\n DecimalFormat df = new DecimalFormat(\"#.000\");\n //按比例分配计价数量\n double real_pmn87 = (((pnSub.getPmn20_copy() - pnSub.getPmn20()) / pnSub.getPmn20_copy())\n * pnSub.getPmn87() / weight) * Double.parseDouble(dialog.editText.getText().toString());\n pnSub.setReal_pmn87(Double.parseDouble(df.format(real_pmn87)));\n pnSub.setIfChangeWeight(false);\n }\n }\n dialog.cancel();\n if (ifStop) {\n commonDialog(\"是否确定退货\", 2);\n }\n if (ifInput) {\n Intent intent = new Intent(ActionList.ACTION_INPUT_RETURN);\n sendBroadcast(intent); //发送广播给对应的Service\n }\n }\n });\n dialog.setOnNegativeListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n }\n });\n dialog.show();\n WindowManager windowManager = getWindowManager();\n Display display = windowManager.getDefaultDisplay();\n WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();\n lp.width = (int) (display.getWidth()); //设置宽度\n dialog.getWindow().setAttributes(lp);\n return false;\n }", "@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}", "public void add(double weight) {\n this.weights.add(weight);\n // flip the flag to accept query operator\n this.acceptWeight = false;\n }", "public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }", "public ByWeight(String name, double cost, double units)\n\t{\n\t\tsuper(name);\n\t\tprice = cost;\n\t\tweight = units;\n\t}", "public double getOrderWeight() {\n return _courseImage.getOrderWeight();\n }", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n ManagerPane = new javax.swing.JTabbedPane();\n jScrollPane1 = new javax.swing.JScrollPane();\n OrderTable = new javax.swing.JTable();\n jPanel1 = new javax.swing.JPanel();\n ItemIDTextField = new javax.swing.JTextField();\n NameTextField = new javax.swing.JTextField();\n PriceTextField = new javax.swing.JTextField();\n BaseIngredientsTextField = new javax.swing.JTextField();\n DefaultIngredientsTextField = new javax.swing.JTextField();\n PermissibleIngredientsTextField = new javax.swing.JTextField();\n Update_Add_BTN = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n DeleteItemBTN = new javax.swing.JButton();\n clearBTN = new javax.swing.JButton();\n IngredientsListBTN = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n ViewLeastOrderedItemsBTN = new javax.swing.JButton();\n ViewMostOrderedItemsBTN = new javax.swing.JButton();\n leastOrderedItemLabel = new javax.swing.JLabel();\n mostOrderedItemLabel = new javax.swing.JLabel();\n leastOrderedItemLabel1 = new javax.swing.JLabel();\n leastOrderedItemLabel2 = new javax.swing.JLabel();\n mostOrderedItemLabel1 = new javax.swing.JLabel();\n mostOrderedItemLabel2 = new javax.swing.JLabel();\n leastOrderedItemLabel3 = new javax.swing.JLabel();\n leastOrderedItemLabel4 = new javax.swing.JLabel();\n leastOrderedItemLabel5 = new javax.swing.JLabel();\n mostOrderedItemLabel3 = new javax.swing.JLabel();\n mostOrderedItemLabel4 = new javax.swing.JLabel();\n mostOrderedItemLabel5 = new javax.swing.JLabel();\n DateTextField = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n CustomerIDTextField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n OrderIDTextField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n SortOrderHistoryBTN = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n MenuItemSelect = new javax.swing.JComboBox<>();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"Back to Login\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n OrderTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n OrderTable.getTableHeader().setReorderingAllowed(false);\n OrderTable.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n OrderTableFocusGained(evt);\n }\n });\n jScrollPane1.setViewportView(OrderTable);\n\n ManagerPane.addTab(\"Order History\", jScrollPane1);\n\n ItemIDTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ItemIDTextFieldActionPerformed(evt);\n }\n });\n\n NameTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n NameTextFieldActionPerformed(evt);\n }\n });\n\n PermissibleIngredientsTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n PermissibleIngredientsTextFieldActionPerformed(evt);\n }\n });\n\n Update_Add_BTN.setText(\"Update/Add\");\n Update_Add_BTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Update_Add_BTNActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Item ID\");\n\n jLabel6.setText(\"Name\");\n\n jLabel7.setText(\"Price\");\n\n jLabel8.setText(\"Base Ingredients\");\n\n jLabel9.setText(\"Default Ingredients\");\n\n jLabel10.setText(\"Permissible Ingredients\");\n\n DeleteItemBTN.setText(\"Delete Item\");\n DeleteItemBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n DeleteItemBTNActionPerformed(evt);\n }\n });\n\n clearBTN.setText(\"Clear fields\");\n clearBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n clearBTNActionPerformed(evt);\n }\n });\n\n IngredientsListBTN.setText(\"Ingredients List\");\n IngredientsListBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n IngredientsListBTNActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(131, 131, 131)\n .addComponent(DeleteItemBTN)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(clearBTN)\n .addComponent(Update_Add_BTN))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(IngredientsListBTN)\n .addGap(131, 131, 131))\n .addGroup(javax.swing.GroupLayout.Alignment.CENTER, jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(ItemIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(NameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(PriceTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(BaseIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(DefaultIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addGap(5, 5, 5)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(PermissibleIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10))\n .addGap(10, 10, 10))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(66, 66, 66)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ItemIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(NameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(PriceTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BaseIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DefaultIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(PermissibleIngredientsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 155, Short.MAX_VALUE)\n .addComponent(clearBTN)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(IngredientsListBTN)\n .addComponent(DeleteItemBTN)\n .addComponent(Update_Add_BTN))\n .addGap(60, 60, 60))\n );\n\n ManagerPane.addTab(\"Edit Menu Items\", jPanel1);\n\n ViewLeastOrderedItemsBTN.setText(\"View Least Ordered Items\");\n ViewLeastOrderedItemsBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ViewLeastOrderedItemsBTNActionPerformed(evt);\n }\n });\n\n ViewMostOrderedItemsBTN.setText(\"View Most Ordered Items\");\n ViewMostOrderedItemsBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ViewMostOrderedItemsBTNActionPerformed(evt);\n }\n });\n\n leastOrderedItemLabel.setText(\" \");\n\n mostOrderedItemLabel.setText(\" \");\n\n leastOrderedItemLabel1.setText(\" \");\n\n leastOrderedItemLabel2.setText(\" \");\n\n mostOrderedItemLabel1.setText(\" \");\n\n mostOrderedItemLabel2.setText(\" \");\n\n leastOrderedItemLabel3.setText(\" \");\n\n leastOrderedItemLabel4.setText(\" \");\n\n leastOrderedItemLabel5.setText(\" \");\n\n mostOrderedItemLabel3.setText(\" \");\n\n mostOrderedItemLabel4.setText(\" \");\n\n mostOrderedItemLabel5.setText(\" \");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(leastOrderedItemLabel)\n .addComponent(leastOrderedItemLabel1)\n .addComponent(leastOrderedItemLabel2)\n .addComponent(leastOrderedItemLabel3)\n .addComponent(leastOrderedItemLabel4)\n .addComponent(leastOrderedItemLabel5)\n .addComponent(ViewLeastOrderedItemsBTN))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(mostOrderedItemLabel3)\n .addComponent(mostOrderedItemLabel2)\n .addComponent(mostOrderedItemLabel1)\n .addComponent(mostOrderedItemLabel)\n .addComponent(mostOrderedItemLabel4)\n .addComponent(mostOrderedItemLabel5)\n .addComponent(ViewMostOrderedItemsBTN))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ViewLeastOrderedItemsBTN)\n .addComponent(ViewMostOrderedItemsBTN))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(leastOrderedItemLabel)\n .addComponent(mostOrderedItemLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(leastOrderedItemLabel1)\n .addComponent(mostOrderedItemLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(leastOrderedItemLabel2)\n .addComponent(mostOrderedItemLabel2))\n .addGap(46, 46, 46)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(mostOrderedItemLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mostOrderedItemLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(mostOrderedItemLabel5))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(leastOrderedItemLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(leastOrderedItemLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(leastOrderedItemLabel5)))\n .addContainerGap(138, Short.MAX_VALUE))\n );\n\n ManagerPane.addTab(\"Menu Recommendations\", jPanel2);\n\n DateTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n DateTextFieldActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Date\");\n\n CustomerIDTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CustomerIDTextFieldActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"CustomerID\");\n\n OrderIDTextField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n OrderIDTextFieldActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"OrderID\");\n\n SortOrderHistoryBTN.setText(\"Sort\");\n SortOrderHistoryBTN.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SortOrderHistoryBTNActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Name of Item to Update/Add\");\n\n jButton4.setText(\"Search\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n MenuItemSelect.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton1)\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel1)\n .addComponent(DateTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel2)\n .addComponent(CustomerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel3)\n .addComponent(OrderIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(SortOrderHistoryBTN)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(MenuItemSelect, javax.swing.GroupLayout.PREFERRED_SIZE, 212, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jButton4))\n .addGap(34, 34, 34))\n .addComponent(ManagerPane)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(SortOrderHistoryBTN)\n .addComponent(OrderIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(CustomerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(DateTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(MenuItemSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jButton1))\n .addGap(10, 10, 10)\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ManagerPane, javax.swing.GroupLayout.DEFAULT_SIZE, 401, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public void setWeight(float value) {\n this.weight = value;\n }", "public static void main (String [] args)\n {\n DecimalFormat mine = new DecimalFormat(\"$#,##0.00\");\n String name = \"\" ;\n String product = \" \";\n char choice = ' ';\n char prod;\n int qty = 0;\n int count = 0;\n double cost_of_product=0.0;\n double cost_of_shipment = 0.0;\n char deliveryType;\n double total_cost_of_product = 0.0;\n int total_Gizmo = 0;\n int total_Widget = 0;\n double total_Cost = 0;\n double total_Gizmo_Cost = 0;\n double total_Widget_Cost = 0; // list of variables\n\n System.out.print(\"Please enter your name: \");\n name = GetInput.readLine(); //customer enters name\n\n do {\n System.out.print(\"What product would you like to order (W/G): \");\n product =GetInput.readLine();\n prod = Character.toUpperCase(product.charAt(0));\n prod = validateProduct(prod); //validate W or G\n if(prod == 'W')\n {\n System.out.print(\"What quantity of Widgets do you want to order?: \");\n qty = GetInput.readLineInt();\n qty = widgetQty(qty);\n\n }\n else\n {\n System.out.print(\"What quantity of Gizmos do you want to order?: \");\n qty = GetInput.readLineInt();\n qty = gizmoQty(qty);\n } //qty of widgets/gizmos\n\n cost_of_product = Orders.productCost(qty, prod); //connecting TestOrders and Orders\n\n System.out.print(\"What shipping method would you like (F/U)?: \");\n deliveryType = Character.toUpperCase(GetInput.readLineNonwhiteChar());\n deliveryType = validateShipping(deliveryType); //selecting F or U shipping\n\n cost_of_shipment = Orders.shippingCost(qty, prod, deliveryType);\n //connecting TestOrders and Orders\n\n System.out.println(\"\\nCustomer: \" + name );//Detail report\n System.out.println(\"Ordered \" + qty +\" \"\n +(prod == 'W' ? \"Widgets \":\"Gizmos \") + \"costing \" + mine.format(cost_of_product) + \".\");\n System.out.println(\"Shipped via \"+ (deliveryType =='F' ? \"Fred \":\"USPS \")\n + \"costing \" + mine.format(cost_of_shipment) + \".\");\n\n total_cost_of_product = Orders.totalCost(cost_of_product, cost_of_shipment);\n //connecting TestOrders and Orders\n\n System.out.println(\"Total order cost is \" + mine.format(total_cost_of_product));\n\n count = count + 1; // order counter\n\n if(prod =='G')\n {\n total_Gizmo = total_Gizmo + qty;\n total_Gizmo_Cost = total_Gizmo_Cost + total_cost_of_product;\n }\n else\n {\n total_Widget = total_Widget + qty;\n total_Widget_Cost = total_Widget_Cost + total_cost_of_product;\n }\n\n total_Cost = total_Cost + total_cost_of_product;\n\n System.out.println(\"\\nDo you wish to make another order?: \");\n choice = GetInput.readLineNonwhiteChar(); //user enters Y/N to continue\n }while ((choice == 'Y') || (choice == 'y')); // end of do/while loop\n\n System.out.println(\"\\nSummary Report\"); //summary report\n System.out.println(count + \" Total Orders\");\n System.out.print(\"Total quantity of Gizmos ordered: \" + total_Gizmo\n + \" at a cost of \" + mine.format(total_Gizmo_Cost) );\n System.out.print(\"\\nTotal quantity of Widgets ordered: \" + total_Widget\n + \" at a cost of \" + mine.format(total_Widget_Cost));\n System.out.println(\"\\nTotal sales amount: \" + mine.format(total_Cost));\n }", "private void receiveOrder() {\n Intent intent = getIntent();\n MyOrder order = (MyOrder) intent.getSerializableExtra(getResources().getString(R.string.intentMesOrder));\n String help;\n final ArrayList<String> listing = new ArrayList<String>();\n ArrayAdapter<String> adap = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, listing);\n tableSauceString = order.findTableSauce();\n\n switch (intent.getExtras().getInt(getResources().getString(R.string.intentMesOrderType))) { // depending on the order type the received information are displayed\n case 1:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption) +\" \" +\n getResources().getString(R.string.rdbtPizzeria).toString());\n firstInfo.setText(getResources().getString(R.string.stringPartTable) + \" \" +\n String.valueOf(intent.getExtras().getInt(getResources()\n .getString(R.string.intentMesTable))));\n break;\n case 2:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtTakeaway).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPacking)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesTime)));\n break;\n case 3:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtDelivery).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesAddress)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPhone)));\n break;\n }\n help = String.format(\"%.2f\", order.getTotal());\n txtMoney.setText(help + getResources()\n .getString(R.string.currency));\n\n if(!(tableSauceString.equals(getResources().getString(R.string.stringNone)))){\n help = String.format(\"%.2f\", order.getTableSaucePrice());\n txtTableSauce.setText(getResources().getString(R.string.stringPartSauce)+\" \"\n + tableSauceString + \"(\" + help+ getResources().getString(R.string.currency) +\" )\");\n }\n\n helpTitle = order.writeOrder();\n helpInfo = order.getMoreOrder();\n for (int i = 0; i < helpTitle.length; i++) {\n if (helpTitle[i] != null) {\n listing.add(helpTitle[i]);\n }\n }\n list.setAdapter(adap);\n list.setOnItemLongClickListener(this);\n }", "private void quantityActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n compoundListDropDown = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n quantityField = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n orderTable = new javax.swing.JTable();\n backBtn = new javax.swing.JButton();\n submitBtn = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 13)); // NOI18N\n jLabel1.setText(\"Manage Compound Synthesis\");\n\n jLabel2.setText(\"Compound\");\n\n jLabel3.setText(\"Quantity\");\n\n orderTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Name\", \"Quantity\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n true, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(orderTable);\n\n backBtn.setText(\"back\");\n backBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backBtnActionPerformed(evt);\n }\n });\n\n submitBtn.setText(\"save order\");\n submitBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n submitBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(compoundListDropDown, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(quantityField, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 9, Short.MAX_VALUE)))))\n .addGap(101, 101, 101))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(backBtn)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(submitBtn)\n .addGap(72, 72, 72))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jLabel1)\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(compoundListDropDown, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(quantityField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(submitBtn)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(backBtn)\n .addContainerGap(45, Short.MAX_VALUE))\n );\n }", "public IdealWeightCalculator() {\n initComponents();\n }", "private void sortedJRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sortedJRadioButtonActionPerformed\n sortedEdgeJRadioButtonMenuItem.setSelected(true);\n calculateJButton.doClick();\n// methodJLabel.setText(\"Sorted Edge\");\n// clearStats();\n }", "protected void updateWeights() {\n\t\tvisualization.updateWeights();\n\t}", "public int weight() {\n \treturn weight;\n }", "private void orderHomePage() {\n setLayout(new FlowLayout(FlowLayout.CENTER));\n\n JButton button = new JButton(\"New Order\");\n add(button);\n\n button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JButton) {\n JButton button1 = (JButton)e.getSource();\n\n if (button1.getText().equals(button.getText())) {\n removeAll(); // Removes everything from the panel\n message();\n orderFood();\n }\n }\n }\n });\n }", "public void setOrder(int order) {\n this.order = order;\n paint();\n }", "@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}", "private void OrderNowbtnActionPerformed(java.awt.event.ActionEvent evt) {\n String text=\"Subject : \"+jComboBox1.getSelectedItem().toString()+\" and Books Ordered : \"+jComboBox2.getSelectedItem().toString();\n jLabel4.setText(text);\n \n String user=userName;\n// System.out.println(userName+\"****111*****\");\n int quantity=Integer.parseInt(jComboBox2.getSelectedItem().toString());\n// System.out.println(\"Quantity is \"+quantity);\n BooksBooked b1= new BooksBooked(jComboBox1.getSelectedItem().toString(),quantity);\n UserData userdata=(UserData)allUserDetails.get(user);\n List<BooksBooked> bookings = userdata.getBookBooked();\n if(bookings == null){\n bookings = new ArrayList<BooksBooked>();\n }\n bookings.add(b1);\n userdata.setBookBooked(bookings);\n //updating hashmap\n if(subjectSelected.isEmpty())\n subjectSelected=\"English comprehension\";\n \n int subjectPreviousQuantity = subjectMap.get(subjectSelected);\n int newvalue=subjectPreviousQuantity-quantityOrdered;\n subjectMap.put(subjectSelected, newvalue);\n }", "public void setWeight(double weight2) {\n\t\tthis.weight = weight2;\n\t}", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "public SMplace_order() {\n initComponents();\n table();\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "void printOrder(double newBonus) {\n System.out.println(getDate());\n System.out.println();\n System.out.println(getCode());\n System.out.println();\n System.out.println(\"buyer name :\" + getBuyer().getName() + \" - \" + \"buyer id :\" + getBuyer().getCode());\n System.out.println();\n for(Product x : getBuy()) {\n System.out.println(\"code: - \" + x.getCode() + \", product: - \" + x.getName() + \" - amount - \" + x.getAmt() + \" prise - \" + x.getPrice() + \" sum - \" + x.getAmt()*x.getPrice());\n sum += x.getAmt()*x.getPrice();\n }\n System.out.println();\n System.out.println(\"your bonus is - \" + getBuyer().getBonus());\n System.out.println();\n System.out.println(\"the amount of your purchase - \" + (getSum()-getBuyer().getBonus()));\n System.out.println();\n System.out.println();\n System.out.println(\"Your bonus will be with the next purchase - \" + newBonus);\n\n }", "private void weightRollSelectionActionPerform() {\n\t\tif (weightRollSelection.isSelected()) {\n\t\t\tweightPanel.add(weightRoll);\n\t\t\tweightPanel.remove(weightInput);\n\t\t\treference.validate();\n\t\t\treference.repaint();\n\t\t}\n\t\tweightRoll.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tweight = getWeightRoll();\n\t\t\t\tweightPanel.add(weightLabel);\n\t\t\t\tweightPanel.add(weightInput);\n\t\t\t\tweightPanel.remove(weightInputSelection);\n\t\t\t\tweightPanel.remove(weightRoll);\n\t\t\t\tweightPanel.remove(weightRollSelection);\n\t\t\t\tweightInput.setText(String.valueOf(weight));\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t}", "public void addWeight(Weight newWeight) {\n int index = 0;\n\n // Find weight index based on time (table is sorted by time)\n for (Weight rowWeight : mWeightList) {\n if (newWeight.getTime() >= rowWeight.getTime()) {\n break;\n }\n index += 1;\n }\n\n // Add weight to table at specified index\n mWeightList.add(index, newWeight);\n\n // Notify that the weight was inserted\n notifyItemInserted(index);\n\n // Scroll to top of list to see weight\n if (index == 0) {\n mRecyclerView.scrollToPosition(index);\n }\n }", "public double getWeight(){\n return weight;\n }", "int getWeight() {\n return weight;\n }", "int getWeight() {\n return weight;\n }", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.TPS;\r\n String text = \"\";\r\n for (NodeData s: canvas.graph.topologicalSort()){\r\n text = text + s.getText() + \" \";\r\n }\r\n instr.setText(\"You should take classes in the following order: \"+text);\r\n }", "void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}", "@Override\n public void onClick(View view) {\n if (mSelectedWeightPosition == RecyclerView.NO_POSITION) {\n\n if (mActionMode != null) {\n return;\n }\n\n // Selected weight\n mSelectedWeight = mWeight;\n\n // Get the position of the selected item\n mSelectedWeightPosition = getAdapterPosition();\n\n // Inform the Adapter that the item at the given position has changed\n mWeightAdapter.notifyItemChanged(mSelectedWeightPosition);\n\n // Show the CAB\n mActionMode = getActivity().startActionMode(mActionModeCallback);\n\n } else {\n\n mActionMode.finish();\n\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif(productBySearch.size() > 0){\r\n\t\t\t\t\tproductBySearch.clear();\r\n\t\t\t\t}\r\n\t\t\t\tif(productByLike == null){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse if(productByLike.size() > 0){\r\n\t\t\t\t\tpreviousValue.clear();\r\n\t\t\t\t}\r\n\t\t\t\tif(previousValue.size() > 0){\r\n\t\t\t\t\tpreviousValue.clear();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttempProductSearch = new Product();\r\n\t\t\t\tsubtotal_textField.setText(\"Subtotal: $0.0\");\r\n\t\t\t\ttax_textField.setText(\"Tax: $0.0\");\r\n\t\t\t\ttotal_textField.setText(\"Total: $0.0\");\r\n\t\t\t\t\r\n\t\t\t\ttextField_productID_input.setText(\"\");\r\n\t\t\t\ttextField_name_input.setText(\"\");\r\n\t\t\t\ttextField_description_input.setText(\"\");\r\n\t\t\t\ttextField_quantity_input.setText(\"\");\r\n\t\t\t\ttextPane_productID_notFound.setText(\"\");\r\n\t\t\t\t\r\n\t\t\t\t//Table\r\n\t\t\t\t//private JTable table;\r\n\t\t\t\tremoveTableRows(model); //Clears table rows, model.\r\n\t\t\t\t\r\n\t\t\t\tif(data.size() > 0){\r\n\t\t\t\t\tdata.clear();\r\n\t\t\t\t}\r\n\t\t\t\ttableListenerCount = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Sales Total\r\n\t\t\t\tsubTotal = 0;\r\n\t\t\t\ttax = 0;\r\n\t\t\t\ttotal = 0;\r\n\t\t\t\tc = 0;\r\n\t\t\t\tstringTempPrice = null;\r\n\t\t\t\ttransactionType = null;\r\n\t\t\t\ttransactionMethod = null;\r\n\t\t\t\tpromotionID = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Discount\r\n\t\t\t\tdetail_discountID = 0;\r\n\t\t\t\tdetail_discountType = null;\r\n\t\t\t\toneTimeDiscountCheck = false;\r\n\t\t\t\t//discount_option.setText(\"\");\r\n\t\t\t\tdetail_discountValue = 0;\r\n\t\t\t\t\r\n\t\t\t\t//Discount buttons\r\n\t\t\t\tbutton_discount.setVisible(true);\r\n\t\t\t\tbtnDiscountDetails.setVisible(false);\r\n\t\t\t\t\r\n\t\t\t\ttextField_productID_input.requestFocusInWindow();\r\n\t\t\t}", "public String getWeight()\r\n\t{\r\n\t\treturn weight;\r\n\t}", "public void submitOrder(BeverageOrder order);", "public int getWeight() {\n return weight;\n }", "public int getWeight(){\n \treturn weight;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\targs.putBoolean(\"weight\", true);\n\t\t\t\tstartActivity(new Intent(getActivity(), GraphActivity.class).putExtras(args));\n\t\t\t\tdismiss();\n\t\t\t}", "public String getWeight() {\n return weight;\n }", "public double getWeight(){return this.aWeight;}", "@Override\n\tpublic void processNewOrderButtonClick(ProcessNewOrderObjectEvent e) {\n\t\n\t\tthis.currentAmount = 0.0;\t\t\n\t\tthis.currentItems.clear();\n\t\n\t}", "private void initialize()\n {\n orderList = new ArrayList<OrderData>( );\n setBounds(100, 100, 530, 370);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n setResizable(false);\n\n JLabel lblNewLabel = new JLabel(\"Order\");\n lblNewLabel.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 15));\n lblNewLabel.setBounds(22, 18, 61, 16);\n getContentPane().add(lblNewLabel);\n\n JScrollPane scrollPane = new JScrollPane();\n scrollPane.setBounds(22, 47, 497, 189);\n getContentPane().add(scrollPane);\n\n table = new JTable();\n scrollPane.setViewportView(table);\n table.setModel(new DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Order ID\", \"Customer Username\", \"Total Price\", \"Status\", \"Payment Type\", \"Delivery Type\"\n })\n {\n Class[] types = new Class [] {\n String.class, String.class, Float.class, String.class, String.class, String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n\n table.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent evt) {\n//\t\t\t\tproductsTableMouseClicked(evt);\n }\n });\n orderTableModel = (DefaultTableModel) table.getModel();\n table.setFillsViewportHeight(true);\n\n scrollPane.setViewportView(table);\n if (table.getColumnModel().getColumnCount() > 0) {\n table.getColumnModel().getColumn(0).setResizable(false);\n table.getColumnModel().getColumn(1).setResizable(false);\n table.getColumnModel().getColumn(2).setResizable(false);\n table.getColumnModel().getColumn(3).setResizable(false);\n table.getColumnModel().getColumn(4).setResizable(false);\n table.getColumnModel().getColumn(5).setResizable(false);\n }\n table.setSelectionModel( new ForcedListSelectionModel());\n\n\n pendingRadioButton = new JRadioButton(\"Pending\");\n pendingRadioButton.setBounds(22, 248, 141, 23);\n getContentPane().add(pendingRadioButton);\n pendingRadioButton.setSelected( true );\n\n shippingRadioButton = new JRadioButton(\"Shipping\");\n shippingRadioButton.setBounds(22, 280, 141, 23);\n getContentPane().add(shippingRadioButton);\n\n ButtonGroup group = new ButtonGroup();\n group.add( pendingRadioButton );\n group.add( shippingRadioButton );\n\n viewButton = new JButton(\"View\");\n viewButton.setBounds(308, 265, 90, 29);\n getContentPane().add(viewButton);\n\n statusButton = new JButton(\"Set Status\");\n statusButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n }\n });\n statusButton.setBounds(308, 312, 90, 29);\n getContentPane().add(statusButton);\n\n backButton = new JButton(\"Back\");\n backButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n }\n });\n backButton.setBounds(429, 312, 90, 29);\n getContentPane().add(backButton);\n }", "public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }", "public int getWeight()\n {\n return weight;\n }", "public int getWeight() {\n return this.weight;\n }", "public String gatherOrder(View view) {\n\n // get user input\n EditText userInputNameView = (EditText) findViewById(R.id.user_input);\n String userInputName = userInputNameView.getText().toString();\n\n // check if whipped cream is selected\n CheckBox extraCheese = (CheckBox) findViewById(R.id.extra_cheese_checked);\n boolean hasExtraCheese = extraCheese.isChecked();\n\n // check if pepperoni is selected\n CheckBox pepperoni = (CheckBox) findViewById(R.id.pepperoni_checked);\n boolean hasPepperoni = pepperoni.isChecked();\n\n // check if pepperoni is selected\n CheckBox hawaiian = (CheckBox) findViewById(R.id.hawaiian_checked);\n boolean hasHawaiin = hawaiian.isChecked();\n\n Spinner crust = (Spinner) findViewById(R.id.crust_spinner);\n String crustType = crust.getSelectedItem().toString();\n\n Spinner size = (Spinner) findViewById(R.id.size_spinner);\n String sizeVal = size.getSelectedItem().toString();\n\n // calculate and store the total price\n double totalPrice = calculatePrice(hasExtraCheese, hasPepperoni, hasHawaiin, sizeVal);\n\n // create and store the order summary\n String orderSummaryMessage = createOrderSummary(userInputName, hasExtraCheese, hasPepperoni,\n hasHawaiin, crustType, sizeVal, totalPrice);\n\n // Write the relevant code for making the buttons work(i.e implement the implicit and explicit intents\n return orderSummaryMessage;\n }", "public OrderForm() {\n initComponents();\n mWaffleList = new ArrayList<Product>();\n mCoffeeList = new ArrayList<Product>();\n mbdb = new BelgianDatabaseHandler(dbpath+menuDbName);\n resetQuantityBox();\n generateMenu();\n //if done generating menu\n //update orderhandler BelgianWaffle class for the items\n mbw = new BelgianWaffle(mWaffleList,mCoffeeList,mbdb);\n model = new DefaultListModel();\n \n }", "public int getWeight(){\n\t\treturn weight;\n\t}", "public void setOrder(int order) {\n this.order = order;\n }", "public void setOrder(int order) {\n this.order = order;\n }" ]
[ "0.6339697", "0.62977785", "0.6238218", "0.61501247", "0.60002476", "0.5979027", "0.59746724", "0.59740186", "0.59359306", "0.59120935", "0.58828366", "0.58784646", "0.58449394", "0.5844463", "0.5840643", "0.58325046", "0.58205456", "0.5818198", "0.58165723", "0.58084357", "0.57845265", "0.5774594", "0.5750847", "0.5742184", "0.5731651", "0.5696859", "0.56852466", "0.5683148", "0.56750554", "0.5674454", "0.56706375", "0.56698537", "0.56612796", "0.5650372", "0.56441015", "0.5611107", "0.5602758", "0.55779743", "0.5577328", "0.55750024", "0.5572633", "0.5568739", "0.5559638", "0.555547", "0.55553526", "0.55497044", "0.5546213", "0.5537496", "0.55311376", "0.55230385", "0.5521852", "0.55184186", "0.5505207", "0.55030054", "0.5496861", "0.54807425", "0.5470033", "0.5455012", "0.54463917", "0.54460293", "0.54436654", "0.5442382", "0.54399866", "0.54306895", "0.5427363", "0.5422599", "0.5418233", "0.5416441", "0.5412935", "0.5406334", "0.54048616", "0.54019994", "0.5401493", "0.5398563", "0.5396234", "0.53943425", "0.53880876", "0.5370073", "0.5370073", "0.5363189", "0.536262", "0.53624964", "0.536115", "0.53563774", "0.53561497", "0.53488535", "0.5346571", "0.5345144", "0.53355044", "0.5333041", "0.53195435", "0.53149337", "0.53134507", "0.5309718", "0.5303958", "0.5302476", "0.5298604", "0.52974284", "0.52955353", "0.52955353" ]
0.6466029
0
A native method that is implemented by the 'nativelib' native library, which is packaged with this application.
public native String stringFromJNI();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private native String native_init();", "public native String sayHello();", "private static native void init();", "private static native void classInitNative();", "private native long nativeCreateDelegate();", "public static native void run();", "public /*static*/ native void init();", "static native void classInitNative();", "private static native boolean nativeClassInit();", "private static native long init();", "protected native void init();", "public interface Native {\n\n}", "private native int nativeAdd(int x, int y);", "public native void initNativeCallback();", "private static native long nativeInitialize(int arch, int mode) throws UnicornException;", "public native void answer();", "public static native void printHello();", "Object getNative();", "public native int __intMethod( long __swiftObject, int arg );", "private native int simpleOnCreate(String packageName);", "private NativeSupport() {\n\t}", "private native void nativePlay();", "public native static void jnikillMira();", "private native String native_finalize();", "private static native boolean open_1(long nativeObj, int device);", "public native int iniciarTracker();", "private static native int ptInitLibrary0(String lang);", "public native void constructor();", "public synchronized native static int open();", "private static native long create_0();", "private native void nativeFinalize();", "private static native boolean open_0(long nativeObj, String filename);", "private synchronized static native int nativeLoadImage( String fileName ) \n throws UnsatisfiedLinkError;", "private native void nRegister();", "public static native void release();", "native String nativeGetSignature(long nativeHandler) throws RuntimeException;", "public native int add(int a,int b);", "private synchronized native void nativeHide() \n throws UnsatisfiedLinkError;", "public native void instanceVoid();", "public native long __longMethod( long __swiftObject, long arg );", "private static native boolean retrieve_0(long nativeObj, long image_nativeObj, int flag);", "public interface NativeCallInterface {\n SValue call(Atom atom, ExecEnvironment env, ListEx<SValue> arguments) throws EgException;\n}", "private native String native_clinit();", "@C_FUNCTION\n public static native void syscall_membarrier();", "private native static long init(long avi);", "protected static native String getVersion();", "public native com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener __TestListenerMethod( long __swiftObject, com.johnholdsworth.swiftbindings.SwiftHelloTest.TestListener arg );", "public static native void staticVoid();", "public native int startService(long nativeHandle);", "public abstract long getNativePtr();", "private native void nativeSurfaceInit(Object surface);", "@Override // com.oculus.vrshell.panels.AndroidPanelApp\n public long createNativeInstance() {\n return nativeCreateInstance(0, 0);\n }", "private native boolean initFromJNI(int port);", "private static native long create_0(int mode);", "public static native void nativeClose();", "boolean hasNative();", "private NativeLibraryLoader() {\n }", "private native static int load_object(String componentFileName);", "public native String stringFromJNI();", "private static native void runFrame(long pointer);", "public native void activate();", "public native java.lang.String __StringMethod( long __swiftObject, java.lang.String arg );", "public static native String SayHelo();", "public /* bridge */ /* synthetic */ java.lang.Object run() throws java.lang.Exception {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.Signer.1.run():java.lang.Object, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.1.run():java.lang.Object\");\n }", "private native void pararCamara();", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private static native void delete(long nativeObj);", "private synchronized native void nativeEnable( int image, String tooltip ) \n throws UnsatisfiedLinkError;", "@VisibleForTesting\n public void initialize() {\n initializeNative();\n }", "private static native String decode_0(long nativeObj, long img_nativeObj, long points_nativeObj, long straight_code_nativeObj);", "private native void CreateJNIObj(String device);", "private static native boolean read_0(long nativeObj, long image_nativeObj);", "private synchronized static native int nativeLoadImageFromResource( int intResource ) \n throws UnsatisfiedLinkError;", "native void nativeClose(long nativeHandler);", "public native byte __byteMethod( long __swiftObject, byte arg );", "@Override\n\tpublic long javaMethodBaseWithULongLongRet() {\n\t\treturn 0;\n\t}", "private synchronized static native void nativeFreeImage( int image ) \n throws UnsatisfiedLinkError;" ]
[ "0.7545926", "0.7270657", "0.7240605", "0.7084562", "0.706658", "0.7017377", "0.6974813", "0.6970278", "0.69449276", "0.69324636", "0.68945926", "0.68445563", "0.6813044", "0.6785555", "0.67793053", "0.6761838", "0.6675699", "0.6648069", "0.66197485", "0.6596017", "0.65136373", "0.65109414", "0.6481312", "0.64373296", "0.6405203", "0.63383037", "0.63210094", "0.6314159", "0.63102645", "0.6287086", "0.62589455", "0.6247629", "0.6235837", "0.61881125", "0.61805534", "0.6161055", "0.6142571", "0.61321384", "0.61305124", "0.6108888", "0.609727", "0.6089142", "0.6088438", "0.606633", "0.60624284", "0.60538936", "0.6036245", "0.6024218", "0.6020264", "0.6001993", "0.59934026", "0.5991787", "0.5985197", "0.59818405", "0.5975658", "0.5956145", "0.5945786", "0.5882756", "0.5882132", "0.58645904", "0.5856919", "0.58518076", "0.58487296", "0.5837595", "0.5833422", "0.5819745", "0.5819745", "0.5819745", "0.5819745", "0.5819745", "0.5819745", "0.5819745", "0.5819745", "0.5815093", "0.58093166", "0.5802842", "0.5798451", "0.5762907", "0.574916", "0.5739015", "0.57382846", "0.57327646", "0.57192355" ]
0.57822764
92
assuming arr2 will be of greater length
public int findLongestCommonIncreasingSubsequence(int [] arr, int [] arr2) { // length of lcs ending at arr2[i] int [] dp = new int[arr2.length]; for (int i = 0; i < arr.length; i++) { int current = 0; for (int j = 0; j < arr2.length; j++) { if (arr[i] == arr2[j]) { if (current + 1 > dp[j]) { dp[j] = current + 1; } } if (arr[i] > arr[j]) { if (table[j] > current) { current = table[j]; } } } } for (int i = 0; i < arr2.length; i++) { res = Math.max(res, dp[i]); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Cell[] concatArray(Cell[] arr1, Cell[] arr2) {\r\n\t\tCell[] concat = new Cell[arr1.length + arr2.length];\r\n\t\tfor (int k = 0; k < concat.length; k++) {\r\n\t\t\tif (k < arr1.length) {\r\n\t\t\t\tconcat[k] = arr1[k];\r\n\t\t\t} else {\r\n\t\t\t\tconcat[k] = arr2[k - arr1.length];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn concat;\r\n\t}", "private static int[] mergeSortedArrays(int[] arr1, int[] arr2) {\n if (arr1 == null\n || arr2 == null\n || arr1.length == 0\n || arr2.length == 0) {\n return new int[]{-1};\n }\n\n int[] mergedArr = new int[arr1.length + arr2.length];\n int lengthOfArrOne = arr1.length;\n int lengthOfArrTwo = arr2.length;\n int indexForFirstArr = 0;\n int indexForSecondArr = 0;\n int indexForMergedArr = 0;\n while (indexForFirstArr < lengthOfArrOne\n && indexForSecondArr < lengthOfArrTwo) {\n if (arr1[indexForFirstArr] < arr2[indexForSecondArr]) {\n mergedArr[indexForMergedArr++] = arr1[indexForFirstArr++];\n } else {\n mergedArr[indexForMergedArr++] = arr2[indexForSecondArr++];\n }\n\n //increase index counter\n //indexForFirstArr++;\n //indexForSecondArr++;\n }\n\n //append the remaining array\n if(indexForFirstArr == lengthOfArrOne\n && indexForSecondArr < lengthOfArrTwo){\n for(int index = indexForSecondArr; indexForSecondArr<lengthOfArrTwo; indexForSecondArr++){\n mergedArr[indexForMergedArr++] = arr2[index];\n }\n }else if(indexForFirstArr < lengthOfArrOne\n && indexForSecondArr == lengthOfArrTwo){\n for(int index = indexForFirstArr; indexForFirstArr<lengthOfArrOne; indexForFirstArr++){\n mergedArr[indexForMergedArr++] = arr1[index];\n }\n }\n\n //decrease the extra space in the last index\n --indexForMergedArr;\n\n return mergedArr;\n }", "public static int[] array(int[] arr1, int[] arr2) {\n\n int[] arr3 = new int[arr1.length + arr2.length]; //now the length = 5\n int j = 0;//will represent indexes of 3rd array\n\n for (int each : arr1) { //1, 2, 3\n arr3[j++] = each;\n }\n\n for (int each : arr2) {\n arr3[j++] = each;\n }\n\n return arr3;\n }", "public static int[] merge(int[] arr1, int[] arr2) {\n int[] arr = new int[arr1.length * 2];\n int count1 = 0;\n int count2 = 0;\n while (count1 + count2 < arr.length) {\n if (count2 == arr2.length) {\n arr[count1+count2] = arr1[count1];\n count1++;\n } else if (count1 == arr1.length) {\n arr[count2+count1] = arr2[count2];\n count2++;\n } else {\n if (arr1[count1] < arr2[count2]) {\n arr[count1+count2] = arr1[count1];\n count1++;\n } else {\n arr[count1+count2] = arr2[count2];\n count2++;\n }\n }\n }\n return arr;\n }", "private static void sort(int[] arr, String[] arr2) {\n\t\tfor(int j = 1; j<arr.length;j++)\r\n\t\t{\r\n\t\t\tint key = arr[j];\r\n\t\t\tString key2 = arr2[j];\r\n\t\t\tint i = j-1;\r\n\t\t\twhile((i>-1) && (arr[i] > key))\r\n\t\t\t{\r\n\t\t\t\tarr[i+1] = arr[i];\r\n\t\t\t\tarr2[i+1] = arr2[i];\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\tarr[i+1] = key;\r\n\t\t\tarr2[i+1] = key2;\r\n\t\t}\r\n\t}", "public static int[] merge_v1(int[] arr1, int[] arr2) {\n\n\t\t// checking if the arrays are null\n\t\tif ((arr1 == null || arr1.length == 0) && (arr2 == null || arr2.length == 0)) {\n\t\t\treturn null;\n\t\t} else if (arr1 == null || arr1.length == 0) {\n\t\t\treturn arr2;\n\t\t} else if (arr2 == null || arr2.length == 0) {\n\t\t\treturn arr1;\n\t\t}\n\n\t\tint[] result = new int[arr1.length + arr2.length];\n\t\tboolean[] isUsed = new boolean[arr1.length + arr2.length];\n\t\tArrays.fill(isUsed, false);\n\n\t\tint index = -1;\n\t\tboolean check;\n\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\tresult[i] = Integer.MIN_VALUE;\n\t\t\tcheck = false;\n\n\t\t\tfor (int j = 0; j < arr1.length; j++) {\n\t\t\t\t// if the current int is greater than lowest and is not used\n\t\t\t\tif ((check == false && isUsed[j] == false) || (result[i] > arr1[j] && isUsed[j] == false)) {\n\t\t\t\t\tresult[i] = arr1[j];\n\t\t\t\t\tindex = j;\n\t\t\t\t\tcheck = true;\n\t\t\t\t\t// isUsed[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int j = 0; j < arr2.length; j++) {\n\t\t\t\t// if the current int is greater than lowest and is not used\n\t\t\t\tif ((check == false && isUsed[j + arr1.length] == false)\n\t\t\t\t\t\t|| (result[i] > arr2[j] && isUsed[j + arr1.length] == false)) {\n\t\t\t\t\tresult[i] = arr2[j];\n\t\t\t\t\tindex = j + arr1.length;\n\t\t\t\t\tcheck = true;\n\t\t\t\t\t// isUsed[j + + arr1.length] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tisUsed[index] = true;\n\t\t}\n\n\t\treturn result;\n\t}", "public static int[] merge_v2(int[] arr1, int[] arr2) {\n\t\tif ((arr1 == null || arr1.length == 0) && (arr2 == null || arr2.length == 0)) {\n\t\t\treturn null;\n\t\t} else if (arr1 == null || arr1.length == 0) {\n\t\t\treturn Arrays.copyOf(arr2, arr2.length);\n\t\t} else if (arr2 == null || arr2.length == 0) {\n\t\t\treturn Arrays.copyOf(arr1, arr1.length);\n\t\t}\n\n\t\t// assuming arr1 and arr2 are null\n\t\tint pointer1 = 0;\n\t\tint pointer2 = 0;\n\t\tint[] result = new int[arr1.length + arr2.length];\n\n\t\tfor (int i = 0; i < result.length; i++) {\n\n\t\t\tif (pointer2 > arr2.length - 1) {\n\t\t\t\tresult[i] = arr1[pointer1];\n\t\t\t\tpointer1++;\n\t\t\t} else if ((pointer1 > arr1.length - 1) || (arr1[pointer1] > arr2[pointer2])) {\n\t\t\t\tresult[i] = arr2[pointer2];\n\t\t\t\tpointer2++;\n\t\t\t} else {\n\t\t\t\tresult[i] = arr1[pointer1];\n\t\t\t\tpointer1++;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "public static int[] mergeTwoSortedArraysWithoutExtraSpace(int arr1[],int m,int arr2[],int n)\r\n { \r\n int l=(arr1.length-1);\r\n if(n!=0){\r\n for(int i=m-1;i>=0;i--)\r\n {\r\n arr1[l]=arr1[i];\r\n --l;\r\n arr1[i]=0;\r\n }\r\n }\r\n Simple.printArray(arr1);\r\n int i=arr1.length-m;\r\n System.out.println(i);\r\n int j=0;\r\n int k=0;\r\n while(i<arr1.length && j<n)\r\n {\r\n System.out.println(i);\r\n if(arr1[i]<arr2[j])\r\n {\r\n arr1[k]=arr1[i];\r\n i++;\r\n k++;\r\n }\r\n else \r\n {\r\n {\r\n arr1[k]=arr2[j];\r\n j++;\r\n k++;\r\n }\r\n }\r\n }\r\n\r\n while(j<n)\r\n {\r\n\r\n arr1[k]=arr2[j];\r\n j++;\r\n k++;\r\n }\r\n\r\n Simple.printArray(arr1);\r\n return arr1;\r\n }", "public static void main(String[] args) {\n\t\tint arr1[] = {1, 3, 5};\n\t\tint arr2[] = {2, 3, 3};\n\t\tint a[] = merge(arr1, arr2);\n\t\tfor (int i = 0; i )\n\t\tSystem.out.println();\n\t}\n\t\n\tpublic static int[] merge (int arr1[], int arr2[]){\n\t\tint result[] = new int[arr1.length + arr2.length];\n\t\tint idex_arr1 = 0;\n\t\tint idex_arr2 = 0;\n\t\tint idex_result = 0;\n\t\t//index arr1 < index arr2, result [0] = arr1[0]\n\t\twhile (idex_arr1 < arr1.length || idex_arr2 < arr2.length)\n\t\t{\n\t\t\tif (idex_arr2 >= arr2.length)\n\t\t\t{\n\t\t\t\tresult[idex_result++] = arr1[idex_arr1++];\n\t\t\t}\n\t\t\telse if (idex_arr1 < arr1.length)\n\t\t\t{\n\t\t\t\tif (arr1[idex_arr1] < arr2[idex_arr2])\n\t\t\t\t\tresult[idex_result++] = arr1[idex_arr1++];\n\t\t\t\telse\n\t\t\t\t\tresult[idex_result++] = arr2[idex_arr2++];\n\t\t\t} else {\n\t\t\t\tresult[idex_result++] = arr2[idex_arr2++];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "static void mergeWithoutExtraSpace(int[] arr1, int[] arr2) {\n int lastIndexOfArr1 = arr1.length - 1;\n int firstIndexOfArr2 = 0;\n\n while (lastIndexOfArr1 >= 0 && firstIndexOfArr2 < arr2.length) {\n if (arr1[lastIndexOfArr1] > arr2[firstIndexOfArr2]) {\n int temp = arr1[lastIndexOfArr1];\n arr1[lastIndexOfArr1] = arr2[firstIndexOfArr2];\n arr2[firstIndexOfArr2] = temp;\n lastIndexOfArr1--;\n firstIndexOfArr2++;\n } else\n\n /*This is the condition when arr1[lastIndexOfArr1] > arr2[firstIndexOfArr2], that means after this\n * situation, Arr1's all left to current elements would be smaller then right elements of arr2 so we are\n * breaking this loop here.\n * */\n break;\n\n }\n\n //Now arr1 has all element lower than any element of arr2 so now sort them individually and print them\n Arrays.sort(arr1);\n Arrays.sort(arr2);\n\n for (int t : arr1) {\n System.out.print(t + \" \");\n }\n System.out.println(\"*\");\n for (int t : arr2) {\n System.out.print(t + \" \");\n }\n System.out.println(\"*\");\n\n StringBuilder sb = new StringBuilder();\n for (int value : arr1) {\n sb.append(value).append(\" \");\n }\n\n for (int value : arr2) {\n sb.append(value).append(\" \");\n }\n System.out.println(sb);\n }", "public static int[] merge(int[] arr1, int[] arr2) {\n int[] merged = new int[arr1.length + arr2.length];\n\n int arr1Index = 0;\n int arr2Index = 0;\n int mergedIndex = 0;\n\n // Keep taking values from arr1 or arr2 until the merged array is full.\n while (mergedIndex < merged.length) {\n\n if (arr1Index < arr1.length && arr2Index < arr2.length) {\n /*\n * Still have values in both arr1 and arr2 that have not been\n * used, so take the smaller of the two and put it into merged.\n */\n if (arr1[arr1Index] < arr2[arr2Index]) {\n merged[mergedIndex] = arr1[arr1Index];\n arr1Index++;\n }\n else {\n merged[mergedIndex] = arr2[arr2Index];\n arr2Index++;\n }\n }\n else if (arr1Index < arr1.length) {\n /*\n * There are still values in arr1 that have not been used but\n * arr2 has been exhausted so take the next value from arr1.\n */\n merged[mergedIndex] = arr1[arr1Index];\n arr1Index++;\n }\n else {\n /*\n * There are still values in arr2 that have not been used but\n * arr1 has been exhausted so take the next value from arr2.\n */\n merged[mergedIndex] = arr2[arr2Index];\n arr2Index++;\n }\n\n mergedIndex++;\n }\n\n return merged;\n }", "private static void mergeSortedArrays(int[] arr1, int[] arr2, int length1, int length2) {\n\t\tint j = 0;\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (length1 > length2) {\n\t\t\tfor (int i = length1 - length2; i < length1; i++) {\n\t\t\t\tarr1[i] = arr2[j++];\n\t\t\t}\n\t\t\tArrays.sort(arr1);\n\t\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\t\tsb.append(arr1[i] + \" \");\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = length2 - length1; i < length2; i++) {\n\t\t\t\tarr2[i] = arr1[j++];\n\t\t\t}\n\t\t\tArrays.sort(arr2);\n\t\t\tfor (int i = 0; i < arr2.length; i++) {\n\t\t\t\tsb.append(arr2[i] + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "void findDifferIndexFromStringArray(String[] arr1 , String[] arr2){\n\t\tif (arr1.length == arr2.length) {\n\t\t\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\t\t\tif (arr1[i]!= arr2[i]) {\n\t\t\t\t\t\tSystem.out.println(\"Values are not matching at index -> \"+i +\", [arr1 value is \" +arr1[i] +\", arr2 Value is\"+ arr2[i] +\"]\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\telse \n\t\t\tSystem.out.println(\"Length are not Equal \");\t\n\t\t}", "private static byte[] m5292a(byte[] bArr, byte[] bArr2) {\n int i = 0;\n byte[] bArr3 = new byte[(bArr2.length + 16)];\n while (i < bArr3.length) {\n bArr3[i] = i < 16 ? bArr[i] : bArr2[i - 16];\n i++;\n }\n return bArr3;\n }", "public static void main(String[] args) {\n\t\tint []arr1= {12,13,44};\r\n\t\tint []arr2= {44,45,47,50};\r\n\t\tint i,j;\r\n\t\tint count=0;\r\n\t\t\r\n\t\tint []merge=new int[arr1.length+arr2.length];\r\n\t\tfor(i=0;i<arr1.length;i++)\r\n\t\t{\r\n\t\t\tmerge[i]=arr1[i];\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\tfor(i=0;i<arr2.length;i++)\r\n\t\t\t{\r\n\t\t\t\tmerge[count++]=arr2[i];\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(i=0;i<merge.length;i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\" \" +merge[i]);\r\n\t\t\t}\r\n\t\t\r\n\r\n\t}", "int[] populateArray(int[] firstArr,int[] secondArr){\n\t\tlength = firstArr.length + secondArr.length; //Getting length of the resultant array\n\t\tresultArr = new int[length]; //set resultant array length\n\t\tfor(kCounter = 0 ; kCounter < length; kCounter++){\n\t\t\t//checking index of the array is even or odd\n\t\t\tif(kCounter % 2 == 0){\n\t\t\t\tresultArr[kCounter] = secondArr[iCounter]; //if position is even then add element to even index\n\t\t\t\tiCounter++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tresultArr[kCounter] = firstArr[jCounter]; //if position is odd then add element to odd index\n\t\t\t\tjCounter++;\n\t\t\t}\n\t\t}\n\t\treturn resultArr;\n\t}", "private int[] compact(int[] arr, int len) {\n assert arr != null;\n assert U.isNonDecreasingArray(arr, len);\n\n if (arr.length <= 1)\n return U.copyIfExceeded(arr, len);\n\n int newLen = 1;\n\n for (int i = 1; i < len; i++) {\n if (arr[i] != arr[newLen - 1])\n arr[newLen++] = arr[i];\n }\n\n return U.copyIfExceeded(arr, len);\n }", "private static int[] mergeSortedArray(int[] a, int[] b){\n int i = a.length -1;\n for(int j = 3, k = 3, x=0; ( (j >= 0) && (k >= 0)) ; x++){\n\n if(a[j] > b[k]){\n a[i] = a[j];\n a[j] = 0;\n --j;\n --i;\n\n } else{\n a[i] = b[k];\n --k;\n --i;\n }\n\n if(j == -1 ) // this condition worked\n j = 0;\n }\n\n return a;\n\n }", "private static void merge(int arr[], int[] buf, int a, int aLen, int b, int bLen) {\n int from = a;\n\n int aEnd = a + aLen;\n int bEnd = b + bLen;\n\n int i = 0;\n\n while (a < aEnd || b < bEnd) {\n if (b >= bEnd || (a < aEnd && arr[a] < arr[b])) {\n buf[i] = arr[a];\n ++a;\n } else {\n buf[i] = arr[b];\n ++b;\n }\n ++i;\n }\n\n System.arraycopy(buf, 0, arr, from, aLen + bLen);\n }", "public static int[] relativeSortArray(int[] arr1_orig, int[] arr2) {\n\t\tint[] arr1 = arr1_orig.clone();\n int[] cnt = new int[1001];\n for(int n : arr1) {\n cnt[n]++;\n }\n int i = 0;\n for(int n : arr2) {\n while(cnt[n]-- > 0) {\n arr1[i++] = n;\n }\n }\n for(int n = 0; n < cnt.length; n++) {\n while(cnt[n]-- > 0) {\n arr1[i++] = n;\n }\n }\n return arr1;\n }", "public static void merge(int[] arr1, int[] arr2, int[] arr3) {\r\n\t\r\n\t\tint m = arr1.length, n = arr2.length, i = 0, j = 0, k = 0;\r\n\t \r\n // Traverse both array.\r\n while (i < m && j < n) {\r\n // Check if current element of first array is smaller than current element of second array.\r\n \t// If yes, store first array element and increment first array index. \r\n \t// Otherwise do same with second array.\r\n if (arr1[i] < arr2[j]) {\r\n arr3[k] = arr1[i];\r\n i++;\r\n } else {\r\n arr3[k] = arr2[j];\r\n j++;\r\n }\r\n \r\n k++;\r\n }\r\n \r\n // Store remaining elements of first array.\r\n while (i < m) {\r\n arr3[k] = arr1[i];\r\n i++;\r\n k++;\r\n }\r\n \r\n // Store remaining elements of second array.\r\n while (j < n) {\r\n arr3[k] = arr2[j];\r\n j++;\r\n k++;\r\n }\r\n\t}", "private int backmerge(int[] arr, int arr1, int l1, int arr2, int l2) {\n\t\tint arr0 = arr2 + l1;\n\t\tfor (;;) {\n\t\t\tif (this.reads.compare(arr[arr1], arr[arr2]) > 0) {\n\t\t\t\tthis.writes.swap(arr, arr1--, arr0--, 1, true, false);\n\t\t\t\tif (--l1 == 0) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthis.writes.swap(arr, arr2--, arr0--, 1, true, false);\n\t\t\t\tif (--l2 == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tint res = l1;\n\t\tdo {\n\t\t\tthis.writes.swap(arr, arr1--, arr0--, 1, true, false);\n\n\t\t} while (--l1 != 0);\n\t\treturn res;\n\t}", "static\nint\nprintUnion(\nint\narr1[], \nint\narr2[], \nint\nm, \nint\nn) \n\n{ \n\nint\ni = \n0\n, j = \n0\n; \n\nwhile\n(i < m && j < n) \n\n{ \n\nif\n(arr1[i] < arr2[j]) \n\nSystem.out.print(arr1[i++]+\n\" \"\n); \n\nelse\nif\n(arr2[j] < arr1[i]) \n\nSystem.out.print(arr2[j++]+\n\" \"\n); \n\nelse\n\n{ \n\nSystem.out.print(arr2[j++]+\n\" \"\n); \n\ni++; \n\n} \n\n} \n\n\n/* Print remaining elements of \n\nthe larger array */\n\nwhile\n(i < m) \n\nSystem.out.print(arr1[i++]+\n\" \"\n); \n\nwhile\n(j < n) \n\nSystem.out.print(arr2[j++]+\n\" \"\n); \n\n\nreturn\n0\n; \n\n}", "private void ensureCap(){\n T[] temp = (T[])new Object[arr.length * 2];\n for(int i = 0; i < numItems; i++){\n temp[i] = this.arr[i];\n }\n this.arr = temp;\n }", "public int[] merge(int[] oneArr, int[] twoArr) {\n int lenOneArr = oneArr.length , lenTwoArr = twoArr.length ; // Длинна 1-го и 2-го массива\n int[] threeArr = new int[lenOneArr + lenTwoArr];\n int i = 0, j = 0;\n while (i < lenOneArr && j < lenTwoArr) {\n if (oneArr[i] < twoArr[j]) {\n threeArr[i + j] = oneArr[i];\n i++;\n } else {\n threeArr[i + j] = twoArr[j];\n j++;\n }\n }\n while (i < lenOneArr) { // Если достигнут конец одного из массива цикл дописывает оставшуюся часть доконца.\n threeArr[i + j] = oneArr[i];\n i++;\n }\n while (j < lenTwoArr) {\n threeArr[i + j] = twoArr[j];\n j++;\n }\n return threeArr;\n }", "public static int[] mergeArrays(int[] a1, int[] a2) {\n if (a1 == null || a1.length == 0) {\n if (a2 == null || a2.length == 0) {\n return new int[0];\n }\n return a2;\n }\n if (a2 == null || a2.length == 0) {\n return a1;\n }\n\n // Теперь работаем с массивами, где есть хотя бы 1 элемент.\n int[] a3 = new int[a1.length + a2.length];\n for (int index1 = 0, index2 = 0, index3 = 0; index3 < a3.length; ) {\n int minValue = a1[index1] < a2[index2] ? a1[index1] : a2[index2];\n // Работаем с первым массивом\n while (index1 < a1.length && minValue == a1[index1]) {\n a3[index3++] = a1[index1++];\n }\n if (index1 == a1.length) {\n // Первый массив закончился, сливаем хвост второго\n while (index2 < a2.length && index3 < a3.length) {\n a3[index3++] = a2[index2++];\n }\n return a3;\n }\n // Работаем со вторым массивом\n while (index2 < a2.length && minValue == a2[index2]) {\n a3[index3++] = a2[index2++];\n }\n if (index2 == a2.length) {\n // Второй массив закончился, сливаем хвост первого массива\n while (index1 < a1.length && index3 < a3.length) {\n a3[index3++] = a1[index1++];\n }\n return a3;\n }\n }\n return a3;\n }", "public static int[] merge(int[] arrLeft, int[] arrRight){\n int[] vals = new int[arrLeft.length + arrRight.length];\n int i = 0;\n int j = 0;\n while(i < arrLeft.length && j < arrRight.length){\n if(arrLeft[i] < arrRight[j]){\n vals[i+j] = arrLeft[i];\n i++;\n }else{\n vals[i+j] = arrRight[j];\n j++;\n }\n }\n while(i < arrLeft.length){\n vals[i+j] = arrLeft[i];\n i++;\n }\n while(j < arrRight.length){\n vals[i+j] = arrRight[j];\n j++;\n }\n return vals;\n\n}", "public int[] commonElements(int[] arr1, int[] arr2) {\n arr1 = (arr1);\n arr2 = (arr2);\n\n int size1 = arr1.length;\n int size2 = arr2.length;\n\n int[] temp = new int[size1 < size2 ? size1 : size2];\n\n int i = 0;\n int i1 = 0;\n int i2 = 0;\n\n while ((i1 < size1) && (i2 < size2)) {\n if (arr1[i1] == arr2[i2]) {\n temp[i] = arr1[i1];\n i1++;\n i2++;\n i++;\n } else if (arr1[i1] < arr2[i2]) {\n i1++;\n } else if (arr1[i1] > arr2[i2]) {\n i2++;\n }\n }\n\n int[] arr = new int[i];\n for (int j = 0; j < arr.length; j++) {\n arr[j] = temp[j];\n }\n\n return arr;\n }", "static int[] mergeTwoSortedArrays(int a1[],int m,int a2[] ,int n)\r\n {\r\n int arr[]=new int[a1.length+a2.length];\r\n int i=0,j=0,k=0;\r\n while(i<m && j<n)\r\n {\r\n if(a1[i]<a2[j])\r\n {\r\n arr[k]=a1[i];\r\n i++;\r\n k++;\r\n }\r\n else\r\n {\r\n arr[k]=a2[j];\r\n j++;\r\n k++;\r\n }\r\n }\r\n while(i<m)\r\n {\r\n arr[k]=a1[i];\r\n i++;\r\n k++;\r\n }\r\n \r\n\r\n while(j<n)\r\n {\r\n arr[k]=a2[j];\r\n j++;\r\n k++;\r\n }\r\n \r\n System.out.println(i+\" \"+ j);\r\n return arr;\r\n }", "static int findMissing2(int arr[], int size)\n {\n int shift = segregate (arr, size);\n int arr2[] = new int[size-shift];\n int j=0;\n for(int i=shift;i<(size);i++)\n {\n arr2[j] = arr[i];\n j++;\n } \n return findMissingPositive(arr2, j);\n }", "public static String[] m66063a(Comparator<? super String> comparator, String[] strArr, String[] strArr2) {\n ArrayList arrayList = new ArrayList();\n for (String str : strArr) {\n int length = strArr2.length;\n int i = 0;\n while (true) {\n if (i >= length) {\n break;\n } else if (comparator.compare(str, strArr2[i]) == 0) {\n arrayList.add(str);\n break;\n } else {\n i++;\n }\n }\n }\n return (String[]) arrayList.toArray(new String[arrayList.size()]);\n }", "public static void merge(int[] arr, int[] arrLeft, int[] arrRight) {\r\n int i = 0;\r\n int j = 0;\r\n for (int k = 0; k < arr.length; k++) {\r\n if (j > arrRight.length - 1 || (i <= arrLeft.length - 1\r\n && arrLeft[i] <= arrRight[j])) {\r\n arr[k] = arrLeft[i];\r\n i++;\r\n } else {\r\n arr[k] = arrRight[j];\r\n j++;\r\n }\r\n }\r\n }", "private static int[] merge(int array1[], int array2[]) {\n\n\t\tint totalNumbers = array1.length + array2.length;\n\t\tint mergedArray[] = new int[totalNumbers];\n\n\t\tint pointerInArray1 = 0, pointerInArray2 = 0;\n\n\t\tfor (int i = 0; i < totalNumbers; i++) {\n\t\t\tif (pointerInArray1 >= array1.length) {\n\t\t\t\tmergedArray[i] = array2[pointerInArray2++];\n\t\t\t} else if (pointerInArray2 >= array2.length) {\n\t\t\t\tmergedArray[i] = array1[pointerInArray1++];\n\t\t\t} else if (array1[pointerInArray1] < array2[pointerInArray2]) {\n\t\t\t\tmergedArray[i] = array1[pointerInArray1++];\n\t\t\t} else {\n\t\t\t\tmergedArray[i] = array2[pointerInArray2++];\n\t\t\t}\n\t\t}\n\n\t\treturn mergedArray;\n\t}", "private static List<Integer> getCommonElementsAlgo1(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> list1 = new ArrayList<Integer>();\n\t\tfor (int i : arr1) {\n\t\t\tlist1.add(i);\n\t\t}\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tfor (int i : arr2) {\n\t\t\tlist2.add(i);\n\t\t}\n\t\tif (list1.size() > list2.size()) {\n\t\t\tlist1.retainAll(list2);\n\t\t\treturn list1;\n\t\t}\n\t\telse {\n\t\t\tlist2.retainAll(list1);\n\t\t\treturn list2;\n\t\t}\n\t\t\n\t}", "void doMerge() {\n int[] temp = new int[arr.length + brr.length];\n int count = 0;\n for (int i = 0; i < arr.length; i++) {\n temp[i] = arr[i];\n count++;\n }\n for (int i = 0; i < brr.length; i++) {\n temp[count++] = brr[i];\n }\n for (int i = 0; i < temp.length; i++) {\n System.out.println( temp[i] );\n }\n String a[] = {\"A\", \"E\", \"I\"};\n String b[] = {\"O\", \"U\"};\n List<String> list = new ArrayList( Arrays.asList( a ) );\n list.addAll( Arrays.asList( b ) );\n Object[] c = list.toArray();\n System.out.println( Arrays.toString( c ) );\n }", "private void createArrays(){\n array1 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n array2 = new BubbleSort(CreateIntArray.fillArray(15)).bubbleSort();\n BubbleSort.listArrayElements(array1);\n BubbleSort.listArrayElements(array2);\n\n int[] array = new int[array1.length + array2.length];\n\n int i = 0, j = 0;\n for (int k = 0; k < array.length; k++){\n if(i > array1.length - 1){\n array[k] = array2[j];\n j++;\n } else if(j > array2.length - 1){\n array[k] = array1[i];\n i++;\n } else if (array1[i] < array2[j]){\n array[k] = array1[i];\n i++;\n } else {\n array[k] = array2[j];\n j++;\n }\n\n }\n BubbleSort.listArrayElements(array);\n\n\n }", "public static void print2Arrays2(int[]arrNums1,int[]arrNums2) {\n\t\t\t if (arrNums1.length>arrNums2.length) {\n\t\t\t \t printArray(arrNums1);\n\t\t\t \t printArray(arrNums2);\n\t\t\t \n\t\t\t } else {\n\t\t\t \t printArray(arrNums2);\n\t\t\t \t printArray(arrNums1);\n\n\t\t}\n\t\t }", "static void merge(int arr[], int l, int m, int r) \n { \n // Sizes of the two subarrays\n int size1 = m - l + 1; \n int size2 = r - m; \n \n // Temporary arrays\n int left[] = new int [size1]; \n int right[] = new int [size2]; \n \n // Copy over to temps\n for (int i=0; i<size1; ++i) \n left[i] = arr[l + i]; \n for (int j=0; j<size2; ++j) \n right[j] = arr[m + 1+ j]; \n \n \n // Initial indexes of first and second subarrays \n int i = 0, j = 0; \n \n // Initial index of merged subarry array \n int k = l; \n while (i < size1 && j < size2) \n { \n if (left[i] <= right[j]) \n { \n arr[k] = left[i]; \n i++; \n } \n else\n { \n arr[k] = right[j]; \n j++; \n } \n k++; \n } \n \n // Copy rest of arrays\n while (i < size1) \n { \n arr[k] = left[i]; \n i++; \n k++; \n } \n \n // For the other array\n while (j < size2) \n { \n arr[k] = right[j]; \n j++; \n k++; \n } \n }", "private void grow()\n\t{\n\t\tint temp[] = new int[count * 2];\n\t\tfor(int index = 0; index < count; index = index + 1)\n\t\t\ttemp[index] = array1[index];\n\t\tarray1 = temp;\n\t}", "public void reverseArray(int[] arr1) {\n int k = arr1.length;\n int arr2[] = new int[arr1.length];\n for (int i = 0; i < arr1.length; i++) {\n arr2[k - 1] = arr1[i];\n k = k - 1;\n }\n System.out.println( \"After Reversing Elemenst\" );\n dispArray( arr2 );\n // Swap\n int temp;\n for (int i = 0; i < arr1.length / 2; i++) {\n temp = arr1[i];\n arr1[i] = arr1[arr1.length - i - 1];\n arr1[arr1.length - i - 1] = temp;\n }\n dispArray( arr1 );\n\n\n }", "void merge(int arr[], int l, int m , int r)\n {\n int n1 = m-l+1;\n int n2 = r-m;\n\n //create temp arrays\n int L[] = new int[n1];\n int R[] = new int[n2];\n\n //copy the elements to the array\n for(int i=0; i < n1 ;i++)\n L[i] = arr[l+i];\n for(int j=0; j < n2 ;j++)\n R[j] = arr[m+1+j];\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarry array\n int k = l;\n\n while(i<n1 && j< n2)\n {\n if(L[i] <= R[j])\n {\n arr[k++] = L[i++];\n }\n else\n {\n arr[k++] = R[j++];\n }\n }\n\n while(i<n1)\n {\n arr[k++]=L[i++];\n }\n\n while(j<n2)\n {\n arr[k++]=R[j++];\n }\n\n }", "public static int[] mergeArray1(int[] mArr, int[] nArr){\r\n\t\tint k = 0;\r\n\t\tint i, j;\r\n\t\tshiftAllElementsToEnd(mArr, nArr.length);\r\n\t\tfor(i = (nArr.length), j = 0; i < mArr.length && j < nArr.length;){\r\n\t\t\tSystem.out.println(i+\"---\"+j);\r\n\t\t\tif(mArr[i] < nArr[j]){\r\n\t\t\t\tmArr[k++] = mArr[i];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\telse if(mArr[i] >= nArr[j]){\r\n\t\t\t\tmArr[k++] = nArr[j];\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(j < mArr.length && k < mArr.length){\r\n\t\t\tmArr[k++] = nArr[j++];\r\n\t\t}\r\n//\t\tReadData rData = new ReadData();\r\n//\t\tSystem.out.println();\r\n//\t\trData.printData(mArr);\r\n//\t\tSystem.out.println();\r\n\t\treturn mArr;\r\n\t}", "Integer[] concatArrays(Integer[] array1, Integer[] array2);", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "static int equalizeArray(int[] arr) {\n \n int a[]=new int[arr.length];\n int max=0;\n for(int i=0;i<arr.length;i++){\n int c=0; \n for(int j=0;j<arr.length;j++){\n if(arr[i]==arr[j]){\n c++;\n }\n }\n if(max<c) max=c;\n }\n return arr.length-max;\n }", "public static int[] mergeArrays(int[] marr, int[] aarr) {\n int i=0,j=0,k=0,l1=marr.length,l2=aarr.length;\n if(l1 ==0 && l2 == 0) return new int[] {};\n else if(l1==0) return aarr;\n else if(l2==0) return marr;\n else{\n int a[]=new int[l1+l2];\n while(i<l1 && j<l2){\n if(marr[i]<=aarr[j]){\n a[k++]=marr[i++];\n }\n else a[k++]=aarr[j++];\n }\n if(i<l1){\n while(i<l1){\n a[k++]=marr[i++];\n }\n }\n else if(j<l2){\n while(j<l2) a[k++]=aarr[j++];\n }\n return a;\n }\n }", "public int[] merge(int[] otherArray)\n\t{\n\t\tint[] newArray = null;\n\t\tif (otherArray != null)\n\t\t{\n\t\t\tnewArray = new int[array.length + otherArray.length];\n\t\t int arrayIndex = 0, otherIndex = 0, thirdIndex = 0;\n\t\t while (arrayIndex < array.length && otherIndex < otherArray.length)\n\t\t {\n\t\t if (array[arrayIndex] < otherArray[otherIndex])\n\t\t {\n\t\t newArray[thirdIndex] = array[arrayIndex];\n\t\t arrayIndex++;\n\t\t } else\n\t\t {\n\t\t newArray[thirdIndex] = otherArray[otherIndex];\n\t\t otherIndex++;\n\t\t }\n\t\t thirdIndex++;\n\t\t }\n\n\t\t while (arrayIndex < array.length)\n\t\t {\n\t\t newArray[thirdIndex] = array[arrayIndex];\n\t\t arrayIndex++;\n\t\t thirdIndex++;\n\t\t }\n\n\t\t while (otherIndex < otherArray.length)\n\t\t {\n\t\t newArray[thirdIndex] = otherArray[otherIndex];\n\t\t otherIndex++;\n\t\t thirdIndex++;\n\t\t }\n\t\t}\n\t return newArray;\n\t}", "public int[] increaseBy2(int[] arr) {\n return null;\n }", "private static void merge(int[] num1, int[] num2) {\n\t\tint len = num1.length + num2.length;\n\n\t\tint[] temp = new int[len];\n\t\tint i = 0;\n\t\tint j = 0;\n\t\tint count = 0;\n\t\twhile (i < num1.length && j < num2.length) {\n\t\t\tif (num1[i] < num2[j]) {\n\t\t\t\ttemp[count++] = num1[i++];\n\t\t\t \n\t\t\t} else {\n\t\t\t\ttemp[count++] = num2[j++];\n\t\t\t \n\t\t\t}\n\t\t}\n\n\t\twhile (i < num1.length) {\n\t\t\ttemp[count++] = num1[i++];\n\t\t}\n\t\twhile (j < num2.length) {\n\t\t\ttemp[count++] = num2[j++];\n\t\t}\n\t\tfor (int ind = 0; ind < temp.length; ind++) {\n\t\t\tSystem.out.print(temp[ind] + \" \");\n\t\t}\n\t}", "public int[] ArrayInverso1(int[] arr){\r\n\t\tint l=arr.length;\r\n\t\t\r\n\t\tint[] arr_inv = new int[l];\r\n\t\tfor (int i=0;i<l;i++)\r\n\t\tarr_inv[i]=arr[l-1-i];\r\n\t\treturn arr_inv;\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "public int[] relativeSortArray(int[] arr1, int[] arr2) {\n int min = Integer.MAX_VALUE;\n int max = Integer.MIN_VALUE;\n\n int[] result = new int[arr1.length];\n\n for( int i : arr1 ) {\n if( min > i ) min = i;\n if( max < i ) max = i;\n }\n\n int[] counts = new int[max - min + 1];\n\n for( int i : arr1 ) {\n counts[i - min]++;\n }\n\n int index = 0;\n // loop thru the privilege array first\n for( int i: arr2 ) {\n while( counts[i - min] != 0 ) {\n result[index++] = i;\n counts[i - min]--;\n }\n }\n\n // ascending order for the rest\n for( int i = 0; i < counts.length; ++i ) {\n if( counts[i] != 0 ) {\n while( counts[i] != 0 ) {\n result[index++] = i + min;\n counts[i]--;\n }\n }\n }\n return result;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tString[] arr1 = sc.nextLine().split(\" \");\r\n\t\tString[] arr2 = sc.nextLine().split(\" \");\r\n\t\tArrayList<Integer> arr1_ = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> arr2_ = new ArrayList<Integer>();\r\n\t\tfor(int i = 0; i<arr1.length;i++)\r\n\t\t\tarr1_.add(Integer.parseInt(arr1[i]));\r\n\t\tfor(int i = 0; i<arr2.length;i++)\r\n\t\t\tarr2_.add(Integer.parseInt(arr2[i]));\r\n\t\t\r\n\t\tInteger[] final_arr1 = arr1_.toArray(new Integer[arr1_.size()]);\r\n\t\tInteger[] final_arr2 = arr2_.toArray(new Integer[arr2_.size()]);\r\n\t\t\r\n\t\tArrays.sort(final_arr2);\r\n\t\tif(final_arr1[0] <= final_arr1[1]) {\r\n\t\t\tSystem.out.println(final_arr2[final_arr2.length - 3]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint cri = 0;\r\n\t\t\tint max_length = -99999;\r\n\t\t\tfor(int i = 1; i < final_arr2[final_arr2.length - 1]; i++) {\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tfor(int j = final_arr2.length - final_arr1[1] ; j < final_arr2.length; j++) {\r\n\t\t\t\t\tif(final_arr2[j] >= i) {count++;}\r\n\t\t\t\t\tif(final_arr2[j] - i >= i) {count++;}\r\n\t\t\t\t}\r\n\t\t\t\tif(count >= final_arr1[0]) {\r\n\t\t\t\t\tif(max_length < i) {max_length = i; cri = 1;}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(cri == 0) {System.out.println(\"-1\");}\r\n\t\t\telse {System.out.println(max_length);}\r\n\t\t}\r\n\t}", "private static void mergeDesc(int arr[], int start,int mid, int end) {\n\r\n\t\t\t\tint subArrLen1 = mid - start + 1;\r\n\t\t\t\tint subArrLen2 = end - mid;\r\n\r\n\t\t\t\t// create the sub Arrays as temporary storage\r\n\t\t\t\tint subArray1[] = new int[subArrLen1];\r\n\t\t\t\tint subArray2[] = new int[subArrLen2];\r\n\r\n\t\t\t\t// copy data in temporary arrays\r\n\r\n\t\t\t\tfor (int i = 0; i < subArrLen1; i++) {\r\n\t\t\t\t\tsubArray1[i] = arr[start + i];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int i = 0; i < subArrLen2; i++) {\r\n\t\t\t\t\tsubArray2[i] = arr[mid + i + 1];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// merging the temporary arrays\r\n\r\n\t\t\t\tint i = 0, j = 0;\r\n\t\t\t\tint k = start;\r\n\r\n\t\t\t\twhile (i < subArrLen1 && j < subArrLen2) {\r\n\t\t\t\t\tif (subArray1[i] > subArray2[j]) {\r\n\t\t\t\t\t\tarr[k] = subArray1[i];\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tarr[k] = subArray2[j];\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tk++;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// copy left over elements of subArray2[]\r\n\t\t\t\twhile (i < subArrLen1) {\r\n\t\t\t\t\tarr[k] = subArray1[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// copy left over elements of subArray2[]\r\n\t\t\t\twhile (j < subArrLen2) {\r\n\t\t\t\t\tarr[k] = subArray2[j];\r\n\t\t\t\t\tj++;\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\r\n\t}", "public static void extract (int []n1, int off1, int n2[], int off2, int len2) {\n\t\tfor (int i = 0; i < len2; i++) {\n\t\t\tn1[off1+i] = n2[off2+i];\n\t\t}\n\t}", "public static void merge(long arr1[], long arr2[], int m, int n) \n {\n\t\tlong last=0;\n\t\t\n\t\tfor(int i=n-1;i>=0;i--) {\n\t\t\t\n\t\t\tint j=0;\n\t\t\tlast=arr1[m-1];\n\t\t\tfor(j=m-2;j>=0 && arr1[j]>arr2[i] ;j--) {\n\t\t\t\tarr1[j+1]=arr1[j];\n\t\t\t}\n\t\t\t\n\t\t\tif(j!=m-2 || last>arr2[i]) {\n\t\t\t\tarr1[j+1]=arr2[i];\n\t\t\t\tarr2[i]=last;\n\t\t\t}\n\t\t\t\n\t\t}\n }", "private static void findDuplicatesByNegation(int[] arr2) {\n\t\t\n\t\tfor ( int i =0 ; i<arr2.length ; i++)\n\t\t{\n\t\t\t\n\t\t\tif(arr2[Math.abs(arr2[i])] < 0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\" Duplicates exist by Negation \" + arr2[i]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tarr2[arr2[i]] = -arr2[arr2[i]];\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public boolean areEqual(T[] arr1, T[] arr2){\r\n if(arr1.length != arr2.length){\r\n return false;\r\n }\r\n\r\n for(int i = 0; i < arr1.length; i++){\r\n //System.out.println(arr1[i] + \" \" + arr2[i]);\r\n if(!arr1[i].equals(arr2[i])){\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint n = sc.nextInt();\r\n\t\tint arr[] = new int[n];\r\n\t\tfor(int i = 0; i < n ; i++) {\r\n\t\t\tarr[i] = sc.nextInt();\r\n\t\t}\r\n\t\t\r\n\t\tint new_length = n;\r\n\t\tfor(int i = 0; i < new_length ; i++) {\r\n\t\t\tfor(int j = i+1 ; j < new_length ; j++) {\r\n\t\t\t\tif(arr[i] == arr[j]) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr[j] = arr[ new_length-1];\r\n \r\n\t\t\t\t\t new_length--;\r\n \r\n j--;\r\n \r\n\t\t\t\t\tint arr1[] = Arrays.copyOf(arr, new_length);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0; i < new_length ; i++) {\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t\t\r\n\t}", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "public static int[] mergeTwoSortedArrays(int[] a, int[] b){\n System.out.println(\"Merging these two arrays \");\n System.out.print(\"left array -> \");\n print(a);\n System.out.print(\"right array -> \");\n print(b);\n int i = 0, j =0, k = 0;\n int[] ans = new int[a.length + b.length];\n while(i < a.length && j < b.length){\n if(a[i] <= b[j]){\n ans[k] = a[i];\n i++;\n k++;\n }else{\n ans[k] = b[j];\n j++;\n k++;\n }\n }\n\n while(i < a.length){\n ans[k] = a[i];\n k++;\n i++;\n }\n\n while(j < b.length){\n ans[k] = b[j];\n k++;\n j++;\n }\n\n return ans;\n}", "private String[] reqArray(String[] originalArray, String[] resultArray) {\n\n int ind = 0;\n\n for (int i = 0; i < originalArray.length; i++) {\n if (originalArray[i] != null) {\n resultArray[ind] = originalArray[i];\n ind++;\n }\n }\n return resultArray;\n }", "@Test\n\tpublic void test2() {\n\t\tSystem.out.println(\"--------------\");\n\t\t//Arrays.copyOf(T[] original, int newLength) 的底层实现与ArrayUtil.copyArr(T[] original, int newLength)实现是一样的\n\t\tInteger[] newIntArr2 = Arrays.copyOf(intArr, 3);\n\t\tInteger[] newIntArr3 = Arrays.copyOf(intArr, 8);\n\t\tSystem.out.println(Arrays.toString(intArr));\n\t\tSystem.out.println(Arrays.toString(newIntArr2));\n\t\tSystem.out.println(Arrays.toString(newIntArr3));\n\t}", "private String[] combine(String array1[], String array2[]) {\n\t\tint length = array1.length + array2.length;\r\n\t\tString result[] = new String[length];\r\n\t\tSystem.arraycopy(array1, 0, result, 0, array1.length);\r\n\t\tSystem.arraycopy(array2, 0, result, array1.length, array2.length);\r\n\t\treturn result;\r\n\t}", "private static int[] merge( int[] a, int[] b ) \n { \n\tint[] retArr = new int[a.length + b.length];\n\tint aCounter = 0;\n\tint bCounter = 0;\n\tint index = 0;\n while (aCounter < a.length && bCounter < b.length){\n\t if (a[aCounter] < b[bCounter]){\n\t\tretArr[index] = a[aCounter];\n\t\tindex++;\n\t\taCounter++;\n\t }\n\t else {\n\t\tretArr[index] = b[bCounter];\n\t\tindex++;\n\t\tbCounter++;\n\t }\n\t}\n\tif (aCounter < a.length){\n\t for (int x = aCounter; x < a.length; x++){\n\t\tretArr[index] = a[x];\n\t\tindex++;\n\t }\n\t}\n\telse if (bCounter < b.length){\n\t for (int x = bCounter; x < b.length; x++){\n\t\tretArr[index] = b[x];\n\t\tindex++;\n\t }\n\t}\n\tprintArray(retArr);\n\tSystem.out.println();\n\treturn retArr;\n }", "private void doubleSize() {\n\t\tint[] arr2 = new int[2 * arr.length];\n\t\tfor (int i = 0; i < arr.length; ++i) {\n\t\t\tarr2[i] = arr[i];\n\t\t}\n\t\tarr = arr2;\n\t}", "private static void mergeSorted(int[] a, int alength, int[] b) {\n int ai = alength - 1;\n int bi = b.length - 1;\n int ri = a.length - 1;\n while (ai >= 0 && bi >= 0) {\n if (a[ai] > b[bi]) {\n a[ri--] = a[ai--];\n } else {\n a[ri--] = b[bi--];\n }\n }\n\n while (bi >= 0) a[ri--] = b[bi--];\n //Note that you don't need to copy the contents of A after running out of elements in B. They are already in place.\n// while (ai >= 0) a[ri--] = a[ai--];\n }", "public <T> T[] a(T[] tArr, T[] tArr2) {\n int length = tArr.length;\n int length2 = tArr2.length;\n T[] tArr3 = (Object[]) Array.newInstance(tArr.getClass().getComponentType(), length + length2);\n System.arraycopy(tArr, 0, tArr3, 0, length);\n System.arraycopy(tArr2, 0, tArr3, length, length2);\n return tArr3;\n }", "public static void main(String[] args) {\n\n int arr[]= {3, 4, 5, 7, 9, 1, 2};\n int arr2[]= {7,72,90, 21 ,60};\n\n insertionSortArray2(arr2);\n\n System.out.println(Arrays.toString(arr2));\n }", "public ArrBag<T> intersection( ArrBag<T> other )\n {\n int intersectCount = 0;\n ArrBag<T> intersectionArray;\n if (other.size() > this.size() )\n {\n intersectionArray = new ArrBag<T>(other.size()); \n }\n else \n {\n intersectionArray = new ArrBag<T>(this.size()); \n\n for (int i = 0; i <other.size(); i++){\n if (this.contains (other.get(i))){\n intersectionArray.add(other.get(i));\n intersectCount ++; \n }\n }\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE INTERSECT\n \n }\n return intersectionArray;\n }", "private static void merge(int[] a, int[] b) {\n\t\tint aI = a.length-1;\r\n\t\tint bI = b.length-1;\r\n\t\tint posI=a.length-b.length-1;\r\n\t\t\r\n\t\r\n\t\twhile (aI>=0 ) {\r\n\t\t\tif(a[posI]> b[bI]) {//missing the test for posI>=0 see mergeInPlace(int a[],int b[])\r\n\t\t\t\ta[aI]=a[posI];\r\n\t\t\t\tposI--;\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\r\n\t\t\t\ta[aI]=b[bI];\r\n\t\t\t\tbI--;\r\n\r\n\t\t\t}\r\n\t\t\taI--;\r\n\t\t}\r\n\t\t\r\n\t\tfor (int x:a) {\r\n\t\t\tSystem.out.println(x);\r\n\t\t}\r\n\t}", "static String unionOfBothArrays(final int[] arr1, final int[] arr2) {\n\t\tString res = \"\";\n\t\tfor (int i = 0; i < arr1.length; i++) {\n\t\t\tres += arr1[i] + \" \";\n\t\t}\n\t\tres += intersectionOfBothArrays(arr1, arr2);\n\t\treturn res.trim();\n\t}", "private static int[] merge( int[] a, int[] b ) \n {\n\tint[] c = new int[a.length+b.length];\n\n\tint x=0;\n\tint y=0;\n\tint z=0;\n\n\twhile (x < a.length || y < b.length){\n\t if (x>=a.length) {\n\t\tc[z]=b[y];\n\t\ty++;\n\t }\n\t else if (y>=b.length) {\n\t\tc[z]=a[x];\n\t\tx++;\n\t }\n\n\t else if (a[x] >= b[y]) {\n\t\tc[z] = b[y];\n\t\ty++;\t\t\n\t }\n\t else if (a[x] < b[y]) {\n\t\tc[z] = a[x];\n\t\tx++;\t\t\n\t }\n\t z++;\n\t}\n\treturn c;\n\n }", "private static void imprimir(int[] arr1) {\n\t\tint n = arr1.length;\r\n for (int i = 0; i < n; ++i)\r\n System.out.print(arr1[i] + \" \");\r\n \r\n System.out.println();\r\n\t}", "private void merge(Integer[] arr, int s, int e, int m) {\n\t\tInteger[] ar1 = new Integer[m-s+1];\r\n\t\tInteger[] ar2 = new Integer[e-m];\r\n\t\t//copy values into temp arrays\r\n\t\tfor(int i1=0; i1<ar1.length; i1++)\r\n\t\t\tar1[i1] = arr[s+i1];\r\n\t\tfor(int i2=0; i2<ar2.length; i2++)\r\n\t\t\tar2[i2] = arr[m+1+i2];\r\n\t\t\r\n\t\t// compare values of temp arrays\r\n\t\tint k=s, i=0, j=0;\r\n\t\tfor(; i<ar1.length && j<ar2.length && k<=e; k++) {\r\n\t\t\tif(ar1[i] < ar2[j]) {\r\n\t\t\t\tarr[k] = ar1[i];\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tarr[k] = ar2[j];\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//copy remaining elements of ar1 if any\r\n\t\twhile(i < ar1.length) {\r\n\t\t\tarr[k] = ar1[i];\r\n\t\t\ti++;k++;\r\n\t\t}\r\n\t\twhile(j < ar2.length) {\r\n\t\t\tarr[k] = ar2[j];\r\n\t\t\tj++;k++;\r\n\t\t}\r\n\r\n\t}", "void merge(int arr[], int l, int m, int r) {\r\n\t\tint[] temp = new int[r - l + 1];\r\n\t\tint i = l;\r\n\t\tint j = m + 1;\r\n\t\tint k = 0;\r\n\t\twhile (i <= m && j <= r) {\r\n\t\t\tif (arr[i] < arr[j])\r\n\t\t\t\ttemp[k++] = arr[i++]; // same as b[k]=a[i]; k++; i++;\r\n\t\t\telse\r\n\t\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\r\n\t\twhile (j <= r) {\r\n\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\t\twhile (i <= m) {\r\n\t\t\ttemp[k++] = arr[i++];\r\n\t\t}\r\n\r\n\t\tfor (i = r; i >= l; i--) {\r\n\t\t\tarr[i] = temp[--k];\r\n\t\t}\r\n\t}", "public int compare(byte[] bArr, byte[] bArr2) {\r\n int i;\r\n int i2;\r\n if (bArr.length != bArr2.length) {\r\n i2 = bArr.length;\r\n i = bArr2.length;\r\n } else {\r\n for (int i3 = 0; i3 < bArr.length; i3++) {\r\n if (bArr[i3] != bArr2[i3]) {\r\n i2 = bArr[i3];\r\n i = bArr2[i3];\r\n }\r\n }\r\n return 0;\r\n }\r\n return (i2 == 1 ? 1 : 0) - (i == 1 ? 1 : 0);\r\n }", "private void merge(Object [] arr, int l, int m, int r) \n\t{\n\t\tint n1 = m - l + 1; \n\t\tint n2 = r - m; \n\n\t\t/* Create temp arrays */\n\t\tObject L[] = new Object [n1]; \n\t\tObject R[] = new Object [n2]; \n\n\t\t/*Copy data to temp arrays*/\n\t\tfor (int i=0; i<n1; ++i) \n\t\t\tL[i] = arr[l + i]; \n\t\tfor (int j=0; j<n2; ++j) \n\t\t\tR[j] = arr[m + 1+ j]; \n\n\n\t\t/* Merge the temp arrays */\n\n\t\t// Initial indexes of first and second subarrays \n\t\tint i = 0, j = 0; \n\n\t\t// Initial index of merged subarry array \n\t\tint k = l; \n\t\twhile (i < n1 && j < n2) \n\t\t{ \n\t\t\tint comparison = ((T)L[i]).compareTo((T)R[j]);\n\t\t\tif (comparison <= 0) \n\t\t\t{ \n\t\t\t\tarr[k] = L[i]; \n\t\t\t\ti++; \n\t\t\t} \n\t\t\telse\n\t\t\t{ \n\t\t\t\tarr[k] = R[j]; \n\t\t\t\tj++; \n\t\t\t} \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of L[] if any */\n\t\twhile (i < n1) \n\t\t{ \n\t\t\tarr[k] = L[i]; \n\t\t\ti++; \n\t\t\tk++; \n\t\t} \n\n\t\t/* Copy remaining elements of R[] if any */\n\t\twhile (j < n2) \n\t\t{ \n\t\t\tarr[k] = R[j]; \n\t\t\tj++; \n\t\t\tk++; \n\t\t} \n\t}", "public static String[] merge(String[] arr1, String[] arr2) {\n StringList list = new StringList(arr1);\n list.merge(arr2);\n return list.toArray();\n }", "private int compareStringArrayRecords(String[] rec1, String[] rec2)\n {\n for (int i = 0; i < rec1.length && i < rec2.length; i++) {\n if (rec1[i].equals(rec2[i])) {\n continue;\n }\n return rec1[i].compareTo(rec2[i]);\n }\n return 0;\n }", "private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }", "public static int[] biggerTwo(int[] a, int[] b) {\n int count = 0;\n int temp = 0;\n for (int i = 0; i <= a.length - 1; i++) {\n count += a[i];\n }\n\n for (int i = 0; i <= b.length - 1; i++) {\n temp += b[i];\n\n }\n\n if (count > temp) {\n return a;\n } else if (temp > count) {\n return b;\n } else {\n return a;\n }\n\n }", "public static void merge(int[] arr, int l,int m, int r) {\n // Original array is broken in two parts\n // left and right array\n int len1 = m - l + 1, len2 = r - m;\n int[] left = new int[len1];\n int[] right = new int[len2];\n for (int x = 0; x < len1; x++){\n left[x] = arr[l + x];\n }\n for (int x = 0; x < len2; x++){\n right[x] = arr[m + 1 + x];\n }\n\n int i = 0;\n int j = 0;\n int k = l;\n\n // After comparing, we merge those two array\n // in larger sub array\n while (i < len1 && j < len2) {\n if (left[i] <= right[j]) {\n arr[k] = left[i];\n i++;\n }\n else {\n arr[k] = right[j];\n j++;\n }\n k++;\n }\n\n // Copy remaining elements\n // of left, if any\n while (i < len1){\n arr[k] = left[i];\n k++;\n i++;\n }\n\n // Copy remaining element\n // of right, if any\n while (j < len2){\n arr[k] = right[j];\n k++;\n j++;\n }\n }", "private static int intArrayCmpToLen(int[] arg1, int[] arg2, int len) {\n for (int i=0; i < len; i++) {\n long b1 = arg1[i] & LONG_MASK;\n long b2 = arg2[i] & LONG_MASK;\n if (b1 < b2)\n return -1;\n if (b1 > b2)\n return 1;\n }\n return 0;\n }", "public static void main(String[] args) {\nint arr[]= {4,3,4,5,6,77,77,2,4,9,2};\nint uniqueelem=arr.length;\n//int arrclean[]=new int[arr.length];\nfor(int i=0;i<uniqueelem;i++)\n{\n\tfor(int j=i+1;j<uniqueelem;j++)\n\t{\n\t\tif(arr[i]==arr[j])\n\t\t{\n\t\t\t\n\t\t\tarr[j]=arr[uniqueelem-1];\n\t\t\tuniqueelem--;\n\t\t\tj--;\n\t\t}\n\t}\n}\n\nint arrclean[]=Arrays.copyOf(arr, uniqueelem);\n\nSystem.out.println(Arrays.toString(arrclean));\n\t}", "static void merge(int array[], int l, int x, int r) {\n int arrSize1 = x - l + 1;\n int arrSize2 = r - x;\n\n //Create temp arrays \n int tempArray1[] = new int[arrSize1];\n int tempArray2[] = new int[arrSize2];\n\n // Copy elements to temp arrays\n for (int i = 0; i < arrSize1; ++i)\n \ttempArray1[i] = array[l + i];\n for (int j = 0; j < arrSize2; ++j)\n \ttempArray2[j] = array[x + 1 + j];\n\n // Merge the temp arrays\n\n // Initial the indexes of two arrays\n int i = 0, j = 0;\n\n int k = l;\n while (i < arrSize1 && j < arrSize2) {\n\n if (tempArray1[i] <= tempArray2[j]) {\n array[k] = tempArray1[i];\n i++;\n }\n else {\n array[k] = tempArray2[j];\n j++;\n }\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray1\n while (i < arrSize1) {\n array[k] = tempArray1[i];\n i++;\n k++;\n }\n\n // If there are any elements left, copy those elements of tempArray2\n while (j < arrSize2) {\n array[k] = tempArray2[j];\n j++;\n k++;\n }\n\n }", "public static void main(String[] args) {\n String [] text = new String[] {\"spam\" , \"more\" , \"buy\"};\n Arrays.sort(text);\n System.out.println(Arrays.toString(text));\n\n int [] arr1 = new int[] {1,2,3,4};\n int [] arr2 = new int[] {5,6,7,8};\n String [] str1 = new String[] {\"Salam\" , \"Hola\" , \"Hello\" , \"Marhaba\"};\n String [] str2 = new String[] {\"Salam\" , \"Hola\" , \"Hello\" , \"Marhaba\"};\n int a1[][] = { { 10, 20 },\n { 40, 50 },\n { 60, 70 } };\n\n int a2[][] = { { 30, 20 },\n { 10, 0 },\n { 60, 80 } };\n System.out.println(Arrays.equals(arr1 , arr2));\n System.out.println(Arrays.deepEquals(new int[][]{arr1}, new int[][]{arr2}));\n System.out.println(Arrays.equals(str1 , str2));\n System.out.println(Arrays.deepEquals(str1 , str2));\n System.out.println(Arrays.equals(a1 , a2));\n System.out.println(Arrays.deepEquals(a1 , a2));\n// Arrays.fill(numbers , 4);\n// Arrays.fill(nubers2, 4);\n\n System.out.println(\"------------------------------------\");\n\n String[] text1 = {\"love\" , \"is\" , \"in\" , \"the\" , \"air\"};\n Arrays.sort(text1);\n System.out.println(Arrays.toString(text1));\n int search = Arrays.binarySearch(text1, \"in\");\n System.out.println(search);\n\n System.out.println(\"------------------------------------\");\n\n\n\n }", "private static int[] ArraySwapper(int[] arr) {\n\t\tint size=Array.getLength(arr),temp;\n\t\tfor(int i=0;i<size/2;i++) {\n\t\t\ttemp =arr[i];\n\t\t\tarr[i]=arr[size-i-1];\n\t\t\tarr[size-i-1]=temp;\n\t\t}\n\t\treturn arr;\n\t\t\n\t}", "public static void main(String[] args) \r\n\t{\n\r\n\t\tint[] A = {1,5,8,7,3,6};\r\n\t\tint[] B = {2,9,4};\r\n\t\t\r\n\t\tList<Integer> list = Arrays.stream(A).boxed().collect(Collectors.toList());\r\n\t\tList<Integer> list2 = Arrays.stream(B).boxed().collect(Collectors.toList());\r\n\t\tList<Integer> combine = new ArrayList<>();\r\n\t\tcombine.addAll(list);\r\n\t\tcombine.addAll(list2);\r\n\t\t\r\n\t\tSystem.out.println(list);\r\n\t\tSystem.out.println(combine);\r\n\t\tCollections.sort(combine);\r\n\t\tSystem.out.println(combine);\r\n\t\r\n\t\tList<Integer> extractA = combine.subList(0, A.length);\r\n\t\tList<Integer> extractB = combine.subList(A.length, A.length+B.length);\r\n\t\t\r\n\t\tSystem.out.println(extractA);\r\n\t\tSystem.out.println(extractB);\r\n\t\t\r\n// second approch for integer to array\t\t\r\n\t\tint[] ints = {1, 2, 3};\r\n\t\tList<Integer> intList = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor (int i = 0; i < ints.length; i++) \r\n\t\t{\r\n\t\t\t intList.add(ints[i]);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(intList);\r\n\t\t\r\n\t}", "private static int[][] AddToArr(int[][] arr, int[][] symbol, int length, int offset) {\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tfor (int j = 0; j < length; j++) {\r\n\t\t\t\tif (symbol[i][j] > 0) {\r\n\r\n\t\t\t\t\tarr[i][j + offset] = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arr;\r\n\t}", "public void merge(int arr[],int l, int m, int r){\n int n1 =m-l+1;\n int n2=r-m;\n \n //create temp array\n int L[]=new int[n1];\n int R[] = new int[n2];\n \n //Copy data in temp array\n for(int i=0;i<n1;i++){\n L[i]=arr[l+1];\n }\n for(int j=0;j<n2;j++){\n R[j]=arr[m+1+j];\n }\n \n // Merge arrray\n int i=0,j=0;\n int k=l;\n while(i<n1 && j<n2){\n if(L[i]<=R[i]){\n arr[k] = L[i];\n i++;\n }\n else{\n arr[k]=R[j];\n j++;\n }\n k++;\n }\n // Copy rmaing elements of L[]\n while(i<n1){\n arr[k]=L[i];\n i++;\n k++;\n }\n \n while(j<n2){\n arr[k]=R[j];\n j++;\n k++;\n }\n \n }", "private static void fromUnsortedArray()\n\t{\n Integer[] origArray = new Integer[] { 1, 1, 2, 3, 3, 3, 4, 5, 6, 6, 6, 7, 8 };\n \n // This array has duplicate elements\n System.out.println(Arrays.toString(origArray));\n \n Integer[] tempArray = removeDuplicates2(origArray);\n \n // Verify the array content\n System.out.println(Arrays.toString(tempArray));\n\t}", "private Position[] concatArrays(Position[] first, Position[] second)\r\n {\r\n int size = first.length + second.length;\r\n Position[] a = new Position[size];\r\n int pt = 0;\r\n\r\n for (Position tmpPos : first)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n for (Position tmpPos : second)\r\n {\r\n a[pt] = tmpPos;\r\n pt++;\r\n }\r\n\r\n return a;\r\n }", "private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }", "public static void checkMutations(int arr1[], int arr2[]){\n\t\tint childrenMutation = 0;\n\t\tfor(int i=0; i<arr1.length; i++){\n\t\t\tif (arr1[i]==1){\n\t\t\t\tchildrenMutation++;\n\t\t\t}\n\t\t}\n\t\t\tif(childrenMutation > 0){\n\t\t\t\tchildrenMutation = childrenMutation*2;\n\t\t\t}\n\t\tfor(int i=0; i<childrenMutation; i++){\n\t\t\tarr2[i] = 1;\n\t\t}\n\t\t\n\t}", "static int[] merge(int[] A, int[] B){\n int m = A.length; int n = B.length;\n A = Arrays.copyOf(A, m+n);\n while(m > 0 && n > 0){\n if(A[m-1] > B[n-1]){\n A[m+n-1] = A[m-1];\n m--;\n }else{\n A[m+n-1] = B[n-1];\n n--;\n }\n }\n\n while(n > 0){\n A[m+n-1] = B[n-1];\n n--;\n }\n return A;\n }", "private static BuildingPiece[] generateNewArray(BuildingPiece[] array1, BuildingPiece[] array2, int splicePoint){\n\t\tif(splicePoint > array1.length || splicePoint > array2.length){\n\t\t\tSystem.out.println(\"Splice point is bigger than the smallest array length!\");\n\t\t\treturn new BuildingPiece[0];\n\t\t}\n\t\t\n\t\t// create a new array of array2.length\n\t\tBuildingPiece[] newArray = new BuildingPiece[array2.length];\n\t\t\n\t\tfor(int i = 0; i < array2.length; i++){\n\t\t\t// if it is before the splice point then take numbers from the first array\n\t\t\tif(i < splicePoint){\n\t\t\t\tnewArray[i] = array1[i];\n\t\t\t}\n\t\t\t// if it is after the splice point then take numbers from the second array\n\t\t\telse{\n\t\t\t\tnewArray[i] = array2[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn newArray;\n\t}", "private static List<Integer> getCommonElementsAlgo2(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> duplicates = new ArrayList<>();\n\t\t\n\t\tHashtable<Integer, Integer> table = new Hashtable<>();\n\t\t\n\t\tfor (int i : arr1) {\n\t\t\tif (table.containsKey(i)) {\n\t\t\t\ttable.put(i, table.get(i) + 1);\n\t\t\t}\n\t\t\ttable.put(i, 1);\n\t\t}\n\t\t\n\t\tfor (int j : arr2) {\n\t\t\tif (table.containsKey(j)) {\n\t\t\t\tduplicates.add(j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn duplicates;\n\t\t\n\t}", "public static int[] mergeSortedArrays(int[] array1, int[] array2){\n List<Integer> combination = new ArrayList<>();\n for (int i = 0; i < array1.length; i++) {\n if (array1[i] != 0) {\n combination.add(array1[i]);\n }\n\n }\n for (int i = 0; i < array2.length; i++) {\n if (array1[i] != 0) {\n combination.add(array2[i]);\n }\n }\n Collections.sort(combination);\n\n int[] answer = new int[combination.size()];\n for (int i = 0; i < combination.size() ; i++) {\n answer[i] = combination.get(i);\n }\n\n\n return answer;\n }", "private static void merge(int[] array, int[] left, int[] right) {\n\n int i;\n\n for(i = 0; i < left.length; i++) {\n\n array[i] = left[i];\n }\n\n for (int j = 0; j < right.length; j++, i++) {\n\n array[i] = right[j];\n }\n }", "private byte[] concateByteArray(byte[] firstarray, byte[] secondarray){\r\n\tbyte[] output = new byte[firstarray.length + secondarray.length];\r\n\tint i=0;\r\n\tfor(i=0;i<firstarray.length;i++){\r\n\t output[i] = firstarray[i];\r\n\t}\r\n\tint index=i;\r\n\tfor(i=0;i<secondarray.length;i++){\r\n\t output[index] = secondarray[i];\r\n\t index++;\r\n\t}\r\n\treturn output;\r\n}", "private static int[] merge( int[] a, int[] b )\n {\n int[] ans = new int[(a.length + b.length)]; //create new array with the combined lengths\n int a1 = 0; //counter for a's position\n int b1 = 0; //counter for b's position\n while (a1 < a.length || b1 < b.length) { //iterates while either counter is not at the end of each array\n\t if (a1 == a.length) { //if you finished with all of a add the remaining b elements\n\t ans[a1 + b1] = b[b1]; \n\t b1 += 1;\n\t }\n\t else if (b1 == b.length) { //if you finished with all of b add the remaining a elements\n\t ans[a1 + b1] = a[a1];\n\t a1 += 1;\n\t }\n\t else if (a[a1] > b[b1]) { //if the current element at position a1 is larger than the one at b1, add the lower b1 to the new array and move to next b position\n\t ans[a1 + b1] = b[b1];\n\t b1 += 1;\n\t }\n\t else {\n\t ans[a1 + b1] = a[a1]; //otherwise add the element at a1 and move to next a position \n\t a1 += 1;\n\t }\n }\n return ans; //return the sorted merged array\t \t \n }" ]
[ "0.7125783", "0.67751276", "0.66349554", "0.6621173", "0.6617112", "0.66162133", "0.66078246", "0.65927947", "0.65421474", "0.6541853", "0.6479052", "0.64773375", "0.64570755", "0.6395907", "0.63817084", "0.6263693", "0.618302", "0.6170753", "0.6074183", "0.605403", "0.60475796", "0.603506", "0.60295963", "0.59930634", "0.59921247", "0.59656084", "0.59618735", "0.59484327", "0.59350824", "0.59345585", "0.59340537", "0.59233654", "0.59078705", "0.58909225", "0.5884695", "0.58805126", "0.5875993", "0.5859957", "0.5857002", "0.58502465", "0.5835623", "0.5832283", "0.58217674", "0.5815412", "0.58118904", "0.58063346", "0.57999", "0.57978594", "0.5794396", "0.5788144", "0.5780641", "0.5779665", "0.57535356", "0.5704357", "0.57015157", "0.57005894", "0.5697632", "0.56943953", "0.56897885", "0.56778985", "0.5676982", "0.5672922", "0.567282", "0.5659082", "0.5655706", "0.565085", "0.5638257", "0.5637865", "0.5631727", "0.56307465", "0.5628294", "0.56214833", "0.5618268", "0.561532", "0.56046057", "0.5600866", "0.5596973", "0.5596327", "0.5594186", "0.55905855", "0.558277", "0.5576162", "0.55731547", "0.55605716", "0.55546886", "0.55512416", "0.5549732", "0.5545581", "0.55275315", "0.552579", "0.5524518", "0.5524488", "0.55060464", "0.55050075", "0.55033565", "0.5500632", "0.54987943", "0.5498192", "0.54947704", "0.54896474", "0.5486654" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { double k=8; System.out.println(k); Double v=new Double(); //create object of class Variable System.out.println(v.i); System.out.println(j); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Use the current date as the default date in the picker
@Override public Dialog onCreateDialog(Bundle savedInstanceState) { final Calendar c = Calendar.getInstance(); int year = c.get(YEAR); int month = c.get(Calendar.MONTH); int day = c.get(Calendar.DAY_OF_MONTH); // Create a new instance of DatePickerDialog and return it return new DatePickerDialog(getActivity(), this, year, month, day); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public Date getSelectedDate();", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "abstract Date getDefault();", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }", "public Date getSelectDate();", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "private DatePicker createDatePicker(boolean veto) {\r\n DatePickerSettings datePickerSettings = new DatePickerSettings();\r\n datePickerSettings.setAllowEmptyDates(false);\r\n datePickerSettings.setAllowKeyboardEditing(false);\r\n DatePicker datePicker = new DatePicker(datePickerSettings);\r\n if (veto) {\r\n // If today is Saturday or Sunday, this sets the default\r\n // to the following Monday\r\n if (LocalDate.now().getDayOfWeek() == DayOfWeek.SATURDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(3));\r\n } else if (LocalDate.now().getDayOfWeek() == DayOfWeek.SUNDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(2));\r\n } else datePicker.setDate(LocalDate.now().plusDays(1));\r\n // Veto Policy to disallow weekends\r\n datePickerSettings.setVetoPolicy(new VetoDates());\r\n } else datePicker.setDate(LocalDate.now());\r\n return datePicker;\r\n }", "public void setDefaultDateRange() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n Calendar todaysDate = Calendar.getInstance();\n toDateField.setText(dateFormat.format(todaysDate.getTime()));\n\n todaysDate.set(Calendar.DAY_OF_MONTH, 1);\n fromDateField.setText(dateFormat.format(todaysDate.getTime()));\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n DateFormat df = DateFormat.getDateInstance();\n String formattedDate = df.format(chosenDate);\n\n // Display the chosen date to app interface\n C_birthdate.setText(formattedDate);\n //C_reg_date.setText(formattedDate);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }", "public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "@TargetApi(Build.VERSION_CODES.O)\n public LocalDate getTodayDate() {\n LocalDate date;\n date = LocalDate.now();\n return date;\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public String getCurrentDate() {\n return currentDate;\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "public void setSelectedDate(Date selectedDate);", "public DateChooser(Locale locale) {\r\n this.locale = locale;\r\n currentDate = Calendar.getInstance(locale);\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }", "public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }", "@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static Date getCurrentDate() {\n return new Date();\n }", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}", "public Date getCurrentDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n Date currentDate = cal.getTime();\n return currentDate;\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "public void setDate() {\n this.date = new Date();\n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n final String selectedDate = year + \"-\" + String.format(\"%02d\", (month+1)) + \"-\" + String.format(\"%02d\", day);\n mDateSession.setText(selectedDate);\n dateFormatted=year+\"\"+String.format(\"%02d\", (month+1))+\"\"+String.format(\"%02d\", day);\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void promptDate(String date)\n {\n this.date = date;\n }", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }", "private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(final View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(UserRegister.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n\n String birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n // String dob = birthday;\n et_dob.setText(birthday);\n\n\n if (validatedate(mybirthday)) {\n Snackbar.make(v, birthday + \" is not possible\", Snackbar.LENGTH_LONG).show();\n et_dob.setText(\"\");\n return;\n }\n if (validateage(mybirthday)) {\n Snackbar.make(v, \"You have to be above 15 years old\", Snackbar.LENGTH_LONG)\n .setAction(\"Help\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //visitwebsite();\n }\n })\n .show();\n et_dob.setText(\"\");\n }\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n\n\n }", "@Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR); // current year\n int mMonth = c.get(Calendar.MONTH); // current month\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\n // date picker dialog\n datePickerDialog = new DatePickerDialog(ChangeProfileActivity.this,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n // set day of month , month and year value in the edit text\n txtdate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }\n }, mYear, mMonth, mDay);\n datePickerDialog.show();\n }", "private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}", "public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "public Date getDate(Date defaultVal) {\n return get(ContentType.DateType, defaultVal);\n }", "public void selectDateToMeet(View view) {\n int day;\n int month;\n int year;\n\n /* if the date button has tag of DATE_PICKED then set the date on dialog to date picked earlier,\n otherwise display todays date on the dialog */\n if (dateText.getText().toString().equals(\"\") || !dateText.getText().toString().toLowerCase().contains(\"date\")) {\n String dates[] = dateText.getText().toString().split(\"-\");\n\n day = Integer.parseInt(dates[2]);\n //minus 1 to get the month index\n month = Integer.parseInt(dates[1]) - 1;\n year = Integer.parseInt(dates[0]);\n\n } else {\n //get todays date\n Calendar cal = Calendar.getInstance();\n\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n }\n\n //set the dialog with the date and show it\n DatePickerDialog dialog = new DatePickerDialog(BookPlanActivity.this,\n android.R.style.Theme_Holo_Light_Dialog_MinWidth,\n mDataSetListener, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Clear Date\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dateText.setText(\"Select a date\");\n }\n });\n\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "public void goToToday() {\n goToDate(today());\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(UserUpdate.this, date, cal\n .get(Calendar.YEAR), cal.get(Calendar.MONTH), cal\n .get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.7570866", "0.7052404", "0.6975466", "0.68639815", "0.67990696", "0.6789898", "0.6783088", "0.6780454", "0.670162", "0.6687505", "0.66742736", "0.6661783", "0.66408455", "0.6629506", "0.6622046", "0.6614785", "0.66132003", "0.65635", "0.6558133", "0.65395504", "0.65298307", "0.65156174", "0.6510428", "0.6485256", "0.648461", "0.64734167", "0.64591086", "0.6439087", "0.64362216", "0.64352", "0.6425105", "0.64064705", "0.64024687", "0.6393669", "0.63908446", "0.637432", "0.63651586", "0.6359516", "0.63401186", "0.63357407", "0.632999", "0.63193524", "0.63104266", "0.63042456", "0.62969303", "0.6276454", "0.62764436", "0.62690413", "0.62551206", "0.62495565", "0.6243641", "0.62392336", "0.62359583", "0.6220534", "0.6207687", "0.6200541", "0.61888283", "0.6177189", "0.61749333", "0.6163734", "0.6161484", "0.615686", "0.6150765", "0.61318576", "0.6123813", "0.6115902", "0.609712", "0.6087521", "0.60867393", "0.6079668", "0.6078085", "0.6077477", "0.607349", "0.6068905", "0.6047426", "0.6044209", "0.6043971", "0.60376734", "0.60356957", "0.60304505", "0.602971", "0.6022028", "0.6019977", "0.6016815", "0.6011811", "0.6000793", "0.59980947", "0.5995633", "0.59946495", "0.59938633", "0.59934145", "0.5984254", "0.5983004", "0.5982952", "0.5980931", "0.5977113", "0.5972836", "0.59721", "0.5970178", "0.59692395", "0.59642744" ]
0.0
-1
Do something with the date chosen by the user
public void onDateSet(DatePicker view, int year, int month, int day) { SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.DAY_OF_MONTH, month, day, 0, 0); calendar.set(Calendar.YEAR, year); String formatedDate = sdf.format(calendar.getTime()); if (calendar.getTime().before(Calendar.getInstance().getTime())) { diffInMilis = Calendar.getInstance().getTimeInMillis() - calendar.getTimeInMillis(); diffInDays = diffInMilis / (24 * 60 * 60 * 1000); if (diffInDays > 21) { String promptMessage = "Cannot fetch call logs for " + diffInDays + " days right now. Please wait for " + String.valueOf(diffInDays - 21) + "days"; Toast.makeText(getContext(), promptMessage, Toast.LENGTH_SHORT).show(); } else { Toast.makeText(getContext(), "Day before", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(getActivity().getBaseContext(), UserLogsTabs.class); intent.putExtra("date", calendar.getTime()); intent.putExtra("whenItHappened", "before"); startActivity(intent); } } else if (calendar.getTime().equals(Calendar.getInstance().getTime())) { Toast.makeText(getContext(), "Please select a date before the current date", Toast.LENGTH_SHORT).show(); } else { Toast.makeText(getContext(), "Cannot fetch call logs from future", Toast.LENGTH_SHORT).show(); /*Intent intent = new Intent(getActivity(), CallLogStats.class); intent.putExtra("date", calendar.getTime()); intent.putExtra("whenItHappened", "after"); startActivity(intent);*/ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void promptDate(String date)\n {\n this.date = date;\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }", "public Date getSelectedDate();", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "public void departure_date()\r\n\t{\r\n\t\r\n\t\tDate date = new Date();\r\n\t\tdate.setDate(date.getDate() + 6);\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate = df.format(date);\r\n\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate);\r\n\t\t\t//departuredate.sendKeys(formattedDate);\r\n\t\t\t//System.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}", "private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }", "public Date getSelectDate();", "public void departure_date(String departureDatePicker) throws ParseException\r\n\t{\r\n\t\t\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\r\n\t\tif(departuredate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\r\n\t\tdf1 = new SimpleDateFormat(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForDeparture = df1.parse(departureDatePicker);\r\n\t\t\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"This is current date from departure_date() \" + currentDate);\r\n\t\t\t\r\n\r\n\t\t//will use this attriute to find out the date format\r\n\t\tSystem.out.println(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\r\n\t\t\r\n\t\tif ( dateForDeparture.before(currentDate)){\r\n\t\t\t \r\n\t\t\tdateForDeparture.setDate(currentDate.getDate() + 6);\r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForDeparture);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the departure date reformat from departure_date() \" + formattedDate1);\r\n\t\t\r\n\t\t\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate1);\r\n\t\t\t//departuredate.sendKeys(formattedDate1);\r\n\t\t\tSystem.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public void selectDate(String d){\n\t\tDate current = new Date();\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"d-MM-yyyy\");\n\t\ttry {\n\t\t\tDate selected = sd.parse(d);\n\t\t\tString day = new SimpleDateFormat(\"d\").format(selected);\n\t\t\tString month = new SimpleDateFormat(\"MMMM\").format(selected);\n\t\t\tString year = new SimpleDateFormat(\"yyyy\").format(selected);\n\t\t\tSystem.out.println(day+\" --- \"+month+\" --- \"+ year);\n\t\t\tString desiredMonthYear=month+\" \"+year;\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tString displayedMonthYear=driver.findElement(By.cssSelector(\".dpTitleText\")).getText();\n\t\t\t\tif(desiredMonthYear.equals(displayedMonthYear)){\n\t\t\t\t\t// select the day\n\t\t\t\t\tdriver.findElement(By.xpath(\"//td[text()='\"+day+\"']\")).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tif(selected.compareTo(current) > 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[4]/button\")).click();\n\t\t\t\t\telse if(selected.compareTo(current) < 0)\n\t\t\t\t\t\tdriver.findElement(By.xpath(\"//*[@id='datepicker']/table/tbody/tr[1]/td[2]/button\")).click();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void selectDateToMeet(View view) {\n int day;\n int month;\n int year;\n\n /* if the date button has tag of DATE_PICKED then set the date on dialog to date picked earlier,\n otherwise display todays date on the dialog */\n if (dateText.getText().toString().equals(\"\") || !dateText.getText().toString().toLowerCase().contains(\"date\")) {\n String dates[] = dateText.getText().toString().split(\"-\");\n\n day = Integer.parseInt(dates[2]);\n //minus 1 to get the month index\n month = Integer.parseInt(dates[1]) - 1;\n year = Integer.parseInt(dates[0]);\n\n } else {\n //get todays date\n Calendar cal = Calendar.getInstance();\n\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n }\n\n //set the dialog with the date and show it\n DatePickerDialog dialog = new DatePickerDialog(BookPlanActivity.this,\n android.R.style.Theme_Holo_Light_Dialog_MinWidth,\n mDataSetListener, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Clear Date\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dateText.setText(\"Select a date\");\n }\n });\n\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowDialog(SET_DATE_DIALOG);\n\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString fcraDate = (String) btnFcraDate.getText();\n\t\t\t\t\tString dateParts[] = fcraDate.split(\"-\");\n\t\t\t\t\tsetfromday1 = dateParts[0];\n\t\t\t\t\tsetfrommonth1 = dateParts[1];\n\t\t\t\t\tsetfromyear1 = dateParts[2];\n\t \n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromday1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfrommonth1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromyear1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+fcraDate);\n\t\t\t\t\tshowDialog(FCRA_DATE_DIALOG_ID);\n\t\t\t\t}", "private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.format(cal.date())); // variable name changes SDF to sdf , CAL to cal , method changes Date() to date()\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t output(\"\\nInvalid number of days\\n\");\r\n\t\t}\r\n\t}", "public void onDateSelect(SelectEvent event) {\r\n\t\t/**\r\n\t\t * FacesContext facesContext = FacesContext.getCurrentInstance();\r\n\t\t * SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t * facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t * \"Date Selected\", format.format(event.getObject())));\r\n\t\t */\r\n\t}", "public void inputDay () {\n\t\tSystem.out.print(\"Enter a day: \");\r\n\t\tday = input.nextInt();\r\n\r\n\t}", "public void setInputDate(Date inputDate) {\r\n this.inputDate = inputDate;\r\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\tif (e.getSource() == button)\r\n\t\t{\r\n\t\t\t//Get information from calendar\r\n\t\t\tif (datePicker.getModel().getValue() != null)\r\n\t\t\t{\r\n\t\t\t\tDate calendar = (Date) datePicker.getModel().getValue();\r\n\t\t\t\tint month = calendar.getMonth()+1;\r\n\t\t\t\tint day = calendar.getDate();\r\n\t\t\t\tdate = month + \"/\" + day;\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tdispose();\r\n\t\t\t\tJOptionPane pane = new JOptionPane();\r\n\t\t\t\tpane.setMessage(\"Error: no date chosen\");\r\n\t\t\t\tJDialog dialog = pane.createDialog(null);\r\n\t\t\t\tdialog.setVisible(true);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdispose();\r\n\t\t\tJOptionPane pane = new JOptionPane();\r\n\t\t\tpane.setMessage(\"Error: no input\");\r\n\t\t\tJDialog dialog = pane.createDialog(null);\r\n\t\t\tdialog.setVisible(true);\r\n\t\t}\r\n\r\n\t}", "public void setSelectedDate(Date selectedDate);", "public void selectDate(String format) {\n\t\t//driver.findElement(By.className(\"ui-datepicker-trigger\")).click();\n\t\t// identifying format\n\t\tString date[] = null;\n\t\tif (format.contains(\"-\")) {\n\t\t\tdate = format.split(\"-\");\n\t\t} else if (format.contains(\"/\")) {\n\t\t\tdate = format.split(\"/\");\n\t\t} else if (format.contains(\" \")) {\n\t\t\tdate = format.split(\" \");\n\t\t}\n\t\t// Splitting data\n\t\tString day = date[0];\n\t\tString month = date[1];\n\t\tString year = date[2];\n\t\t// Selecting data based on format\n\t\tif (month.length() == 2) {\n\t\t\t// selecting month if you are giving input format as dd-mm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByIndex(Integer.parseInt(month) - 1);\n\t\t} else if (month.length() != 2) {\n\t\t\t// selecting month if you are giving input format as dd-mmm-yyyy\n\t\t\t//new Select(driver.findElement(By.className(\"ui-datepicker-month\"))).selectByVisibleText(month);\n\t\t}\n\t\t// selecting year\n\t\t//new Select(driver.findElement(By.xpath(\"//select[@class='ui-datepicker-year']\"))).selectByVisibleText(year);\n\n\t\t// click on day\n\t\t//driver.findElement(By.linkText(day)).click();\n\t}", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "public boolean selectDate(String dateString);", "public void selectAndEnterDate(String Date,String dateInput) {\n\t\tWebElement dateField=findElement(By.xpath(\"//input[contains(@name,'\"+Date+\"')]\"));\n\t\twaitAndClick(dateField);\n\t\tinputText(dateField, dateInput);\n\t}", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n if (!isDateOK(calendar.getTime())) {\n Snackbar.make(mRoot, \"Project start cant be in the past!\", Snackbar.LENGTH_LONG).show();\n } else {\n txtProjectStart.setText(dateFormat.format(calendar.getTime()));\n }\n }", "private void setDateButtonActionPerformed(java.awt.event.ActionEvent evt) {\n Date newDate = calendario.getDate();\n if(newDate != null) {\n java.sql.Date date = new java.sql.Date(newDate.getTime());\n control.setDate(date);\n control.crearAlerta(\"Informacion\", \"La fecha \" + date + \" ha sido agregada\" , this);\n } else {\n control.crearAlerta(\"Advertencia\", \"Debe escoger una fecha\", this);\n }\n }", "public void enterDateField(String date) {\n Reporter.addStepLog(\"Enter date \" + date + \" to date field \" + _dateField.toString());\n sendTextToElement(_dateField, date);\n log.info(\"Enter date \" + date + \" to date field \" + _dateField.toString());\n }", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "@Override\t\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString regDate = (String) btnRegDate.getText();\n\t\t\t\t\tString dateParts[] = regDate.split(\"-\");\n\t\t\t\t\tsetfromday = dateParts[0];\n\t\t\t\t\tsetfrommonth = dateParts[1];\n\t\t\t\t\tsetfromyear = dateParts[2];\n\t\t \n\t\t\t\t\tSystem.out.println(\"regdate is:\"+regDate);\n\t\t\t\t\tshowDialog(REG_DATE_DIALOG_ID);\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void dateFieldDtActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Button button = (Button) findViewById(R.id.dateBtn);\n button.setText(\"Selected Date: \" + month + \"/\" + day + \"/\" + year);\n calendarSelected.set(year, month, day);\n userSelectedDate = true;\n\n if (!userSelectedTime) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n button = (Button) findViewById(R.id.timeBtn);\n button.setText(\"Selected Time: \" + hour + \":\" + String.format(\"%02d\",minute));\n }\n }", "public void setInputDate(Date inputDate) {\r\n\t\tthis.inputDate = inputDate;\r\n\r\n\t}", "public static void promptDate(ArrayList<Task> taskList) {\n String prompt = \"change the date of\"; // initializing the prompt to the user\n Task task; // declaring the task variable for date changing\n int index = promptIndex(taskList, prompt); // prompting, receiving, and error checking the user's input\n if (index != -1) { // if the index exists\n task = taskList.get(index); // assigning the variable pointer to the task at this index\n // declaring the integer variables for the month, day, and year numbers\n int month; // month number\n int day; // day number\n int year; // year number\n // month prompting and error checking\n do { // error checking for correct month value\n System.out.print(\"Enter valid month #: \"); // prompting the user for month number\n month = input.nextInt(); // receiving the user's input for month\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (month < 1 || month > 12); // while the user does not enter a valid input for month\n // year prompting and error checking\n do {\n System.out.print(\"Enter valid year #: \"); // prompting the user for year number\n year = input.nextInt(); // receiving the user's input for year\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (year < 0); // while the user does not enter a valid input for day\n // day prompting and error checking\n do { // error checking for correct day value\n System.out.print(\"Enter valid day #: \"); // prompting the user for day number\n day = input.nextInt(); // receiving the user's input for day\n input.nextLine(); // preventing the nextInt/nextLine error\n } while (day > checkDaysInMonth(month, year) || day <= 0); // while the user does not enter a valid input for day\n String formattedDate = String.format(\"%02d/%02d/%04d\", month, day, year); // formatting the date into String format of mm/dd/yyyy\n task.setDate(formattedDate); // setting the date of the Task object\n } \n System.out.print(\"\\n\"); // printing a newline for formatting\n pause(); // pausing the screen\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n // Do something with the date chosen by the user\n GregorianCalendar calendar = new GregorianCalendar(year, month, day);\n try {\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setUnsharedAt(calendar.getTime()));\n } catch (Exception e){\n Toast.makeText(BoxSharedLinkAccessActivity.this, \"invalid time selected\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n DateFormat df = DateFormat.getDateInstance();\n String formattedDate = df.format(chosenDate);\n\n // Display the chosen date to app interface\n C_birthdate.setText(formattedDate);\n //C_reg_date.setText(formattedDate);\n }", "public void arrival_date(String arrivalDatePicker) throws ParseException\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\t\t\r\n\t\t//Create and if statement around this dictating the date format arrivaldate.getAttribute(\"placeholder\")\r\n\t\t\r\n\t\t\r\n\t\tif(arrivaldate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForArrival = df1.parse(arrivalDatePicker);\r\n\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\r\n\t\tSystem.out.println(\"This is current date from arrival_date() \" + currentDate);\r\n\t\t\t\t\r\n\t\t if ( dateForArrival.before(currentDate)){\r\n\t\t\t \r\n\t\t\t dateForArrival.setDate(currentDate.getDate() + 1);\r\n\t\t\t \r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForArrival);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the arrival date reformat from arrival_date() \" + formattedDate1);\r\n\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\t\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\t\r\n\t\t\tTypeInField(arrivaldate, formattedDate1);\r\n\t\t\t\r\n\t\t\t//arrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n date.setText(year+\"/\"+(month+1)+ \"/\"+ day);\n hDate = year+\"/\"+(month+1)+ \"/\"+ day;\n check(hDate, status);\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setDate(String date){\n this.date = date;\n }", "public void SetDate(Date date);", "public void arrival_date()\r\n\t{\r\n\t\tExplicitWait(arrivaldate);\r\n\t\t\r\n\t\tDate date1 = new Date();\r\n\t\tdate1.setDate(date1.getDate() + 1);\r\n\t\tSimpleDateFormat df1 = new SimpleDateFormat(\"MM/dd/YYYY\");\r\n\t\tformattedDate1 = df1.format(date1);\r\n\r\n\t\tif (SeleniumRepo.isElementPresent(arrivaldate)) \r\n\t\t{\r\n\t\t\tarrivaldate.click();\r\n\t\t\tarrivaldate.clear();\r\n\t\t\tarrivaldate.sendKeys(formattedDate1);\r\n\t\t\t//System.out.println(formattedDate1);\r\n\t\t\ttest.log(Status.INFO, \"Clicked on arrivaldate Link\");\r\n\t\t\tlogger.info(\"Clicked on arrivaldate Link\");\r\n\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"arrivaldate TextBox not found\");\r\n\t\t\tlogger.error(\"arrivaldate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"arrivaldate TextBox not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "void setDate(Date data);", "@Override\n public void onClick(Date date) {\n Event_dialog(date);\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(UserUpdate.this, date, cal\n .get(Calendar.YEAR), cal.get(Calendar.MONTH), cal\n .get(Calendar.DAY_OF_MONTH)).show();\n }", "void setDate(java.lang.String date);", "public void setDate(String date){\n this.date = date;\n }", "private void fillInDate ( final String dateField, final String date ) {\n waitForAngular();\n driver.findElement( By.name( dateField ) ).clear();\n final WebElement dateElement = driver.findElement( By.name( dateField ) );\n dateElement.sendKeys( date.replace( \"/\", \"\" ) );\n }", "public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }", "public void actualDateSwitchAction() {\n\t\tdateToDisplay = Utils.removeTime(Calendar.getInstance().getTime());\n\t\tshowAnimalList(dateToDisplay);\n\t\tanimalsListPanel.switchToToday();\n\t}", "@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "private void clickAndCheckDateButton ( final String viewDate ) {\n final List<WebElement> radioList = driver.findElements( By.name( \"date\" ) );\n\n for ( final WebElement element : radioList ) {\n final String v = element.getAttribute( \"value\" );\n final ZonedDateTime datetimeLabor = ZonedDateTime.parse( v );\n String g = \"\";\n if ( datetimeLabor.getMonthValue() < 10 ) {\n g += \"0\" + datetimeLabor.getMonthValue() + \"/\";\n }\n else {\n g += datetimeLabor.getMonthValue() + \"/\";\n }\n if ( datetimeLabor.getDayOfMonth() < 10 ) {\n g += \"0\" + datetimeLabor.getDayOfMonth() + \"/\";\n }\n else {\n g += datetimeLabor.getDayOfMonth() + \"/\";\n }\n g += datetimeLabor.getYear();\n if ( g.equals( viewDate ) ) {\n element.click();\n // assertTextPresent( \"Labor and Delivery Reports for: \" +\n // viewDate );\n return;\n }\n }\n\n fail( \"The date isn't in the radio list.\" );\n }", "public Date getDate(String pPrompt) throws ParseException {\r\n\t\tSystem.out.println(pPrompt + \" \");\r\n\t\treturn new SimpleDateFormat(\"dd/MM/yy\").parse(input.nextLine());\r\n\t}", "public static void date(int num) {\n String date = \"\";\n // Tests for what day of the week it is by using modulus to allign with a day.\n if (num%7==0) {\n date = \"Saturday\";\n } else if (num%7 == 1) {\n date = \"Sunday\";\n } else if (num%7 == 2) {\n date = \"Monday\";\n } else if (num%7 == 3) {\n date = \"Tuesday\";\n } else if (num%7 == 4) {\n date = \"Wednesday\";\n } else if (num%7 == 5) {\n date = \"Thursday\";\n } else if (num%7 == 6) {\n date = \"Friday\";\n }\n // Prints name of day inputted date falls on.\n System.out.println(\"That day is a \"+date);\n }", "public void handleOnDateSet(int year, int month, int day) {\n Date date = new GregorianCalendar(year, month, day).getTime();\n String formatedDate = dateFormatter.format(date);\n\n switch (callerId) {\n case R.id.tvToDate:\n tvToDate.setText(formatedDate);\n break;\n case R.id.tvFromDate:\n tvFromDate.setText(formatedDate);\n break;\n }\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void onPickDateButtonClick(View v){\n\t\tDialogFragment newFragment = new DatePickerFragment();\n\t\t\n\t\tlong milis = -1;\t\t\n\t\tif (mGameSettings.contains(Constants.GAME_PREFERENCES_DOB)) {\n\t\t\tmilis = mGameSettings.getLong(Constants.GAME_PREFERENCES_DOB, 0);\n\t\t}\n\t\t\n\t\tBundle parametros = new Bundle();\n\t\tparametros.putLong(\"date\", milis); \n\t\t\n\t\tnewFragment.setArguments(parametros);\t\n\t\t\n\t\t\n\t\tnewFragment.show(getSupportFragmentManager(), \"datePicker\");\n\t}", "private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void setDate(int date){\n this.date = date;\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew DatePickerDialog(getActivity(), date, myCalendar\n\t\t\t\t\t\t.get( Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n\t\t\t\t\t\tmyCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(Edit_Profile.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private GuessDate(){\n }", "private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }", "@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Setting dates!\", Toast.LENGTH_SHORT).show();\n \tshowDatePickerDialog(mSelectedYear, mSelectedMonth, mSelectedDay, mOnDateSetListener);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "public static void printDateTimeErr() {\n printLine();\n System.out.println(\" Oops! Please enter your date in the yyyy-mm-dd format\\n\");\n printLine();\n }", "public static void goTo() {\n\t\tMONTHS[] arrayOfMonths = MONTHS.values();\n\t\tLONGDAYS[] arrayOfLongDays = LONGDAYS.values();\n\t\tScanner sc = new Scanner(System.in);\n\t\tString date = \"\";\n\t\tSystem.out.println(\"Enter a date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tint month = Integer.parseInt(date.substring(0, 2));\n\t\tint day = Integer.parseInt(date.substring(3, 5));\n\t\tint year = Integer.parseInt(date.substring(6, 10));\n\t\tGregorianCalendar toDisplay = new GregorianCalendar(year, month, day);\n\t\tString value = getValues(toDisplay);\n\t\tif (value != \"\") {\n\t\t\tSystem.out.println(value);\n\t\t} else {\n\t\t\tSystem.out.println(\"There are no events at this day\");\n\t\t}\n\t}", "public void updateDate(Date date);", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startYear = year;\n startMonth = monthOfYear + 1;\n startDay = dayOfMonth;\n try {\n dateChoisie = df.parse(String.valueOf(startYear + \"-\" + startMonth + \"-\" + startDay));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.e(\"DATE CHOISIE\",df.format(dateChoisie));\n switch (v.getId()){\n case R.id.buttonDateDebut:\n editDateDebut.setText(df.format(dateChoisie));\n break;\n case R.id.buttonDateFin:\n editDateFin.setText(df.format(dateChoisie));\n break;\n }\n }", "public void expiredate() {\n\t\tdr.findElement(By.xpath(\"//input[@id='expiryDate']\")).sendKeys(\"05/2028\");\r\n\t\t\r\n\t\t\r\n\t\t}", "public void setDate(int dt) {\n date = dt;\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "@Override\r\n\tpublic void date() {\n\t\tSystem.out.println(\"10/19/21\");\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(DATE_DIALOG_ID);\r\n\t\t\t}", "public void setDate(String date) {\r\n this.date = date;\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(DatePickerActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "Date getForDate();", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddTripActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, start_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.76758796", "0.73965657", "0.72634137", "0.72167915", "0.71526825", "0.6920045", "0.6802975", "0.67794394", "0.6755281", "0.6732159", "0.6707034", "0.6678944", "0.66236824", "0.65955025", "0.6593093", "0.6552339", "0.65486085", "0.6542835", "0.6540414", "0.653116", "0.65265", "0.65241617", "0.6515613", "0.6488276", "0.6475447", "0.6471956", "0.64681876", "0.6456936", "0.6456123", "0.643626", "0.6423234", "0.6421803", "0.641634", "0.6411941", "0.6408812", "0.6408413", "0.6390106", "0.6384755", "0.6383935", "0.6373014", "0.6368244", "0.6362363", "0.63373214", "0.63372785", "0.6325381", "0.6322053", "0.63216984", "0.6308752", "0.63068986", "0.63057655", "0.62966675", "0.62956566", "0.6294866", "0.6291576", "0.6290275", "0.6288649", "0.62856233", "0.62798333", "0.6278069", "0.6264581", "0.62622607", "0.62525105", "0.6252279", "0.6251085", "0.6247927", "0.62451977", "0.6235385", "0.6235385", "0.6225916", "0.6221086", "0.6218031", "0.62127155", "0.62127155", "0.62127155", "0.62127155", "0.62127155", "0.62076896", "0.62035555", "0.62007755", "0.6200361", "0.61988944", "0.6198455", "0.61953145", "0.6190144", "0.61880165", "0.618451", "0.61797386", "0.6174643", "0.6174643", "0.61726576", "0.6167583", "0.6164195", "0.6160915", "0.61593556", "0.6155363", "0.61533153", "0.61518544", "0.61368847", "0.6136294", "0.6136273", "0.61251307" ]
0.0
-1
Constructor of our display
JImageDisplay(int imWid,int imHei) { image = new BufferedImage(imWid,imHei,BufferedImage.TYPE_INT_RGB); super.setPreferredSize(new java.awt.Dimension(imWid,imHei)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Display() {\n initComponents();\n }", "public Display()\n {\n setSize(W, H);\n setBackground(Color.BLACK);\n }", "public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}", "public StreamRecorderDisplay() {\n initialize();\n }", "public Note(){\n\t\t; //initDisplay(0);\n\t}", "public ImageDisplay()\n\t{\n initComponents();\n }", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }", "public RegisterDisplay() {\n initComponents();\n }", "public Display(int height, int width, String title)\n {\n this.width = width; \n this.height = height; \n this.title = title; \n \n createDisplay();\n }", "public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }", "private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }", "public OutputConsole() {\n initComponents();\n setSize (1520, 750);\n }", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "public DisplayTable() {\n initComponents();\n }", "private void constructor(){\n\t\tdp_scale = getResources().getDisplayMetrics().density;\n\t\t\n\t\tfloat font_size = 16;\n\t\t\n\t\t// Initialize paints\n\t\tpaint = new Paint();\n\t\tpaint.setColor(Color.GRAY);\n\t\tpaint.setAntiAlias(true);\n\t\tpaint.setStrokeWidth(1);\n\t\t\n\t\tpaint.setTextSize(font_size*dp_scale);\n\t\ttext_paint = new TextPaint(paint);\n\t\t\n\t\t// setup listeners\n\t\t/*\n\t\tsetOnTouchListener(new OnTouchListener() {\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\tswitch(arg1.getAction()){\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tentry.select();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tsetOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tactivity.view_entry(entry);\n\t\t\t}\n\t\t});\n\t\t\n\t\tif (camera == null){\n\t\t\tcamera = ((BitmapDrawable)this.getResources().getDrawable(R.drawable.camera)).getBitmap();\n\t\t}\n\t}", "public DisplayBar(DisplayFrame parent) {\n initComponents();\n this.parent = parent;\n }", "public AngleDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n }", "public Display(String [] entry, Double [] price, String name)\n {\n super();\n initializeComponent(entry,price,name);\n //\n // TODO: Add any constructor code after initializeComponent call\n //\n \n this.setVisible(true);\n }", "protected JComponent createRecordDisplay() {\n \trecordPanel = new JPanel(new BorderLayout());\n \trecordDisplay = new JLabel();\n \trecordDisplay.setHorizontalAlignment(JLabel.CENTER);\n \t\n \tupdateDisplays();\n \t\n \trecordPanel.setOpaque(false);\n \trecordPanel.setBackground(Color.YELLOW);\n \trecordPanel.setForeground(Color.WHITE);\n \trecordPanel.add(recordDisplay,BorderLayout.NORTH);\n \trecordPanel.setPreferredSize(new Dimension(400,268));\n \t\n \treturn recordPanel; \t \t\n }", "public Display() {\r\n\t\t//Fills the board with invalid positions\r\n\t\tboard = new int[17][17];\r\n\t\tfor (int i = 0; i < 17; i++)\r\n\t\t\tfor (int j = 0; j < 17; j++)\r\n\t\t\t\tboard[i][j] = -1;\r\n\r\n\t\t//Fills the center of the board with valid positions\r\n\t\tfor (int i = 4; i <= 12; i++)\r\n\t\t\tfor (int j = 4; j <= 12; j++)\r\n\t\t\t\tboard[i][j] = 0;\r\n\t\t\r\n\t\t//Fills the rest of the board with valid positions\r\n\t\tfillTriangle(-1, board, 0, 16, 12);\r\n\t\tfillTriangle(1, board, 0, 9, 13);\r\n\t\tfillTriangle(-1, board, 0, 7, 12);\r\n\t\tfillTriangle(1, board, 0, 0, 4);\r\n\t\tfillTriangle(-1, board, 0, 7, 3);\r\n\t\tfillTriangle(1, board, 0, 9, 4);\r\n\t\t\r\n\t\tthis.setPreferredSize(SIZE);\r\n\t}", "public GUI(Display display) {\n\t\t/* Init fields */\n\t\tGUI.display = display;\n\t\tGUI.gui = this;\n\t\t// displayThread = Thread.currentThread();\n\t\t/* Startup process */\n\t}", "public ReportPane() {\n initComponents();\n }", "public ShowView() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddToolBar(SWT.FLAT | SWT.WRAP);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "public LoadingScreen2()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n tracker = new Tracker();\n }", "private UI()\n {\n this(null, null);\n }", "public Display(){\n GridLayout layout = new GridLayout(1,DIGIT_COUNT);\n setLayout(layout);\n for (int i = 0; i < labels.length; i++) {\n labels[i] = new JLabel();\n labels[i].setIcon(numbers[0]);\n add(labels[i]);\n }\n\n setNumber(0);\n }", "private IngenicoDisplay(){\n\n }", "@Implementation\n protected void __constructor__(IDisplayManager dm) {\n }", "private DisplayDevice(){\t\t\r\n\t\t\r\n\t}", "private void buildDisplay() {\n\t\tColorMap map = new ColorMap();\n\n\t\tfor (int i = 1; i < MAX_COLORS; i++) {\n\t\t\tmap.mapColor(i, new Color(0, (int) (i + 127), 0));\n\t\t}\n\n\t\t// When noting, it is white\n\t\tmap.mapColor(0, Color.WHITE);\n\n\t\tValue2DDisplay displayGrass = new Value2DDisplay(rabbitSpace.getGrassSpace(), map);\n\n\t\tObject2DDisplay displayRabbits = new Object2DDisplay(rabbitSpace.getRabbitSpace());\n\t\tdisplayRabbits.setObjectList(rabbitList);\n\n\t\tdisplaySurf.addDisplayable(displayGrass, \"Grass\");\n\t\tdisplaySurf.addDisplayable(displayRabbits, \"Rabbits\");\n\n\t\trabbitsAndGrassInSpace.addSequence(\"Number of Rabbits in Space\", new RabbitsInSpace());\n\t\trabbitsAndGrassInSpace.addSequence(\"Amount of Grass\", new GrassInSpace());\n\t}", "public View() {\n initComponents();\n }", "public void buildDisplay() {\n ColorMap map = new ColorMap();\n\n for (int i = 1; i <= maxGrassPerCell; i++) {\n map.mapColor(i, new Color(0, Math.max(256 - i * 12, 50), 0));\n }\n map.mapColor(0, Color.white);\n\n Value2DDisplay displayMoney =\n new Value2DDisplay(space.getCurrentGrassSpace(), map);\n\n Object2DDisplay displayRabbits = new Object2DDisplay(space.getCurrentRabbitSpace());\n displayRabbits.setObjectList(rabbitList);\n\n displaySurf.addDisplayableProbeable(displayMoney, \"Grass\");\n displaySurf.addDisplayableProbeable(displayRabbits, \"Rabbits\");\n\n populationPlot.addSequence(\"Number of Rabbits\", new rabbitCount(), Color.BLUE);\n populationPlot.addSequence(\"Number of Grass\", new grassCount(), new Color(0, 150, 0));\n }", "public AStationPane() {\n }", "public WinScreen()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(1500, 500, 1); \r\n\r\n prepare();\r\n }", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void display() {\n\t\t\r\n\t}", "private void makeDisplay() {\n\n\t\t// setLayout to be a BoxLayout\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\t// call these methods ???? to be defined later\n\n\t\taddOscServerAddressPanel();\n\t\taddGlobalControlPanel();\n\t\taddFirstSynthPanel();\n\t\taddSecondSynthPanel();\n\t\taddThirdSynthPanel();\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Chaos()\n {\n super( \"chaos\" );\n setSize(720,520); \n setVisible( true ); \n }", "public cambioView() {\n initComponents();\n }", "public ReportUi() {\n initComponents();\n }", "public Visualizador() {\n initComponents();\n inicializar();\n }", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public Title()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(PlatformWorld.sWidth, PlatformWorld.sHeight, 1); \n \n addObject(new TitleController(), 0, 0);\n }", "@Override\n\tpublic void display() {\n\t\t\n\t}", "@Override\n\tpublic void display() {\n\t\t\n\t}", "public Summary() {\n initComponents();\n \n }", "public WinScreen()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n showText( \"CONGRATS, YOU WIN!!!\", 393, 264); \n showText( \"Click Emoji to Reset the Game! -->\", 393, 300);\n showText( \"Click Here to go Back to Start Screen! -->\", 555, 572);\n addObject( new ResetButton(), 609, 300);\n addObject( new BackButton(), 764, 572);\n }", "public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}", "@Override\n public void display() {\n\n }", "public WorkingOutScreenV1() {\n initComponents();\n }", "public SimulationView() {\n initComponents();\n }", "public TextureDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n\n backImg = createBackImg();\n }", "public TwoDDisplayPanel ( int newConNumber )\r\n\t{\r\n\t\tlistOfOtherContins =\r\n\t\t\tnew TreeSet( Utilities.getOther2DDisplayContins ( newConNumber ) );\r\n if(listOfOtherContins.size() <= 0)\r\n {\r\n JOptionPane.showMessageDialog(null, \"This contin does not interact with other contins. Display cannot be drawn.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n \tcontinName = Utilities.getContinName ( new Integer( newConNumber ) );\r\n\t\tcontinNumber = newConNumber;\r\n\t\thorizontal = true;\r\n\t\tfrom = getMinimumSectionNumber ( );\r\n\t\tto = getMaximumSectionNumber ( );\r\n if(to == from || to-from <=0)\r\n {\r\n JOptionPane.showMessageDialog(null, \"Display cannot be drawn for this contin.\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n continNameText = continName.equals ( \"\" ) ? ( \"\" + continName ) : continName;\r\n preferredTitle = \"2-Dimensional Graphical Display - Contin \" + continNameText;\r\n\t}", "public UI() {\n initComponents();\n }", "public NewCourier() {\n initComponents();\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public HealthUI() {\n init();\n }", "public Window()\n {\n // sets title\n super(\"Awesome Calculator\");\n\n // generated design code\n initComponents();\n\n conversions.addListSelectionListener(this);\n\n // sets up the map\n buttons = new JButton[]{\n zero, one, two, three, four,\n five, six, seven, eight, nine\n };\n\n // stores the initial button color\n init = zero.getBackground();\n\n // center frame on screen\n setLocationRelativeTo(null);\n\n // don't have to worry about component focus\n KeyboardFocusManager.getCurrentKeyboardFocusManager()\n .addKeyEventDispatcher(new KeyEventDispatcher()\n {\n @Override\n public boolean dispatchKeyEvent(KeyEvent event)\n {\n if (event.getID() == KeyEvent.KEY_PRESSED)\n {\n keyPressed(event);\n }\n\n return false;\n }\n }\n );\n }", "@Override\r\n\tpublic void display() {\n\r\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "@Override\n\tpublic void display() {\n\n\t}", "public Screen() {\n\t\tobjects = new ArrayList<>();\n\t\tsetVisible(false);\n\t}", "public StatsPanel() {\n\t\t\n\t\t//initialize and format components\n\t\tmainPanel.setLayout(null);\n\t\ttopTenTitle = new JLabel(\"Top Ten Records\");\n\t\ttopTenTitle.setForeground(Color.WHITE);\n\t\ttopTenTitle.setBackground(Color.DARK_GRAY);\n\t\tversusTitle = new JLabel(\"Versus Records\");\n\t\tversusTitle.setForeground(Color.WHITE);\n\t\tversusTitle.setBackground(Color.DARK_GRAY);\n\t\tback = new JButton(\"Return to Main Menu\");\n\t\tback.setForeground(Color.WHITE);\n\t\tback.setBackground(Color.DARK_GRAY);\n\t\tback.setOpaque(true);\n\t\tback.setBorderPainted(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//add components to panel\n\t\tmainPanel.add(title);\n\t\tmainPanel.add(topTenTitle);\n\t\tmainPanel.add(versusTitle);\n\t\tmainPanel.add(back);\n\t mainPanel.setOpaque(true);\n\t mainPanel.setBackground(Color.BLACK);\n\t\t\n\t //set the location in layout for all components\n\t\tDimension size = new Dimension(100,25);\n\t\ttopTenTitle.setBounds(150, 140, 200,25);\n\t\tversusTitle.setBounds(600, 140, 200, 25);\n\t\tback.setBounds(350, 450, 200, size.height);\n\t\ttitle.setBounds(385, 25, 200, 100);\n\t}", "public Terminal() {\n initComponents();\n }", "public LiveScanDisplayBase(FORMAT fmtPlt) {\n super(fmtPlt);\n \n// this.lstActDevs = new LinkedList<AcceleratorNode>();\n this.mplLiveData = new SmfPvMonitorPool();\n }", "public Records_Panel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public ReportScreen() {\n\t\t\n\t}", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "public BaseView() {\r\n\t\tsuper();\r\n\t\tthis.modelView = new BaseModelView();\r\n\t\tthis.buildLayout();\r\n\t\tthis.setVisible(true);\r\n\t}", "public Messg() {\n initComponents();\n }", "public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}", "public Captura() {\n initComponents();\n }", "public QuestionPaper() {\n initComponents();\n setText();\n }", "public TetrisGUI() {\r\n initializeFields();\r\n }", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public Panel03Console() {\n System.out.println(\"Panel03 ConsolePanel()\");\n initComponents();\n super.setPreferredSize(new Dimension(CONSOLE_WIDTH, CONSOLE_HEIGHT));\n }", "void init() {\n setVisible(true);\n\n }", "public MainMenuView() {\r\n super(\"\\n\" +\r\n \"**************************\\n\" +\r\n \"* CIT 360 - Technologies *\\n\" +\r\n \"**************************\\n\" +\r\n \" 1 - Java Collections\\n\" +\r\n \" 2 - Threads, Executors and Runnables\\n\" +\r\n \" 3 - Application Controller Pattern\\n\" +\r\n \" 4 - MVC\\n\" + \r\n \" 5 - Hibernate\\n\" +\r\n \" 6 - JSON\\n\" +\r\n \" 7 - HttpURLConnection\\n\" +\r\n \" 8 - Quit\\n\", \r\n 8);\r\n }", "public CortanteScreen(Cortante c) {\n super(\"Cortante\");\n df = new DecimalFormat(\"#,###,##0.00000\");\n this.c = c;\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Viewer() {\r\n\t\tzoom = DEFAULT_ZOOM;\r\n\t\tisWireframe = false;\r\n\t\tisAxes = true;\r\n\t\tnextRotationAngle = 0;\r\n\t\tnextRotationAxis = null;\r\n\t\trotationMatrix = null;\r\n\t\tscreenWidth = 0;\r\n\t\tscreenHeight = 0;\r\n\t}", "public JanelaPrincipal() {\r\n\t\tsuper(\"Musical Memory\");\r\n\r\n\t\tinitialize();\r\n\t\t//this.setLocationByPlatform(true);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.addKeyListener(this);\r\n\r\n\t}", "public Avontool() {\n initComponents();\n }", "public TempConverter() {\r\n buildPanel();\r\n add(panel);\r\n setTitle(\"C/F converter\");\r\n setSize(WINDOW_WIDTH, WINDOW_HEIGHT);\r\n setVisible(true);\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n }", "public Engine() {\n\t\tsuper(\"DemoYourChoice\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setVisible(true);\n setResizable(false);\n setLayout(new BorderLayout());\n\n board = new Board(1280, 720);\n board.setPreferredSize(board.getPreferredSize());\n con.add(board);\n\n ui = new JFrame(\"DemoYourChoice\");\n ui.setPreferredSize(new Dimension(600, 800));\n ui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n ui.setLayout(new FlowLayout());\n ui.setVisible(true);\n ui.add(titleLbl);\n\n\n\t\tui.pack();\n\n setSize(1280, 720);\n\t}", "public RtDisplay(final RTDManager manager, final Parameters parameters) {\n super(\"Page\", VBox.Border.NO_BORDER);\n\n this.manager = manager;\n this.parameters = parameters;\n this.sleepTime = parameters.getUpdateRate();\n this.windowName = parameters.getWindowName();\n\n // Disable tooltips permanently\n ToolTipManager.sharedInstance().setEnabled(false);\n\n removeDefaultFocusTraversal();\n\n // Required to create the peer so that fonts will exist\n addNotify();\n\n {\n this.cellFont = new Font(\"monospaced\", Font.BOLD, 12);\n this.labelFont = new Font(\"Serif\", Font.BOLD, 14);\n\n RtLabel.setDefaultFont(labelFont);\n\n // Set the font for menus, etc.\n // The default font is the prettiest; use it if we can -\n // otherwise it's Sansserif\n String fontName = \"Sansserif\";\n Font font = getFont();\n if (font != null) {\n String s = font.getName();\n if (s != null)\n fontName = s;\n }\n\n setFont(new Font(fontName, Font.PLAIN, 12));\n }\n\n this.updateThread = new UpdateThread(this);\n timeThread.start();\n\n // inform the manager about ourselves\n manager.addDisplay(this);\n\n debug.println(\"At end of display constructor\");\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "public AdminLog() {\n initComponents();\n setSize(1450,853);\n setLocation (250,130);\n }", "public InformationResultPanel() {\n initComponents();\n }", "public FrmBillDisplay() {\n initComponents();\n }", "public FontDisplay()\r\n\t{\r\n\t\t// Get all Fonts from the System\r\n\t\tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t\tFont[] fonts = ge.getAllFonts();\r\n\r\n\t\t// Build a list of styled Font Names\r\n\t\tStringBuilder sb = new StringBuilder(\"<html><body style='font-size: 18px'>\");\r\n\t\tfor (Font font : fonts)\r\n\t\t{\r\n\t\t\tsb.append(\"<p style='font-family: \");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"'>\");\r\n\t\t\tsb.append(font.getFontName());\r\n\t\t\tsb.append(\"</p>\");\r\n\t\t}\r\n\r\n\t\t// Add built list to EditorPane\r\n\t\tJEditorPane fontEP = new JEditorPane();\r\n\t\tfontEP.setMargin(new Insets(10, 10, 10, 10));\r\n\t\tfontEP.setContentType(\"text/html\");\r\n\t\tfontEP.setText(sb.toString());\r\n\t\tfontEP.setEditable(false);\r\n\r\n\t\t// Add EditorPane to ScrollPane\r\n\t\tJScrollPane scrollPane = new JScrollPane(fontEP);\r\n\t\tscrollPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));\r\n\r\n\t\t// Create a Label for the EditorPane\r\n\t\tJLabel titleLabel = new JLabel(\"Available Fonts on System\",\r\n SwingConstants.CENTER);\r\n\t\ttitleLabel.setFont(new Font(titleLabel.getFont().getName(), Font.BOLD, 17));\r\n\t\ttitleLabel.setForeground(new Color(21, 149, 211));\r\n\r\n\t\tImageIcon logo = new ImageIcon(\"Snowbound_Software_logo_full_2012.png\");\r\n\t\tJLabel logoLabel = new JLabel();\r\n\t\tlogoLabel.setIcon(logo);\r\n\t\tJPanel logoPane = new JPanel();\r\n\t\tlogoPane.setLayout(new BoxLayout(logoPane, BoxLayout.X_AXIS));\r\n\t\tlogoPane.add(logoLabel);\r\n\t\tlogoPane.add(Box.createHorizontalStrut(12));\r\n\t\tlogoPane.add(new JSeparator(JSeparator.VERTICAL));\r\n\t\tlogoPane.add(Box.createHorizontalStrut(6));\r\n\t\t// Add Label to Panel\r\n\t\tJPanel labelPane = new JPanel(new BorderLayout(0, 10));\r\n\t\tlabelPane.setBorder(BorderFactory.createEmptyBorder(12, 12, 0, 12));\r\n\t\tlabelPane.add(logoPane, BorderLayout.WEST);\r\n\t\tlabelPane.add(titleLabel, BorderLayout.CENTER);\r\n\t\tlabelPane.add(new JSeparator(), BorderLayout.SOUTH);\r\n\r\n\t\t// Add Panels to Frame\r\n\t\tthis.getContentPane().setLayout(new BorderLayout());\r\n\t\tthis.add(labelPane, BorderLayout.NORTH);\r\n\t\tthis.add(scrollPane, BorderLayout.CENTER);\r\n\r\n\t\t// Initialize Frame\r\n\t\tthis.setTitle(\"Snowbound Software :: Font Display\");\r\n\t\tthis.setSize(500, 650);\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t}", "public VivaExam() {\n initComponents();\n showDate();\n showTime();\n }", "public FreimapVisualPanel2() {\n initComponents();\n }", "public Info() {\n initComponents();\n setSize(540, 575);\n setLocationRelativeTo(null);\n \n }", "public MenuInfo() {\n initComponents();\n setSize(1024,768);\n }", "public GraphPanel()\n\t{\n\t\t// instantiates graphArray to hold list of names to graph \n\t\tgraphArray = new ArrayList<NameRecord>();\n\t\t\n\t\t// sets the size of the panel\n\t\tsetPreferredSize(new Dimension(600,600));\n\t}", "public GuiController()\n {\n\n DefaultTerminalFactory terminalFactory = new DefaultTerminalFactory();\n PageStack = new ArrayDeque<>(); // Gives us a screen stack\n window = new BasicWindow(\"Just put anything, I don't even care\");\n try\n {\n screen = terminalFactory.createScreen(); //Populates screen\n screen.startScreen(); //Runs screen\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n textGUI = new MultiWindowTextGUI(screen);\n\n }", "public GameDisplay(Game game) {\n _game = game;\n setPreferredSize(BOARD_WIDTH, BOARD_HEIGHT);\n }", "public MainClass()\r\n\t{\r\n\t\tthis.setPreferredSize(new Dimension(width - 300, height));// This sets the dimensions of the graphic space where cam is drawn\r\n\t\tpanel = new ControlPanel(); // Initialization of various objects incorporated into the main class\r\n\t\twindow = new Window(this, panel);\t\t\t\t//\r\n\t\tdisp = new DispAngleDiagram(stroke);\t\t\t//\r\n\t\trcp = new RenderCamProfile(disp, panel);\t\t//\r\n\t\tinput = new InputHandler(disp);\t\t\t\t\t//\r\n\t\t\r\n\t\tthis.addMouseListener(input);\t\t\t\t\t\r\n\t\tthis.addMouseMotionListener(input);\r\n\t}", "public AulaView() {\n initComponents();\n }" ]
[ "0.7964554", "0.78194743", "0.76345634", "0.7293241", "0.718367", "0.70705837", "0.7067453", "0.7034157", "0.6806072", "0.67264754", "0.67032707", "0.66422546", "0.66368055", "0.66289824", "0.66191393", "0.6616411", "0.6607135", "0.6589394", "0.6586438", "0.6540746", "0.653545", "0.6511598", "0.65027004", "0.6491628", "0.6462588", "0.6460099", "0.6452795", "0.6425415", "0.6424918", "0.64228207", "0.6422099", "0.64171636", "0.6415676", "0.6406113", "0.6397116", "0.6397116", "0.63913924", "0.638433", "0.63734937", "0.6373286", "0.636832", "0.63662314", "0.6363397", "0.6354331", "0.6351973", "0.6351973", "0.63492256", "0.6347762", "0.63440365", "0.63400704", "0.63387114", "0.63296854", "0.6326276", "0.63221884", "0.63218534", "0.63213474", "0.631657", "0.6315121", "0.6308453", "0.6307958", "0.6296447", "0.6296447", "0.6296447", "0.6295022", "0.629384", "0.6293547", "0.6292468", "0.6290524", "0.6287449", "0.628246", "0.62810004", "0.6280111", "0.6268923", "0.62653494", "0.6261921", "0.6260282", "0.6252859", "0.62480915", "0.6246255", "0.62426436", "0.6240258", "0.62385917", "0.62360495", "0.6231292", "0.62269604", "0.6221619", "0.62141216", "0.6213064", "0.62115425", "0.62082833", "0.62061954", "0.62018114", "0.6201568", "0.6201068", "0.61997247", "0.6191819", "0.61895585", "0.61803997", "0.6179724", "0.617887", "0.6176149" ]
0.0
-1
Set the image to black color
public void clearImage() { //Initialize the array of 0s int arr_len; if (image.getHeight() > image.getWidth()) arr_len = image.getHeight(); else arr_len = image.getWidth(); int[] rgb = new int[arr_len]; //Set the whole image to black color image.setRGB(0,0,image.getWidth()-1,image.getHeight()-1,rgb,0,0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void black() {\n g2.setPaint(Color.black);\r\n }", "public void clear() {\n\t\tfor(int i=0;i<getWidth();i++) {\n\t\t\tfor(int j=0;j<getHeight();j++) {\n\t\t\t\tbImage.setRGB(i, j, 0xffffffff);\n\t\t\t}\n\t\t}\n\t}", "private Image blackSquare() {\n\t\tWritableImage wImage = new WritableImage(40, 40);\n\t\tPixelWriter writer = wImage.getPixelWriter();\n\t\tfor (int i = 0; i < 30; i++) {\n\t\t\tfor (int j = 0; j < 30; j++) {\n\t\t\t\twriter.setColor(i, j, Color.BLACK);\n\t\t\t}\n\t\t}\n\t\treturn wImage;\n\t}", "public void blackScreen() {\n boolean var5 = field_759;\n int var1 = this.field_723 * this.field_724;\n int var2;\n if(this.interlace) {\n var2 = 0;\n int var3 = -this.field_724;\n if(var5 || var3 < 0) {\n do {\n int var4 = -this.field_723;\n if(var5) {\n this.pixels[var2++] = 0;\n ++var4;\n }\n\n while(var4 < 0) {\n this.pixels[var2++] = 0;\n ++var4;\n }\n\n var2 += this.field_723;\n var3 += 2;\n } while(var3 < 0);\n\n }\n } else {\n var2 = 0;\n if(var5 || var2 < var1) {\n do {\n this.pixels[var2] = 0;\n ++var2;\n } while(var2 < var1);\n\n }\n }\n }", "public void setBlackAndWhite()\n {\n if(eyeL != null) // only if it's painted already...\n {\n eyeL.changeColor(\"black\");\n eyeR.changeColor(\"black\");\n nose.changeColor(\"black\");\n mouthM.changeColor(\"black\");\n mouthL.changeColor(\"black\");\n mouthR.changeColor(\"black\");\n }\n }", "public Pic noRed() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n current.setRed(0);\n }\n }\n return output;\n }", "public void setBlack(RBNode<T> node) {\n if(node != null) {\r\n node.color = BLACK;\r\n }\r\n }", "public void clearImage() {\n IntStream.range(0, bytes.length).forEach(i -> bytes[i] = CLEAR_BYTE);\n }", "public final void mo39711K() {\n setBackgroundColor(0);\n }", "private void generateBlackImage(int width, int height, int[] pixels) {\n\t\tfor (int y=0; y<height; y++) {\n\t\t\t// Schleife ueber die x-Werte\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tint pos = y*width + x; // Arrayposition bestimmen\n\t\t\t\t\n\t\t\t\tint r = 0;\n\t\t\t\tint g = 0;\n\t\t\t\tint b = 0;\n\t\t\t\t\n\t\t\t\t// Werte zurueckschreiben\n\t\t\t\tpixels[pos] = 0xFF000000 | (r << 16) | (g << 8) | b;\n\t\t\t}\n\t\t}\n\t}", "public void clear(int color){\n\t\tfor(int i = 0; i < width*height; i++){\n\t\t\tpixels[i] = color;\n\t\t}\n\t}", "public void setBlackAndWhite()\n {\n if (wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "public void setBlackAndWhite()\n {\n if(wall != null) // only if it's painted already...\n {\n wall.changeColor(\"black\");\n window.changeColor(\"white\");\n roof.changeColor(\"black\");\n sun.changeColor(\"black\");\n }\n }", "public void clearImage() {\n // Clear Image Area\n paint = false;\n this.repaint();\n }", "public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}", "public void clear(int color);", "public SVGBuilder setWhiteMode() {\n this.fillColorFilter = new PorterDuffColorFilter(Color.WHITE, PorterDuff.Mode.SRC_IN);\n return this;\n }", "private static Picture negateColor(Picture pic){\r\n int red = 0, green = 0, blue = 0;\r\n\r\n for( Pixel p : pic.getPixels()){\r\n // get colors of pixel and negate\r\n red = 255 - p.getRed();\r\n green = 255 - p.getGreen();\r\n blue = 255 - p.getBlue();\r\n p.setColor(new Color(red, green, blue));\r\n // pic.setBasicPixel(p.getX(), p.getY(), color.hashCode());\r\n }\r\n return pic;\r\n }", "public static void testZeroRed()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.zeroRed();\n\t wall.explore();\n }", "public Pic blackAndWhite() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n int average = (current.getRed() + current.getGreen()\n + current.getBlue()) / 3;\n if (average > 127) {\n current.setRed(255);\n current.setGreen(255);\n current.setBlue(255);\n } else {\n current.setRed(0);\n current.setGreen(0);\n current.setBlue(0);\n }\n }\n }\n return output;\n }", "private void bufferImageGrey()\n {\n int col = 0;\n int[][] heightmap = parent.normaliseMap(parent.getPreviewMap(), 255);\n \n bufferedImage = createImage(heightmap.length, heightmap[0].length);\n Graphics bg = bufferedImage.getGraphics();\n for(int i = 0; i < heightmap.length; i ++) {\n for(int j = 0; j < heightmap[i].length - 1; j++) {\n col = heightmap[i][j];\n if(col > 255)\n col = 255;\n bg.setColor(new Color(col, col, col));\n bg.drawLine(i, j, i, j);\n }\n }\n }", "public BufferedImage getBlackImage() {\n return blackImages[imageNumber];\n }", "public void setToWhite();", "public void resetBlockColor() {\n for(int i=0;i<gridWidth; i++) {\n for(int j=0;j<gridHeight;j++) {\n getBlock(i,j).setDarker(false);\n }\n }\n repaint();\n }", "public void runDarken() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 0.5f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void setColor(float r, float g, float b) {\n color c = color(r, g, b);\n for(int x = 0; x < _img.width; x++) {\n for(int y = 0; y < _img.height; y++) {\n _img.set(x, y, c);\n }\n }\n }", "void setNoColor(boolean mono);", "public void clear()\n {\n Arrays.fill(data, clearColor);\n }", "public void ClearBuffer() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tpixel_data[x + y * width] = 0x00000000;\n\t\t\t}\n\t\t}\n\t}", "public void fade2black() {\n int var3 = this.field_723 * this.field_724;\n int var2 = 0;\n if(field_759 || var2 < var3) {\n do {\n int var1 = this.pixels[var2] & 16777215;\n this.pixels[var2] = (var1 >>> 1 & 8355711) + (var1 >>> 2 & 4144959) + (var1 >>> 3 & 2039583) + (var1 >>> 4 & 986895);\n ++var2;\n } while(var2 < var3);\n\n }\n }", "public void clear()\n {\n clear(BLACK);\n }", "public void setBlackCounter(int num){\n this.blackCounter = num;\n }", "private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);//\n Canvas c = new Canvas(bmpGrayscale);\n Paint paint = new Paint();\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n paint.setColorFilter(f);\n c.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGrayscale;\n }", "@Test\n public void testChangeGrey() {\n System.out.println(\"changeGrey\");\n ImageFilter instance = null;\n BufferedImage expResult = null;\n BufferedImage result = instance.changeGrey();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void image_toGrey(int my_id) {\n int y1;\n //int offset = size;\n int myInitRow = (int)(((float)my_id/(float)nThreads)*((float)height/2.0f));\n int nextThreadRow = (int)(((float)(my_id+1)/(float)nThreads)*((float)height/2.0f));\n int myEnd, myOff;\n myOff = 2*width*myInitRow;\n myEnd = 2*width*nextThreadRow;\n for(int i=myOff; i < myEnd;i++) {\n y1 = data[i]&0xff;\n image[i] = 0xff000000 | (y1<<16) | (y1<<8) | y1;\n }\n }", "public void eraseImage() {\n\t\timage = null;\n\t}", "public void reset(){\n super.reset();\n this.troef = CardColor.NONE;\n }", "public void setImage(Image newImage)\n {\n if (newImage == null)\n {\n setFill(null);\n }\n else\n {\n setFill(new ImageFill(newImage));\n }\n }", "public synchronized void clearImage()\r\n\t{\r\n\t\treferenceImage.clearImage();\r\n\t\tdisplayedImage.clearImage();\r\n\t}", "public static void clearBoard() {\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tdisplay[i][j].setSelected(false);\n\t\t\t\tdisplay[i][j].setIcon(DEFAULT);\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "public BufferedImage NOT(BufferedImage timg) {\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray1 = convertToArray(timg);\n int[][][] ImageArray2 = convertToArray(timg);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n int r = ImageArray1[x][y][1]; //r\n int g = ImageArray1[x][y][2]; //g\n int b = ImageArray1[x][y][3]; //b\n\n ImageArray2[x][y][1] = (~r) & 0xFF; //r\n ImageArray2[x][y][2] = (~g) & 0xFF; //g\n ImageArray2[x][y][3] = (~b) & 0xFF; //b\n\n }\n }\n return convertToBimage(ImageArray2);\n\n }", "protected void setImageData(BufferedImage img) {\n \t\tif (format == null || format == Format.TEXT || format == Format.COLOR16_8x8)\n \t\t\treturn;\n \t\n \t\tequalize(img);\n \t\t\n \t\t//denoise(img);\n \t\t\n \t\tupdatePaletteMapping();\n \t\n \t\tflatten(img);\n \t\t\n \t\tif (!importDirectMappedImage(img)) {\n \t\t\tconvertImageToColorMap(img);\n \t\t}\n \t\n \t\treplaceImageData(img);\n \t}", "public void reset(int initValue) {\n\t\tfor (int col = 0; col < this.width; col++) {\n\t\t\tfor (int row = 0; row < this.height; row++) {\n\t\t\t\tthis.bitmap[col][row] = initValue;\n\t\t\t}\n\t\t}\n\t}", "public void erase() {\n g2.setPaint(Color.white);\r\n }", "public void allOff() {\r\n\t\tsetAllColor(0, 0, 0);\r\n\t}", "private BufferedImage createBlankImage(int width, int height){\n\t\t\tBufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D g2 = img.createGraphics();\n\t\t\tg2.setColor(Color.WHITE);\n\t\t\tg2.fillRect(0, 0, width, height);\n\t\t\tg2.dispose();\n\t\t\treturn img;\n\t\t}", "public boolean isBlack() {\r\n\t\treturn !isRed();\r\n\t}", "private boolean isBlack(Color color){\r\n return color == Color.black;\r\n }", "private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "private void toGray(Bitmap bmp) {\n int outH = bmp.getHeight();\n int outW = bmp.getWidth();\n\n int pixels[] = new int[outW*outH];\n bmp.getPixels(pixels, 0, outW, 0, 0, outW, outH);\n for (int i = 0; i < outW*outH; i++) {\n int gray = (int) (0.11 * Color.blue(pixels[i]) + 0.3 * Color.red(pixels[i]) + 0.59 * Color.green(pixels[i]));\n pixels[i] = Color.rgb(gray, gray, gray);\n }\n bmp.setPixels(pixels, 0, outW, 0, 0, outW, outH);\n }", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "void fill(int rgb);", "public native void setBorderColor(PixelPacket color) throws MagickException;", "public void resetBoard() {\n for (int y = 0; y < length; y++) {\n for (int x = 0; x < width; x++) {\n grid[x][y].setBackground(null);\n grid[x][y].setEnabled(true);\n }\n }\n }", "private void paintNull(Graphics g, int j, int i) {\n // Image img=imgVec[NULL_ST];\n // if(img==null){\n // img=createImage(ISIZE,ISIZE);\n // imgVec[NULL_ST]=img;\n // Graphics ig=img.getGraphics();\n g.setColor(Color.black);\n g.fillRect(j * CELL_SIZE, i * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n // }\n // g.drawImage(img,j * DIM, i * DIM,this);\n }", "public void wipe(){\n\t \tg2d.setColor(Color.yellow);\n g2d.fillRect(0,0, width, height);\n\t\t\n\n\t }", "protected void greyOutCell(int x, int y) {\n\t\tsquares[x][y].setBackground(Color.LIGHT_GRAY);\n\t}", "private void drawBlack() throws IOException, ReversiException {\n playSound(PLAY_SOUND);\n // get the list of stones need to be changed\n String list = fromServer.readUTF();\n // draw black the list of stones\n boardComponent.drawBlack(list);\n\n setScoreText();\n\n // followed by the TURN command\n responseToServer();\n }", "public void setBfImageByData(int [][][] data){\r\n\t\tBfImage = new BufferedImage(width,height,BufferedImage.TYPE_INT_ARGB);\r\n\t\tfor (int i = 0; i < width; i++) {\r\n\t\t\tfor (int j = 0; j < height; j++) {\r\n\t\t\t\tint [] rgb = data[j][i];\r\n\t\t\t\tif (rgb[0] == -1){\t//is transparent\r\n\t\t\t\t\tBfImage.setRGB(i, j, Transparency.TRANSLUCENT);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tBfImage.setRGB(i, j, Utils.getRGB(rgb[0], rgb[1], rgb[2]));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Color() {\n\t\tr = 0;\n\t\tg = 0;\n\t\tb = 0;\n\t}", "public void clear() {\n\t\tsetImageResource(R.drawable.barcode);\n\t\tthis.setScaleType(ScaleType.CENTER);\n\t}", "void setImage(BufferedImage valueImage, BufferedImage BackImage);", "@Test\n public void testSetColorModel() throws FitsException, IOException{\n IndexColorModel colorModel = ColorTable.getColorModel(2);\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n imageData.setColorModel(colorModel);\n Assert.assertEquals(-1, imageData.getColorTableId());\n\n }", "public void takeRGBPicture() {\n\t\ttry {\n\t\t\tpixels = this.takeStillAsRGB(width, height, false);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void overexposure(Bitmap bmp) {\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n int[] pixels = new int[w*h];\n bmp.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++) {\n float[] hsv = new float[3];\n Color.RGBToHSV(Color.red(pixels[i]), Color.green(pixels[i]), Color.blue(pixels[i]), hsv);\n hsv[2] *= 1.5;\n pixels[i] = Color.HSVToColor(hsv);\n }\n bmp.setPixels(pixels, 0, w, 0, 0, w, h);\n }", "public void decida()\n {\n if(color == Color.red)\n {\n color = Color.yellow;\n }\n \n else if(color == Color.yellow){\n color = Color.red;\n }\n }", "public Bitmap getBlackWhiteBitmap()\n\t{\n\t\tBitmap bwBitmap = Bitmap.createBitmap(signBitmap.getWidth(), signBitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\t\tCanvas bwCanvas = new Canvas(bwBitmap);\n\n\t\t//*****\n\t\t//* The original bitmap, signBitmap, has a transparent background. The\n\t\t//* following call draws a white background so the returned bitmap\n\t\t//* contains only black (signature) and white (background) colors.\n\t\t//*****\n\t\tbwCanvas.drawColor(Color.WHITE);\n\t\tbwCanvas.drawBitmap(signBitmap, 0, 0, paint);\n\n\t\treturn bwBitmap;\n\t}", "public static boolean isClearPixel(int i) {\n\t\t \n\t\t c.set(i);\n\t\t// Gdx.app.log(TAG, \"is clear alpha \" + c.a );\n\t\t if (c.a < .1f) return true;\n\t\t return false;//c.r < .1f && c.g < .1f && c.b < 0.1f ;\n\t }", "void setImage(Bitmap bitmap);", "private void clearCanvas() {\n updateImageSize(mScale);\n }", "public void resetBoard(){\r\n for(int i = 0;i<6;i++){ //empty board \r\n for (int j = 0; j < 7; j++) {\r\n boardRep[i][j] = 0;\r\n }\r\n }\r\n \r\n for (int i = 0; i < 7; i++) { // set column heights to 0\r\n currentFilled[i] = 0;\r\n }\r\n \r\n blackToPlay = true; //black goes first for now\r\n refreshDisplay(); \r\n \r\n }", "public void negative(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n for(int j=startY;j<endY;j++){\r\n \r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 255-pixels[0];\r\n ww[1] = 255-pixels[1];\r\n ww[2] = 255-pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "private void m6550c(Canvas canvas) {\n Bitmap maskBitmap = getMaskBitmap();\n if (maskBitmap != null) {\n canvas.clipRect(this.f5078o, this.f5079p, this.f5078o + maskBitmap.getWidth(), this.f5079p + maskBitmap.getHeight());\n super.dispatchDraw(canvas);\n canvas.drawBitmap(maskBitmap, (float) this.f5078o, (float) this.f5079p, this.f5068e);\n }\n }", "public void toBlue(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n \r\n for(int j=startY;j<endY;j++){\r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 0*pixels[0];\r\n ww[1] = 0*pixels[1];\r\n ww[2] = pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "void setPenColourOff() {\n currentPenColour = Color.BLACK;\n writeFile.writePenOff();\n }", "public static void testZeroBlue()\n {\n Picture beach = new Picture(\"beach.jpg\");\n beach.explore();\n beach.zeroBlue();\n beach.explore();\n }", "public Builder clearImage() {\n \n image_ = getDefaultInstance().getImage();\n onChanged();\n return this;\n }", "private void drawNone(){\n drawAbstract(R.color.white);\n }", "public ScoreBoard()\r\n {\r\n super();\r\n int boardWidth = 200;\r\n int boardHeight = 30;\r\n \r\n board = new GreenfootImage(boardWidth,boardHeight);\r\n board.setColor(Color.green); \r\n //&& Color.blue);\r\n board.fillRect(0, 0, boardWidth,boardHeight);\r\n this.setImage(board);\r\n \r\n //draw it\r\n update();\r\n }", "public void clearBits()\r\n {\r\n clear();\r\n }", "public void cleanBoard(){\n\n for(PositionInBoard position : positionsThatArePainted){\n int i = position.row();\n int j = position.column();\n if ((i+j)%2==0) {\n board[i][j].setBackground(Color.BLACK);\n }\n else {\n board[i][j].setBackground(Color.WHITE);\n }\n\n board[i][j].setText(null);\n board[i][j].setIcon(null);\n }\n positionsThatArePainted.clear();\n }", "public static void testGrayscale()\n {\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.toGrayscale();\n\t wall.explore();\n }", "private void setImage(Bitmap image) {\n }", "void invalidatePalette();", "public void setColor( boolean black ){\n\t\tif(black)\r\n\t\t\tthis.setBackground(Color.BLACK);\r\n\t\telse\r\n\t\t\tthis.setBackground(Color.WHITE);\r\n\t}", "protected void drawBlack(java.awt.Graphics2D g, float a) {\r\n Color oldColor = g.getColor();\r\n g.setColor(Color.BLACK);\r\n g.setComposite(AlphaComposite.SrcOver.derive(a));\r\n g.fillRect(0, 0, GamePanel.WIDTH, GamePanel.HEIGHT);\r\n g.setComposite(AlphaComposite.SrcOver.derive(1.0f));\r\n g.setColor(oldColor);\r\n }", "public void clear() {\n int var1 = 0;\n if(field_759 || var1 < this.spritePixels.length) {\n do {\n this.spritePixels[var1] = null;\n this.field_736[var1] = 0;\n this.field_737[var1] = 0;\n this.spriteColoursUsed[var1] = null;\n this.spriteColourList[var1] = null;\n ++var1;\n } while(var1 < this.spritePixels.length);\n\n }\n }", "public boolean isBlack () { return (this == PlayColour.BLACK);}", "public void useStarObjectColor ( ) {\r\n\t\tcolor = null;\r\n\t}", "public Color getBlack() {\n return fBlack;\n }", "public Colour() {\n\t\tset(0, 0, 0);\n\t}", "private void reset() {\n // Init-values\n for (int i = 0; i < cells.length; i++) {\n cells[i] = 0;\n }\n\n // Random colors\n for (int i = 0; i < colors.length; i++) {\n colors[i] = Color.color(Math.random(), Math.random(), Math.random());\n }\n\n // mid = 1.\n cells[cells.length / 2] = 1;\n\n // Clearing canvas\n gc.clearRect(0, 0, canvasWidth, canvasHeight);\n }", "public void setClearColor(int color)\n {\n this.clearColor = color;\n }", "@Override\n public void normalCell() {\n gCell.setFill(Color.BLACK);\n }", "public HTColorImage(HTColorImage htImage)\n\t{\n\t\timg = HTUtil.getCopy(htImage.getImage());\n\t}", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "void lSetImage(Image img);", "public void setColor(GrayColor color){\n this.color = color;\n }", "public void apply(OFImage image)\n {\n int height = image.getHeight();\n int width = image.getWidth();\n OFImage original = new OFImage(image);\n \n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n Color currentPixel = original.getPixel(x,y);\n int grn,blu,red;\n grn = 255 - currentPixel.getGreen();\n red = 255 - currentPixel.getRed();\n blu = 255 - currentPixel.getBlue();\n image.setPixel(x, y, new Color(red,blu,grn));\n }\n }\n }" ]
[ "0.7226496", "0.7121079", "0.6722626", "0.6579339", "0.6477595", "0.6442529", "0.64095545", "0.638918", "0.6254091", "0.6247125", "0.6247088", "0.6244321", "0.6240532", "0.6240532", "0.61876214", "0.6178705", "0.6166386", "0.61533403", "0.61026627", "0.60789216", "0.60737336", "0.60496026", "0.59384525", "0.5936054", "0.5930055", "0.5925871", "0.5916845", "0.5909152", "0.59066206", "0.59004736", "0.5897781", "0.58626556", "0.58421534", "0.58349675", "0.5775015", "0.57686186", "0.57448363", "0.5741414", "0.5698454", "0.56697065", "0.5667585", "0.5659229", "0.5654009", "0.56507474", "0.56361103", "0.5635734", "0.5620686", "0.56101215", "0.56055784", "0.5602838", "0.55993706", "0.5598392", "0.55790347", "0.55737215", "0.55681306", "0.55558926", "0.55522996", "0.5542971", "0.5542536", "0.5540809", "0.5539684", "0.5539109", "0.5534053", "0.55153304", "0.55094045", "0.5509248", "0.5507848", "0.55034494", "0.5501018", "0.5489973", "0.5487047", "0.5471136", "0.54674786", "0.54622465", "0.545672", "0.544505", "0.5442998", "0.5440102", "0.54399043", "0.5426926", "0.54247594", "0.5424348", "0.5414774", "0.54125756", "0.5410246", "0.54080343", "0.54049766", "0.53992057", "0.5394673", "0.5386015", "0.5385278", "0.53761023", "0.5370585", "0.53623074", "0.5356412", "0.5355831", "0.5347731", "0.5343837", "0.5339768", "0.53329337" ]
0.7398512
0
Draws a pixel with a given color to coordinates x,y
public void drawPixel(int x,int y, int rgbColor) { image.setRGB(x,y,rgbColor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawPixel(int x, int y, int color);", "private void paintPointInColor(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}", "public void blitPixel(int x, int y, int color)\n {\n if (x < 0 || x > width - 1 || y < 0 || y >= height - 1)\n return;\n if (((color >> 24) & 0xFF) == 255)\n {\n data[y * width + x] = color;\n } else if (((color >> 24) & 0xFF) > 0)\n {\n data[y * width + x] = Color.tint(data[y * width + x], color);\n }\n }", "public void setPixel(int x, int y, Color color)\n\t{\n\t\tsetPixel(x, y, color, 1);\n\t}", "void addPixel(int x, int y, byte colour) {\n pixelBuffer[x][y] = colour;\n dirtyPixels.add(new byte[]{((byte) x), ((byte) y)});\n }", "public abstract void putPixelRgb(int x, int y, RGBPixel p);", "public void setRaw(int x, int y, int color){\n pixels.putInt((x + y * width) * 4, color);\n }", "@Override\r\n public void setPixel(int size, int x, int y, Color c) {\r\n int color = c.getRGB();\r\n\r\n for (int i = 0; i < size; i++) {\r\n for (int j = 0; j < size; j++) {\r\n canvas.setRGB(x + i, y + j, color);\r\n }\r\n }\r\n\r\n repaint();\r\n }", "private void paintPoint(int x, int y, Color c) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}", "public void set(int x, int y, int color){\n if(in(x, y)){\n pixels.putInt((x + y * width) * 4, color);\n }\n }", "public void SetPixel(int x, int y, Color colour){\n\t\tif(x>=width||y>=height||x<0||y<0)return;\r\n\t\tpixels[x][y] = colour;\r\n\t}", "@Override\n public void setPixelRGB(int x, int y, int value) {\n debugView.setPixel(x, y, value);\n repaint();\n }", "void handlePixelStart(int x, int y, int color);", "public void drawImage(float x, float y, float width, float height,\n\t\t\tColor color);", "@Override\n public native Color getPixelColor(int x, int y);", "private void paintPoint(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(Color.BLACK.getRGB(), null));\t\t\n\t}", "public void drawRect(int x, int y, int width, int height, int color);", "public abstract void getPixelRgb(int x, int y, RGBPixel p);", "public void setPixel(int x, int y, Pixel p) {\n\t\tsource.setPixel(x + xOffset, y + yOffset, p);\n\t}", "public void drawAsColor(Color color) {\n\n\t}", "public void setMode1Pixel(int x, int y, int color) {\n assert ((x >= 0) && (x < 320)) && ((y >= 0) && (y < 200)) && ((color >= 0) && (color < 4));\n\n int pos = (80 * y) + (x >>> 2);\n screenBuffer[pos] = (byte) packPixelMode1(screenBuffer[pos] & 0xff, (x & 0x03), color);\n }", "void handlePixelEnd(int x, int y, int color);", "public void updatePixel(int[] location, double[] parameters);", "public void draw (Graphics g, int x, int y)\r\n {\r\n\tmakeRGBImage().draw (g, x, y);\r\n }", "public void drawLine(int x, int y, int x2, int y2, int color);", "void setGreen(int x, int y, int value);", "public abstract Color draw(Graphics2D g2d, String bin, int x, int y);", "protected void onUpdateImageMouseColor(int x, int y, String color) { \n mousePosition.setText(\"X:\" + x + \" Y:\" + y + \" \" + (color != null ? color : \"\"));\n }", "public abstract RGBPixel getPixelRgb(int x, int y);", "public Point(int x, int y, Color color) {\r\n this.x = x;\r\n this.y = y;\r\n this.color = color;\r\n }", "void setRed(int x, int y, int value);", "public void drawImage(float x, float y, float width, float height);", "Vec3 pixelColor(int x, int y) {\n\n double zposition = height / d;\n z = x / squarePart + y / squarePart;\n // This is a conditional statement that checks if the pixel is in the middle of the image. If it is, it\n // returns a color.\n if ((x > width / c - zposition) && (x < width / c + zposition) && (y > height / c - zposition) && (y < height / c + zposition)) {\n return new Vec3(1, 0, 0.9);\n } else if (z % c == b) {\n return new Vec3(0, 0, 0);\n } else {\n\n return color;\n }\n \n\n }", "private void drawSquare(int x, int y, Color color) {\r\n\t\t// sets the color to the passed in color.\r\n\t\tg.setColor(color);\r\n\t\t// draws a rectangle based on the given properties.\r\n\t\tg.fillRect(x * TetrisGame.SQUARE_LENGTH, y * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.SQUARE_LENGTH - 1,\r\n\t\t\t\t TetrisGame.SQUARE_LENGTH - 1);\r\n\t}", "void plot(Point2D coordinates, int color) {\n image.setRGB((int)coordinates.getX(), (int)coordinates.getY(), color);\n }", "public abstract void draw(Graphics g, Color color);", "void setBlue(int x, int y, int value);", "public void drawMark(int x, int y, Color color)\n {\n \tg.setColor(color);\n g.fillRect(x * xScale, y * yScale, xScale-1, yScale-1);\n }", "public void renderSpriteAsColor(int xp, int yp, Sprite sprite, int scale, int c) {\n\t\tfor (int y = 0; y < sprite.height; y++){\r\n\t\t\tint ya = y + yp;\r\n\t\t\tfor (int x = 0; x < sprite.width; x++) {\r\n\t\t\t\tint xa = x + xp;\r\n\t\t\t\tint col = 0xffff00ff;\r\n\t\t\t\t\r\n\t\t\t\tif (sprite.pixels[x + y * sprite.width] != col) pixels[xa + ya * width] = c;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void drawMark(int x, int y, Color color)\n {\n g.setColor(color);\n g.fillRect(x * xScale, y * yScale, xScale-1, yScale-1);\n }", "public void drawPixmap(Pixmap pixmap, int x, int y);", "public void drawLine(byte[] screen, int width, int x1, int x2, int y) \n\t{\n int pos1 = y*width + x1; // starting position, in terms of bits/pixels\n int pos2 = y*width + x2; // ending position, in terms of bits/pixels\n \n int start = pos1;\n \n while (start <= pos2)\n {\n int row = start / 8; // in terms of bytes\n int col = start % 8; // in terms of bits/pixels\n \n // the \"coloring\" process of each byte is actually started from right to left in terms of bits/pixels \n screen[row] = (byte) (screen[row] | (1<<col));\n start++; // increment in terms of bits/pixels\n } \n\t}", "public void drawLine(int x, int y, int x2, int y2, int color){\n int dy = y - y2;\n int dx = x - x2;\n int fraction, stepx, stepy;\n\n if(dy < 0){\n dy = -dy;\n stepy = -1;\n }else{\n stepy = 1;\n }\n if(dx < 0){\n dx = -dx;\n stepx = -1;\n }else{\n stepx = 1;\n }\n dy <<= 1;\n dx <<= 1;\n\n set(x, y, color);\n\n if(dx > dy){\n fraction = dy - (dx >> 1);\n while(x != x2){\n if(fraction >= 0){\n y += stepy;\n fraction -= dx;\n }\n x += stepx;\n fraction += dy;\n set(x, y, color);\n }\n }else{\n fraction = dx - (dy >> 1);\n while(y != y2){\n if(fraction >= 0){\n x += stepx;\n fraction -= dy;\n }\n y += stepy;\n fraction += dx;\n set(x, y, color);\n }\n }\n }", "Color3b colorAt(int xIndex, int yIndex);", "public void drawRenderable(Renderable renderable, int RGB, int x, int y) {\n\t\tfor (short y_off = 0; y_off < renderable.getHeight(); y_off++) {\n\t\t\tfor (short x_off = 0; x_off < renderable.getWidth(); x_off++) {\n\t\t\t\tint color = renderable.getPixels()[x_off\n\t\t\t\t\t\t+ (y_off * renderable.getWidth())];\n\t\t\t\tif (isTransparentColor(color))\n\t\t\t\t\tcontinue;\n\t\t\t\tdrawPixel(RGB, x + x_off, y + y_off);\n\t\t\t}\n\t\t}\n\t}", "private void drawPiece(int row, int col, Graphics g, Color color){\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\r\n g.setColor(color);\r\n g.fillOval((col*tileSize)+2, (row*tileSize)+2, tileSize-4, tileSize-4);\r\n }", "public Color getPixel(int x, int y) {\n int clr = image.getRGB(x, y);\n Color tc = new Color(clr);\n //System.err.println(\"getPixel hook: \" + clr + \" --- \" + tc);\n return tc;\n }", "@Override\n public void drawPixelMap(ImageData pixelMap, double x, double y) {\n graphicsEnvironmentImpl.putPixelMap(canvas, pixelMap, x, y);\n }", "@Override\n public void drawPoint(String id, Location loc, double size, Color color, boolean screenCoords) {\n drawPoint(id, loc, size, color, true, screenCoords);\n }", "void fill(int rgb);", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "void setStone(int x, int y, int color);", "public void fill(int color){\n int len = width * height * 4;\n for(int i = 0; i < len; i += 4){\n pixels.putInt(i, color);\n }\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public static void putGraphicsPixel(int[] inputPixels, int inputWidth, int pixelRowStart, int pixelRowEnd,\n int pixelColStart, int pixelColEnd, int[] outputPixels) {\n int i = 0;\n for (int y = pixelRowStart; y < pixelRowEnd; y++) {\n for (int x = pixelColStart; x < pixelColEnd; x++) {\n int val = getXYCoord(inputPixels, x, y, inputWidth);\n if (val != -1) {\n outputPixels[i] = val;\n }\n i++;\n }\n }\n }", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}", "private void drawTarget(Mat image, long x, long y){\r\n\t\t\r\n\t\tint size = 40;\r\n\t\tScalar color;\r\n\t\tcolor = new Scalar(0,0,255);\r\n\t\t\r\n\t\tImgproc.line(image, new Point(x-size,y), new Point(x+size,y), color,2);\r\n\t\tImgproc.line(image, new Point(x,y-size), new Point(x,y+size), color,2);\r\n\t\tfor (int k =0;k<4;k++) {\r\n\t\t\tImgproc.circle(image, new Point(x,y), (k+1)*size/4, color);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void drawLine(RasterImage image, int x1, int y1, int x2, int y2, int color)\n\t{\n\t\tassert\n\t\t\timage != null\n\t\t\t&& image.getWidth() > x1 && x1 >= 0\n\t\t\t&& image.getWidth() > x2 && x2 >= 0\n\t\t\t&& image.getHeight() > y1 && y1 >= 0\n\t\t\t&& image.getHeight() > y2 && y2 >= 0\n\t\t\t&& (color & 0xff000000) == 0;\n\t\t\n\t\t\n\t\tint\n\t\t\twidth = image.getWidth(),\n\t\t\theight = image.getHeight(),\n\t\t\tsize = width * height;\n\t\t\n\t\tint dx, dy, s, sx, sy, kl, swap, incr1, incr2;\n\t\t\n\t\t\n\t\t\n\t\t//Вычисление приращений и шагов\n\t\t\n\t\tsx = 0;\n\t\t\n\t\tif ((dx = x2 - x1) < 0)\n\t\t{\n\t\t\tdx = -dx;\n\t\t\t--sx;\n\t\t}\n\t\telse if (dx > 0)\n\t\t{\n\t\t\t++sx;\n\t\t}\n\t\t\n\t\tsy = 0;\n\t\t\n\t\tif ((dy = y2 - y1) < 0)\n\t\t{\n\t\t\tdy = -dy;\n\t\t\t--sy;\n\t\t}\n\t\telse if (dy > 0)\n\t\t{\n\t\t\t++sy;\n\t\t}\n\t\t\n\t\t// Учёт наклона\n\t\t\n\t\tswap = 0;\n\t\t\n\t\tif ((kl = dx) < (s = dy))\n\t\t{\n\t\t\tdx = s;\n\t\t\tdy = kl;\n\t\t\tkl = s;\n\t\t\t++swap;\n\t\t}\n\t\t\n\t\ts = (incr1 = 2 * dy) - dx;\t\t// incr1 - константа перевычисления\n\t\t\n\t\t//разности если текущее s < 0 и\n\t\t//s - начальное значение разности\n\t\tincr2 = 2 * dx;\t\t\t// Константа для перевычисления\n\t\t// разности если текущее s >= 0\n\t\t\n\t\timage.setRgb(x1, y1, color);\t\t//Первый пиксел вектора\n\t\t\n\t\twhile (--kl >= 0)\n\t\t{\n\t\t\tif (s >= 0)\n\t\t\t{\n\t\t\t\tif (swap != 0)\n\t\t\t\t{\n\t\t\t\t\tx1 += sx;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ty1 += sy;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ts -= incr2;\n\t\t\t}\n\t\t\t\n\t\t\tif (swap != 0)\n\t\t\t{\n\t\t\t\ty1 += sy;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx1 += sx;\n\t\t\t}\n\t\t\t\n\t\t\ts += incr1;\n\t\t\t\n\t\t\timage.setRgb(x1, y1, color);\t\t//Текущая точка вектора\n\t\t}\n\t}", "@Override\n\tpublic void render(Graphics g, int x, int y) {\n\t\tg.setColor(Color.cyan);\n\t\tg.fillRect(x, y, this.getWidth(), this.getHeight());\n\t}", "int getRed(int x, int y);", "@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}", "public abstract void render(PixelImage canvas);", "private void drawColor(Canvas canvas, int color, RectF rect){\n if(color != 0){\n mPaint.setColor(color);\n canvas.drawRect(rect, mPaint);\n }\n }", "private void drawColor(Canvas canvas, int color, Rect rect){\n if(color != 0){\n mPaint.setColor(color);\n canvas.drawRect(rect, mPaint);\n }\n }", "public void setColor(float r, float g, float b, float a);", "public DrawComponent(int color) {\n this.color = color;\n }", "public static void assertPixelColor(final BufferedImage img, final int x, final int y, final int expectedRed, final int expectedGreen, final int expectedBlue){\n int rgb = img.getRGB(x, y);\n int r = (rgb >> 16) & 0xFF;\n int g = (rgb >> 8) & 0xFF;\n int b = (rgb & 0xFF);\n\t\n assertEquals(expectedRed, r);\n assertEquals(expectedGreen, g);\n assertEquals(expectedBlue, b);\n }", "public void renderBitmap(Bitmap bitmap, int x, int y, int tintColor)\n {\n renderBitmap(bitmap, x, y, 1.0f, tintColor);\n }", "public static void paintPixelOnWhiteboard(int drawingTool, int x, int y, int col){\n\t\t\n\t\tif(drawingTool == 1){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t} else if(drawingTool == 2){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 2, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y + 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 2, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y - 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 2, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 2, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y + 1, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y + 1, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y - 1, col);\n\t\t\t\n\t\t} else if(drawingTool == 3){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y - 1, col);\n\t\t\twhiteboardBi.setRGB(x + 2, y - 2, col);\n\t\t\twhiteboardBi.setRGB(x + 3, y - 3, col);\n\t\t\twhiteboardBi.setRGB(x + 4, y - 4, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y - 1, col);\n\t\t\twhiteboardBi.setRGB(x + 2, y - 2, col);\n\t\t\twhiteboardBi.setRGB(x + 3, y - 3, col);\n\t\t\twhiteboardBi.setRGB(x + 4, y - 4, col);\n\t\t} else if(drawingTool == 4){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 2, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 3, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 4, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 1, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 2, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 3, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 4, col);\n\t\t} else if(drawingTool == 5){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 2, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 3, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 4, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 2, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 3, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x - 4, y + 0, col);\n\t\t} else if(drawingTool == 6){\n\t\t\twhiteboardBi.setRGB(x, y, col);\n\t\t\twhiteboardBi.setRGB(x - 4, y + 4, col);\n\t\t\twhiteboardBi.setRGB(x - 3, y + 3, col);\n\t\t\twhiteboardBi.setRGB(x - 3, y - 2, col);\n\t\t\twhiteboardBi.setRGB(x - 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y + 3, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 3, col);\n\t\t\twhiteboardBi.setRGB(x + 0, y - 4, col);\n\t\t\twhiteboardBi.setRGB(x + 1, y + 0, col);\n\t\t\twhiteboardBi.setRGB(x + 3, y - 3, col);\n\t\t\twhiteboardBi.setRGB(x + 3, y + 3, col);\n\t\t\twhiteboardBi.setRGB(x + 4, y + 2, col);\n\t\t}\n\t\twhiteboardPanel.repaint();\n\t}", "private void\tsetColor(GL2 gl, int r, int g, int b, int a)\n\t{\n\t\tgl.glColor4f(r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f);\n\t}", "private void drawPoint(float X, float Y, Paint p, int velocity) {\r\n if (_brushType == BrushType.Square) {\r\n /* Draw square thing */\r\n _offScreenCanvas.drawRect(X-5,Y+5,X+5,Y-5,_paint);\r\n } else if (_brushType == BrushType.Point) {\r\n /* Draw a pixel, maybe draw a sized rectangle */\r\n _offScreenCanvas.drawPoint(X,Y,_paint);\r\n } else if (_brushType == BrushType.Circle) {\r\n _offScreenCanvas.drawCircle(X, Y, _defaultRadius + velocity, _paint);\r\n } else if (_brushType == BrushType.SprayPaint) {\r\n /* Draw a random point in the radius */\r\n float x = genX(X);\r\n _offScreenCanvas.drawPoint(X + x,Y + genY(x),_paint);\r\n } else {\r\n /* Draw generic pixel? */\r\n _offScreenCanvas.drawPoint(X,Y,_paint);\r\n }\r\n }", "int getGreen(int x, int y);", "public static void TurnOnPixel(Color c, int idPixel, String idLumio){\n IMqttClient publisher = Connections.connectPublisher();\n JSONObject json = new JSONObject();\n json.put(\"command\", \"set_pixel\");\n json.put(\"led\", idPixel);\n json.put(\"rgb\",c.getRGB());\n MqttMessage message = new MqttMessage();\n message.setPayload(json.toString().getBytes());\n try {\n publisher.publish(\"laumio/\"+idLumio+\"/json\",message);\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }", "public void drawSquare(int x, int y, Color cellColor) {\n\t\tthis.theScreen.setColor(cellColor);\n\t\tthis.theScreen.fillRect(x, y, Preferences.CELL_SIZE,\n\t\t\t\tPreferences.CELL_SIZE);\n\t}", "public void renderRectangle(int x, int y, float width, float height, int color)\n {\n int xStart = x;\n int yStart = y;\n float xEnd = xStart + width;\n float yEnd = yStart + height;\n if (xStart >= this.width || yStart >= this.height || xEnd < 0 || yEnd < 0) return;\n if (xStart < 0) xStart = 0;\n if (yStart < 0) yStart = 0;\n if (xEnd > this.width) xEnd = this.width;\n if (yEnd > this.height) yEnd = this.height;\n\n for (int xPos = xStart; xPos < xEnd; xPos++)\n {\n for (int yPos = yStart; yPos < yEnd; yPos++)\n {\n int index = yPos * this.width + xPos;\n if (index < 0 || index > data.length - 1) continue;\n if (xPos == xStart || xPos == xEnd - 1 || yPos == yStart || yPos == yEnd - 1)\n {\n if (((color >> 24) & 0xFF) == 255)\n {\n data[index] = color;\n } else if (((color >> 24) & 0xFF) > 0)\n {\n data[index] = Color.tint(data[index], color);\n }\n }\n }\n }\n }", "public void renderFilledRectangle(int x, int y, int width, int height, int color)\n {\n int xStart = x;\n int yStart = y;\n int xEnd = xStart + width;\n int yEnd = yStart + height;\n\n if (xStart < 0) xStart = 0;\n if (yStart < 0) yStart = 0;\n if (xEnd > this.width) xEnd = this.width;\n if (yEnd > this.height) yEnd = this.height;\n if (xStart >= this.width || yStart >= this.height || xEnd < 0 || yEnd < 0) return;\n\n for (int xPos = xStart; xPos < xEnd; xPos++)\n {\n for (int yPos = yStart; yPos < yEnd; yPos++)\n {\n int index = yPos * this.width + xPos;\n if (index < 0 || index > data.length - 1) continue;\n if (((color >> 24) & 0xFF) == 255)\n {\n data[index] = color;\n } else if (((color >> 24) & 0xFF) > 0)\n {\n data[index] = Color.tint(data[index], color);\n }\n }\n }\n }", "public Pixel(int red, int green, int blue)\r\n {\r\n this.red = Fixed(red);\r\n this.green = Fixed(green);\r\n this.blue = Fixed(blue);\r\n }", "public void drawRect(int offX, int offY, int width, int height, int colour) {\n\tif (offX + width - camX < 0)\r\n\t return;\r\n\tif (offY + height - camY < 0)\r\n\t return;\r\n\tif (offX - camX > pW)\r\n\t return;\r\n\tif (offY - camY > pH)\r\n\t return;\r\n\r\n\tfor (int y = 0; y < height; y++) {\r\n\t setPixel(offX, y + offY, colour);\r\n\t setPixel(offX + width - 1, y + offY, colour);\r\n\t}\r\n\r\n\tfor (int x = 0; x < width; x++) {\r\n\t setPixel(x + offX, offY, colour);\r\n\t setPixel(x + offX, offY + height - 1, colour);\r\n\t}\r\n }", "void setColor(int r, int g, int b);", "public Shape (int x, int y, Color color)\r\n {\r\n\tthis.x = x;\r\n\tthis.y = y;\r\n\tthis.color = color;\r\n }", "public void renderFilledRectangle(float x, float y, float width, float height, int color)\n {\n float xStart = x;\n float yStart = y;\n float xEnd = xStart + width;\n float yEnd = yStart + height;\n\n if (xStart < 0) xStart = 0;\n if (yStart < 0) yStart = 0;\n if (xEnd > this.width) xEnd = this.width;\n if (yEnd > this.height) yEnd = this.height;\n if (xStart >= this.width || yStart >= this.height || xEnd < 0 || yEnd < 0) return;\n\n for (int xPos = (int) xStart; xPos < xEnd; xPos++)\n {\n for (int yPos = (int) yStart; yPos < yEnd; yPos++)\n {\n int index = yPos * this.width + xPos;\n if (index < 0 || index > data.length - 1) continue;\n if (((color >> 24) & 0xFF) == 255)\n {\n data[index] = color;\n } else if (((color >> 24) & 0xFF) > 0)\n {\n data[index] = Color.tint(data[index], color);\n }\n }\n }\n }", "static void paintFill(Pixel[][] displayScreen, int x, int y, String originalColor, String newColor)\n {\n if (x<0 || y<0 || x >= displayScreen[0].length || y >= displayScreen.length) {return;}\n\n // If current cell is of a different color, we've reached a boundary.\n // TODO: why is this not [x][y] ?\n if (displayScreen[x][y].getColor() != originalColor) {return;}\n\n // OK, update color of current cell\n if (displayScreen[x][y].getColor() == originalColor)\n {\n displayScreen[x][y].setColor(newColor);\n\n // Pixel on left\n paintFill(displayScreen, x-1, y, originalColor, newColor);\n\n // On right\n paintFill(displayScreen, x+1, y, originalColor, newColor);\n\n // On top and bottom\n paintFill(displayScreen, x, y+1, originalColor, newColor);\n paintFill(displayScreen, x, y-1, originalColor, newColor);\n }\n\n\n }", "void render(Graphics2D brush);", "void updateTouchPoint(Canvas c) {\n \t c.drawColor(0xff000000); \n }", "public Stump(int rX, int rY, int x, int y, Color col)\n {\n this.rX = rX; this.rY = rY; this.x = x; this.y = y; this.col = col;\n }", "public void setPixel(int x, int y, short red, short green, short blue) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t //if setPixel at the first location.\n\t if((x==0) && (y==0)) {\n\t\t if(red!=runs.getFirst().item[1]) {\n\t\t\t if(runs.getFirst().item[0]!=1) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]-1;\n\t\t\t\t runs.addFirst(item);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t if(red!=runs.getFirst().next.item[1]) {\n\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.addFirst(item);\n\t\t\t\t System.out.println(runs.toString());\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]+1;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //if setPixel at the last location.\n\t else if((x==(width-1)) && (y==(height-1))) {\n\t\t if(runs.getLast().item[0]==1) {\n\t\t\t if(red!=runs.getLast().prev.item[1]) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue}; \n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.addLast(item);\n\t\t }\n\t\t \n\t\t\t else {\n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.getLast().item[0]=runs.getLast().item[0]+1;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addLast(item);\n\t\t\t runs.getLast().prev.item[0]=runs.getLast().prev.item[0]-1;\n\t\t }\n\t }\n\t \n\t //if Pixel is at a random location.\n//\t if(((x>0) && (y>0)) && ((x!=(width-1)) && (y!=(height-1))) ) {\n//\t if((x>0)&&(x!=(width-1))){\n\t else {\n\t int loc=y*(width)+x+1; \n\t int count=0;\n\t for(int i=0;i<runs.length();i++) {\n\t\t \n\t\tloc=loc-runs.nth(i+1).item[0] ;\n\t\tcount++;\n\t\tif (loc<=0) {\n\t\t\tbreak;\n\t\t}\n\t }\n\t if((loc==0) && (runs.nth(count).item[0]==1)){\n\t\t if((red!=runs.nth(count).next.item[1])&&(red!=runs.nth(count).prev.item[1])) { \n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t\t if((red==(runs.nth(count).next).item[1])&& (red!=runs.nth(count).prev.item[1])){\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red!=runs.nth(count).next.item[1])) {\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red==runs.nth(count).next.item[1])) {\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1+runs.nth(count).next.item[0];\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t }\n\t else if((loc==0) && (runs.nth(count).item[0]!=1)) {\n\t\t if(red!=runs.nth(count).next.item[1]) {\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]-1;\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\t \n\t\t }\n\t\t else {\n\t\t\t runs.nth(count+1).item[0]=runs.nth(count+1).item[0]+1;\n\t\t }\t\t \n\t } \n\t else if(loc!=0) {\n\t\t \n\t\t int[] item= new int[] {1,red,green,blue};\n\n//\t\t DListNode<int[]> dup=runs.nth(count);\n//\t\t System.out.println(\"This is dup\"+dup.item[0]+\" \"+dup.item[1]+\" \"+dup.item[2]+\" \"+dup.item[0]);\t\t \n\t\t runs.addAfter(runs.nth(count), item);\n\t\t int[] dup=new int[] {runs.nth(count).item[0],runs.nth(count).item[1],runs.nth(count).item[2],runs.nth(count).item[3]};\n\t\t runs.addAfter(runs.nth(count).next, dup);\n\t\t System.out.println(runs.nth(count).item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+loc-1;\n\t\t System.out.println(runs.nth(count).next.next.item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).next.next.item[0]=runs.nth(count).next.next.item[0]+loc-1;\t\n\t\t }\n\t\t \n\t \n\t }\n check();\n}", "public void highlightTile(float xTile, float yTile, int color)\r\n/* 236: */ {\r\n/* 237:262 */ if (tileInBounds(xTile, yTile)) {\r\n/* 238:264 */ this.highlight[((int)xTile)][((int)yTile)] = color;\r\n/* 239: */ }\r\n/* 240: */ }", "@Override\n\tpublic Picture paint(int x, int y, Pixel p) {\n\t\tif (p == this.value) {\n\t\t\t// no change\n\t\t\treturn this;\n\t\t}else {\n\t\t\t// if changed, it is not more a monochrome picture, so create a new object\n\t\t\tMutablePixelArrayPicture NewPicture = new MutablePixelArrayPicture(this.width, this.height, this.value);\t\n\t\t\t// paint on the new picture\n\t\t\tNewPicture.paint(x, y, p);\n\t\t\treturn NewPicture;\n\t\t}\n\t}", "public abstract void drawFill();", "public static int[] getPixelColor(final BufferedImage img, final int x, final int y){\n int rgb = img.getRGB(x, y);\n int r = (rgb >> 16) & 0xFF;\n int g = (rgb >> 8) & 0xFF;\n int b = (rgb & 0xFF);\n\t\n return new int[]{r,g,b};\n }", "private void drawTile(Color base, Color light, Color dark, int x, int y, Graphics g) {\n\t\tg.setColor(base);\n\t\tg.fillRect(x, y, TILE_SIZE, TILE_SIZE);\n\t}", "private void plotColor(Color color) {\n\t\t/* Convert the color to an HSB triplet of hue (color), saturation\n\t\t * (intensity), and brightness.\n\t\t */\n\t\tfloat[] components = Color.RGBtoHSB(color.getRed(),\n\t\t\t\t color.getGreen(),\n\t\t\t\t color.getBlue(),\n\t\t\t\t null);\n\t\t\n\t\t/* The radius is given by the intensity of the color, which is in slot 1. */\n\t\tdouble radius = getRadius() * components[1];\n\t\t\n\t\t/* The angle is given by the hue of the color, which is in slot 0. */\n\t\tdouble theta = components[0] * Math.PI * 2.0;\n\t\t\n\t\t/* Determine the x and y coordinates. */\n\t\tdouble x = getWidth() / 2.0 + radius * Math.cos(theta);\n\t\tdouble y = getHeight() / 2.0 - radius * Math.sin(theta);\n\t\t\n\t\t/* Plot a pixel there. */\n\t\tGRect pt = new GRect(x, y, 1, 1);\n\t\tpt.setFilled(true);\n\t\tpt.setColor(color);\n\t\tadd(pt);\n\t}", "@Override\r\n\tpublic Pixel withPixel(int x, int y, Pixel[][] matrix) {\n\t\tint m = matrix.length;\r\n\t\tint n = matrix[0].length;\r\n\t\tPixel pix = new Pixel(0, 0, 0);\r\n\t\tfloat[][] kernel = { { 1 / 16f, 1 / 8f, 1 / 16f },\r\n\t\t\t\t{ 1 / 8f, 1 / 4f, 1 / 8f }, { 1 / 16f, 1 / 8f, 1 / 16f } };\r\n\t\tint sumR = 0;\r\n\t\tint sumG = 0;\r\n\t\tint sumB = 0;\r\n\t\tint kernCenterX = (int) Math.floor(kernel.length / 2);\r\n\t\tint kernCenterY = (int) Math.floor(kernel[0].length / 2);\r\n\t\tint coordX = x + (m - kernCenterX);\r\n\t\tint coordY = y + (n - kernCenterX);\r\n\t\tfor (int i = 0; i < kernel.length; i++) {\r\n\t\t\tint mm = kernel.length - 1 - i;\r\n\t\t\tfor (int j = 0; j < kernel[0].length; j++) {\r\n\t\t\t\tint nn = kernel[0].length - 1 - n;\r\n\t\t\t\tsumR += matrix[coordX][coordY].getR() * kernel[mm][nn];\r\n\t\t\t\tsumG += matrix[coordX][coordY].getG() * kernel[mm][nn];\r\n\t\t\t\tsumB += matrix[coordX][coordY].getB() * kernel[mm][nn];\r\n\t\t\t}\r\n\t\t}\r\n\t\tpix = new Pixel(sumR, sumG, sumB);\r\n\t\treturn pix;\r\n\t}", "private static BufferedImage highlightBlock(BufferedImage img, int x, int y, int height, int width, int color) {\n\n for (int i = (int) (x); i <= x + width; i++) {\n for (int j = (int) (y); j <= y + height; j++) {\n try {\n if (i == x + width || j == y + height || j == y || i == x) {\n img.setRGB(i, j, 0x000000);\n } else {\n img.setRGB(i, j, (int) (color ^ img.getRGB(i, j)));\n }\n\n } //if there was an out of bounds its because of the size doubling, ignore it\n catch (ArrayIndexOutOfBoundsException e) {\n }\n }\n }\n\n return img;\n }", "public void draw(Graphics2D g_)\n {\n // put your code here\n g_.setColor(col);\n g_.fillRect(rX, rY, x, y);\n }", "public void render() { image.drawFromTopLeft(getX(), getY()); }", "public void draw(Graphics window, Color col)\r\n {\r\n window.setColor(col);\r\n window.fillRect(xPos, yPos, width, height);\r\n \r\n }" ]
[ "0.9196566", "0.7598309", "0.73854816", "0.73791236", "0.70627254", "0.7041918", "0.70412606", "0.6995724", "0.69876844", "0.69661564", "0.69591945", "0.6896079", "0.6861563", "0.67812693", "0.67040145", "0.6646501", "0.66168267", "0.65653646", "0.65581244", "0.64120567", "0.64052385", "0.63241035", "0.6316335", "0.6308034", "0.62975603", "0.6283539", "0.6251633", "0.62507266", "0.62483513", "0.621184", "0.61717814", "0.6165047", "0.6146198", "0.6133424", "0.6105058", "0.6098881", "0.6037351", "0.60335374", "0.6008946", "0.60077834", "0.60068643", "0.6003131", "0.5998759", "0.5981041", "0.59473014", "0.5906069", "0.5894506", "0.58636284", "0.58618915", "0.5860658", "0.5859711", "0.5856006", "0.58456564", "0.5837463", "0.5837463", "0.5837463", "0.5837463", "0.58259463", "0.5770866", "0.5767371", "0.5760917", "0.5733053", "0.57221556", "0.57204473", "0.5720041", "0.57199275", "0.5707834", "0.57025295", "0.5701432", "0.5700413", "0.56926185", "0.569237", "0.5679665", "0.56740427", "0.566547", "0.5661892", "0.56584555", "0.56532997", "0.56531715", "0.5642874", "0.56409395", "0.5635807", "0.56279683", "0.56248647", "0.56238514", "0.56179357", "0.561152", "0.5608588", "0.55996835", "0.5596096", "0.55874145", "0.5568916", "0.5564889", "0.5563909", "0.5558827", "0.5542077", "0.5529296", "0.5522992", "0.55222714", "0.55164427" ]
0.79350847
1
returns empty path if there is no path froms start to finish
Path run(Maze maze, Cell start, Cell finish) { Path path = new Path(); if (start.equals(finish)) { path.add(start); return path; } Maze changed = new Maze(maze); CellQueue queue = new CellQueueLinkedListImpl(); queue.enqueue(start); changed.setCellValue(start, 0); Cell curCell; do { curCell = queue.dequeue(); for (int i = -1; i <= 1; i++) { for (int j = -1; j <= 1; j++) { for (int k = -1; k <= 1; k++) { Cell curNeighbour = new Cell(curCell.x + i, curCell.y + j, curCell.z + k); //check that curNeighbour exists and empty if (changed.getCellValue(curNeighbour) == -1) { changed.setCellValue(curNeighbour, changed.getCellValue(curCell) + 1); queue.enqueue(curNeighbour); } } } } } while (!queue.isEmpty() && !curCell.equals(finish)); if (!curCell.equals(finish)) { return path; } while (!curCell.equals(start)) { path.addBegin(curCell); int curPathIndex = changed.getCellValue(curCell); boolean foundPrev = false; for (int i = -1; i <= 1 && !foundPrev; i++) { for (int j = -1; j <= 1 && !foundPrev; j++) { for (int k = -1; k <= 1 && !foundPrev; k++) { Cell curNeighbour = new Cell(curCell.x + i, curCell.y + j, curCell.z + k); if (changed.getCellValue(curNeighbour) == changed.getCellValue(curCell) - 1) { curCell = curNeighbour; foundPrev = true; } } } } } path.addBegin(start); return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}", "public boolean pathCompleted() {\n\t\treturn path == null || path.isEmpty();\n\t}", "public List<Node> findPath(Node start);", "private Path createPath(AStarNode start, AStarNode end) {\n Path path = new Path();\n AStarNode ptr = end;\n while (!ptr.equals(start)) {\n path.addFirst(ptr);\n ptr = ptr.getPrevious();\n }\n path.addFirst(start);\n\n return path;\n }", "private char[] getPath() {\n\t\treturn null;\n\t}", "public String getShortestPath(T begin, T end);", "private List<Edge<String>> getPath(Vertex<String> end,\n Vertex<String> start) {\n if (graph.label(end) != null) {\n List<Edge<String>> path = new ArrayList<>();\n\n Vertex<String> cur = end;\n Edge<String> road;\n while (cur != start) {\n road = (Edge<String>) graph.label(cur); // unchecked cast ok\n path.add(road);\n cur = graph.from(road);\n }\n return path;\n }\n return null;\n }", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "public void computeShortestPath() throws IllegalStateException;", "@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}", "public String getShortestPath(int goal) throws Throwable {\n if (goal < 0) {\n return \"There is no path\";\n }\n Queue<Integer> stack = new Queue<>(new Integer[10]); \n int previous = path[goal];\n if (previous == -1) {\n return \"There is no path\";\n }\n while (previous != 0) {\n stack.push(previous);\n previous = path[previous];\n }\n String ret = \"0 > \";\n while (!stack.isEmpty()) {\n ret = ret + (stack.poll() + \" > \");\n }\n return \"\" + ret + goal;\n }", "private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "PathSegments getPath();", "Path getPath();", "public void finalizePath(){\n\t\tif(getCompletePath()||temp.isEmpty())\n\t\t\treturn;//path has already been finalized or there is no path defined\n\t\telse{\n\t\t\tint LastPos=temp.peekLast().getPos();\n\t\t\tint d = currentPath.getDirection(LastPos);\n\t\t\tPathType type = Map.createPathTileOfType(d,caseEdge);\n\t\t\tPath p = PathFactory.makePath(type,currentPos);\n\t\t\t\n\t\t\tif(p.getEntry()!= LastPos)\n\t\t\t\tp.rotate();\n\t\t\tp.setEnd();\n\t\t\tsetExitPoint(p);\n\t\t\tp.storePathTile();\n\t\t\t\n\t\t\tsetCompletePath(true);\n\t\t\tsetRemainingToScenery();\n\t\t}\n\t\t\n\t\t\n\t}", "private String solutionPath(State goal)\n\t{\n\t\t// TODO \n\t\t\n\t\treturn null; \n\t}", "@Override\r\n\tpublic Path findSeaPath(Point start, Point end) {\n\t\treturn null;\r\n\t}", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public void testUptoSegment() {\n \tIPath anyPath = new Path(\"/first/second/third\");\r\n \r\n \tassertEquals(\"1.0\", Path.EMPTY, anyPath.uptoSegment(0));\r\n \tassertEquals(\"1.1\", new Path(\"/first\"), anyPath.uptoSegment(1));\r\n \tassertEquals(\"1.2\", new Path(\"/first/second\"), anyPath.uptoSegment(2));\r\n \tassertEquals(\"1.3\", new Path(\"/first/second/third\"), anyPath.uptoSegment(3));\r\n \tassertEquals(\"1.4\", new Path(\"/first/second/third\"), anyPath.uptoSegment(4));\r\n \r\n \t//Case 2, absolute path with trailing separator\r\n \tanyPath = new Path(\"/first/second/third/\");\r\n \r\n \tassertEquals(\"2.0\", Path.EMPTY, anyPath.uptoSegment(0));\r\n \tassertEquals(\"2.1\", new Path(\"/first/\"), anyPath.uptoSegment(1));\r\n \tassertEquals(\"2.2\", new Path(\"/first/second/\"), anyPath.uptoSegment(2));\r\n \tassertEquals(\"2.3\", new Path(\"/first/second/third/\"), anyPath.uptoSegment(3));\r\n \tassertEquals(\"2.4\", new Path(\"/first/second/third/\"), anyPath.uptoSegment(4));\r\n }", "public Path findLandPath(Point start, Point end) {\n\t\treturn null;\r\n\t}", "public String getPath() {\n if (foundNemo) {\n return path;\n } else {\n path = \"Uh Oh!! Could not find Nemo!!\";\n return path;\n }\n }", "public void findCheapestPath(int begin, int end) throws Exception\n\t{\n\t\tresult.clear();\n\t\tresult.add(begin);\n\t\tfindPath(begin, end);\n\t\tresult.add(end);\n\t}", "@Override\r\n public String getPath(boolean arg0) {\n return null;\r\n }", "public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }", "private void findPath1(List<Coordinate> path) {\n\n // records the start coordinate in a specific sequence.\n ArrayList<Coordinate> starts = new ArrayList<>();\n // records the end coordinate in a specific sequence.\n ArrayList<Coordinate> ends = new ArrayList<>();\n // records the total cost of the path in a specific sequence.\n ArrayList<Integer> cost = new ArrayList<>();\n\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(o1);\n graph.printPath(d1);\n starts.add(o1);\n ends.add(d1);\n cost.add(graph.getPathCost(d1));\n }\n }\n int index = getMinIndex(cost);\n\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(starts.get(index));\n graph.printPath(ends.get(index));\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n setSuccess(path);\n }", "public Path select(int start, int end)\n\t{\n\t\tString newPath = \"\";\n\t\t\n\t\t\n\t\tif(this.isAbsolute() && start == 0){\n\t\t\tnewPath = \"/\";\n\t\t}\n\t\t\n\t\tfor(int i = start; i <= end; i++)\n\t\t{\n\t\t\tnewPath += this.elements.get(i) + \"/\";\n\t\t}\n\t\t\n\t\treturn new Path(newPath);\n\t}", "public void setPath(Square finish) {\n // TODO\n \tpath = \"Found Nemo!\\n\" + \"Path from start to finish: \";\n \tString extnPAth = \"\";\n \twhile(finish != null) {\n \tSquare realSquare = sea.getSea()[finish.getRow()][finish.getCol()];\n \t\trealSquare.setFinalPath();\n \t\t//Add to stack\n \t\tstack.push(finish);\n \t\tfinish = finish.getPrevious();\n \t}\n \t\n \t//get start and add start\n \twhile(!stack.empty()) {\n \t\tSquare c = stack.pop();\n \t\textnPAth = extnPAth + \"[\" + c.getRow() + \",\" + c.getCol() + \"] \"; \n \t}\n\t\tpath = path + extnPAth;\n }", "IPath getPath();", "public Path getPath();", "public Stack<Node> retrieve_fastest_path() {\r\n return findPath(initial_node, end_node);\r\n }", "public String getPath() \r\n\t{\r\n\t\tStringBuilder pathBuilder = new StringBuilder();\r\n\t\tfor(Cell c: path)\r\n\t\t\tpathBuilder.append(\" (\" + c.getRow() + ',' + c.getColumn() + ')');\r\n\t\t\r\n\t\treturn pathBuilder.toString();\r\n\t}", "private static String returnDiretorioPai(Path a){\n return a.getParent().toString();\n }", "private String toCompletePath(String fullRequest) {\n \n///Parse request for file path\nString requestLine[] = new String[] {\" \", \" \", \" \"};\n requestLine = fullRequest.split(\" \");\nString partialPath = requestLine[1];\n \n//If requested path is just \"/\" or \"\", don't return any path\n if(partialPath.length() <= 1) {\n noFileRequested = true;\n return null;\n }\n \nString completePath;\n//If using my Windows machine, the path is different than the school Linux machines\nif (Windows)\n completePath = \"C:/Users/Michelle/eclipse-workspace/P1\" + partialPath;\nelse\n completePath = \".\" + partialPath;\n \n return completePath;\n}", "Path getHasPath();", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Nullable String getPath();", "private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }", "public String getPath(String from, String to, String pathAlgo);", "public static List<Long> straightHome(UTM start, UTM goal)\n\t\t{\n\t\t\t\tList<Long> path_sequence = new ArrayList<>();\n\t\t\t\tlong start_index = newCrumb(start);\n\t\t\t\tlong goal_index = newCrumb(goal);\n\t\t\t\tpath_sequence.add(start_index);\n\t\t\t\tpath_sequence.add(goal_index);\n\t\t\t\treturn path_sequence;\n\t\t}", "public abstract String getPath();", "public abstract String getPath();", "private static ArrayList<String> getPath(SearchTreeNode last) {\n\t\tArrayList<String> result = new ArrayList<>();\n\t\tfor (SearchTreeNode current = last; current.parent != null; current = current.parent) {\n\t\t\tresult.add(current.action);\n\t\t}\n\t\tCollections.reverse(result);\n\t\treturn result;\n\t}", "@Override\r\n public String getPath() {\n return null;\r\n }", "private List<Vertex> findPathForOutputAsset(Vertex endingVertex, GraphTraversalSource g, Vertex startingVertex) {\n //add null check for endingVertex\n if (endingVertex == null) {\n return null;\n }\n\n List<Vertex> endVertices = new ArrayList<>();\n try {\n if (isEndColumn(g, endingVertex)) {\n endVertices.add(endingVertex);\n } else {\n List<Vertex> nextVertices = g.V(endingVertex.id()).out(LINEAGE_MAPPING).toList();\n\n for (Vertex vertex : nextVertices) {\n if (vertex.equals(startingVertex)) {\n continue;\n }\n Optional.ofNullable(findPathForOutputAsset(vertex, g, endingVertex)).ifPresent(endVertices::addAll);\n }\n\n }\n return endVertices;\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(VERTEX_NOT_FOUND, startingVertex.id(),\n startingVertex.property(PROPERTY_KEY_DISPLAY_NAME).value());\n }\n return null;\n }\n }", "private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }", "public String getPath();", "public String getPath();", "public String getPath();", "protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }", "private IPath findInitialPath(IPath initialPath) {\n \t\tIPath path = cwd;\n \t\t\n \t\tif (initialPath != null) {\n \t\t\ttry {\n \t\t\t\tIFileInfo info = fileMgr.getResource(initialPath, new NullProgressMonitor()).fetchInfo();\n \t\t\t\tif (info.exists()) {\n \t\t\t\t\tpath = initialPath;\n \t\t\t\t}\n \t\t\t} catch (IOException e) {\n \t\t\t}\n \t\t}\n \t\treturn path;\n \t}", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "void addPathFromStart() {\n for (String aPathFromStart : pathFromStart) {\n newFutureTargets.push(aPathFromStart);\n }\n }", "public int getPathLength()\r\n\t{\r\n\t\treturn path.size();\r\n\t}", "public synchronized String getPath(long entry) throws IOException,\n EOFException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n idx.seek(startOfEntry);\n if (idx.readChar() == '\\n')\n throw new IllegalStateException(\"No data at address \" + entry);\n idx.skipBytes(bytesPerId + bytesPerType - 2);\n \n byte[] bytes = new byte[bytesPerPath];\n idx.read(bytes);\n String line = new String(bytes, \"utf-8\");\n int delimiter = line.indexOf('\\n');\n if (delimiter < 1)\n throw new IllegalStateException(\"Found path without delimiter\");\n return new String(bytes, 0, delimiter - 1);\n }", "public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}", "@Override\r\n public String getPath() {\n return null;\r\n }", "static void ex4() {\n\t\tSystem.out.println(\"subPath\");\n\t\t/*\n\t\t * this is a path within a path\n\t\t */\n\t\tString parent=\"C:/Users/noelf/OneDrive/JavaProgrammer2019-20/WorkSpace2/F9.2InteractingWithPathAndFiles\";\n\t\tString child=\"src/com/android/Examples.java\";\n\t\tPath fullPath=Paths.get(parent,child);\n\t\tSystem.out.println(fullPath);\n\t\tSystem.out.println(\"is this an absolute path \"+fullPath.isAbsolute());\n\t\t/*C:\\Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\n\t\t\\src\\com\\android\\Examples.java\n\t\t*/\n\t\t//this path has 10 elements, 9 folders and one file\n\t\t//the elements use array numbering, so these elements go from 0 to 9\n\t\tSystem.out.println(\"there are \"+fullPath.getNameCount()+\" elements in the path\");\n\t\t/*\n\t\t * subpath returns any relative subpath within the abseloute path\n\t\t * there are 10 elements in this path\n\t\t * so this path goes from index postion 0, up to index positiion 5, but DOES NOT include\n\t\t * index position 5, operates exact same way as the subString() method of the String\n\t\t * this creates the relative path\n\t\t * Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\n\t\t * subpath returns a relative path\n\t\t */\n\t\tSystem.out.println(\"subpath from 0 to 5 but not including 5 \"+fullPath.subpath(0, 5));\n\t\t/*\n\t\t * this starts at index position 3, which is the folder \"JavaProgrammer2019-20\"\n\t\t * and up to index position 7, but not including position 7, which will be the folder \"src\"\n\t\t */\n\t\tPath relPath=fullPath.subpath(3, 7);\n\t\t//prints off\n\t\t/*\n\t\t * JavaProgrammer2019-20\\->index postion 3\n\t\t * WorkSpace2\\ -> index position 4\n\t\t * F9.2InteractingWithPathAndFiles -> index position 5\n\t\t * \\src -> index position 6\n\t\t * index position 7 is NOT included\n\t\t */\n\t\tSystem.out.println(relPath);\n\t\tSystem.out.println(relPath.isAbsolute());//false as it's a relative path\n\t\t/*\n\t\t * this will print\n\t\t * C:\\Users\\noelf\\OneDrive\\JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\\\n\t\t * JavaProgrammer2019-20\\WorkSpace2\\F9.2InteractingWithPathAndFiles\\src\n\t\t */\n\t\tSystem.out.println(relPath.toAbsolutePath());\n\t\ttry {\n\t\t\t/*\n\t\t\t * if you attempt to access an element in a path by subpath that does not exist\n\t\t\t * you will get an IllegalArguementException\n\t\t\t */\n\t\t\tSystem.out.println(\"subpath from 0 to 10 \"+fullPath.subpath(0, 10));//this wil compile, no exception\n\t\t\t//this will give us an illegalArugmenmt exception as this is out of bounds as only\n\t\t\t//10 elements in our path, so only goes UP TO 10, but numbering is 0 t0 9\n\t\t//\tSystem.out.println(\"subpath from 0 to 11 \"+fullPath.subpath(0, 11));\n\t\t\t/*\n\t\t\t * can't have an empty path or subpath, this is a empty path, so this will throw an\n\t\t\t * IllegalArguement exception as well\n\t\t\t */\n\t\t\tSystem.out.println(\"subpath from 2 to 2 \"+fullPath.subpath(2, 2));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"exception is \"+e);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public EphemeralFsPath getPath() {\n return getPaths(fs, steps);\n\n }", "List<Edge> getPath() throws NoPathFoundException;", "private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }", "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }", "public List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException;", "public String getAbsPath();", "public GraphPath getResultPath() {\n return null;\r\n }", "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }", "public static FilePath empty() {\n return EMPTY;\n }", "@Override\n public boolean hasNext()\n {\n if (!this.isPathValid()) {\n String msg = \"Annotated Path\" + this.getStart().getLocation() + \"->\" +\n this.getGoal().getLocation() + \": Cannot tell if path has \" +\n \"next step when it is invalid.\";\n logger.severe(msg);\n throw new IllegalStateException(msg);\n }\n return !this.path.isEmpty();\n }", "public final String getPath() {\n\t return m_path;\n\t}", "public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}", "private boolean validatePath(BoardSquareInfo start, BoardSquareInfo target, ArrayList<BoardSquareInfo> path) {\n\t\tLog.d(LOG_TAG, String.format(\"Validating path: [%s]\",path));\n\t\t\n\t\t// Invalid if start and target row are separated \n\t\t// by 2 spaces and columns are the same\n\t\tboolean valid = !(Math.abs(start.row-target.row) == 2 \n\t\t\t\t&& start.column == target.column);\n\t\t\n\t\t// Invalid if start and target columns are separated \n\t\t// by 2 spaces and rows are the same\n\t\tvalid = valid && !(start.row == target.row\n\t\t\t\t&& Math.abs(start.column-target.column) == 2);\n\t\t\n\t\tif(valid && path.size() > 1) {\n\t\t\tBoardSquareInfo square = path.get(path.size()-2);\n\t\t\t\n\t\t\t// Invalid if start and target row are separated \n\t\t\t// by 2 spaces and columns are the same\n\t\t\tvalid = valid && !(Math.abs(square.row-target.row) == 2 \n\t\t\t\t\t&& square.column == target.column);\n\t\t\t\n\t\t\t// Invalid if start and target columns are separated \n\t\t\t// by 2 spaces and rows are the same\n\t\t\tvalid = valid && !(square.row == target.row\n\t\t\t\t\t&& Math.abs(square.column-target.column) == 2);\n\t\t}\n\t\t\n\t\tif(valid) {\n\t\t\tstart.swap(target);\n\t\t\tfor(BoardSquareInfo square : path) {\n\t\t\t\tsquare.makeEmpty();\n\t\t\t}\n\t\t\tswitchPlayer();\n\t\t}\n\t\t\n\t\treturn valid;\n\t}", "abstract public List<S> getPath();", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public static boolean getPath(int x, int y, ArrayList<Point> path) {\n\t\tif (x > size-1 || y > size-1 || !isFree(x, y)) { // !isFree -> [x][y] = 0\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean isAtFinal = (x == size-1) && (y == size-1); //destination: 5, 5\n\t\t\n\t\t//if there is a path from my current to end, add it\n\t\tif(isAtFinal || getPath(x, y+1, path) || getPath(x+1, y, path)){\n\t\t\tPoint p = new Point(x,y);\n\t\t\tpath.add(p);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private Stack path(Graph graph, GraphNode start, GraphNode end) throws GraphException {\n\t\tGraph g = graph;\n\t\tGraphNode b = start;\n\t\tGraphNode e = end;\n\t\tGraphNode temp;\n\t\tStack p;\n\n\t\t// mark the beginning point and push it to the stack.\n\t\tb.setMark(true);\n\t\tedgeStack.push(b);\n\n\t\t// check if the starting and end point are equal.\n\t\tif (b == e) {\n\t\t\treturn edgeStack;\n\t\t}\n\t\t// iterates until it reaches the end point\n\t\telse {\n\t\t\t// initializes edges to the edges incident on node b\n\t\t\tIterator<GraphEdge> edges = graph.incidentEdges(b);\n\n\t\t\t// iterates until it reaches the end of nodes\n\t\t\twhile (edges.hasNext()) {\n\t\t\t\ttemp = edges.next().secondEndpoint();\n\n\t\t\t\t// checks if the second point of the edge has been discovered\n\t\t\t\tif (temp.getMark() == false ) {\n\t\t\t\t\tp = path(g, temp, e);\n\n\t\t\t\t\t// if the path ends return null\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tedgeStack.pop();\n\t\t}\n\t\treturn null;\n\t}", "public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }", "public String getPath() {\n \tStringBuilder path = new StringBuilder();\n \tint s = this.getSelectedIndex();\n \tif (s <= 0 ) s = 0;\n \tJPiereIADTabpanel p = tabPanelList.get(s);\n \tfor (int i = 0; i <= s; i++) {\n \t\tString n = null;\n \t\tif (i == s)\n \t\t\tn = p.getTitle();\n \t\telse {\n \t\t\tJPiereIADTabpanel t = tabPanelList.get(i);\n \t\t\tif (t.getTabLevel() < p.getTabLevel())\n \t\t\t\tn = t.getTitle();\n \t\t}\n \t\tif (n != null) {\n \t\t\tif (path.length() > 0) {\n \t\t\t\tpath.append(\" > \");\n \t\t\t}\n \t\t\tpath.append(n);\n \t\t}\n \t}\n\n \treturn path.toString();\n }", "private String computeAirPath(Position source, Position destination) {\n\n\t\t\t\tboolean toRight = false;\n\t\t\t\tboolean toBottom = false;\n\n\t\t\t\tint xSteps = source.getColumn() - destination.getColumn();\n\t\t\t\tint ySteps = source.getRow() - destination.getRow();\n\n\t\t\t\tif (xSteps < 0) {\n\t\t\t\t\ttoRight = true;\n\t\t\t\t}\n\n\t\t\t\tif (ySteps < 0) {\n\t\t\t\t\ttoBottom = true;\n\t\t\t\t}\n\n\t\t\t\tString path = \"\";\n\n\t\t\t\tfor (int i = 0; i < Math.abs(xSteps); i++) {\n\t\t\t\t\tif (toRight) {\n\t\t\t\t\t\tpath += \"\\u2192 \"; // right\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2190 \"; // left\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < Math.abs(ySteps); i++) {\n\t\t\t\t\tif (toBottom) {\n\t\t\t\t\t\tpath += \"\\u2193 \"; // down\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2191 \"; // up\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (Math.abs(xSteps) + Math.abs(ySteps) == 0) {\n\t\t\t\t\tpath = \"in place\";\n\t\t\t\t}\n\n\t\t\t\treturn path;\n\t\t\t}", "public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}", "String fullpath(String path) {\n return fullpath(path, null);\n }", "public abstract List<String> path();", "public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tinit_dir(-1,dir_mtr);\n\n\n\n \t//define a stack\n \tStack<MazeLocation> s;\n \ts = new StackRefBased<MazeLocation>();\n\n \tMazeLocation entry = maze.getEntry();\n \tMazeLocation exit = maze.getExit();\n \t// System.out.println(entry.toString());\n \ts.push(entry);\n\n\t\tMazeLocation temp; \n\t\tString result = \"\"; \t\n\n\t\ttry{\n\t\t\tint x,y;\n\n\n\t\t\twhile(!s.isEmpty()){\n\n \t\ttemp = s.peek();\n \t\tx = temp.getRow();\n \t\ty = temp.getCol();\n \t\tdir_mtr[x][y]+=1;\n\n \t\tif(temp.toString().equals(exit.toString())){\n \t\t\tSystem.out.println(\"find the path\");\n \t\t\tbreak;\n\n \t\t}\n\n \t\tif(dir_mtr[x][y]==0){ \n \t\t\t//checking the up direction\n \t\t\tif(x-1>=0 && !maze.isWall(x-1,y) && !visited[x-1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x-1,y,maze.isWall(x-1,y));\n \t\t\t\tvisited[x-1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==1){\n \t\t\t//checking the left direction\n \t\t\tif(y-1>=0 && !maze.isWall(x,y-1) && !visited[x][y-1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y-1,maze.isWall(x,y-1));\n \t\t\t\tvisited[x][y-1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==2){\n \t\t\t//checking the down direction\n \t\t\tif(x+1<m && !maze.isWall(x+1,y) && !visited[x+1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x+1,y,maze.isWall(x+1,y));\n \t\t\t\tvisited[x+1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else if(dir_mtr[x][y]==3){\n \t\t\t//checking the right direction\n \t\t\tif(y+1<n && !maze.isWall(x,y+1) && !visited[x][y+1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y+1,maze.isWall(x,y+1));\n \t\t\t\tvisited[x][y+1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else{\n \t\t\tvisited[x][y] = false;\n \t\t\ts.pop();\n \t\t}\n\n\n\n \t\t\n \t}\n\n \t//reverse the stack\n \tStack<MazeLocation> reverse;\n \treverse = new StackRefBased<MazeLocation>();\n \twhile(!s.isEmpty()){\n\t\t\t reverse.push(s.pop()); \t//push the node to the reverse stack\n\t\t\t }\n\n\n \t//if the stack is not empty, then we find the path\n\t\tif(!reverse.isEmpty()){\n\t\t\tresult = reverse.toString();\n\n\t\t}\n\n \t\n \n\n\t\t}\n\t\tcatch (StackEmptyException see) {\n \n }\n\n\n \treturn result;\n\n\n }", "public IPath getPath() {\n \t\tif (remotePath.equals(\"\")) {\n \t\t\treturn null;\n \t\t}\n \t\treturn new Path(remotePath);\n \t}", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "public int getPathLength();", "public Stack<Node> findPath(Node initial_node, Node end_node) {\r\n\r\n // TODO: check for hardcoded value 3\r\n int size = 3;\r\n boolean is_start_node = true;\r\n\r\n PriorityList priority_list = new PriorityList();\r\n LinkedList linked_list = new LinkedList();\r\n\r\n // Initialise start node\r\n initial_node.total_path_cost = 0;\r\n initial_node.cost_estimated_to_goal_node = initial_node.pathCost(end_node);\r\n initial_node.parent_node_in_path = null;\r\n priority_list.add(initial_node);\r\n\r\n // Begin exploration of grid map\r\n while (!priority_list.isEmpty()) {\r\n\r\n // Get node from head of list\r\n Node node = (Node) priority_list.removeFirst();\r\n\r\n // Determine if node is Start node\r\n if (node == initial_node)\r\n is_start_node = true;\r\n else\r\n is_start_node = false;\r\n\r\n ((Node) node).setFacing();\r\n\r\n // Determine if node is goal node\r\n if (node == end_node) {\r\n return constructPath(end_node);\r\n }\r\n\r\n // Get list of node neighbours\r\n List neighbors_list = node.getNeighbors();\r\n\r\n // Iterate through list of node neighbours\r\n for (int i = 0; i < neighbors_list.size(); i++) {\r\n\r\n // Extract neighbour node information\r\n Node node_neighbour = (Node) neighbors_list.get(i);\r\n boolean isOpen = priority_list.contains(node_neighbour);\r\n boolean isClosed = linked_list.contains(node_neighbour);\r\n boolean isObs = (node_neighbour).isObs();\r\n int clearance = node_neighbour.getClearance();\r\n float total_path_cost = node.getCost(node_neighbour, end_node, is_start_node) + 1;\r\n\r\n // Check 1. if node neighbours have not been explored OR 2. if shorter path to\r\n // neighbour node exists\r\n if ((!isOpen && !isClosed) || total_path_cost < node_neighbour.total_path_cost) {\r\n node_neighbour.parent_node_in_path = node;\r\n node_neighbour.total_path_cost = total_path_cost;\r\n node_neighbour.cost_estimated_to_goal_node = node_neighbour.pathCost(end_node);\r\n\r\n // Add neighbour node to priority_list if 1. node not in\r\n // priority_list/linked_list AND 2.\r\n // robot can reach\r\n if (!isOpen && !isObs && size == clearance) {\r\n priority_list.add(node_neighbour);\r\n }\r\n }\r\n }\r\n linked_list.add(node);\r\n }\r\n\r\n // priority_list empty; no path found\r\n\r\n return new Stack<Node>();\r\n }", "public void deleteLastPathTile(){\n\t\tif(temp.isEmpty()){\n\t\t\tif(currentPos!=-1){\n\t\t\t\tcurrentPos=-1;\n\t\t\t\tsetEntryPoint(null);//start has been deleted\n\t\t\t\tgrid[currentPath.getRow()][currentPath.getCol()]= null;\n\t\t\t\tcurrentPath=null;\n\t\t\t}\n\t\t\treturn;//the list is empty\n\t\t}\n\t\telse {//\n\t\t\tif(getCompletePath()){\n\t\t\t\t\tsetCompletePath(false);\n\t\t\t\t\tsetExitPoint(null);\n\t\t\t\t\tremoveScenery();\n\t\t\t\t\t\n\t\t\t}//since the last node was removed\n\t\t\telse//if the path wasn't complete (should it be scenery?)\n\t\t\t\tgrid[currentPath.getRow()][currentPath.getCol()]= null;\n\t\t\t\tcurrentPath=null;\n\t\t\t\n\t\t\tPath removedPath=temp.removeLast();\n\t\t\tcurrentPos=removedPath.getPos();\n\t\t\tcurrentPath=new Path(currentPos);\n\t\t}\n\t}", "public static Path getOnePathTo(ARGState pLastElement) {\n Path path = new Path();\n Set<ARGState> seenElements = new HashSet<ARGState>();\n\n // each element of the path consists of the abstract state and the outgoing\n // edge to its successor\n\n ARGState currentARGState = pLastElement;\n // add the error node and its -first- outgoing edge\n // that edge is not important so we pick the first even\n // if there are more outgoing edges\n\n CFANode loc = extractLocation(currentARGState);\n CFAEdge lastEdge = null;\n if (loc.getNumLeavingEdges() > 0) {\n lastEdge = loc.getLeavingEdge(0);\n }\n /*\n\n */\n path.addFirst(Pair.of(currentARGState, lastEdge));\n seenElements.add(currentARGState);\n\n while (!currentARGState.getParents().isEmpty()) {\n Iterator<ARGState> parents = currentARGState.getParents().iterator();\n\n ARGState parentElement = parents.next();\n //System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n while (!seenElements.add(parentElement) && parents.hasNext()) {\n // while seenElements already contained parentElement, try next parent\n parentElement = parents.next();\n // System.out.println(currentARGState.getStateId()+\":\"+parentElement);\n }\n\n CFAEdge edge = parentElement.getEdgeToChild(currentARGState);\n path.addFirst(Pair.of(parentElement, edge));\n //输出当前路径\n //System.out.println(currentARGState.getStateId()+\",\"+currentARGState.getValuesOfKeyVariables());\n //System.out.println(edge);\n currentARGState = parentElement;\n\n //测试用\n /*if(!(edge instanceof CAssumeEdge) &&edge.getRawStatement().contains(\"a3\")){\n System.out.println(currentARGState.getStateId()+\":\"+currentARGState.getValuesOfKeyVariables());\n }*/\n\n }\n // System.out.println(\"跳出getOnePathTo\");\n return path;\n }", "public ExecRegionPath getPath() {\n return getPath(null);\n }", "@Override\r\n public String getPath() {\r\n if (VFS.isUriStyle()) {\r\n return absPath + getUriTrailer();\r\n }\r\n return absPath;\r\n }", "@Override\n\t\tpublic String getPathInfo() {\n\t\t\treturn null;\n\t\t}", "public static List<CampusGraph.Edges<String, String>> findPath(CampusGraph<String, String> cg, String start, String destination) {\n if (cg == null || start == null || destination == null) {\n throw new IllegalArgumentException();\n }\n Queue<String> visitedNodes = new LinkedList<>();\n Map<String, List<CampusGraph.Edges<String, String>>> paths = new HashMap<>();\n visitedNodes.add(start); // Add start to Q\n paths.put(start, new LinkedList<>()); // Add start->[] to M (start mapped to an empty list)\n\n while (!visitedNodes.isEmpty()) {\n String currentNode = visitedNodes.remove();\n if (currentNode.equals(destination)) { // found the path\n return paths.get(currentNode);\n } else {\n List<CampusGraph.Edges<String, String>> neighbors = cg.getAllChildren(currentNode);\n neighbors.sort(new Comparator<CampusGraph.Edges<String, String>>() {\n @Override\n public int compare(CampusGraph.Edges<String, String> o1, CampusGraph.Edges<String, String> o2) {\n int cmpEndNode = o1.getEndTag().compareTo(o2.getEndTag());\n if (cmpEndNode == 0) {\n return o1.getEdgeLabel().compareTo(o2.getEdgeLabel());\n }\n return cmpEndNode;\n }\n }); // ascending list. Sort characters and books names all at once??\n\n for (CampusGraph.Edges<String, String> e: neighbors) {\n String neighbor = e.getEndTag();\n if (!paths.containsKey(neighbor)) { // i.e. if the neighbor is unvisited\n List<CampusGraph.Edges<String, String>> pathCopy = new LinkedList<>(paths.get(currentNode));\n pathCopy.add(e);\n paths.put(neighbor, pathCopy); // add the path exclusive to this neighbor\n visitedNodes.add(neighbor); // then, mark the neighbor as visited\n }\n }\n }\n }\n return null; // No destination found\n }", "@Override\n public boolean isFinished() \n {\n int curCount = mPath.kNumPoints - mCount;\n if(curCount<1)\n {\n System.out.println(mPath.kNumPoints);\n }\n \n return curCount<1;\n }", "public List<WeightedPoint> getPath(WeightedPoint cursor)\n {\n List<WeightedPoint> path = new ArrayList<WeightedPoint>();\n while (cursor != null)\n {\n path.add(path.size(), cursor);\n cursor = cursor.getPrev();\n }\n return path;\n }", "public String getPath()\n\t{\n\t\treturn letter + \":/\";\n\t}", "public LinkedList<Move> search1() {\r\n\r\n while (!paths.isEmpty()) {\r\n\r\n if (logger.isDebugEnabled())\r\n logger.debug(printPathCosts());\r\n\r\n LinkedList<Move> path = paths.first();\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"First path is \" + path);\r\n\r\n if (!paths.remove(path)) {\r\n throw new RuntimeException(\"Failed to remove path\");\r\n }\r\n\r\n Node currentNode = path.getLast().destination;\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Last site on path is \" + currentNode);\r\n\r\n if (closed.contains(currentNode)) {\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Site \" + currentNode + \" was closed.\");\r\n continue;\r\n }\r\n if (currentNode.isAtTarget(target)) {\r\n return path;\r\n }\r\n\r\n closed.add(currentNode);\r\n\r\n Move lastMove = path.getLast();\r\n if ( !(lastMove instanceof InitialMove) ) {\r\n currentNode = transformCurrentNode(lastMove);\r\n }\r\n\r\n Set<Move> successors = successors(currentNode);\r\n for (Move y : successors) {\r\n LinkedList<Move> successor = new LinkedList<Move>(path);\r\n y.pathCost = successor.getLast().pathCost + y.edgeCost;\r\n successor.add(y);\r\n paths.add(successor);\r\n if (logger.isDebugEnabled())\r\n logger.debug(\"Added successor \" + y);\r\n nodeExpansionCounter ++;\r\n }\r\n }\r\n\r\n return null;\r\n }" ]
[ "0.67287654", "0.63687515", "0.6226247", "0.6201376", "0.6181187", "0.6156275", "0.6123972", "0.61165816", "0.6088893", "0.6069142", "0.59422433", "0.5888258", "0.58758295", "0.58758295", "0.58758295", "0.58758295", "0.58758295", "0.5873202", "0.58666646", "0.58621645", "0.5861482", "0.58198476", "0.58020073", "0.5800329", "0.5779282", "0.5777864", "0.5751556", "0.57350725", "0.5733758", "0.57059467", "0.5693966", "0.5682087", "0.56721497", "0.56711596", "0.56711185", "0.56639564", "0.56370866", "0.5609218", "0.5603829", "0.5600228", "0.5595048", "0.5573738", "0.55734384", "0.5562817", "0.5559941", "0.5559941", "0.5540652", "0.5515979", "0.55142754", "0.55127925", "0.5508304", "0.5508304", "0.5508304", "0.5492255", "0.5484028", "0.54789037", "0.5469274", "0.54688466", "0.5468492", "0.54658383", "0.5463743", "0.54532665", "0.54459244", "0.5441043", "0.54377794", "0.54374045", "0.543563", "0.5433261", "0.5429637", "0.542775", "0.542549", "0.54202425", "0.54159045", "0.5404893", "0.5404107", "0.5403753", "0.53974223", "0.5391175", "0.5386729", "0.5379171", "0.53791064", "0.5378751", "0.53779966", "0.53760993", "0.53750926", "0.5368603", "0.53685695", "0.5368542", "0.5365273", "0.53648096", "0.5349272", "0.5336099", "0.5335929", "0.5327087", "0.53186536", "0.53162056", "0.5311759", "0.5311413", "0.53110904", "0.531086" ]
0.58728
18
Used in XAMPP Or Any other Local server
public static RetrofitWebService RetrofitInitilizer(){ RestAdapter adapter = new RestAdapter.Builder() .setEndpoint(DOMAIN) //Setting the Root URL .build(); //Finally building the adapter RetrofitWebService api = adapter.create(RetrofitWebService.class); return api; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}", "public void internetConnectionProble()\n\t\t{\n\n\n\t\t}", "private String getUrlBaseForLocalServer() {\n\t HttpServletRequest request = ((ServletRequestAttributes) \n\t\t\t RequestContextHolder.getRequestAttributes()).getRequest();\n\t String base = \"http://\" + request.getServerName() + ( \n\t (request.getServerPort() != 80) \n\t \t\t ? \":\" + request.getServerPort() \n\t\t\t\t : \"\");\n\t return base;\n\t}", "private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }", "private void alternateconnection() {\n\t\t\t final String url = \"jdbc:mysql://localhost:3306/\";\n\t\t\t final String username = \"root\";\n\t\t final String password = \"bordoloa\";\n\t\t System.out.println(\"Connecting with classified at local host\");\n\t\t\ttry {\n\t\t\t\tconnection=DriverManager.getConnection(url, username, password);\n\t\t\t\t\n\t\t\t\tString msg=\"Hosting the client in local database port 3306 server \"\n\t\t\t\t\t\t+url;\n\t\t\t\tSystem.out.println(msg);\n\t\t\t\tDbLog.logger().logging(msg);\n\t\t\t\treturn;\n\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t DbLog.logger().logging(e.getMessage()+\"Error is Mysql local database connection\");\n\t\t\t System.out.println(\"Unable to establish connection with localhost port 3306. Please check log files for more details at:\"\n\t\t\t \t\t\t+ \" C:\\\\Users\\\\Public\\\\IntraClassifieldsLogs\\\\Database_login.txt\");\n\t\t\t System.exit(0); /// exiting the program\n\t\t\t }\n\t\t}", "void startup();", "void startup();", "private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}", "public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }", "private static String getServerUrl() {\n\t\treturn \"http://jfabricationgames.ddns.net:5715/genesis_project_server/genesis_project/genesis_project/\";\n\t}", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "@Test\n\tpublic void start() {\n\t\t\n\t\tSeleniumUtil.startDriverFirefox(\"DEV_ROBO\");\n\t\t\n\t\tSeleniumUtil.openURL(\"https://www.cadesp.fazenda.sp.gov.br/(S(aljupn5501cd5jefroucepm3))/Pages/Cadastro/Consultas/ConsultaPublica/ConsultaPublica.aspx\");\n\n\t}", "public static void main(String[] args) throws IOException, URISyntaxException {\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (Exception e) { \r\n \tSystem.out.println(\"algo no jalo\"); \t\r\n }\r\n\t\t\r\n \tHost host=new Host();\r\n \t \t \t\r\n \thttpServer = HttpServer.create(new InetSocketAddress(puerto), 0);\r\n \t\r\n \thttpServer.createContext(\"/\", new Principal());\t\t//esta es la pagina principal\r\n \thttpServer.createContext(\"/apagado\", new Apagado());\r\n \thttpServer.createContext(\"/descarga\", new Descarga());// llama a la pagina como video1.mp4\r\n \thttpServer.createContext(\"/openFileDialog\", new OpenFileDialog());\r\n \r\n \thttpServer.setExecutor(null);\r\n \thttpServer.start();\r\n \t\r\n\r\n \thost.abreLocalHost();\r\n \thost.cargaGPIO();\r\n\t}", "public String getServer () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t \t\t System.out.println(\"IP:\" + getLocalHostIP()); \n\t System.out.println(\"NAME:\" + getLocalHostName());\n\t System.out.println(\"\\n当前用户名:\" + getLocalUserName());\n\t \t}", "public static void show_local() {\n\n\t}", "public void mo6081a() {\n }", "public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}", "public static void main(String arg[]){\n SocketClient client = new SocketClient (\"localhost\",6543);\n try {\n //tenta estabelecer conexão com o server\n client.connect();\n //se obtiver sucesso, le a resposta \n client.readResponse();\n } catch (UnknownHostException e) {\n System.err.println(\"Host desconhecido. Não foi possível estabelecer conexão.\");\n } catch (IOException e) {\n System.err.println(\"Não foi possível estabelecer conexão. Server pode estar indisponível.\"+e.getMessage());\n }\n }", "public synchronized boolean start(){\n \n\t\t/**\n\t\t * CONNECT TO SERVER\n\t\t */\n\t\tboolean connection = connectToServer(oml_server);\n \n\t\t/**\n\t\t * CREATE THE HEADER\n\t\t */\n\t\tcreate_head();\n \n\t\t/**\n\t\t * SEND THE HEADER\n\t\t */\n\t\tboolean injection = inject_head();\n\t\t\n\t\tif( connection && injection ){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\ttry {\n//\t\t\tInetAddress ip=InetAddress.getByName(\"www.microsoft.com\"); //主機名稱或ip address\n\t\t\tInetAddress [] ips=InetAddress.getAllByName(\"www.facebook.com\"); \n\t\t\t//如果是輸入ip 是檢查ip的合理性\n//\t\t\tSystem.out.println(ip.getAddress());\n\t\t\tfor(InetAddress ip:ips)\n\t\t\tSystem.out.println(ip.getHostAddress());\n\n\t\t} catch (UnknownHostException e) {\n\t\t\t\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "private void runServer()\n\t{\n\t\tif(sm == null)\n\t\t{\n\t\t\tsm = new ServerManager();\n\t\t}\n\t\t\n\t\tint port = 1209;\n\t\ttry \n\t\t{\n\t\t\twaitUser(sm, port);\n\t\t\t//이 아래 로직이 실행된다는건 유저가 다 들어왔다는 뜻임. 즉 게임 시작할 준비 되었음을 의미함\t\t\t\n\t\t\tGame.getInstance().runGame();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Server.runServer()] error >>> : \" + e.getMessage());\n\t\t}\n\t}", "protected void setupLocal() {}", "public void startLocalServer() {\n \t boolean exists = (new File(addeMcservl)).exists();\n \t if (exists) {\n \t // Create and start the thread if there isn't already one running\n\t \tif (thread != null) {\n \t \t\tthread = new AddeThread();\n \t \t\tthread.start();\n \t\t System.out.println(addeMcservl + \" was started\");\n \t \t} else {\n \t \t\tSystem.out.println(addeMcservl + \" is already running\");\n \t \t}\n \t } else {\n \t \tSystem.out.println(addeMcservl + \" does not exist\");\n \t }\n \t}", "public static void initializer() \n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\HP-PC\\\\Downloads\\\\Kahoot\\\\chromedriver.exe\" );\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://www.sathya.in/\");\n\t}", "private boolean checkServer(Context mContext) {\n\t\t\t\tConnectivityManager cm = (ConnectivityManager) mContext\n\t\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }", "Request mo35725m0();", "public static void main(String[] args) {\n try\n {\n \tURL url = new URL(\"http://www.sina.com.cn\");\n \tURLConnection conn = url.openConnection();\n \tif(conn!=null)\n \t{\n \t\tSystem.out.println(\"正常连接到新浪网!\");\n \t}\n \telse\n \t{\n \t\tSystem.out.println(\"连接失败!\");\n \t}\n \tSystem.out.println(\"数据包的长度:\"+conn.getContentLength());\n \tSystem.out.println(\"数据包的类型:\"+conn.getContentType());\n \tSystem.out.println(\"数据包的字符编码:\"+conn.getContentEncoding());\n \tInputStream in = url.openStream();\n \tScanner scanner = new Scanner(in);\n \tscanner.useDelimiter(\"\\n\"); //设置换行回车为分隔符\n \twhile(scanner.hasNext())\n \t{\n \t\tSystem.out.println(scanner.next());\n \t}\n \tscanner.close();\n }\n catch(Exception ex)\n {\n \tex.printStackTrace();\n }\n\t}", "S getServer();", "public Echange_Client() throws UnknownHostException, IOException {\n start_Connexion(); \n }", "public void conectServer() {\n\n\t}", "public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\treturn true;\n \t}\n\n \treturn false;\n \t}", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "public static void main(String[] args) {\n String site = \"www.ics.upjs.sk\";\n int port = 80;\n Socket socket = null;\n try {\n socket = new Socket(site, port);\n OutputStream os = socket.getOutputStream();\n PrintWriter pw = new PrintWriter(os);\n\n InputStream is = socket.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n // poslanie poziadavky\n pw.println(\"GET / HTTP/1.1\");\n pw.println(\"Host: \"+site);\n pw.println();\n\n // odoslanie dat ktore su pripavene v streame\n pw.flush();\n\n // spravovanie poziadavky\n\n String riadok;\n while ((riadok = br.readLine()) != null) {\n System.out.println(riadok);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }", "private void ausgebenSystem() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Rechner: \" + InetAddress.getLocalHost().getHostName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println();\n\t\tString txt = System.getProperties().toString();\n\t\twhile (txt.indexOf(\",\") > 0) {\n\t\t\tSystem.out.println(txt.substring(0, txt.indexOf(\",\") + 1));\n\t\t\ttxt = txt.substring(txt.indexOf(\",\") + 2);\n\n\t\t}\n\t\tSystem.out.println(txt);\n\t}", "private void connect() {\n try {\n Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n cnt = DriverManager.getConnection(hosting, user, pass);\n } catch (Exception e) {\n e.printStackTrace();\n JOptionPane.showMessageDialog(this, \"lỗi kết nối\");\n }\n }", "public static void main(String[] args) throws Exception {\n \tString str = \" 你好,请问您需要办理什么业务啊?\";\n \t/*\n \tgetToken();\n \t String tex = urlencode(str) ;\n \t String lan = urlencode(\"zh\");\n \t String tok = urlencode(token);\n \t String ctp = urlencode(\"1\");\n \t String cui= urlencode(cuid);\n \tString sURL=serverURL\n \t\t\t +\"?tex=\"+tex\n \t\t\t +\"&lan=\"+lan\n \t\t\t +\"&tok=\"+tok\n \t\t\t +\"&ctp=\"+ctp\n \t\t\t +\"&cuid=\"+cui;\n \tSystem.out.print(sURL);\n \t*/\n \tString recvStr = get(str,\"myTTS.mp3\") ;\n \tSystem.out.print(\"\\n\");\n \tSystem.out.print(recvStr);\n }", "static public void czytaj(String host){\n try {\n czytaj(DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(\"http://\"+host+\"/xml.php\"));\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws Exception\n {\n //open a socket to the URL www.java2s.com\"\n InetAddress IPobject=InetAddress.getByName(\"www.java2s.com\");\n Socket FromClient=new Socket(IPobject,80);\n \n\n PrintWriter OutToServer=new PrintWriter(FromClient.getOutputStream());\n OutToServer.println(\"get/http/1.1\");\n OutToServer.println(\"host:www.java2s.com\");\n OutToServer.println(\"\");\n OutToServer.flush();\n BufferedReader FromServer=new BufferedReader(new InputStreamReader(FromClient.getInputStream()));\n String InfoFromServer ;\n FileOutputStream FileOutobj = new FileOutputStream((\"C:\\\\users\\\\admin\\\\desktop\\\\output.txt\"));\n PrintWriter ToFile = new PrintWriter(FileOutobj);\n while((InfoFromServer =FromServer.readLine())!=null)\n {\n System.out.println(InfoFromServer);\n ToFile.println(InfoFromServer);\n }\n ToFile.flush();\n FileOutobj.close();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString result = requestGet(\"http://neihanshequ.com/\" , \"UTF-8\" );\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLogManager.info(\"\\n\" + result.replace(\"<BR/>\", \"\\n\"));\r\n\t\t\r\n\t\t/*\r\n\t\tString result = requestPost(\"http://127.0.0.1:8080/a/\" , \"UTF-8\" , new BasicNameValuePair(\"name\" , \"中文中文中文\") \r\n\t\t, new BasicNameValuePair(\"age\" , \"19\") );\r\n\t\tLogManager.info(result.replace(\"<BR/>\", \"\\n\"));*/\r\n\t}", "@BeforeSuite\r\n\tvoid start() throws ClassNotFoundException, SQLException\r\n\t{\r\n\t\t//Database obj = new Database();\r\n\t\t//Database.database();\r\n\t\t\r\n\t\tstartServer();\r\n\t\tobj_phoneno = new PageObject_phonenumber(androidDriver) ;\r\n\t\tLog4j.info(\"SERVER START--log\");\r\n\t\t//Log4j.info();\r\n\t\t/*obj_otp=new PageObject_OTP(androidDriver);\r\n\t\tobj_setupprofile=new PageObject_setupprofile(androidDriver);*/\r\n\t}", "private static void dbConnect() {\r\n\t\tif (conn == null)\r\n\t\t\ttry {\r\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/sims?user=root&password=12345&useSSL=true\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\"C:\\\\Users\\\\palpawar\\\\Desktop\\\\m4\\\\selenium jars\\\\IEDriverServer.exe\");\r\n\t\t\t\tDesiredCapabilities caps=DesiredCapabilities.internetExplorer();\r\n\t\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\t\t\t\tWebDriver driver=new InternetExplorerDriver(caps);\r\n\t\t\t\tdriver.get(\"https://demo.opencart.com/\");\r\n\t\t\t\tSystem.out.println(driver.getTitle());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(500);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t//driver.quit();\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\n\t\tServerSocket server = new ServerSocket(8080);\n\t\tSystem.out.println(\"Agurdando conexão..\");\n\t\tSocket socket = server.accept();\n\t\t\n\t\t//socket.getInputStream();socket.getOutputStream();\n\t\tObjectInputStream input = new ObjectInputStream(socket.getInputStream());\n\t\t\n\tHospital hospital = (Hospital) input.readObject();\n\t\n\t System.out.println(\"Nome: \"+hospital.getNome());\n\t System.out.println(\"IML: \"+(hospital.isIml()?\"Sim\":\"Não\"));\n\t System.out.println(\"Data abertuta: \"+hospital.getDataAbertura().getTime());\n\t \n\t socket.close();\n\t server.close();\n\t\n\t\n\t\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "private void dbConn()\n {\n\ttry\t\t\n\t{\t\n\t\t\t// driver to use with named database\n\t\tString url = \"jdbc:ucanaccess://c:/AH/AthloneHospital.mdb\";\n \n\t\t\t// connection represents a session with a specific database\n\t\tcon = DriverManager.getConnection(url);\n\n\t\t\t// stmt used for executing sql statements and obtaining results\n\t\tstmt = con.createStatement();\n\n\t\trs = stmt.executeQuery(\"SELECT * FROM Login\");\n\n\t\twhile(rs.next())\t// count number of rows in table\n\t\t\tcount++;\n\t\trs.close();\n System.out.println(\"Success!!!!\");\n\t}\n\tcatch(Exception e) { System.out.println(\"Error in start up......\");}\n }", "private void gameAdmin() {\n\t\tgamePause();\n\t\tsnakeFrame.snakePanel.player.close();\n\t\t try {\n\t\t\t\tRuntime.getRuntime().exec(\n\t\t\t\t\t\t \"cmd /c start http://localhost/snakegame/welcome.html \");\n\t\t\t} catch (IOException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}", "public static void main(String[] argv)\n {\n int p = determinePort(argv, 10000);\n XmlRpc.setKeepAlive (true);\n SecureWebServer webserver = new SecureWebServer (p);\n\n try\n {\n webserver.addDefaultHandlers();\n webserver.start();\n }\n catch (Exception e)\n {\n System.err.println(\"Error running secure web server\");\n e.printStackTrace();\n System.exit(1);\n }\n }", "public static void main(String [] args) throws IOException {\n MyIe jf=new MyIe();\n jf.getEditPanel().setPage(\"http://www.sina.com\");\n jf.getEditPanel().setEnabled(false);\n jf.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jf.getFrame().setVisible(true);\n }", "private OutOfProcessServer()\n {\n }", "protected void requestPro(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t\tSystem.out.println(\"패스워드 찾기 리케스트 프로 호출\");\n\t}", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "public static void main(String args[]) throws Exception\r\n\t{\n\t\tURL obj = new URL(\"http://facebook.com/login.html\");\t\r\n\t\t\r\n\t\tSystem.out.println(\"Protocol used : \"+obj.getProtocol());\r\n\t\tSystem.out.println(\"Host name : \"+obj.getHost()); \r\n\t\tSystem.out.println(\"File name : \"+obj.getFile());\r\n\t\tSystem.out.println(\"Port number :\"+obj.getPort());\r\n\t\tSystem.out.println(\"Path : \"+obj.getPath());\r\n\t}", "public static void main(String[] args) {\n\t\ttry\r\n\t\t{\r\n\t\t\tURL url = new URL(\"http://www.sina.com\");\r\n\t\t\tURLConnection con = url.openConnection();\r\n\t\t\tif(con!=null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"已连接到\"+url.getHost());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"无法连接到\"+url.getHost());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(con.getContentLength()+\" \"+con.getContentType()+\" \"+con.getContentEncoding());\r\n\t\t\tSystem.out.println(con.getContentType());\r\n//\t\t\tInputStream in = con.getInputStream();//方法1\r\n\t\t\tInputStream in = url.openStream();//方法2\r\n\t\t\t\r\n\t\t\tInputStreamReader content = new InputStreamReader(in,\"UTF-8\");\t\t\t\t\r\n\t\t\tScanner scanner = new Scanner(content);\r\n\t\t\tscanner.useDelimiter(\"\\n\");//设置回车换行为分割符\r\n\t\t\twhile(scanner.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(scanner.next());\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t\tin.close();\r\n\t\t\tcontent.close();\r\n\t\t\t\r\n//\t\t\tStringBuff str = new \r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "default String getHost() {\n return \"localhost\";\n }", "public void tener_acceso_a_la_plataforma() {\n\t\tbaseState.setUrl(\"http://km.choucairtesting.com/login/index.php\");\t\n\t\tbaseState.setBrowserType(BrowserType.GoogleChrome);\n\t\tbaseState.execute(desktop);\t\n\t\tSerenity.takeScreenshot();\n\t\t\n\t}", "public Context(){\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", 9876);\n\t\t\tmodel = new SimpleCalculationModel();\n\t\t\ttheInputWindow = new SimpleCalculatorWindow();\n\t\t\tcurrentInput = \"\"; \n\t\t} catch (UnknownHostException e) {\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The server local host port 9876 does not exist!\");\n\t\t}\n\t}", "public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }", "public void openDB() {\n\n\t\t// Connect to the database\n\t\tString url = \"jdbc:mysql://localhost:2000/X__367_2020?user=X__367&password=X__367\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"using url:\"+url);\n\t\t\tSystem.out.println(\"problem connecting to MariaDB: \"+ e.getMessage());\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\n\t}", "public static void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n DataBaseConnect.connect = DriverManager\n .getConnection(\"jdbc:mysql://localhost/magazyn?\"\n + \"user=root&password=\");\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e1) {\n e1.printStackTrace();\n }\n }", "public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "@Test\r\n\tpublic void startapp() {\n\t\tdriver.get(\"http://q.door.fund/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\r\n\t\tString currentURL = driver.getCurrentUrl();\r\n\t\tAssert.assertTrue(currentURL.contains(\"q.door.fund\"));\r\n\t\tSystem.out.println(\"Application loaded\");\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tServerSocket server = new ServerSocket(3456);\n System.out.println(\"-----正在监听3456端口---\");\n Socket socket = server.accept();\n InputStream is = socket.getInputStream();\n // 前8个字节\n byte[] b = new byte[8];\n is.read(b);\n int len = Integer.parseInt(new String(b, \"UTF-8\"));\n System.out.println(len);\n \n // 用来填充xml\n b = new byte[len];\n is.read(b);\n \n // 关闭资源\n is.close();\n socket.close();\n server.close();\n\n String result = new String(b, \"UTF-8\");\n System.out.println(result);\n\t}", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void startKlient() {\n\t\tSystem.out.println(\"Trying to connect\");\r\n\t\ttry (Socket serverkontakt = new Socket(\"127.0.0.1\", 8000);\r\n\t\t// Step 2 - obtaining input/output streams\r\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(\r\n\t\t\t\t\t\tserverkontakt.getOutputStream())) {\r\n\t\t\toutput.flush();\r\n\t\t\tSystem.out.println(\"Connected\");\r\n\t\t\tsendObject(output);\r\n\t\t} catch (EOFException eofException) {\r\n\t\t\tSystem.out.println(\"Server closing connection\\n\");\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tSystem.out.println(\"Problem with server connection\\n\");\r\n\t\t}\r\n\t}", "final boolean detectProxyServer()\r\n {\r\n DataInputStream dis=null;\r\n\tString url=\"\";\r\n\r\n\t// Allow for non-Demon Home page\r\n\tif(app.server==null)\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=\"http://www.\"+hostName+\"/index.html\";\r\n else url=\"http://www.\"+hostName+\"/\";\r\n\t}\r\n\telse\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=app.server+\"index.html\";\r\n\t else url=app.server+app.indexName; \t\r\n\t}\r\n\t//Attempt to connect to this url\r\n\ttry\r\n\t{\r\n\t URL doc=new URL(url);\r\n\t dis=new DataInputStream(doc.openStream());\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t // Unable to connect. This may be an incorrect applet parameter. Let's assume though it's a \r\n\t // proxy server that's stopping use using the hostname.\r\n\t return true;\r\n\t}\r\n\treturn false;\r\n }", "public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void test() {\n\t\t\r\n\t\tSystem.out.println(\"-->\" + CommonMethod.createCmdOfflineVersion10(\"jxsmarthome\"));\r\n\t\t\r\n\t}", "public static void main(String uname) throws Exception {\r\n\t\tString ipusername= uname; //variable to store user name\r\n\t Conn(\"127.0.0.1\",5000,ipusername); //Function call to connect to server via socket\r\n\t \r\n\t\t}", "public void intServerEnv() {\n\t\tServerUtils serverUtils = new ServerUtils();\n\t\tTouchstoneParsers parsers = new TouchstoneParsers();\n\n\t\tString CONFIGFILE = psoResourcePkg + \"/configs/server.properties\";\n\t\tString testConfigFile = ServerUtils.class.getResource(CONFIGFILE).getFile();\n\n\t\tHashMap<String, HashMap<String, String>> configPropsMap = parsers.readPropsFile(new File(testConfigFile));\n\t\thostIP = (configPropsMap.get(\"URL_PARAMS\").get(\"LOCAL_ENV\").equalsIgnoreCase(\"yes\") ? \"localhost\" : serverUtils.getHostIp());\n\n\t\t// JDBC driver name and database URL\n\t\tJDBC_DRIVER=\"com.mysql.jdbc.Driver\";\n\t\tDB_URL=\"jdbc:mysql://\" + hostIP + \"/psotest\";\n\n\t\t// Database credentials\n\t\tUSERID = configPropsMap.get(\"SERVER_ENV\").get(\"USERID\");\n\t\tPASSWORD = configPropsMap.get(\"SERVER_ENV\").get(\"PASSWORD\");\n\n\t\t// Database tables:\n\t\tCLICKS_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"CLICKS_TABLE\");\n\t\tBEACON_TABLE = configPropsMap.get(\"SERVER_ENV\").get(\"BEACON_TABLE\");\n\n\t}", "public static void main(String[] args) {\n\n try {\n\n Registry registry = LocateRegistry.createRegistry( 1888);\n registry.rebind(\"YStudentServerImpl\", new YStudentServerImpl());\n\n\n }\n catch (Exception ex){\n System.err.println(\"YStudentServerImpl exeption\");\n ex.printStackTrace();\n }\n\n\n }", "void askServerInfo();", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static boolean start()\n\t{\n\t\tClient.getInstance();\n\t\treturn false;\n\t}", "public static void main(String[] args) throws UnknownHostException {\n\t\tInetAddress inet=InetAddress.getLocalHost(); \t\r\n\t\ttry {\r\n\t\t\tSocket clien=new Socket(inet.getHostAddress(),8899);\r\n\t\t\t\r\n\t\t\tOutputStream os=clien.getOutputStream();\r\n\t\t\t\r\n\t\t\tInputStream is=clien.getInputStream();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }", "public static boolean useInternalBrowser() {\n\t\treturn (isWindows() || isLinux() || isMac());\n\t}", "public void init() throws ServletException {\n\t\tserver = getInitParameter(\"ncserver\");\n\t\t// System.out.println(\"fffpropsFileName\"+propsFileName+\"...\");\n\t\tif (server == null)\n\t\t\tserver = \"http://100.100.1.61:81/service/XChangeServlet?account=0002\";\n\t\tSystem.out.println(\"server:\" + server + \"...\");\n\t}", "public static void main(String[] args) {\n\t\tJFrame frame = new JFrame();\n\t\t//ConnectionPanel cp = new ConnectionPanel(\"67.43.244.40\", 5555);\n\t\tConnectionPanel cp = new ConnectionPanel(\"lisdude.com\", 5555, null, null, \n\t\t\t\tnull, null, null, null, null, null);\n\t\tframe.setTitle(\"MOO Client\");\n\t\tframe.getContentPane().add(cp);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\tframe.pack();\n\t\tframe.setSize(800,600);\n\t\tframe.setVisible(true);\n\t}", "public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "private void start() {\n\n\t}", "String getInternetseite();", "boolean open();", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "public int mxMain(Context context, String[] args) throws Exception {\n if (!context.isConnected()) {\n throw new Exception(\"not supported on desktop client\");\n }\n\n return 0;\n }", "public static void main(String[] args) {\n\n HttpConnector connector = new HttpConnector();\n Wrapper wrapper = new SimpleWrapper();\n wrapper.setServletClass(\"ModernServlet\");\n Loader loader = new SimpleLoader();\n Valve valve1 = new HeaderLoggerValve();\n Valve valve2 = new ClientIPLoggerValve();// 在这里显示IP\n\n wrapper.setLoader(loader);\n ((Pipeline) wrapper).addValve(valve1);\n ((Pipeline) wrapper).addValve(valve2);\n\n connector.setContainer(wrapper);\n\n try {\n connector.initialize();\n connector.start();\n\n // make the application wait until we press a key.\n System.in.read();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void mo6082b() {\n if (m14898d()) {\n C3720a.this.StartBrowser();\n }\n }", "public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tSocket socket = new Socket(\"www.google.com\", 80);\n\n\t\t// request computer sends to server when type www.google.com into web\n\t\t// browser\n\t\tString httpRequestString = \"GET /index.html\\n\\n\";\n\n\t\t// send request\n\t\tPrintWriter out = new PrintWriter(socket.getOutputStream());\n\t\tout.write(httpRequestString);\n\t\tout.flush();\n\n\t\t// read response\n\t\tInputStream in = socket.getInputStream();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\tsocket.close();\n\t}", "private static void abrirPuerto() {\n try {\n serverSocket = new ServerSocket(PUERTO);\n System.out.println(\"Servidor escuchando por el puerto: \" + PUERTO);\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@BeforeClass\r\n public void beforeClass() {\n \tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Tuan\\\\Downloads\\\\chromedriver.exe\");\r\n \tdriver = new ChromeDriver();\r\n \tdriver.get(\"http://daominhdam.890m.com/\");\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "private static void usage( ) {\n System.err.\n\t println( \"Usage: java OnlineTicTacToe ipAddr ipPort(>=5000)\" );\n System.exit( -1 );\n }", "@Test\n\tpublic void launchSite()\t{\n\t\t\n\t\tSystem.setProperty(EdgeDriverService.EDGE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\MicrosoftWebDriver.exe\");\n\t\tEdgeDriver driver = new EdgeDriver();\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t}", "private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }" ]
[ "0.54969424", "0.5470993", "0.5346464", "0.5283658", "0.52543503", "0.5136566", "0.5136566", "0.51331407", "0.5118914", "0.50864685", "0.50810707", "0.507939", "0.50743514", "0.5059967", "0.50510544", "0.50506014", "0.50298303", "0.50249946", "0.5024601", "0.50241894", "0.5009728", "0.50061476", "0.49982053", "0.4990707", "0.49905804", "0.49812552", "0.49499685", "0.49357212", "0.49354485", "0.49341235", "0.49334663", "0.49279538", "0.49270603", "0.49231496", "0.49207532", "0.49201062", "0.49152437", "0.4908255", "0.4896803", "0.48952502", "0.48933116", "0.48805037", "0.48728302", "0.4871106", "0.48647922", "0.48645368", "0.48616788", "0.48604888", "0.48594502", "0.48594502", "0.48465475", "0.48458922", "0.48391366", "0.48381835", "0.48371753", "0.48344386", "0.4822085", "0.4820375", "0.48176417", "0.48144472", "0.4814233", "0.48137206", "0.4809452", "0.48075584", "0.4805134", "0.4804139", "0.4797743", "0.47965926", "0.47927988", "0.47922277", "0.47916988", "0.47914958", "0.4783863", "0.4782384", "0.4779768", "0.47766247", "0.4775022", "0.47730944", "0.47684988", "0.4764567", "0.4747179", "0.47346446", "0.4732262", "0.47315073", "0.47281414", "0.47255838", "0.47253585", "0.47238314", "0.47227344", "0.47220898", "0.4720465", "0.4718438", "0.47117248", "0.47056544", "0.46994668", "0.46992624", "0.4697665", "0.46970093", "0.46929762", "0.46912417", "0.46908182" ]
0.0
-1
A default constructor used for serialization Constructor for the class
public ExemplarAnswer(Multigraph query) { this.query = query; this.nodeWeights = new HashMap<>(); this.totalWeight = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "void DefaultConstructor(){}", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "public Data() {\n \n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Data() {}", "public Data() {\n }", "public Data() {\n }", "public Payload() {\n\t}", "public Constructor(){\n\t\t\n\t}", "public CustomDateSerializer() {\n this(null);\n }", "public JsonFactory() { this(null); }", "private SerializerFactory() {\n // do nothing\n }", "public CompactSerializable() {\n }", "public Payload() {}", "public JobPayload()\n {\n \n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "private Instantiation(){}", "public MinecraftJson() {\n }", "private SingleObject(){}", "private Default()\n {}", "private SingleObject()\r\n {\r\n }", "public NetworkData() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "public ClaseJson() {\n }", "public SensorData() {\n\n\t}", "public Book() {\n\t\t// Default constructor\n\t}", "private SerializationUtils() {\n\n }", "public InitialData(){}", "public CSSTidier() {\n\t}", "public Pojo1110110(){\r\n\t}", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "public JSFOla() {\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Message(){\n // default constructor\n }", "public JSONUtils() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public Model() {\n\t}", "public Model() {\n\t}", "public WCSResponseSerializer()\r\n {\r\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public Pasien() {\r\n }", "public Person() {\n\t\t\n\t}", "public JAXBConverter() {\n\t}", "public Aanbieder() {\r\n\t\t}", "public Clade() {}", "public Node() {\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public ParamJson() {\n\t\n\t}", "public Postoj() {}", "public Generic(){\n\t\tthis(null);\n\t}", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "public AvroPerson() {}", "public TradeData() {\r\n\r\n\t}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public UE2_0_3Serializer(){\n\t\txstream = new XStream(/*new DomDriver()*/);\n\t}", "O() { super(null); }", "public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}", "public SceneFurniRecord ()\n {\n }", "public DefaultCoupledResource() {\n }", "public Node(){\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public JsonField() {\n }", "public D() {}", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public StudentRecord() {}", "public mapper3c() { super(); }", "public KafkaJsonSerializer() {\n\n }", "DefaultAttribute()\n {\n }", "public Achterbahn() {\n }", "public SgaexpedbultoImpl()\n {\n }", "private void __sep__Constructors__() {}", "public Soil()\n\t{\n\n\t}", "public Person() {}", "public KafkaAvroSerializer() {\n super();\n }", "public JsonHttpChannel(FromJsonHttp defaultConstructor) {\n this.defaultConstructor = defaultConstructor;\n }", "public Job() {\n\t\t\t\n\t\t}", "public Resource() {\n }", "public Resource() {\n }", "public Dto() {\n \t\n }", "public StringData() {\n\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private Node() {\n\n }", "public ModelResource() {\n }", "public Content() {\n\t}", "public GenericElement() {\n\t}", "public SlanjePoruke() {\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "private NewsWriter() {\n }", "public Customer() {\n\t}", "public Customer() {\n\t}", "public Node(){\n\n\t\t}", "public JSONLoader() {}", "private SingleObject(){\n }", "public Job() {\n }", "public Job() {\n }" ]
[ "0.77952176", "0.74316525", "0.7426933", "0.7417527", "0.7280357", "0.7203329", "0.7177219", "0.715189", "0.715189", "0.71454656", "0.7116045", "0.7094398", "0.70705116", "0.69709843", "0.6928542", "0.6904585", "0.68745273", "0.6834694", "0.6826427", "0.67832386", "0.67599905", "0.67502934", "0.67239636", "0.67198646", "0.6719241", "0.67120624", "0.66969085", "0.66800225", "0.6646589", "0.6643433", "0.6636953", "0.66345036", "0.66250867", "0.6624518", "0.6613305", "0.6612203", "0.6608603", "0.659055", "0.65888697", "0.6587738", "0.6581147", "0.6572788", "0.6572788", "0.65527445", "0.65480757", "0.6539085", "0.65375286", "0.65347457", "0.65241265", "0.65198654", "0.6519244", "0.6516818", "0.6510488", "0.6505365", "0.65022933", "0.64981514", "0.6496344", "0.6486928", "0.6486396", "0.6479231", "0.6477901", "0.64765936", "0.64761066", "0.64667755", "0.64653087", "0.6464523", "0.6464523", "0.64639944", "0.6454684", "0.64545065", "0.6452079", "0.6447159", "0.64371985", "0.64346105", "0.64319956", "0.64272636", "0.6426826", "0.64234823", "0.64207876", "0.6418313", "0.64119905", "0.6411626", "0.6408621", "0.6408621", "0.6407184", "0.6406412", "0.6404277", "0.6402945", "0.6399087", "0.63980645", "0.63973224", "0.6393581", "0.63932383", "0.6387286", "0.6386189", "0.6386189", "0.6383756", "0.6382043", "0.6381151", "0.6370501", "0.6370501" ]
0.0
-1
Maps the passed query node to the given node in the graph
public abstract void map(Long queryNode, Long graphNode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void map(Edge queryEdge, Edge graphEdge);", "void setNode(int nodeId, double lat, double lon);", "void setNode(int nodeId, double lat, double lon, double ele);", "public ResultMap<BaseNode> findNodes(ObjectNode query, String searchTerm, ObjectNode traverse);", "public ResultMap<BaseNode> findNodes(ObjectNode query, String searchTerm, ObjectNode traverse, Pagination pagination);", "private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }", "public void Nodemap (String addedNode, String[] connectNode) {\n\t\tNodeswithconnect.put(addedNode, connectNode);\n\t}", "<O> N getNode(Function<N, O> map, O value);", "void registerLabel(SNode inputNode, Iterable<SNode> outputNodes, String mappingLabel);", "IMappingNode getMappingNode(Object groupID) throws Exception;", "void addNeighbor(NodeKey key, GraphNode target, Map<String, String> attr);", "Map<String,String> getNodeData(T node);", "Graph<Integer, DefaultEdge> buildMap();", "private GraphNode getGraphNode(String name, Graph graph) {\n\t\tGraphNode node = graph.nodeMap.get(name);\n\t\tif (node == null) {\n\t\t\tServiceNode n;\n\t\t\tif (name.equals(\"Input\"))\n\t\t\t\tn = inputNode;\n\t\t\telse if (name.equals(\"Output\"))\n\t\t\t\tn = outputNode;\n\t\t\telse\n\t\t\t\tn = serviceMap.get(name);\n\t\t\tnode = new GraphNode(n, this);\n\t\t\tgraph.nodeMap.put(name, node);\n\t\t}\n\t\treturn node;\n\t}", "Node navigate(String nodeType, String nodeId);", "public void setCorrespondingNode(MinesNode node) {\r\n\t\tcorrespondingNode = node;\r\n\t}", "@Override\r\n\tpublic Node selectByIp(Node node) {\n\t\treturn getSqlSession().selectOne(\"com.seu.wsn.node.mapper.selectNodeByIp\", node);\r\n\t}", "public abstract boolean hasMapped(Long queryNode);", "public abstract Node apply(Node node);", "protected abstract Set<T> findNeighbors(T node, Map<T, T> parentMap);", "public void setNode(String node)\n {\n this.node = node;\n }", "public void addNode(DijkstraNode node) {\n\t\tthis.cache.put(node.getCoordinate(), node);\n\t}", "public void addToNodeMap(Node node) {\n nodeMap.put(node.getNodeId(), node);\n }", "public void setNode(String node) {\n this.node = node;\n }", "void shortestPath( final VertexType fromNode, Integer node );", "Object visitMapOfReferences(MapOfReferencesNode node, Object state);", "@Override\n\tpublic void putNode(N node) {\n\t\t\n\t}", "String addNewNode(Double lat, Double lon);", "@Override\n public void put(PairNode<K, V> node) {\n super.put(node);\n keySet.add(node.getKey());\n }", "Graph callConstructQuery(String name, Map<String, String> params);", "public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}", "void visit(Entity node);", "protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }", "public Point2D nodeToPoint(String node_coord) { return node_coord_lu.get(node_coord); }", "public void setNode(ResidentNode node) {\r\n\t\tthis.node = node;\r\n//\t\tif (this.node != null && this.node.getMFrag() != null) {\r\n//\t\t\tthis.mebn = this.node.getMFrag().getMultiEntityBayesianNetwork();\r\n//\t\t}\r\n\t}", "PolynomialNode map(Function converter);", "public abstract String toName(Object inNode);", "public Node cloneGraph(Node node) {\r\n if (node == null) return null;\r\n dfs(node);\r\n return map.get(node.val);\r\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }", "protected Node globalizeNode(LocalNode localNode) throws QueryException {\n try {\n return session.globalize(localNode.getValue());\n } catch (GlobalizeException ge) {\n throw new QueryException(\"Error globalizing node: \" + localNode, ge);\n }\n }", "protected void addingNode( SearchNode n ) { }", "public void addNode(Character charId, Node node) {\n graph.put(charId, node);\n }", "protected void submitNewNode(NNode node) {\n\t\tNNode newnode = new NNode(node);\n\t\tnodes.put(newnode.ID, newnode);\n\t}", "void perform(T node);", "public void inference(String nodeQuery, String[][] nodeEvidence, \r\n\t\t\tInfAlgorithm algorithm) throws JayesException{\r\n\t\tif (! nodeExists(nodeQuery)){\r\n\t\t\tthrow new JayesException(\"Node '\" + nodeQuery + \"' doesn't exist.\");\r\n\t\t}\r\n\t\tsetEvidence(nodeEvidence);\r\n\r\n\t\tswitch (algorithm){\r\n\t\tcase EXACT:\r\n\t\t\texactInference(nodeQuery);\r\n\t\t\tbreak;\r\n\t\tcase LIKELI:\r\n\t\t\tlikelihoodSampling(nodeQuery);\r\n\t\t\tbreak;\r\n\t\tcase REJECT:\r\n\t\t\trejectionSampling(nodeQuery);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t}\r\n\t}", "void readQueryGraph(boolean isProtein, File file, int queryID) throws IOException {\n if(isProtein) {\n FileReader fileReader = new FileReader(file.getPath());\n BufferedReader br = new BufferedReader(fileReader);\n String line = null;\n int lineread = -1;\n boolean edgesEncountered = false;\n while ((line = br.readLine()) != null) {\n lineread++;\n if (lineread == 0)\n continue;\n String lineData[] = line.split(\" \");\n if (lineData.length == 2) {\n if (!edgesEncountered) {\n int id = Integer.parseInt(lineData[0]);\n String label = lineData[1];\n vertexClass vc = new vertexClass();\n vc.id1 = id;\n vc.label = label;\n vc.isProtein = true;\n queryGraphNodes.put(id, vc);\n\n } else {\n int id1 = Integer.parseInt(lineData[0]);\n int id2 = Integer.parseInt(lineData[1]);\n queryGraphNodes.get(id1).edges.put(id2, -1);\n }\n } else {\n edgesEncountered = true;\n }\n\n }\n\n }\n else {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line = null;\n boolean reachedDest = false;\n while ((line = bufferedReader.readLine()) != null) {\n String[] lineData = line.split(\" \");\n if (lineData[0].equals(\"t\")) {\n // new graph\n if (Integer.parseInt(lineData[2]) == queryID) {\n reachedDest = true;\n nodesHuman = new HashMap<>();\n }\n else\n reachedDest = false;\n\n } else if (lineData[0].equals(\"v\")) {\n if (reachedDest) {\n // vertex in the graph\n int id1 = Integer.parseInt(lineData[1]);\n HashMap<String, Object> insertData = new HashMap<>();\n insertData.put(\"id\", id1);\n //insertData.put(\"graphID\", id);\n int count = 0;\n vertexClass vc = new vertexClass();\n for (int i = 2; i < lineData.length; i++) {\n vc.labels.add(Integer.parseInt(lineData[i]));\n\n }\n vc.id1 = id1;\n queryGraphNodes.put(id1, vc);\n }\n } else if (lineData[0].equals(\"e\")) {\n // edge in the graph\n if (reachedDest) {\n int id1 = Integer.parseInt(lineData[1]);\n int id2 = Integer.parseInt(lineData[2]);\n int label = Integer.parseInt(lineData[3]);\n queryGraphNodes.get(id1).edges.put(id2, label);\n }\n\n }\n }\n }\n }", "public Node ExecuteCypherQueryReturnNode(String query) {\r\n\t\t// TODO Auto-generated method stub \r\n\t\tExecutionEngine engine = new ExecutionEngine( _db );\r\n\t\tExecutionResult result = null;\r\n\t\tTransaction tx = _db.beginTx();\r\n\t\ttry {\r\n\t\t result = engine.execute(query);\r\n\t\t Iterator<Map<String, Object>> it = result.iterator();\r\n\t\t\tMap nodeItemMap = it.next();\r\n\t\t\tCollection valuesCollection = nodeItemMap.values();\r\n\t\t\tNode tempNode = (Node) valuesCollection.toArray()[0];\r\n\t\t\ttx.success();\r\n return tempNode;\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// Need to do some logging here.\r\n\t\t\ttx.failure();\r\n\t\t} finally {\r\n\t\t\ttx.finish();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private Node getNode(String nodeName)\r\n\t{\r\n\t return nodeMap.get(nodeName);\r\n\t}", "void addNodeMetadata(int node, String key, String value);", "public SemanticWorkflow addQueryGraph(String q){\n SPARQLProcess sp = new SPARQLProcess(q);\n sp.setResult(GRAPH);\n return add(sp);\n }", "public boolean matchNodes(HashMap<String, String> node,\n\t\t\tHashMap<String, String> query, boolean exact_match) {\n\t\tString value = new String();\n\t\tString query_value = new String();\n\t\tboolean match = false;\n\n\t\tif (query.isEmpty()) {\n\t\t\tmatch = true;\n\t\t}\n\n\t\tif (query.containsKey(\"type\")) {\n\t\t\tString document_type = node.get(\"type\");\n\t\t\tString query_document_type = query.get(\"type\");\n\n\t\t\tif (!query_document_type.contains(\"|\" + document_type + \"|\")) {\n\t\t\t\treturn false;\n\t\t\t} else if (query.keySet().size() == 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tfor (String key : query.keySet()) {\n\t\t\tif (node.containsKey(key) && !key.equals(\"type\")) {\n\t\t\t\tvalue = node.get(key).trim().toLowerCase();\n\t\t\t\tquery_value = query.get(key).trim().toLowerCase();\n\n\t\t\t\tif (value.contains(query_value)) {\n\t\t\t\t\tmatch = true;\n\t\t\t\t} else if (exact_match) {\n\t\t\t\t\tmatch = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\treturn match;\n\n\t}", "void processGraphData(Graph aNodes);", "public MyNode findMyNode(Node node){\r\n\t\treturn nodesMap.get(node);\r\n\t}", "public CatalogNode getNode(String node);", "@Override\n\tpublic List<Integer> getMapRelationsNodeForOneMap(int map_id) {\n\t\tResultSet resultSet = null;\n\t\tList<Integer> res = new ArrayList<Integer>();\n\t\ttry {\n\t\t\tString selectAllNodes = \"select distinct(newMap.id) from ((select node.id from maprelations,node \"\n\t\t\t\t\t+ \"where node.map_id = ? and maprelations.node_from=node.id) union \"\n\t\t\t\t\t+ \"(select node.id from maprelations,node where node.map_id = ? and \"\n\t\t\t\t\t+ \"maprelations.node_to =node.id)) as newMap;\";\n\t\t\tpstmt = conn.prepareStatement(selectAllNodes);\n\t\t\t// TODO: potential danger..\n\t\t\tpstmt.setInt(1, map_id);\n\t\t\tpstmt.setInt(2, map_id);\n\t\t\tresultSet = pstmt.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tres.add(resultSet.getInt(\"id\"));\n\t\t\t}\n\t\t\treturn res;\n\n\t\t} catch (SQLException se) {\n\t\t\tSystem.out.println(\"fail to connect database..\");\n\t\t\tse.printStackTrace();\n\t\t} finally {\n\t\t\tJdbcConnect.resultClose(resultSet, pstmt);\n\t\t\tJdbcConnect.connClose();\n\t\t}\n\t\treturn null;\n\t}", "public void discover(Node n) {}", "void addNi(int node, double weight) {\n this.neighbors.put(node, weight);\n }", "void setNode(String path, Node node)\n throws ProcessingException;", "Node(long id, String label) {\n this.id = id;\n this.label = label;\n\n inEdges = new HashMap<>();\n outEdges = new HashMap<>();\n }", "private void addToKmapAndPredMetadata(Collection<Node> nodes) {\n\t\tCollection<Edge> edges = Util.flatmap(Node::getEdges, nodes);\n\t\tUtil.map( translator::edgeToStatement, edges );\n\t}", "protected SearchNode<T> getOrAddSearchNode( Node<T> node ) {\n\t\tif ( node == null ) {\n\t\t\tthrow new IllegalArgumentException( \"Null node\" );\n\t\t}\n\t\tif ( ! searchNodes.containsKey( node.getNodeId() ) ) {\n\t\t\tsearchNodes.put( node.getNodeId(), node instanceof SearchNode ? (SearchNode)node : new SearchNode<>( node ) );\n\t\t}\n\t\treturn searchNodes.get( node.getNodeId() );\n\t}", "public void setNode_1(String node_1);", "public void searchNodeRequest(long idNode, Address address){\r\n\t\tArrayList<NodeAddress> node = routeTable.get(idNode);\r\n\t\tif ( node != null && node.size() != 0 ){\r\n\t\t\tmyCommunications.send(\r\n\t\t\t\t\tnew NodeAddress(0, address), \r\n\t\t\t\t\tnew FindNodeMessage( node ).toByteArray()\r\n\t\t\t);\r\n\t\t\r\n\t\t//Sending to Entity for broadcast\r\n\t\t}else{\r\n\t\t\tareaWrapper.sendtoEntity(new NodeAddress(0, address), new SearchNodeRequestMessage(idNode).toByteArray());\r\n\t\t}\r\n\t}", "Object visitMapOfObjects(MapOfObjectsNode node, Object state);", "public void nodeAdded(GraphEvent e);", "N getNode(int id);", "protected static Map<Integer, ArrayList<ASNode>> addNodeToTable(\n\t\t\tASNode node, Map<Integer, ArrayList<ASNode>> paths) {\n\t\tMap<Integer, ArrayList<ASNode>> map = new HashMap<Integer, ArrayList<ASNode>>();\n\t\tfor (int currentASnum : paths.keySet()) {\n\t\t\tArrayList<ASNode> list = new ArrayList<ASNode>();\n\t\t\tlist.addAll(paths.get(currentASnum));\n\t\t\tlist.add(0, node);\n\t\t\tmap.put(currentASnum, list);\n\t\t}\n\t\treturn map;\n\t}", "public ResultMap<BaseNode> queryRelatives(QName type, Direction direction, ObjectNode query);", "public Event setNode(String node) {\n this.node = node;\n return this;\n }", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "public void addNode(int key)\n{\n Node n1 = new Node(key);\n\t\n\tif(!getNodes().containsKey(n1.getKey())) \n\t{\n\tmc++;\n\tthis.getNodes().put(n1.getKey(),n1);\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"Node already in the graph\");\n\t}\n}", "@Override\n\tprotected void remapVariablesInThisExpression(Map<String, String> fromToVariableMap) {\n\t}", "private void NodeandMessage (String nodes, String Message) {\n\t\tNodeandnetwork.put(nodes, Message);\n\t}", "Mapper<T, T2> relate(Customizable customizable);", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "public void insNode(T node) {\n\t\tif(nodes.add(node)==true)\n\t\t\tarcs.put(node, new HashSet<T>());\n\t}", "@Override\n\tpublic void addNode(node_data n) {\n\t\tif (Nodes.keySet().contains(n.getKey())) {\n\t\t\tSystem.err.println(\"Err: key already exists, add fail\");\n\t\t\treturn;\n\t\t}\n\t\tif(n.getWeight()<=0)\n\t\t{\n\t\t\tSystem.err.println(\"The weight must be positive! . The node hadn't been added successfully..\");\n\t\t\treturn;\n\t\t}\n\t\tthis.Nodes.put(n.getKey(), n);//n used to be casted into (node)\n\t\tthis.Edges.put(n.getKey(), new HashMap<Integer,edge_data>());\n\t\tMC++;\n\n\t}", "@Override\n public Node getNode(int nodeId) {\n if (!graphCache.containsKey(nodeId)) {\n try (Transaction tx = graphDb.beginTx()) {\n storeNodeAndRelationships(getNodeById(nodeId));\n tx.success();\n }\n }\n return graphCache.get(nodeId);\n }", "public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }", "@Override\n public void addNode(node_data n) {\n this.modeCount += this.nodes.putIfAbsent(n.getKey(), n) == null ? 1 : 0; // if the node was already in the graph - it will simply do nothing, if it wasn't - it will add it to the graph and increment modeCount by 1\n }", "private NodePath<T> collectPathNodes( WeightedGraph<T> graph, Object startNodeId, Object endNodeId ) {\n\t\tArrayDeque<Node<T>> deque = new ArrayDeque<>( searchNodes.size() );\n\t\tNode<T> startNode = graph.getNode( startNodeId );\n\t\tNode<T> endNode = graph.getNode( endNodeId );\n\t\tSearchNode<T> node = getSearchNode( endNode );\n\n\t\t//\tkeep this before we flush the maps\n\t\tfinal int finalDistance = node.getDistance();\n\n\t\t//\twalk backwards through the \"previous\" links\n\t\tdo {\n\t\t\tdeque.push( node.getNode() );\n\t\t}\n\t\twhile ( (node = getSearchNode( node.getPrevious() )) != null && ! node.equals( startNode ) );\n\t\tdeque.push( startNode );\n\n\t\tclearSearchNodes();\n\t\treturn new NodePath<>( new ArrayList<>( deque ), finalDistance );\n\t}", "@PortedFrom(file = \"Taxonomy.h\", name = \"setVisited\")\n public void setVisited(TaxonomyVertex node) {\n node.setChecked(visitedLabel);\n }", "private GraphNode findGraphNode(T nodeId)\n {\n return nodeList.get(nodeId);\n }", "@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int runCount = context.getConfiguration().getInt(\"runCount\", 1);\n\n String page = key.toString();\n\n Node node = null;\n if (runCount == 1) {\n node = Node.formatNode(\"1.0\" , value.toString());\n } else {\n node = Node.formatNode(value.toString());\n }\n context.write(new Text(page), new Text(node.toString()));\n if(node.constainsAdjances()){\n double outValue = node.getPageRank() / node.getAdjacentNodeNames().length;\n\n for (String adjacentNodeName : node.getAdjacentNodeNames()) {\n// System.out.println(\"--------------------\"+ adjacentNodeName +\"------\" +outValue);\n\n context.write(new Text(adjacentNodeName),new Text(outValue + \"\"));\n }\n }\n }", "public N getInternalizedNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\t/*\n\t\t\t * This is using a slow method (array search) when it would be nice\n\t\t\t * to be able to get the reference from the Map. However, that would\n\t\t\t * require the use of Jakarta Common Collections and extending their\n\t\t\t * HashMap in order to do that... because it's normally impossible\n\t\t\t * to get a Key back out of a Map without iterating over the Entries\n\t\t\t * :/\n\t\t\t */\n\t\t\treturn nodeList.get(nodeList.indexOf(node));\n\t\t}\n\t\t// TODO Consider whether to return null or v... ?\n\t\treturn null;\n\t}", "public void setNode_2(String node_2);", "public void processNode(Node node, float delta);", "void visit(Object node, String command);", "private static <N> ImmutableMap<N, GraphConnections<N, GraphConstants.Presence>> getNodeConnections(Graph<N> paramGraph) {\n }", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void populateMap(Map map, Node node) {\n Map.Entry entry = getMapEntry(node);\n if (entry != null) {\n map.put(entry.getKey(), entry.getValue());\n }\n }", "public void setNodeId(String nodeId) {\r\n this.nodeId = nodeId;\r\n }", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "public MatrixTreeBuilder<E> put(MutableMatrixTreeNode<E> node) {\n\t\tnodeMap.put(node.getPathMatrix(), node);\n\t\treturn this;\n\t}", "public abstract Map<String, Node> next() throws TrippiException;", "public void add(QueryNode child);", "public void connect(Node node) throws RemoteException, UnknownHostException {\n map = new TreeMap();\n this.chord = node;\n this.nodeKey = node.getNodeKey();\n if (chord.getPredecessor() != null) {\n predKey = chord.getPredecessor().getNodeKey();\n }\n bind(this.nodeKey);\n window.setMapper(this);\n manager = new Thread(this);\n manager.start();\n }", "TaskNode getNode(Task task);", "private void link(DefaultDirectedGraph<FStream, IndexedEdge<FStream>> G, FStream node, FStream n) {\n\t\tif (!G.containsVertex(n)) {\n\t\t\tG.addVertex(n);\n\t\t}\n\t\t\n\t\tindex_counter += 1;\n\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(node, n, index_counter);\n\t\tG.addEdge(node, n, e);\n\t}" ]
[ "0.7041861", "0.5918594", "0.5877627", "0.5858592", "0.5516523", "0.5482112", "0.5465333", "0.5432997", "0.5398897", "0.53729296", "0.52654785", "0.5265007", "0.5264458", "0.52635634", "0.52480006", "0.5244841", "0.5236442", "0.5223196", "0.52207637", "0.5191788", "0.518183", "0.51811403", "0.51781857", "0.5154522", "0.5130775", "0.5103643", "0.51011884", "0.5064804", "0.5038995", "0.5021386", "0.50184643", "0.50122786", "0.50008595", "0.499511", "0.49923375", "0.49896145", "0.4950881", "0.49490583", "0.49379396", "0.49379396", "0.49363446", "0.49322277", "0.49264145", "0.49153632", "0.49127364", "0.48936385", "0.48773777", "0.48738325", "0.48643628", "0.48588622", "0.48578793", "0.48550388", "0.48515108", "0.48506898", "0.4833789", "0.48331416", "0.48314136", "0.48226863", "0.4820089", "0.47997677", "0.4796785", "0.4789683", "0.47825608", "0.4781546", "0.47801587", "0.4776539", "0.47682643", "0.47646582", "0.47559133", "0.4742767", "0.47425967", "0.47365716", "0.4736006", "0.4725477", "0.47192207", "0.47189403", "0.4714782", "0.471283", "0.4704225", "0.47023845", "0.46986362", "0.46947968", "0.4693264", "0.46887973", "0.46868634", "0.46842626", "0.46798307", "0.467205", "0.46691188", "0.46677", "0.46666136", "0.4665187", "0.46606326", "0.46535787", "0.46362564", "0.46362323", "0.46355885", "0.46287614", "0.46233124", "0.4617824" ]
0.8302815
0
Maps the passed query edge to the given edge in the graph
public abstract void map(Edge queryEdge, Edge graphEdge);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void map(Long queryNode, Long graphNode);", "<O> E getEdge(Function<E, O> map, O value);", "public abstract boolean hasMapped(Edge queryEdge);", "protected void processEdge(Edge e) {\n\t}", "E getEdge(int id);", "private void addEdge(int from, int to, Edge e) {\n _edges.get(from).set(to, e);\n _edgeMap.put(e, new int [] {from, to});\n }", "void updateEdgeData(EdgeGraph edge) {\n\t\tedge = PedSimCity.edgesMap.get(edge.getID()); //in case it was a subgraph edge\n\t\tif (UserParameters.empiricalABM) edge.densities.replace(agp.groupName, edge.densities.get(agp.groupName)+1);\n\t\telse edge.densities.replace(ap.routeChoice, edge.densities.get(ap.routeChoice)+1);\n\t}", "Graph<Integer, DefaultEdge> buildMap();", "private void constructMirrorEdge(Edge edge) {\n MirrorEdge mirrorEdge = new MirrorEdge();\n mirrorEdge.original = edge;\n mirrorEdge.source = edge.source();\n mirrorEdge.target = edge.target();\n directEdgeMap.put(edge, mirrorEdge);\n }", "protected void addEdge(IEdge edge) {\n\n if (edge != null) {\n\n this.ids.add(edge.getID());\n this.edgeMap.put(edge.getID(), edge);\n }\n }", "public void setEdge(IEdge<?> edge) {\n\t\tthis.edge = edge;\n\t}", "void addEdge(Edge e) {\n\t\t\tif(!_edges.containsKey(e.makeKey())) {\n\t\t\t\t_edges.put(e.makeKey(),e);\n\t\t\t\te._one.addNeighborEdge(e);\n\t\t\t\te._two.addNeighborEdge(e);\n\t\t\t}\n\t\t}", "private Edge getKernelEdge(Edge edge){\n\t\tif (edge.getGraph() != null && (edge.getGraph().isLhs() || edge.getGraph().isRhs())) {\n\t\t\tRule rule = edge.getGraph().getRule();\n\t\t\treturn rule.getMultiMappings().getOrigin(edge);\n\t\t}\n\t\treturn null;\n\t}", "public abstract boolean putEdge(Edge incomingEdge);", "void setBestIncoming(E edge);", "void add(Edge edge);", "void setEdgeLabel(int edge, String label);", "private SumoEdge getEdge(String id) {\n\t\treturn idToEdge.get(id);\n\t}", "VertexType getOtherVertexFromEdge( EdgeType r, VertexType oneVertex );", "public MirrorEdge getMirrorEdge(Edge edge) {\n assert (originalGraph.has(edge)) : \"The original edge passed as parameter in not contained in the original graph.\";\n return directEdgeMap.get(edge);\n }", "void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}", "private void handleEdgeProperty(final ODatabaseSession session, final Edge edge,\n final Field field, final Map<String, OClass> processed) {\n String edgeName = edge.name();\n if (isEmpty(edgeName)) {\n edgeName = capitalize(field.getName());\n }\n if (processed.containsKey(edgeName)) {\n return;\n }\n OClass oClass = session.getClass(edgeName);\n if (oClass != null) {\n processed.put(edgeName, oClass);\n } else {\n processed.put(edgeName, session.createEdgeClass(edgeName));\n }\n }", "public void addEdge(N startNode, N endNode, E label)\r\n/* 43: */ {\r\n/* 44: 89 */ assert (checkRep());\r\n/* 45: 90 */ if (!contains(startNode)) {\r\n/* 46: 90 */ addNode(startNode);\r\n/* 47: */ }\r\n/* 48: 91 */ if (!contains(endNode)) {\r\n/* 49: 91 */ addNode(endNode);\r\n/* 50: */ }\r\n/* 51: 92 */ ((Map)this.map.get(startNode)).put(endNode, label);\r\n/* 52: 93 */ ((Map)this.map.get(endNode)).put(startNode, label);\r\n/* 53: */ }", "public void addEdge(Edge edge){\n \n synchronized(vertexes){\n Long start = edge.getStart();\n Vertex sVertex = vertexes.get(start);\n if(sVertex != null){\n sVertex.addEdge(edge, true);\n }\n// if undirected graph then adds edge to the finish vertex too \n if(!edge.isDirected()){\n Long finish = edge.getFinish();\n Vertex fVertex = vertexes.get(finish);\n if(fVertex != null){\n fVertex.addEdge(edge, false);\n }\n }\n }\n \n }", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "EdgeNode(VertexNode correspondingVertex){\n setCorrespondingVertex(correspondingVertex);\n }", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "Edge getEdge();", "public Flow withEdges(Map<String, Edge> edges) {\n this.edges = edges;\n return this;\n }", "boolean addEdge(E edge);", "public void addEdge(Edge e) {\n incident.add(e);\n }", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "void setupEdge(EdgeGraph edge) {\n\n\t\tif (UserParameters.socialInteraction) updateCrowdness(edge);\n\t\tcurrentEdge = edge;\n\t\t//transform GeomPlanarGraphEdge in Linestring\n\t\tLineString line = edge.getLine();\n\t\t//index the Linestring\n\t\tsegment = new LengthIndexedLine(line);\n\t\tstartIndex = segment.getStartIndex();\n\t\tendIndex = segment.getEndIndex();\n\t\tlinkDirection = 1;\n\n\t\t// check to ensure that Agent is moving in the right direction (direction)\n\t\tdouble distanceToStart = line.getStartPoint().distance(agentLocation.geometry);\n\t\tdouble distanceToEnd = line.getEndPoint().distance(agentLocation.geometry);\n\n\t\tif (distanceToStart <= distanceToEnd) {\n\t\t\t// closer to start\n\t\t\tcurrentIndex = startIndex;\n\t\t\tlinkDirection = 1;\n\t\t}\n\t\telse if (distanceToEnd < distanceToStart) {\n\t\t\t// closer to end\n\t\t\tcurrentIndex = endIndex;\n\t\t\tlinkDirection = -1;\n\t\t}\n\n\t}", "void addEdge(int source, int destination, int weight);", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "public void addEdge(Integer id, UNode n1, UNode n2, String edge)\r\n {\r\n UEdge e = new UEdge(id, n1, n2, edge);\r\n n1.addOutEdge(e);\r\n n2.addInEdge(e);\r\n uEdges.put (id, e);\r\n }", "public void treeEdge(Edge e) {}", "@Override\n public void addEdge(E pEdge, TimeFrame tf) {\n \n // If The Edge ID is not initialized yet, initalialize it\n if (pEdge.getId() < 0) {\n int id = edgeIdGen.getNextAvailableID();\n pEdge.setId(id);\n mapAllEdges.add(id, pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() edge (id, mapAllEdges.size) = \" + id + \", \" + mapAllEdges.size());\n }\n // Adding to the adjacent list\n if (!darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getSource().getId()).get(tf).add(pEdge);\n //System.out.println(\"\\t\\t\\t\\t\\t\\t====***************** DynamicGraph.addEdge() ading to darrGlobalAdjList \");\n if(!pEdge.isDirected() &&\n !darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).contains(pEdge)) {\n darrGlobalAdjList.get(pEdge.getDestination().getId()).get(tf).add(pEdge);\n }\n }\n \n hmpGraphsAtTimeframes.get(tf).addEdge(pEdge);\n \n }", "void addEdgeTo(char v, int e) {\r\n\t\t// does an edge to v already exist?\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.vertex.label == v) {\r\n\t\t\t\tneighbor.edge = e;\r\n\t\t\t\tfindNeighbor(findVertex(v).inList, currentVertex.label).edge = e;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// add to current's inList\r\n\t\tNeighbor newNeighbor = new Neighbor(findVertex(v), e);\r\n\t\tcurrentVertex.outList.add(newNeighbor);\r\n\r\n\t\t// add to neighbor's outList\r\n\t\tNeighbor current = new Neighbor(currentVertex, e);\r\n\t\tnewNeighbor.vertex.inList.add(current);\r\n\r\n\t\tedges++;\r\n\t}", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "public void addEdge(Edge e)\r\n\t{\n\t\tint v = e.either(), w = e.other(v);\r\n\t\tadj[v].add(e);\r\n\t\tadj[w].add(e);\r\n\t}", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "public Edge<V> getEdge(V source, V target);", "@Override\n\t\tprotected void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tArrayList<MRVertex> vertices = verticesFromInputValue(value, context.getConfiguration());\n\t\t\tfor (MRVertex vertex : vertices) {\n\t\t\t\tcontext.write(new IntWritable(vertex.getId()), \n\t\t\t\t\t\t\t vertex.toWritable(MRVertex.EdgeFormat.EDGES_TO));\n\t\t\t\t\n\t\t\t\tMRVertex.AdjacencyIterator itTo = vertex.createToAdjacencyIterator();\n\t\t\t\tfor (int toId = itTo.begin(); !itTo.done(); toId = itTo.next()) {\n\t\t\t\t\tMREdge edge = new MREdge(vertex.getId(), toId);\n\t\t\t\t\tcontext.write(new IntWritable(toId), edge.toWritable());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void addEdge(DirectedEdge edge){\r\n\t\tmEdgeList.offer(edge);\r\n\t\t\r\n\t\tint src=edge.from();\r\n\t\tint dest = edge.to();\r\n\t\t\r\n\t\tmVisitStatus.put(src,false);\r\n\t\tmVisitStatus.put(dest,false);\r\n\t\t\r\n\t\tmVertexList.add(src);\r\n\t\tmVertexList.add(dest);\r\n\t\t\r\n\t\t/* Forward Edge */\r\n\t\tList<DirectedEdge> edgeList = adjList.get(src);\r\n\t\tif(edgeList==null)\r\n\t\t\tedgeList = new ArrayList<DirectedEdge>();\r\n\t\t\r\n\t\tedgeList.add(edge);\r\n\t\tadjList.put(src, edgeList);\r\n\t}", "private mxCell getEdge(Microtuble m){\n\t\tmxCell edge = null;\n\t\tfor (mxCell cell : graph.getEdgeToCellMap().values()){\n\t\t\tMicrotuble mt = (Microtuble) cell.getValue();\n\t\t\tif (mt.equals(m)){\n\t\t\t\tedge = cell;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn edge;\n\t}", "String getIdEdge();", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "public void addEdge(DirectedEdge e) \n {\n int v = e.from();\n adj[v].add(e);\n E++;\n }", "public void fillAdjacencyMap(ColEdge[] edges) {\n for (ColEdge edge : edges) {\n edgeMake(edge.u - 1, edge.v - 1);\n }\n\n }", "public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getOrigin());\n\t\t\tlist.add(e);\n\t\t\t\n\t\t\tif (!ret.containsKey(e.getDestination())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getDestination(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getDestination());\n\t\t\tlist.add(e);\n\t\t}\n\t\treturn ret;\n\t}", "public IEdge addEdge(String from, String to, Double cost);", "Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "public Edge<E, V> getUnderlyingEdge();", "public void addEdge(Node from, Node to);", "@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Newark\", edgesArray[0]);\n\t\tAssertions.assertEquals(\"New York\", edgesArray[1]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Philadelphia\", edgesArray[0]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Albany\", edgesArray[0]);\n\t}", "public T caseGraphicalEdge(GraphicalEdge object) {\n\t\treturn null;\n\t}", "public void addEdge(int start, int end, double weight);", "void addEdge(JNode edge) {\n List<JNode> newEdges = this.getEdges();\n newEdges.add(edge);\n this.setEdges(newEdges);\n }", "public void addEdge(edge_type edge) {\n //first make sure the from and to nodes exist within the graph\n assert (edge.getFrom() < nextNodeIndex) && (edge.getTo() < nextNodeIndex) :\n \"<SparseGraph::AddEdge>: invalid node index\";\n\n //make sure both nodes are active before adding the edge\n if ((nodeVector.get(edge.getTo()).getIndex() != invalid_node_index)\n && (nodeVector.get(edge.getFrom()).getIndex() != invalid_node_index)) {\n //add the edge, first making sure it is unique\n if (isEdgeNew(edge.getFrom(), edge.getTo())) {\n edgeListVector.get(edge.getFrom()).add(edge);\n }\n\n //if the graph is undirected we must add another connection in the opposite\n //direction\n if (!isDirectedGraph) {\n //check to make sure the edge is unique before adding\n if (isEdgeNew(edge.getTo(), edge.getFrom())) {\n GraphEdge reversedEdge = new GraphEdge(edge.getTo(),edge.getFrom(),edge.getCost());\n edgeListVector.get(edge.getTo()).add(reversedEdge);\n }\n }\n }\n }", "public void edgeMake(int vertex1, int vertex2) {\n addVertex(vertex1); // both vertices added to the set\n addVertex(vertex2);\n adjacencyMap.get(vertex1).add(vertex2); // both vertices receive the edge\n adjacencyMap.get(vertex2).add(vertex1);\n }", "public E getEdge(N startNode, N endNode)\r\n/* 90: */ {\r\n/* 91:166 */ assert (checkRep());\r\n/* 92:167 */ if ((contains(startNode)) && (((Map)this.map.get(startNode)).containsKey(endNode))) {\r\n/* 93:168 */ return ((Map)this.map.get(startNode)).get(endNode);\r\n/* 94: */ }\r\n/* 95:170 */ return null;\r\n/* 96: */ }", "void addEdge(int x, int y);", "public T caseEdge(Edge object) {\n\t\treturn null;\n\t}", "public static Multigraph smartAddEdge(Multigraph graph, Edge edge, boolean stopIfMissing) {\n\n if (!graph.containsVertex(edge.getSource())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing source node for edge \"+ edge);\n }\n graph.addVertex(edge.getSource());\n }\n if (!graph.containsVertex(edge.getDestination())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing destination node for edge \"+ edge);\n }\n graph.addVertex(edge.getDestination());\n }\n //That a good mapping edge, add to the related query\n graph.addEdge(edge.getSource(), edge.getDestination(), edge.getLabel());\n return graph;\n }", "Query invertQuery(Map<String, Object> input, Query targetQuery, GridGeometry gridGeometry) throws ProcessException;", "public Node(Edge edge) {\n this.edge = edge;\n }", "private void addEdge(int from, int to, int cost) {\r\n\t\tif (edges[from] == null)\r\n\t\t\tedges[from] = new HashMap<Integer, Integer>(INITIAL_MAP_SIZE);\r\n\t\tif (edges[from].put(to, cost) == null)\r\n\t\t\tnumEdges++;\r\n\t}", "public interface Edge\n extends Comparable\n{\n Vertex getV0 ();\n Vertex getV1 ();\n Object getWeight ();\n boolean isDirected ();\n Vertex getMate (Vertex vertex);\n}", "public void followEdge(int e) {\r\n\t\tfor (int i = 0; i < currentVertex.outList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.outList.get(i);\r\n\t\t\tif (neighbor.edge == e) {\r\n\t\t\t\tcurrentVertex = neighbor.vertex;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Edge to \" + e + \" not exist.\");\r\n\t}", "public edge_data getEdge(int nodeKey) {\n return this.neighborEdges.get(nodeKey);\n }", "public void addEdge(String inLabel, double inDistance, String inMode,\n int inTime, int inPeakTime, DSAGraphNode<E> inNode)\n {\n links.insertLast(inNode);\n DSAGraphEdge<E> edge = new DSAGraphEdge<E>(inLabel, inDistance, inMode,\n inTime, inPeakTime, this,\n inNode);\n edgeList.insertLast(edge);\n }", "public void addEdge(Edge e) {\n int v = e.either();\n int w = e.other(v);\n adj[v].add(e);\n adj[w].add(e);\n E++;\n }", "public void editEdge(){\n\t}", "public MyGraph(Collection<Vertex> v, Collection<Edge> e) {\n myGraph = new HashMap<Vertex, Collection<Edge>>();\n \n Iterator<Vertex> vertices = v.iterator();\n while(vertices.hasNext()) {\n //create a new vertex copy of each passes in vertex in Collection v to restrict any reference\n //to the internals of this class\n Vertex currV = new Vertex(vertices.next().getLabel()); //NEW\n //Vertex currV = vertices.next(); OLD\n if(!myGraph.containsKey(currV)){\n //add the copy of the vertex into the HashMap\n myGraph.put(currV, new ArrayList<Edge>());\n }\n }\n\n Iterator<Edge> edges = e.iterator();\n while(edges.hasNext()){\n //copies a new edge for each edge in Collection e to restrict any reference \n //to the internals of this class\n Edge parameterEdge = edges.next();\n Edge currE = new Edge(parameterEdge.getSource(), parameterEdge.getDestination(), parameterEdge.getWeight()); //NEW\n //Edge currE = edges.next(); OLD\n if(currE.getWeight() < 0){\n throw new IllegalArgumentException(\"Edge weight is negative\");\n }\n Vertex currESrc = currE.getSource();\n Vertex currEDest = currE.getDestination();\n if(v.contains(currESrc) && v.contains(currEDest)){\n Collection<Edge> outEdges = myGraph.get(currESrc);\n if(!outEdges.contains(currE)){\n //add the copy of the edge as a value in the HashMap\n outEdges.add(currE);\n }\n } else {\n throw new IllegalArgumentException(\"Vertex in edge is not valid\");\n }\n }\n }", "public Map<T, Path> edgesFrom(T node) {\n\t\tif (node == null) {\n\t\t\tthrow new NullPointerException(\"The node should not be null.\");\n\t\t}\n\t\tMap<T, Path> edges = graph.get(node);\n\t\tif (edges == null) {\n\t\t\tthrow new NoSuchElementException(\"Source node does not exist.\");\n\t\t}\n\t\treturn Collections.unmodifiableMap(edges);\n\t}", "public void addEdge(DrawView edge){\n drawnEdges.add(edge);\n }", "public void addEdgeFrom(char v, int e) {\r\n\t\t// does an edge from v already exist?\r\n\t\tfor (int i = 0; i < currentVertex.inList.size(); i++) {\r\n\t\t\tNeighbor neighbor = currentVertex.inList.get(i);\r\n\t\t\tif (currentVertex.inList.get(i).vertex.label == v) {\r\n\t\t\t\tneighbor.edge = e; \r\n\t\t\t\tfindNeighbor(findVertex(v).outList, currentVertex.label).edge = e;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// add to current's inList\r\n\t\tNeighbor newNeighbor = new Neighbor(findVertex(v), e);\r\n\t\tcurrentVertex.inList.add(newNeighbor);\r\n\r\n\t\t// add to neighbor's outList\r\n\t\tNeighbor current = new Neighbor(currentVertex, e);\r\n\t\tnewNeighbor.vertex.outList.add(current);\r\n\r\n\t\tedges++;\r\n\t}", "void remove(Edge edge);", "void buildRoad(EdgeLocation edge, boolean free);", "@Test\n\tvoid testAddEdge() {\n\t\tgeo_location ge = new GeoLoc(0,1,2);\n\t\tnode_data n0 =new NodeData(0,ge);\n\t\tgeo_location ge1 = new GeoLoc(0,6,2);\n\t\tnode_data n1 =new NodeData(2,ge1);\n\t\tgraph.addNode(n0);\n\t\tgraph.addNode(n1);\n\t\tedge_data e = new EdgeData(0, 2, 20);\n\t\tgraph.connect(0, 2, 20);\n\t\tedge_data actual = graph.getEdge(0, 2);\n\t\tedge_data expected = e;\n\t\tassertEquals(expected.getSrc(), actual.getSrc());\n\t\tassertEquals(expected.getDest(), actual.getDest());\n\t\tassertEquals(expected.getWeight(), actual.getWeight());\n\t}", "public abstract String edgeToStringWithTraceId(int nodeSrc, int nodeDst, int traceId, Set<String> relations);", "Edge createEdge(Vertex src, Vertex tgt, boolean directed);", "protected void addHyperEdge(IHyperEdge hyperedge) {\n\n if (hyperedge != null) {\n\n this.ids.add(hyperedge.getID());\n this.hyperEdgeMap.put(hyperedge.getID(), hyperedge);\n }\n }", "@Override\n\tpublic void addEdge(Location src, Location dest, Path edge) {\n\t\tint i = locations.indexOf(src);\n\t\tpaths.get(locations.indexOf(src)).add(edge);\n\t}", "public static strictfp void main(String... args) {\n\t\tArrayList<Vertex> graph = new ArrayList<>();\r\n\t\tHashMap<Character, Vertex> map = new HashMap<>();\r\n\t\t// add vertices\r\n\t\tfor (char c = 'a'; c <= 'i'; c++) {\r\n\t\t\tVertex v = new Vertex(c);\r\n\t\t\tgraph.add(v);\r\n\t\t\tmap.put(c, v);\r\n\t\t}\r\n\t\t// add edges\r\n\t\tfor (Vertex v: graph) {\r\n\t\t\tif (v.getNodeId() == 'a') {\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t} else if (v.getNodeId() == 'b') {\r\n\t\t\t\tv.getAdjacents().add(map.get('a'));\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t} else if (v.getNodeId() == 'c') {\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'd') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('e'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t} else if (v.getNodeId() == 'e') {\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t} else if (v.getNodeId() == 'f') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('e'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t} else if (v.getNodeId() == 'g') {\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'h') {\r\n\t\t\t\tv.getAdjacents().add(map.get('a'));\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'i') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t// graph created\r\n\t\t// create disjoint sets\r\n\t\tDisjointSet S = null, V_S = null;\r\n\t\tfor (Vertex v: graph) {\r\n\t\t\tchar c = v.getNodeId();\r\n\t\t\tif (c == 'a' || c == 'b' || c == 'd' || c == 'e') {\r\n\t\t\t\tif (S == null) {\r\n\t\t\t\t\tS = v.getDisjointSet();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tDisjointSet set = DisjointSet.union(S, v.getDisjointSet());\r\n\t\t\t\t\tv.setDisjointSet(set);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (V_S == null) {\r\n\t\t\t\t\tV_S = v.getDisjointSet();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tDisjointSet set = DisjointSet.union(V_S, v.getDisjointSet());\r\n\t\t\t\t\tv.setDisjointSet(set);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Disjoint sets created\r\n\t\tfor (Vertex u: graph) {\r\n\t\t\tfor (Vertex v: u.getAdjacents()) {\r\n\t\t\t\tif (DisjointSet.findSet((DisjointSet) u.getDisjointSet()) == \r\n\t\t\t\t DisjointSet.findSet((DisjointSet) v.getDisjointSet())) {\r\n\t\t\t\t\tSystem.out.println(\"The cut respects (\" + u.getNodeId() + \", \" + v.getNodeId() + \").\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void attachEdgeTargetAnchor(String edge, String oldTargetPin, String targetPin) {\n ((ConnectionWidget) findWidget(edge)).setTargetAnchor(getPinAnchor(targetPin));\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index);", "@Override\n\tpublic void edge() {\n\t\tsuper.edge();\n\t\t\n\t\tIterator<Instruction> iterator = instructions_n.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tInstruction instruction = iterator.next();\n\t\t\tinstructionRegister.add(instruction);\n\t\t}\n\t\t\n\t\tinstructions_n.clear();\n\t}", "private void buildIndex(Collection<Edge> edges) {\n\t\tfor (Edge e : edges) {\r\n\t\t\tList<Integer> ids = getCells(e);\r\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\r\n\t\t\t\tList<Edge> list = dict.get(ids.get(j));\r\n\t\t\t\tif (list == null) {\r\n\t\t\t\t\tlist = new ArrayList<Edge>();\r\n\t\t\t\t\tdict.put(ids.get(j), list);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addEdge(int start, int end);", "public void insert(Edge edge){\n edges[edge.getSource()].add(edge);\n if (isDirected()){\n edges[edge.getDest()].add(new Edge(edge.getDest(), edge.getSource(),edge.getWeight()));\n }\n }", "public Map<String, String> getEdge() {\n\t\tif (edge == null) {\n\t\t\tsetEdge(new HashMap<String, String>());\n\t\t}\n\t\treturn edge;\n\t}", "public void addEdge( EdgeIntf edge ) throws Exception {\r\n DirectedEdge dEdge = ( DirectedEdge ) edge;\r\n Vertex fromVertex = dEdge.getSource();\r\n Vertex toVertex = dEdge.getSink();\r\n\r\n if( !isPath( toVertex, fromVertex ))\r\n super.addEdge( dEdge );\r\n else\r\n throw new CycleException();\r\n }", "void orderEdges(Comparator<E> comparator);", "public void addEdge(StubEdge e) {\n }", "@Override\n protected void encounterVertex(V vertex, E edge) {\n // calculate hops\n calculateHops(vertex, edge);\n\n // call parent iterator\n super.encounterVertex(vertex, edge);\n }", "public void addVirtualEdge(E e){\n\t\tedges.add(e);\n\t\tvirtualEdges.add(e);\n\t}", "public void edgeHeadChanged(GraphEvent e);" ]
[ "0.6873998", "0.6383922", "0.59521", "0.59038013", "0.5873913", "0.58702445", "0.58223426", "0.5778073", "0.57592005", "0.56805205", "0.56625116", "0.5639773", "0.5630779", "0.56221235", "0.5612076", "0.5581531", "0.5578039", "0.55729884", "0.5547589", "0.55352336", "0.5485434", "0.5440674", "0.5440624", "0.5408338", "0.5386896", "0.53654784", "0.5357827", "0.53002495", "0.5295062", "0.52870697", "0.5279454", "0.52766204", "0.5269079", "0.52428734", "0.5222698", "0.5185348", "0.5165278", "0.51609516", "0.5160194", "0.51408935", "0.5129571", "0.51218647", "0.5119233", "0.5088314", "0.5087047", "0.50832146", "0.5077849", "0.50762266", "0.50592804", "0.50585383", "0.5049103", "0.5044305", "0.50440365", "0.5041833", "0.5036749", "0.5034111", "0.5033091", "0.50196254", "0.50124854", "0.50110996", "0.5007987", "0.50066787", "0.5005097", "0.50050026", "0.50020504", "0.49866298", "0.4984328", "0.49744526", "0.49734706", "0.49711013", "0.49650684", "0.49623665", "0.49350327", "0.49339077", "0.48973835", "0.48943505", "0.48937577", "0.48769757", "0.48544177", "0.48397782", "0.48333943", "0.48225304", "0.4820492", "0.48195705", "0.48186883", "0.48186058", "0.48185444", "0.48122194", "0.48117107", "0.4810947", "0.4807016", "0.48051086", "0.4804127", "0.48009655", "0.48008177", "0.47971055", "0.47952226", "0.4792292", "0.47862574", "0.47846726" ]
0.851322
0
check whether the queryNode has already been mapped to a Graph Node
public abstract boolean hasMapped(Long queryNode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasMapped(Edge queryEdge);", "public abstract boolean isUsing(Long graphNode);", "boolean hasNodeId();", "private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "@Override\n\tpublic boolean containsNode(Object node)\n\t{\n\t\t// This is presumably faster than searching through nodeList\n\t\treturn nodeEdgeMap.containsKey(node);\n\t}", "boolean hasNode();", "boolean hasNode();", "boolean hasHasNodeID();", "public abstract void map(Long queryNode, Long graphNode);", "boolean hasIsNodeOf();", "public boolean isMapped(Identity identity) {\n\t\treturn nodeMap.containsKey(identity);\n\t}", "@Override\n public boolean containsNodeFor(E item) {\n if(item == null){\n throw new NullPointerException(\"Received null as value.\");\n }\n return graphNodes.containsKey(item);\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "boolean usedByNode(Long id);", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "boolean check(Long nodeID, int qID, GraphDatabaseService databaseService) {\n\n vertexClass vc = queryGraphNodes.get(qID);\n try(Transaction tx = databaseService.beginTx()) {\n for(int edge: vc.edges.keySet()) {\n\n boolean relExist = false;\n if(solution.containsKey(edge)) {\n // j<i condition confirmed\n Node edgeNode, otherNode;\n\n edgeNode = databaseService.getNodeById(solution.get(edge));\n otherNode = databaseService.getNodeById(nodeID);\n\n Iterable<Relationship> relationships = edgeNode.getRelationships(Direction.BOTH);\n\n Iterator <Relationship>iter = relationships.iterator();\n while (iter.hasNext()) {\n Relationship rel = iter.next();\n if(rel.getOtherNode(edgeNode).equals(otherNode))\n relExist = true;\n }\n if(!relExist)\n return false;\n }\n\n }\n tx.success();\n\n }\n\n\n return true;\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "public boolean isSetGraph_addr() {\n return this.graph_addr != null;\n }", "private static boolean putInHashMap(Node head) {\r\n\t\tboolean hasloop = false;\r\n\t\tHashSet<Node> nodeSet = new HashSet();\r\n\t\twhile (head != null) {\r\n\t\t\tif (nodeSet.contains(head)) {\r\n\t\t\t\thasloop = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnodeSet.add(head);\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\r\n\t\treturn hasloop;\r\n\t}", "boolean hasFeedMapping();", "boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}", "protected boolean hasNode(int ID) {\n\t\treturn nodes.containsKey(ID);\n\t}", "public boolean hasNode(Node p_node) {\n\t\treturn nodes.contains(p_node);\n\t}", "public boolean provideGraphInfo() { return node_size == NodeSize.GRAPHINFO; }", "public boolean contains(N node)\r\n/* 56: */ {\r\n/* 57:105 */ assert (checkRep());\r\n/* 58:106 */ return this.map.containsKey(node);\r\n/* 59: */ }", "private static boolean containsAndNotNull(final Map<String, Integer> map, final String node) {\n return map.containsKey(node) && map.get(node) != null;\n }", "public boolean contains(Node n) {\n\t\t\n\t\t//Validate n has a value\n\t\tif (n == null) { \n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//Node not present in hashmap\n\t\tif (!nodes.contains(n)) {\n\t\t\treturn false; \n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public static QueryIterator testForGraphName(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n NodeId nid = TDBInternal.getNodeId(ds, graphNode) ;\n boolean exists = !NodeId.isDoesNotExist(nid) ;\n if ( exists ) {\n // Node exists but is it used in the quad position?\n NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;\n // Don't worry about abortable - this iterator should be fast\n // (with normal indexing - at least one G???).\n // Either it finds a starting point, or it doesn't. We are only \n // interested in the first .hasNext.\n Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n exists = iter1.hasNext() ;\n }\n\n if ( exists )\n return input ;\n else {\n input.close() ;\n return QueryIterNullIterator.create(execCxt) ;\n }\n }", "boolean hasTreeNodeId();", "public boolean augmentedPath(){\n QueueMaxHeap<GraphNode> queue = new QueueMaxHeap<>();\n graphNode[0].visited = true;//this is so nodes are not chosen again\n queue.add(graphNode[0]);\n boolean check = false;\n while(!queue.isEmpty()){//goes through and grabs each node and visits that nodes successors, will stop when reaches T or no flow left in system from S to T\n GraphNode node = queue.get();\n for(int i = 0; i < node.succ.size(); i++){//this will get all the nodes successors\n GraphNode.EdgeInfo info = node.succ.get(i);\n int id = info.to;\n if(!graphNode[id].visited && graph.flow[info.from][info.to][1] != 0){//this part just make sure it hasn't been visited and that it still has flow\n graphNode[id].visited = true;\n graphNode[id].parent = info.from;\n queue.add(graphNode[id]);\n if(id == t){//breaks here because it has found the last node\n check = true;\n setNodesToUnvisited();\n break;\n }\n }\n }\n if(check){\n break;\n }\n }\n return queue.isEmpty();\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "abstract protected boolean shouldRegister(NodeDescriptor node) throws NodeException;", "@Override\r\n\t\tpublic boolean isSameNode(Node other)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }", "@Override\n public void visit(QueryExpression.Function.Exists exists) {\n visit(exists.getQuery());\n }", "boolean hasQueryId();", "boolean hasQueryId();", "public boolean contains(Node node) {\n if (edge.contains(node)) {\n return true;\n }\n Node pNode = edge.getEdgeVariable();\n if (pNode == null) {\n return false;\n }\n return pNode == node;\n }", "public boolean isNodePresent(int nd) {\n if ((nd >= (int) nodeVector.size() || (nodeVector.get(nd).getIndex() == invalid_node_index))) {\n return false;\n } else {\n return true;\n }\n }", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "public boolean containsNode(Node n);", "boolean hasQuery();", "public boolean addNode(GraphNode node){\n if(!graphNodes.contains(node)){\n graphNodes.add(node);\n return true;\n }\n return false;\n }", "public boolean hasNi(int nodeKey) {\n return this.neighborEdges.get(nodeKey) != null ? true : false;\n }", "public boolean isConnectedTo(Node<A> n) {\n\t\t\n\t\tif (g == null) return false;\n\t\t\n\t\tif (g.contains(n)){\n\t\t\t\n\t\t\tfor (Object o: g.getEdges()) {\n\t\t\t\t\n\t\t\t\tif (((Edge<?>)o).getFrom().equals(this) && ((Edge<?>)o).getTo().equals(n)) {\n\t\t\t\t\treturn true;\n\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}", "boolean hasHasNodeSettings();", "boolean hasRoute(Node to);", "public abstract boolean isUsing(Edge graphEdge);", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "public boolean fetchNode(QueryInterface query) throws Exception {\n\t\tlong change = ChangeMap.getChange((int) endFromSvnRev);\n\n\t\tChangeAction node = query.findLastAction(fromPath, change);\n\t\tif (node != null && node.getAction() != Action.REMOVE) {\n\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tString md5 = node.getMd5();\n\t\t\t\tlogger.debug(\"\\tmerge source: Node: \" + node.toString());\n\t\t\t\tlogger.debug(\"\\tmerge source: MD5: \" + md5);\n\t\t\t}\n\n\t\t\tfromNode = node;\n\t\t\tfromNode.setStartChange(startFromSvnRev);\n\t\t\treturn true;\n\t\t}\n\t\tfromNode = node;\n\t\treturn false;\n\t}", "boolean hasIsVertexOf();", "boolean hasQueryAddress();", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "public boolean exists(int nodeID){\n\t\treturn exists(new ListNode(nodeID));\n\t}", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean addNode(T node) {\n\t\tif (node == null) {\n\t\t\tthrow new NullPointerException(\"The input node cannot be null.\");\n\t\t}\n\t\tif (graph.containsKey(node))\n\t\t\treturn false;\n\n\t\tgraph.put(node, new HashMap<T, Path>());\n\t\treturn true;\n\t}", "public boolean containsContextNodes();", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "@Override\n public boolean contains(V vertex)\n {\n if (vertex.equals(null)){\n throw new IllegalArgumentException();\n }\n return graph.containsKey(vertex);\n }", "private boolean edgeExists() {\n for (int i = 1; i < parentMatrix[randomChild][0]; i++) {\n if (parentMatrix[randomChild][i] == randomParent) {\n return true;\n }\n }\n return false;\n }", "boolean hasIsCentralNode();", "@Override\r\n public boolean equals(Object o) {\r\n GraphNode n = (GraphNode) o;\r\n if (n != null && n.getX() == getX() && n.getY() == getY())\r\n return true;\r\n return false;\r\n }", "@Override\n\tpublic boolean contains(K key) {\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(!isEmpty()){\n\t\t\twhile(currentNode.key != key){\n\t\t\t\tif(currentNode.getNextNode() == null){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isPathExists(T srcId, T destId) {\n\t\tif (nodeList.isEmpty()) {\n\t\t\tSystem.out.println(\"Empty graph\");\n\t\t\treturn false;\n\t\t}\n\t\tLinkedList<QueueNode> queue = new LinkedList<>();\n\t\tHashMap<T, Integer> visited = new HashMap<>();\n\t\tGraphNode srcNode = null;\n\t\t// find source id\n\t\tfor (int i = 0; i < nodeList.size(); i++) {\n\t\t\tif (nodeList.get(i).nodeId == srcId) {\n\t\t\t\tsrcNode = nodeList.get(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (srcNode == null) {\n\t\t\tSystem.out.println(\"Source vertex not found\");\n\t\t\treturn false;\n\t\t}\n\t\tboolean destNodeFound = false;\n\t\tint maxLevelVisited = -1;\n\t\tqueue.add(new QueueNode(srcNode, 0));\n\t\tvisited.put(srcNode.nodeId, 1);\n\n\t\twhile (!queue.isEmpty()) {\n\t\t\tQueueNode currentNode = queue.remove();\n\t\t\tif (currentNode.level > maxLevelVisited) {\n\t\t\t\tSystem.out.print(\"\\nlevel \" + currentNode.level + \"-\");\n\t\t\t\tmaxLevelVisited = currentNode.level;\n\t\t\t}\n\t\t\tSystem.out.print(currentNode.graphNode.nodeId + \" \");\n\t\t\tif (currentNode.graphNode.nodeId == destId) {\n\t\t\t\tdestNodeFound = true;\n\t\t\t}\n\t\t\tGraphNode neighbor = currentNode.graphNode.next;\n\t\t\twhile (neighbor != null) {\n\t\t\t\tif (visited.get(neighbor.nodeId) == null) {\n\t\t\t\t\tvisited.put(neighbor.nodeId, 1);\n\t\t\t\t\tqueue.add(new QueueNode(findGraphNode(neighbor.nodeId),\n\t\t\t\t\t\t\tcurrentNode.level + 1));\n\t\t\t\t}\n\t\t\t\tneighbor = neighbor.next;\n\t\t\t}\n\t\t}\n\t\treturn destNodeFound;\n\t}", "protected boolean uniqueNodesUnderOps(Expression root, Fragment op) {\n Set<Expression> visited = new HashSet<>();\n return uniqueNodesUnderOps(root, op, visited);\n }", "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n while(!queue.isEmpty()) {\n GraphNode current = queue.poll();\n if (current == destination) {\n return true;\n }\n else {\n for (GraphEdge e : current.to) {\n queue.offer(e.to);\n }\n }\n }\n return false;\n }", "@Override\n\tpublic boolean containsVertex(Object value) \n\t{\n\t\treturn (this.map.containsKey(value));\n\t}", "private boolean addIfUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) return true;\n path.add(n);\n if (visited.contains(n)) return nodes.containsKey(n);\n visited.add(n);\n boolean useful = false;\n if (nodes.containsKey(n)) {\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n useful = true;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return true;\n }\n if (n.addedEdges != null) {\n if (TRACE_INTER) out.println(\"Useful because of added edge: \"+n);\n useful = true;\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator i = n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n //jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (addIfUseful(visited, path, (Node)o)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+o);\n useful = true;\n } else {\n if (n != o) i.remove();\n }\n } else {\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node n2 = (Node)j.next();\n if (addIfUseful(visited, path, n2)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+n2);\n useful = true;\n } else {\n if (n != n2) j.remove();\n }\n }\n if (!useful) i.remove();\n }\n }\n }\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n // Call \"addIfUseful()\" on all successor checkcast nodes, and set the \"useful\" flag if the call returns true.\n if (n == goestocast && addIfUseful(visited, path, castsucc))\n useful = true;\n }\n }\n if (n instanceof ReturnedNode) {\n if (TRACE_INTER && !useful) out.println(\"Useful because ReturnedNode: \"+n);\n useful = true;\n }\n if (n.predecessors != null) {\n useful = true;\n if (TRACE_INTER && !useful) out.println(\"Useful because target of added edge: \"+n);\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (useful) {\n this.nodes.put(n, n);\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode)n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n if (n instanceof CheckCastNode) {\n // If the \"useful\" flag is true and the node is a checkcast node,\n // call \"addAsUseful()\" on all predecessors.\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n }\n if (TRACE_INTER && !useful) out.println(\"Not useful: \"+n);\n path.remove(n);\n return useful;\n }", "boolean hasQueryMessage();", "private static void checkNode(Node node){\n if(node != null){\n if(node.getSnames() == null || node.getSnames().isEmpty()){\n if(node.getName() != null){\n node.addSearchName(node.getName());\n }\n }\n }\n }", "@Test\n public void shouldUpdateDependentIfNodeAlreadyPresent() {\n String dependent = \"P1\";\n ValueStreamMap graph = new ValueStreamMap(dependent, null);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d1\", \"d1\"), null, dependent);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d2\", \"d2\"), null, dependent);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d1\");\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d2\");\n\n VSMTestHelper.assertThatNodeHasChildren(graph, \"d3\", 0, \"d1\", \"d2\");\n }", "boolean hasTreeNodeIdForVariantMatrix();", "boolean bind(Mapping map) {\n if (!isEdge()) {\n return false;\n }\n\n for (int i = 0; i < nbNode(); i++) {\n Node node = getNode(i);\n if (node.isVariable() && map.getNode(node) != null) {\n return true;\n }\n }\n\n return false;\n }", "boolean hasNodeCharacteristicId();", "boolean hasNodeCharacteristicId();", "private boolean hasCycle() {\n\t\tNode n = head;\n\t\tSet<Node> nodeSeen = new HashSet<>();\n\t\twhile (nodeSeen != null) {\n\t\t\tif (nodeSeen.contains(n)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tnodeSeen.add(n);\n\t\t\t}\n\t\t\tn = n.next;\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean containsVertex(String node) {\n\t\treturn adj_list.containsKey(node);\n\t}" ]
[ "0.71138865", "0.6846022", "0.6513263", "0.63959014", "0.62162155", "0.6199888", "0.6193555", "0.61475813", "0.61475813", "0.6114424", "0.6101071", "0.5977315", "0.5976937", "0.5963834", "0.59460104", "0.59460104", "0.59399366", "0.5930328", "0.59152246", "0.5890928", "0.5846986", "0.5824624", "0.58158374", "0.58158374", "0.5811794", "0.5784674", "0.57681346", "0.57513154", "0.57242745", "0.56925", "0.56363773", "0.5633804", "0.5588882", "0.5571409", "0.55529153", "0.55481654", "0.55322856", "0.550793", "0.5505827", "0.55015707", "0.5482503", "0.5471038", "0.54507655", "0.54501534", "0.54429966", "0.54429966", "0.5441898", "0.5441247", "0.54348963", "0.5427776", "0.54112333", "0.5408067", "0.5404292", "0.5403514", "0.53972447", "0.5389241", "0.5383346", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.5373667", "0.53583914", "0.5344631", "0.5341598", "0.5334914", "0.5326811", "0.53167135", "0.53070897", "0.52975756", "0.52861947", "0.5284205", "0.52767456", "0.5273974", "0.5272029", "0.52677935", "0.52665913", "0.5266314", "0.52624804", "0.52590597", "0.52585286", "0.5254901", "0.52498907", "0.5243494", "0.52376395", "0.5231365", "0.5230274", "0.5230005", "0.5230005", "0.5223746", "0.52190137", "0.5214246" ]
0.74810344
0
check whether the graphNode has already been mapped to a queryNpde
public abstract boolean isUsing(Long graphNode);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasMapped(Long queryNode);", "public abstract boolean hasMapped(Edge queryEdge);", "private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}", "boolean hasNodeId();", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "boolean hasFeedMapping();", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean check(Long nodeID, int qID, GraphDatabaseService databaseService) {\n\n vertexClass vc = queryGraphNodes.get(qID);\n try(Transaction tx = databaseService.beginTx()) {\n for(int edge: vc.edges.keySet()) {\n\n boolean relExist = false;\n if(solution.containsKey(edge)) {\n // j<i condition confirmed\n Node edgeNode, otherNode;\n\n edgeNode = databaseService.getNodeById(solution.get(edge));\n otherNode = databaseService.getNodeById(nodeID);\n\n Iterable<Relationship> relationships = edgeNode.getRelationships(Direction.BOTH);\n\n Iterator <Relationship>iter = relationships.iterator();\n while (iter.hasNext()) {\n Relationship rel = iter.next();\n if(rel.getOtherNode(edgeNode).equals(otherNode))\n relExist = true;\n }\n if(!relExist)\n return false;\n }\n\n }\n tx.success();\n\n }\n\n\n return true;\n }", "boolean hasQuery();", "public boolean contains(N node)\r\n/* 56: */ {\r\n/* 57:105 */ assert (checkRep());\r\n/* 58:106 */ return this.map.containsKey(node);\r\n/* 59: */ }", "public abstract void map(Long queryNode, Long graphNode);", "private static boolean containsAndNotNull(final Map<String, Integer> map, final String node) {\n return map.containsKey(node) && map.get(node) != null;\n }", "boolean hasHasNodeID();", "boolean hasQueryId();", "boolean hasQueryId();", "boolean hasQueryAddress();", "public boolean isSetGraph_addr() {\n return this.graph_addr != null;\n }", "public boolean isMapped(Identity identity) {\n\t\treturn nodeMap.containsKey(identity);\n\t}", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "boolean hasNode();", "boolean hasNode();", "@Override\n\tpublic boolean containsNode(Object node)\n\t{\n\t\t// This is presumably faster than searching through nodeList\n\t\treturn nodeEdgeMap.containsKey(node);\n\t}", "boolean hasQueryMessage();", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "public boolean contains(Node n) {\n\t\t\n\t\t//Validate n has a value\n\t\tif (n == null) { \n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//Node not present in hashmap\n\t\tif (!nodes.contains(n)) {\n\t\t\treturn false; \n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "@Override\n public void visit(QueryExpression.Function.Exists exists) {\n visit(exists.getQuery());\n }", "boolean hasQueryZone();", "@Override\n public boolean containsNodeFor(E item) {\n if(item == null){\n throw new NullPointerException(\"Received null as value.\");\n }\n return graphNodes.containsKey(item);\n }", "boolean hasIsNodeOf();", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "private boolean hasMapping(Identifier pid) throws DataAccessException {\n\n boolean mapped = false;\n int countReturned = 0;\n\n if (pid.getValue() == null) {\n throw new DataAccessException(new Exception(\"The given identifier was null\"));\n }\n\n // query the identifier table\n String sqlStatement = \"SELECT guid FROM \" + IDENTIFIER_TABLE + \"where guid = ?\";\n\n countReturned = this.jdbcTemplate\n .queryForInt(sqlStatement, new Object[] { pid.getValue() });\n\n if (countReturned > 0) {\n mapped = true;\n }\n\n return mapped;\n }", "public boolean isNodePresent(int nd) {\n if ((nd >= (int) nodeVector.size() || (nodeVector.get(nd).getIndex() == invalid_node_index))) {\n return false;\n } else {\n return true;\n }\n }", "boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}", "boolean hasIsVertexOf();", "public boolean hasNode(Node p_node) {\n\t\treturn nodes.contains(p_node);\n\t}", "boolean bind(Mapping map) {\n if (!isEdge()) {\n return false;\n }\n\n for (int i = 0; i < nbNode(); i++) {\n Node node = getNode(i);\n if (node.isVariable() && map.getNode(node) != null) {\n return true;\n }\n }\n\n return false;\n }", "boolean hasTreeNodeId();", "public boolean hasNi(int nodeKey) {\n return this.neighborEdges.get(nodeKey) != null ? true : false;\n }", "boolean usedByNode(Long id);", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "@java.lang.Override\n public boolean hasNode() {\n return node_ != null;\n }", "protected boolean isQueryAvailable() {\n return query != null;\n }", "private static boolean putInHashMap(Node head) {\r\n\t\tboolean hasloop = false;\r\n\t\tHashSet<Node> nodeSet = new HashSet();\r\n\t\twhile (head != null) {\r\n\t\t\tif (nodeSet.contains(head)) {\r\n\t\t\t\thasloop = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tnodeSet.add(head);\r\n\t\t\thead = head.next;\r\n\t\t}\r\n\r\n\t\treturn hasloop;\r\n\t}", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "@Test\n public void mapContains() {\n check(MAPCONT);\n query(MAPCONT.args(MAPNEW.args(), 1), false);\n query(MAPCONT.args(MAPENTRY.args(1, 2), 1), true);\n }", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "public boolean provideGraphInfo() { return node_size == NodeSize.GRAPHINFO; }", "boolean hasTreeNodeIdForVariantMatrix();", "boolean hasGeoTargets();", "public static QueryIterator testForGraphName(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n NodeId nid = TDBInternal.getNodeId(ds, graphNode) ;\n boolean exists = !NodeId.isDoesNotExist(nid) ;\n if ( exists ) {\n // Node exists but is it used in the quad position?\n NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;\n // Don't worry about abortable - this iterator should be fast\n // (with normal indexing - at least one G???).\n // Either it finds a starting point, or it doesn't. We are only \n // interested in the first .hasNext.\n Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n exists = iter1.hasNext() ;\n }\n\n if ( exists )\n return input ;\n else {\n input.close() ;\n return QueryIterNullIterator.create(execCxt) ;\n }\n }", "boolean hasHasNodeSettings();", "public boolean isConnected() {\r\n\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tArrayList<String> list = new ArrayList<>(vtces.keySet());\r\n\t\tint count = 0;\r\n\t\tfor (String key : list) {\r\n\t\t\tif (processed.containsKey(key))\r\n\t\t\t\tcontinue;\r\n\t\t\tcount++;\r\n\t\t\t// Create a new pair\r\n\t\t\tPair npr = new Pair();\r\n\t\t\tnpr.vname = key;\r\n\t\t\tnpr.psf = key;\r\n\r\n\t\t\t// put pair queue\r\n\t\t\tqueue.addLast(npr);\r\n\r\n\t\t\t// Work while queue is not empty\r\n\t\t\twhile (!queue.isEmpty()) {\r\n\r\n\t\t\t\t// Remove a pair from queue\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\tif (processed.containsKey(rp.vname))\r\n\t\t\t\t\tcontinue;\r\n\r\n\t\t\t\t// Put in processed hashmap\r\n\t\t\t\tprocessed.put(rp.vname, True);\r\n\r\n\t\t\t\t// nbrs\r\n\t\t\t\tVertex rpvertex = vtces.get(rp.vname);\r\n\t\t\t\tArrayList<String> nbrs = new ArrayList<>(rpvertex.nbrs.keySet());\r\n\r\n\t\t\t\tfor (String nbr : nbrs) {\r\n\t\t\t\t\t// Process only unprocessed vertex\r\n\t\t\t\t\tif (!processed.containsKey(nbr)) {\r\n\t\t\t\t\t\t// Create a new pair and put in queue\r\n\t\t\t\t\t\tPair np = new Pair();\r\n\t\t\t\t\t\tnp.vname = nbr;\r\n\t\t\t\t\t\tnp.psf = rp.psf + nbr;\r\n\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (count > 1)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean hasRelation();", "boolean hasFromId();", "@Override\r\n\tpublic boolean contains(GraphPattern gp) {\n\t\tif (this.operand == null) {\r\n\t\t\treturn (gp == null);\r\n\t\t}\r\n\t\telse if (this.operand.equals(gp)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.operand.contains(gp);\r\n\t\t}\r\n\t}", "@Override\n public boolean contains(V vertex)\n {\n if (vertex.equals(null)){\n throw new IllegalArgumentException();\n }\n return graph.containsKey(vertex);\n }", "public boolean augmentedPath(){\n QueueMaxHeap<GraphNode> queue = new QueueMaxHeap<>();\n graphNode[0].visited = true;//this is so nodes are not chosen again\n queue.add(graphNode[0]);\n boolean check = false;\n while(!queue.isEmpty()){//goes through and grabs each node and visits that nodes successors, will stop when reaches T or no flow left in system from S to T\n GraphNode node = queue.get();\n for(int i = 0; i < node.succ.size(); i++){//this will get all the nodes successors\n GraphNode.EdgeInfo info = node.succ.get(i);\n int id = info.to;\n if(!graphNode[id].visited && graph.flow[info.from][info.to][1] != 0){//this part just make sure it hasn't been visited and that it still has flow\n graphNode[id].visited = true;\n graphNode[id].parent = info.from;\n queue.add(graphNode[id]);\n if(id == t){//breaks here because it has found the last node\n check = true;\n setNodesToUnvisited();\n break;\n }\n }\n }\n if(check){\n break;\n }\n }\n return queue.isEmpty();\n }", "public boolean isNew(String name){\r\n\t\tboolean isNew = true;\r\n\t\tfor(int i=0; i<graphSize;i++){\r\n\t\t\tif((myGraph[i] != null) && (myGraph[i].name.compareToIgnoreCase(name) == 0)){\r\n\t\t\t\tisNew = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn isNew;\r\n\t}", "boolean hasQueryName();", "@Override\n public boolean hasNext() {\n return !query.isEmpty();\n }", "@Override\n public boolean hasNext() {\n return i+1 < queries.size();\n }", "abstract protected boolean shouldRegister(NodeDescriptor node) throws NodeException;", "private boolean checkScanNodesCompleted() {\n\t\treturn cursor.getSelectionPos() >= jedisNodes.size();\n\t}", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "public boolean hasNode() {\n return nodeBuilder_ != null || node_ != null;\n }", "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\n\t}", "boolean hasDestinationId();", "public abstract boolean isInCallingProcedure(SDGNode n);", "@Override\n\tpublic void visit(ExistsExpression arg0) {\n\t\t\n\t}", "public boolean correctCheckConnectGraph(ArrayList<MECountry> countryArr){\n Queue<String> queue = new LinkedList<String>();\n\n //If it is a empty map.\n if(countryArr.isEmpty()){\n return true;\n }\n\n HashMap<String,Boolean> visited = new HashMap<String,Boolean>();\n for(int i=0 ; i<countryArr.size(); i++ ){\n String countryTemp = countryArr.get(i).getCountryName();\n visited.put(countryTemp,false);\n }\n String firstCountry = countryArr.get(0).getCountryName();\n queue.offer(firstCountry);\n //bfs\n while(!queue.isEmpty()){\n String queueHead = queue.poll();\n visited.put(queueHead, Boolean.TRUE);\n for(int j=0 ;j<countryArr.size();j++){\n if(countryArr.get(j).getCountryName().equals(queueHead)){\n String countryNeighbor = countryArr.get(j).getNeighbor();\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\[\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\]\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\", \",\",\");\n String[] countryNeighbors = countryNeighbor.split(\",\");\n for(int k = 1;k<countryNeighbors.length;k++){\n String readyToAddInQueue = countryNeighbors[k];\n if(visited.get(readyToAddInQueue)==false){\n queue.offer(readyToAddInQueue);\n }\n }\n }\n }\n }\n for (String key: visited.keySet()) {\n if(visited.get(key)==false){\n checkFlagCG = false;\n break;\n }\n }\n return checkFlagCG;\n }", "boolean hasQuestId();", "boolean hasQuestId();", "boolean hasQuestId();", "boolean hasQuestId();", "boolean hasFrom();", "public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}", "public boolean isConnectedTo(Node<A> n) {\n\t\t\n\t\tif (g == null) return false;\n\t\t\n\t\tif (g.contains(n)){\n\t\t\t\n\t\t\tfor (Object o: g.getEdges()) {\n\t\t\t\t\n\t\t\t\tif (((Edge<?>)o).getFrom().equals(this) && ((Edge<?>)o).getTo().equals(n)) {\n\t\t\t\t\treturn true;\n\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean containsVertex(Object value) \n\t{\n\t\treturn (this.map.containsKey(value));\n\t}", "boolean hasDestination();", "boolean hasDestination();", "public boolean exists(int nodeID){\n\t\treturn exists(new ListNode(nodeID));\n\t}", "public boolean exists( Conge conge ) ;", "protected boolean hasNode(int ID) {\n\t\treturn nodes.containsKey(ID);\n\t}" ]
[ "0.76863927", "0.73210335", "0.6579606", "0.63258207", "0.6108778", "0.60837305", "0.5968682", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59516746", "0.59341717", "0.58972573", "0.58875805", "0.58627385", "0.586246", "0.5840508", "0.5834745", "0.5834745", "0.58261967", "0.5818242", "0.581789", "0.5788621", "0.57777137", "0.57777137", "0.5768834", "0.5673529", "0.5625864", "0.5608277", "0.5584852", "0.55804205", "0.55695647", "0.55605644", "0.55476606", "0.55358374", "0.5529687", "0.55242664", "0.551679", "0.5512409", "0.54881483", "0.54826283", "0.54751945", "0.5473712", "0.546913", "0.5434504", "0.5432399", "0.5423473", "0.5416833", "0.5416833", "0.5415993", "0.54123986", "0.54044473", "0.53630227", "0.535954", "0.5350946", "0.5336689", "0.532783", "0.5304545", "0.5302475", "0.53022456", "0.5292826", "0.5292753", "0.52879465", "0.5285672", "0.52752155", "0.52534586", "0.5252921", "0.5248075", "0.5246671", "0.5244863", "0.5243937", "0.523967", "0.523967", "0.5237559", "0.5236074", "0.523574", "0.5232861", "0.5227647", "0.5224968", "0.5224968", "0.5224968", "0.5224968", "0.5223799", "0.52153623", "0.5207957", "0.5205173", "0.5192421", "0.5192421", "0.5189001", "0.518368", "0.51807964" ]
0.6466358
3
check whether the queryEdge has already been mapped to a graphEdge
public abstract boolean hasMapped(Edge queryEdge);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isUsing(Edge graphEdge);", "public boolean containsEdge(Edge e){\n\t\treturn edges.containsKey(e.hashCode());\n\t}", "public boolean hasEdge(Edge e) {\n for (Edge outEdge : outEdges) {\n if (outEdge.equals(e) && e.getTo() == outEdge.getTo()) {\n return true;\n }\n }\n return false;\n }", "public boolean containsEdge(Edge e)\n\t{\n\t\tif (e.getOne() == null || e.getTwo() == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn this.edges.containsKey(e.hashCode());\n\t}", "public abstract boolean hasMapped(Long queryNode);", "public abstract void map(Edge queryEdge, Edge graphEdge);", "@Override\n\tpublic boolean containsEdge(Edge<?> edge)\n\t{\n\t\treturn edgeList.contains(edge);\n\t}", "private boolean forbidEdgeCreation(NetworkEdge edge) {\n return network.getEdges().stream()\n .filter(networkEdge ->\n edge.getFrom().equals(networkEdge.getTo())\n ).anyMatch(networkEdge ->\n edge.getTo().equals(networkEdge.getFrom())\n );\n }", "private boolean edgeExists() {\n for (int i = 1; i < parentMatrix[randomChild][0]; i++) {\n if (parentMatrix[randomChild][i] == randomParent) {\n return true;\n }\n }\n return false;\n }", "boolean contains(Edge edge);", "@Override\n public boolean hasEdge(V from, V to)\n {\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n if (!contains(from)){\n return false;\n }\n else{\n Iterator graphIterator = graph.entrySet().iterator();\n Map.Entry graphElement = (Map.Entry) graphIterator.next();\n V vert = (V) graphElement.getKey();\n while (graphIterator.hasNext() && vert != from){\n graphElement = (Map.Entry) graphIterator.next();\n vert = (V)graphElement.getKey();\n }\n\t ArrayList <V> edges = graph.get(vert);\n\t return edges.contains(to);\n\t }\n }", "@Override\n\tpublic boolean containsEdge(Object src, Object dest)\n\t{\n\t\tif(this.map.containsKey(src))\n\t\t\tif(this.map.get(src).contains(dest))\n\t\t\t\treturn true;\t\t\n\t\treturn false;\n\t}", "public abstract boolean hasEdge(int from, int to);", "public boolean containsEdge(E edge);", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "public boolean hasEdge(Edge p_edge) {\n\t\treturn edges.contains(p_edge);\n\t}", "public boolean addEdge(Edge e) {\n return g.addNode(e.getSrc())&&g.addNode(e.getDst())&&g.addEdge(e.getSrc(),e.getDst());\n }", "public boolean containsEdge(Edge<V> edge);", "public boolean hasEdge(K u, K v)\n {\n return adjMaps.get(u).containsKey(v);\n }", "public abstract boolean putEdge(Edge incomingEdge);", "boolean hasIsVertexOf();", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "boolean hasFeedMapping();", "public boolean canAddEdge(Edge newEdge){\n\t\t/*\n\t\tif(v1.equals(v2)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tEdge newEdge = new Edge(v1, v2, weight);\n\t\t*/\n\t\tif(edges.containsKey(newEdge.hashCode())){\n\t\t\treturn false;\n\t\t\t\n\t\t\t/*\n\t\t// Edge already has been assigned to a vertex\n\t\t}else if(v1.containsConnection(newEdge) || v2.containsConnection(newEdge)){\n\t\t\treturn false;\n\t\t\t*/\n\t\t}\n\t\t\n\t\t\n\t\t// If edge passes all the above tests then add edge to graph\n\t\taddEdge(newEdge);\n\t\treturn true;\n\t}", "private boolean hasHitEdge() {\n if (!enableClusterExitPurging) {\n return false;\n }\n int lx = (int) location.x, ly = (int) location.y;\n int sx = chip.getSizeX(), sy = chip.getSizeY();\n if (lx < radiusX || lx > sx - radiusX || ly < radiusY || ly > sy - radiusY) {\n if (hitEdgeTime == 0) {\n hitEdgeTime = getLastEventTimestamp();\n return false;\n } else {\n if (getLastEventTimestamp() - hitEdgeTime > 0/* getClusterLifetimeWithoutSupportUs()*/) {\n return true;\n } else {\n return false;\n }\n }\n }\n return false;\n }", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "@Test\n\tvoid testVerticesExist() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Boston\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Newark\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Trenton\"));\n\t}", "public boolean hasEdge(Node k){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == k){\n return true;\n }\n }\n return false;\n }", "public abstract boolean isUsing(Long graphNode);", "boolean addEdge(E edge);", "public boolean hasEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\treturn edges.contains(edge);\n\t}", "public void testContainsEdgeEdge( ) {\n init( );\n\n //TODO Implement containsEdge().\n }", "public boolean hasNonEscapingEdges() {\n return addedEdges != null;\n }", "private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}", "public boolean hasEdge(K u, K v)\n\t{\n \tList<HashMap<K, Integer>> adj = adjLists.get(u);\n\n \t// check for edge already being there\n \tint count=0;\n \tfor (HashMap<K, Integer> A:adj){\n \t\tfor (K vertex:A.keySet()){\n \t\t\tif (!vertex.equals(v))\n \t\t {\n \t\t\t\tcount++;\n\n \t\t }\n \t\t}\n \t\t\n \t}\n \tif (count==adj.size()) return false;\n \treturn true;\n\t}", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "public boolean isSetGraph_addr() {\n return this.graph_addr != null;\n }", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "public void testContainsEdge() {\n System.out.println(\"containsEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n } else {\n Assert.assertTrue(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }\n\n }", "public boolean hasEdge(int i,int j){\n return Matrix[i][j];\n }", "public boolean isEqual(Edge e){\n if(v1.equals(e.v1) && v2.equals(e.v2)){\n return true;\n }\n else if(v1.equals(e.v2) && v2.equals(e.v1)){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean getMergeDuplicateEdge()\n \t{\n \t\treturn mergeDuplicateEdge;\n \t}", "public boolean inSamePseudoNode(Edge e) {\n\t\tthrow new RuntimeException(\"Unimplemented\");\r\n\t}", "@Override\r\n public boolean edgeExists(Vertex v1, Vertex v2) {\r\n return adjacencyList.get(v1).contains(v2); //checking if the list of adjacent vertices contains v2\r\n }", "public boolean hasAccessPathEdges() {\n return accessPathEdges != null;\n }", "@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}", "@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}", "public boolean isConnectedTo(A e) {\n\t\n\t\tif (g == null) return false;\n\t\t\n\t\tfor (Object o: g.getEdges()) {\n\t\t\t\n\t\t\tif (((Edge<?>)o).getFrom().equals(this) && ((Edge<?>)o).getTo().getValue().equals(e)) {\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean addEdge(Edge edge) {\r\n\t\treturn true;\r\n\t}", "private boolean isEdge(Node node) {\n for (Node n: nodes){\n if(!node.equals(n)) {\n for(Edge e:n.getEdges()){\n if(e.getDestination().equals(node)) {\n return true;\n }\n }\n }\n }\n return false;\n }", "boolean check(Long nodeID, int qID, GraphDatabaseService databaseService) {\n\n vertexClass vc = queryGraphNodes.get(qID);\n try(Transaction tx = databaseService.beginTx()) {\n for(int edge: vc.edges.keySet()) {\n\n boolean relExist = false;\n if(solution.containsKey(edge)) {\n // j<i condition confirmed\n Node edgeNode, otherNode;\n\n edgeNode = databaseService.getNodeById(solution.get(edge));\n otherNode = databaseService.getNodeById(nodeID);\n\n Iterable<Relationship> relationships = edgeNode.getRelationships(Direction.BOTH);\n\n Iterator <Relationship>iter = relationships.iterator();\n while (iter.hasNext()) {\n Relationship rel = iter.next();\n if(rel.getOtherNode(edgeNode).equals(otherNode))\n relExist = true;\n }\n if(!relExist)\n return false;\n }\n\n }\n tx.success();\n\n }\n\n\n return true;\n }", "public boolean hasEdge(T beg, T end);", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\tif(other instanceof Edge) {\n\t\t\t\tEdge e = (Edge) other;\n\t\t\t\treturn e._one.equals(this._one) && e._two.equals(this._two)\n\t\t\t\t\t|| e._one.equals(this._two) && e._two.equals(this._one);\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic boolean containsEdge(E src, E dst) {\r\n\t\tif(containsVertex(src) && containsVertex(dst)) {\r\n\t\t\treturn adjacencyLists.get(src).contains(new Edge<E>(src, dst, Integer.MAX_VALUE));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean hasEdge(int node1, int node2)\n{\n\tNode s=(Node)this.getNodes().get(node1);\n return s.hasNi(node2);\n\t\n}", "@Override\n public boolean contains(V vertex)\n {\n if (vertex.equals(null)){\n throw new IllegalArgumentException();\n }\n return graph.containsKey(vertex);\n }", "@Override\n public boolean addEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)) {\n dictionary.get(vertex1).add(vertex2);\n dictionary.get(vertex2).add(vertex1);\n return true;\n } else {\n return false;\n }\n }", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "public abstract boolean getEdge(Point a, Point b);", "public boolean hasEdge(T begin, T end);", "@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean containsVertex(Object value) \n\t{\n\t\treturn (this.map.containsKey(value));\n\t}", "protected boolean addEdge(Edge<N, E> edge)\n throws GraphLogicException {\n return edge.attach();\n }", "private void checkEdgesToSearch() {\n if (edgesToSearch == null || edgesToSearch.length == 0) {\n Graph hg;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n edgesToSearch = hg.getEdges().toArray();\n }\n }", "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n while(!queue.isEmpty()) {\n GraphNode current = queue.poll();\n if (current == destination) {\n return true;\n }\n else {\n for (GraphEdge e : current.to) {\n queue.offer(e.to);\n }\n }\n }\n return false;\n }", "public boolean containsEdge(V source, V target);", "@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Newark\", edgesArray[0]);\n\t\tAssertions.assertEquals(\"New York\", edgesArray[1]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Philadelphia\", edgesArray[0]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Albany\", edgesArray[0]);\n\t}", "@Override\n public E getEdgeIfExists(int pintSourceVertexID, int pintDestinationVertexID) {\n V vertexFrom = getVertex(pintSourceVertexID);\n V vertexTo = getVertex(pintDestinationVertexID);\n for(TimeFrame tf : darrGlobalAdjList.get(pintSourceVertexID).keySet()) {\n for (E e : darrGlobalAdjList.get(pintSourceVertexID).get(tf)) { \n if (e.getOtherEndPoint(vertexFrom).equals(vertexTo)) {\n return e;\n }\n } \n }\n return null;\n }", "@Override\r\n\tprotected final int containsEdge(E edge) {\n\t\tfor(int i = 0; i < getSize(); i++)\r\n\t\t\tif(getEdge(i) == edge)\r\n\t\t\t\treturn i;\r\n\t\t\r\n\t\treturn -1;\r\n\t}", "public boolean hasEdge(Node source, Node destination) {\n LinkedList<Edge> edges = source.getEdges();\n for (Edge edge : edges) {\n if (edge.getDestination() == destination) {\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "public boolean isInEdge(int width, int height, Position position);", "public boolean correctCheckConnectGraph(ArrayList<MECountry> countryArr){\n Queue<String> queue = new LinkedList<String>();\n\n //If it is a empty map.\n if(countryArr.isEmpty()){\n return true;\n }\n\n HashMap<String,Boolean> visited = new HashMap<String,Boolean>();\n for(int i=0 ; i<countryArr.size(); i++ ){\n String countryTemp = countryArr.get(i).getCountryName();\n visited.put(countryTemp,false);\n }\n String firstCountry = countryArr.get(0).getCountryName();\n queue.offer(firstCountry);\n //bfs\n while(!queue.isEmpty()){\n String queueHead = queue.poll();\n visited.put(queueHead, Boolean.TRUE);\n for(int j=0 ;j<countryArr.size();j++){\n if(countryArr.get(j).getCountryName().equals(queueHead)){\n String countryNeighbor = countryArr.get(j).getNeighbor();\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\[\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\]\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\", \",\",\");\n String[] countryNeighbors = countryNeighbor.split(\",\");\n for(int k = 1;k<countryNeighbors.length;k++){\n String readyToAddInQueue = countryNeighbors[k];\n if(visited.get(readyToAddInQueue)==false){\n queue.offer(readyToAddInQueue);\n }\n }\n }\n }\n }\n for (String key: visited.keySet()) {\n if(visited.get(key)==false){\n checkFlagCG = false;\n break;\n }\n }\n return checkFlagCG;\n }", "@Override\n\tpublic boolean containsNode(Object node)\n\t{\n\t\t// This is presumably faster than searching through nodeList\n\t\treturn nodeEdgeMap.containsKey(node);\n\t}", "public boolean hasEdge(String id1, String id2)\n\t{\n\t\treturn nodes.containsKey(id1) && getNode(id1).hasEdge(id2);\n\t}", "private boolean hasANeighbour(Graph<V, E> g, Set<V> set, V v)\n {\n return set.stream().anyMatch(s -> g.containsEdge(s, v));\n }", "@Override\n public boolean isAdjacent(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)) {\n return dictionary.get(vertex1).contains(vertex2) && dictionary.get(vertex2).contains(vertex1);\n } else {\n return false;\n }\n }", "public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}", "@Override\n\t\tpublic boolean equals(Object o){\n\t\t\tEdge other = (Edge) o;\n\t\t\tif((other.src.equals(this.src) && other.dest.equals(other.dest))\n\t\t\t\t\t|| (other.dest.equals(this.src) && other.src.equals(this.dest))){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "@DisplayName(\"Has edge\")\n @Test\n public void testHasEdge() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n Assertions.assertTrue(graph.hasEdge(new Edge(0, 1)));\n }", "@Test\n\tvoid testAdjacentNodes() {\n\t\tLinkedHashSet<String> edges = null;\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.ofNullable(map.get(\"Boston\"));\n\t\t// Boston does not have any adjacent nodes\n\t\tAssertions.assertTrue(vertexOptional.isEmpty());\n\t\t// if connected vertex is null new vertex is created. Now Adjacent nodes will\n\t\t// not have any nodes inside it.\n\t\tif (vertexOptional.isEmpty()) {\n\t\t\tedges = new LinkedHashSet<String>();\n\t\t\tmap.put(\"Boston\", edges);\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(0, map.get(\"Boston\").size());\n\n\t\t}\n\n\t}", "public static boolean verifyGraph(Graph<V, DefaultEdge> g)\n {\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n if (v.color == -1)\n {\n System.out.println(\"Did not color vertex \" + v.getID());\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n for (V neighbor : neighbors)\n {\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n return false;\n }\n if (!verifyColor(g, v))\n {\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n for (V neighbor : neighbors)\n {\n if (v.color == neighbor.color)\n {\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n }\n return false;\n }\n }\n return true;\n }", "private boolean addIfUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) return true;\n path.add(n);\n if (visited.contains(n)) return nodes.containsKey(n);\n visited.add(n);\n boolean useful = false;\n if (nodes.containsKey(n)) {\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n useful = true;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return true;\n }\n if (n.addedEdges != null) {\n if (TRACE_INTER) out.println(\"Useful because of added edge: \"+n);\n useful = true;\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator i = n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n //jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (addIfUseful(visited, path, (Node)o)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+o);\n useful = true;\n } else {\n if (n != o) i.remove();\n }\n } else {\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node n2 = (Node)j.next();\n if (addIfUseful(visited, path, n2)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+n2);\n useful = true;\n } else {\n if (n != n2) j.remove();\n }\n }\n if (!useful) i.remove();\n }\n }\n }\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n // Call \"addIfUseful()\" on all successor checkcast nodes, and set the \"useful\" flag if the call returns true.\n if (n == goestocast && addIfUseful(visited, path, castsucc))\n useful = true;\n }\n }\n if (n instanceof ReturnedNode) {\n if (TRACE_INTER && !useful) out.println(\"Useful because ReturnedNode: \"+n);\n useful = true;\n }\n if (n.predecessors != null) {\n useful = true;\n if (TRACE_INTER && !useful) out.println(\"Useful because target of added edge: \"+n);\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (useful) {\n this.nodes.put(n, n);\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode)n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n if (n instanceof CheckCastNode) {\n // If the \"useful\" flag is true and the node is a checkcast node,\n // call \"addAsUseful()\" on all predecessors.\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n }\n if (TRACE_INTER && !useful) out.println(\"Not useful: \"+n);\n path.remove(n);\n return useful;\n }", "@Test\n\tvoid testAddSecondEdgeForGivenVertex() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.ofNullable(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tedges.add(\"Newark\");\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"Newark\"));\n\t\t}\n\t}", "public boolean pathExists(int startVertex, int stopVertex) {\r\n if (startVertex == stopVertex) {\r\n \treturn true;\r\n } else {\r\n \tif (visitAll(startVertex).contains(stopVertex)) {\r\n \t\treturn true;\r\n \t}\r\n }\r\n return false;\r\n }", "public boolean isSame(MoveEdge other) {\n if (other == this) {\n return true;\n }\n return Objects.equals(in, other.in) && Objects.equals(out, other.out);\n }", "public boolean addEdge(jq_Field m, Node n) {\n //if (TRACK_REASONS) {\n // if (edgesToReasons == null) edgesToReasons = new HashMap();\n //if (!edgesToReasons.containsKey(Edge.get(this, n, m)))\n // edgesToReasons.put(new Edge(this, n, m), q);\n //}\n n.addPredecessor(m, this);\n if (addedEdges == null) addedEdges = new LinkedHashMap();\n Object o = addedEdges.get(m);\n if (o == null) {\n addedEdges.put(m, n);\n return true;\n }\n if (o instanceof Set) {\n return ((Set)o).add(n);\n }\n if (o == n) {\n return false;\n }\n Set s = NodeSet.FACTORY.makeSet(); s.add(o); s.add(n);\n addedEdges.put(m, s);\n return true;\n }", "@Test\n public void testAddExistingEdge() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeData(env),\n env);\n graph = graph.addEdge(new Vertex<>(1L, 1L), new Vertex<>(2L, 2L), 12L);\n\n DataSet<Edge<Long, Long>> data = graph.getEdges();\n List<Edge<Long, Long>> result = data.collect();\n\n expectedResult =\n \"1,2,12\\n\"\n + \"1,2,12\\n\"\n + \"1,3,13\\n\"\n + \"2,3,23\\n\"\n + \"3,4,34\\n\"\n + \"3,5,35\\n\"\n + \"4,5,45\\n\"\n + \"5,1,51\\n\";\n\n compareResultAsTuples(result, expectedResult);\n }", "@Test\n void test07_tryToRemoveNonExistentEdge() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addEdge(\"a\", \"b\");\n graph.addEdge(\"b\", \"c\"); // adds two edges\n try {\n graph.removeEdge(\"e\", \"f\"); // remove non existent edge\n } catch (Exception e) {\n fail(\"Shouldn't have thrown exception\");\n }\n\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\");\n vertices.add(\"c\"); // creates mock up vertex list\n\n if (!graph.getAllVertices().equals(vertices)) { // checks if vertices weren't added or removed\n fail(\"wrong vertices are inserted into the graph\");\n }\n if (graph.size() != 2) {\n fail(\"wrong number of edges in the graph\");\n }\n\n }", "public static Multigraph smartAddEdge(Multigraph graph, Edge edge, boolean stopIfMissing) {\n\n if (!graph.containsVertex(edge.getSource())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing source node for edge \"+ edge);\n }\n graph.addVertex(edge.getSource());\n }\n if (!graph.containsVertex(edge.getDestination())) {\n if(stopIfMissing){\n throw new IllegalStateException(\"Missing destination node for edge \"+ edge);\n }\n graph.addVertex(edge.getDestination());\n }\n //That a good mapping edge, add to the related query\n graph.addEdge(edge.getSource(), edge.getDestination(), edge.getLabel());\n return graph;\n }", "public boolean hasVertex(String name) {\n return mVertices.containsKey(name);\n }", "public boolean hasEdge(String from, String to) {\n Vertex v1 = mVertices.get(from);\n Vertex v2 = mVertices.get(to);\n if (v1 == null || v2 == null) return false;\n return mAdjList.get(v1).contains(v2);\n }", "public boolean isEdge( VKeyT fromKey, VKeyT toKey )\n throws NoSuchVertexException;", "public boolean augmentedPath(){\n QueueMaxHeap<GraphNode> queue = new QueueMaxHeap<>();\n graphNode[0].visited = true;//this is so nodes are not chosen again\n queue.add(graphNode[0]);\n boolean check = false;\n while(!queue.isEmpty()){//goes through and grabs each node and visits that nodes successors, will stop when reaches T or no flow left in system from S to T\n GraphNode node = queue.get();\n for(int i = 0; i < node.succ.size(); i++){//this will get all the nodes successors\n GraphNode.EdgeInfo info = node.succ.get(i);\n int id = info.to;\n if(!graphNode[id].visited && graph.flow[info.from][info.to][1] != 0){//this part just make sure it hasn't been visited and that it still has flow\n graphNode[id].visited = true;\n graphNode[id].parent = info.from;\n queue.add(graphNode[id]);\n if(id == t){//breaks here because it has found the last node\n check = true;\n setNodesToUnvisited();\n break;\n }\n }\n }\n if(check){\n break;\n }\n }\n return queue.isEmpty();\n }", "@Override\r\n\tpublic boolean isConnected(GraphStructure graph) {\r\n\t\tgetDepthFirstSearchTraversal(graph);\r\n\t\tif(pathList.size()==graph.getNumberOfVertices()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public TransactionBuilder checkInternalVertexExistence();", "public boolean containsVertex(String node) {\n\t\treturn adj_list.containsKey(node);\n\t}", "boolean seen(Graph.Vertex u) {\n\t\treturn getVertex(u).seen;\n\t}" ]
[ "0.677933", "0.64780897", "0.6392039", "0.63869864", "0.6367261", "0.63508487", "0.63357323", "0.63231987", "0.6295947", "0.62333596", "0.62221843", "0.62213355", "0.61352634", "0.61306703", "0.60529447", "0.602722", "0.6023657", "0.6014532", "0.5959455", "0.5955342", "0.5884603", "0.5875938", "0.58693665", "0.585734", "0.584306", "0.5836818", "0.5821707", "0.5791124", "0.57877654", "0.57744616", "0.5766684", "0.57334334", "0.5701731", "0.56803626", "0.5673018", "0.5669084", "0.56645924", "0.5662041", "0.5657703", "0.5654997", "0.56409544", "0.56336206", "0.5619322", "0.56134987", "0.56047803", "0.5598619", "0.5586404", "0.5586275", "0.55791044", "0.55638903", "0.5536341", "0.55325365", "0.5529096", "0.55166125", "0.5507075", "0.5504731", "0.54959464", "0.5489257", "0.54774207", "0.54688454", "0.5459699", "0.5456063", "0.54548126", "0.5454285", "0.54462326", "0.5436554", "0.5432922", "0.54308444", "0.53944266", "0.53868234", "0.53845155", "0.53816426", "0.5375372", "0.5370468", "0.53684723", "0.5366119", "0.5359101", "0.5354665", "0.5353488", "0.5351979", "0.53426296", "0.53380287", "0.5337356", "0.5325842", "0.5323382", "0.53178084", "0.53131914", "0.5305257", "0.5293169", "0.52929676", "0.5273856", "0.5269902", "0.5253413", "0.5248879", "0.5248735", "0.52406615", "0.52379966", "0.5227957", "0.52235687", "0.52155066" ]
0.83218426
0
check whether the graphEdge has already been mapped to a queryEdge
public abstract boolean isUsing(Edge graphEdge);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasMapped(Edge queryEdge);", "public abstract boolean hasMapped(Long queryNode);", "public boolean containsEdge(Edge e){\n\t\treturn edges.containsKey(e.hashCode());\n\t}", "@Override\n\tpublic boolean containsEdge(Edge<?> edge)\n\t{\n\t\treturn edgeList.contains(edge);\n\t}", "public boolean containsEdge(Edge e)\n\t{\n\t\tif (e.getOne() == null || e.getTwo() == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn this.edges.containsKey(e.hashCode());\n\t}", "public boolean hasEdge(Edge e) {\n for (Edge outEdge : outEdges) {\n if (outEdge.equals(e) && e.getTo() == outEdge.getTo()) {\n return true;\n }\n }\n return false;\n }", "boolean contains(Edge edge);", "public abstract void map(Edge queryEdge, Edge graphEdge);", "@Override\n public boolean hasEdge(V from, V to)\n {\n if (from.equals(null) || to.equals(null)){\n throw new IllegalArgumentException();\n }\n if (!contains(from)){\n return false;\n }\n else{\n Iterator graphIterator = graph.entrySet().iterator();\n Map.Entry graphElement = (Map.Entry) graphIterator.next();\n V vert = (V) graphElement.getKey();\n while (graphIterator.hasNext() && vert != from){\n graphElement = (Map.Entry) graphIterator.next();\n vert = (V)graphElement.getKey();\n }\n\t ArrayList <V> edges = graph.get(vert);\n\t return edges.contains(to);\n\t }\n }", "private boolean edgeExists() {\n for (int i = 1; i < parentMatrix[randomChild][0]; i++) {\n if (parentMatrix[randomChild][i] == randomParent) {\n return true;\n }\n }\n return false;\n }", "private boolean forbidEdgeCreation(NetworkEdge edge) {\n return network.getEdges().stream()\n .filter(networkEdge ->\n edge.getFrom().equals(networkEdge.getTo())\n ).anyMatch(networkEdge ->\n edge.getTo().equals(networkEdge.getFrom())\n );\n }", "@Override\n\tpublic boolean containsEdge(Object src, Object dest)\n\t{\n\t\tif(this.map.containsKey(src))\n\t\t\tif(this.map.get(src).contains(dest))\n\t\t\t\treturn true;\t\t\n\t\treturn false;\n\t}", "public boolean containsEdge(E edge);", "public abstract boolean hasEdge(int from, int to);", "public boolean containsEdge(Edge<V> edge);", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "boolean hasFeedMapping();", "public boolean hasEdge(Edge p_edge) {\n\t\treturn edges.contains(p_edge);\n\t}", "public boolean hasEdge(K u, K v)\n {\n return adjMaps.get(u).containsKey(v);\n }", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "public boolean addEdge(Edge e) {\n return g.addNode(e.getSrc())&&g.addNode(e.getDst())&&g.addEdge(e.getSrc(),e.getDst());\n }", "boolean hasIsVertexOf();", "public abstract boolean isUsing(Long graphNode);", "public boolean hasEdge(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\treturn edges.contains(edge);\n\t}", "@Test\n\tvoid testVerticesExist() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Boston\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Newark\"));\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertTrue(map.containsKey(\"Trenton\"));\n\t}", "private boolean hasHitEdge() {\n if (!enableClusterExitPurging) {\n return false;\n }\n int lx = (int) location.x, ly = (int) location.y;\n int sx = chip.getSizeX(), sy = chip.getSizeY();\n if (lx < radiusX || lx > sx - radiusX || ly < radiusY || ly > sy - radiusY) {\n if (hitEdgeTime == 0) {\n hitEdgeTime = getLastEventTimestamp();\n return false;\n } else {\n if (getLastEventTimestamp() - hitEdgeTime > 0/* getClusterLifetimeWithoutSupportUs()*/) {\n return true;\n } else {\n return false;\n }\n }\n }\n return false;\n }", "public boolean hasEdge(Node k){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == k){\n return true;\n }\n }\n return false;\n }", "public abstract boolean putEdge(Edge incomingEdge);", "private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "public boolean canAddEdge(Edge newEdge){\n\t\t/*\n\t\tif(v1.equals(v2)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tEdge newEdge = new Edge(v1, v2, weight);\n\t\t*/\n\t\tif(edges.containsKey(newEdge.hashCode())){\n\t\t\treturn false;\n\t\t\t\n\t\t\t/*\n\t\t// Edge already has been assigned to a vertex\n\t\t}else if(v1.containsConnection(newEdge) || v2.containsConnection(newEdge)){\n\t\t\treturn false;\n\t\t\t*/\n\t\t}\n\t\t\n\t\t\n\t\t// If edge passes all the above tests then add edge to graph\n\t\taddEdge(newEdge);\n\t\treturn true;\n\t}", "public boolean hasEdge(K u, K v)\n\t{\n \tList<HashMap<K, Integer>> adj = adjLists.get(u);\n\n \t// check for edge already being there\n \tint count=0;\n \tfor (HashMap<K, Integer> A:adj){\n \t\tfor (K vertex:A.keySet()){\n \t\t\tif (!vertex.equals(v))\n \t\t {\n \t\t\t\tcount++;\n\n \t\t }\n \t\t}\n \t\t\n \t}\n \tif (count==adj.size()) return false;\n \treturn true;\n\t}", "public boolean isSetGraph_addr() {\n return this.graph_addr != null;\n }", "boolean addEdge(E edge);", "public void testContainsEdgeEdge( ) {\n init( );\n\n //TODO Implement containsEdge().\n }", "boolean check(Long nodeID, int qID, GraphDatabaseService databaseService) {\n\n vertexClass vc = queryGraphNodes.get(qID);\n try(Transaction tx = databaseService.beginTx()) {\n for(int edge: vc.edges.keySet()) {\n\n boolean relExist = false;\n if(solution.containsKey(edge)) {\n // j<i condition confirmed\n Node edgeNode, otherNode;\n\n edgeNode = databaseService.getNodeById(solution.get(edge));\n otherNode = databaseService.getNodeById(nodeID);\n\n Iterable<Relationship> relationships = edgeNode.getRelationships(Direction.BOTH);\n\n Iterator <Relationship>iter = relationships.iterator();\n while (iter.hasNext()) {\n Relationship rel = iter.next();\n if(rel.getOtherNode(edgeNode).equals(otherNode))\n relExist = true;\n }\n if(!relExist)\n return false;\n }\n\n }\n tx.success();\n\n }\n\n\n return true;\n }", "@Override\r\n public boolean edgeExists(Vertex v1, Vertex v2) {\r\n return adjacencyList.get(v1).contains(v2); //checking if the list of adjacent vertices contains v2\r\n }", "public boolean hasNonEscapingEdges() {\n return addedEdges != null;\n }", "public boolean hasAccessPathEdges() {\n return accessPathEdges != null;\n }", "public void testContainsEdge() {\n System.out.println(\"containsEdge\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n Assert.assertFalse(graph.containsEdge(new Integer(i), new Integer(j)));\n } else {\n Assert.assertTrue(graph.containsEdge(new Integer(i), new Integer(j)));\n }\n }\n }\n\n }", "@Override\n public boolean isConnected() { //i got help from the site https://www.geeksforgeeks.org/shortest-path-unweighted-graph/\n if(this.ga.edgeSize()<this.ga.nodeSize()-1) return false;\n initializeInfo();//initialize all the info fields to be null for the algorithm to work\n if(this.ga.nodeSize()==0||this.ga.nodeSize()==1) return true;//if there is not node or one its connected\n WGraph_DS copy = (WGraph_DS) (copy());//create a copy graph that the algorithm will on it\n LinkedList<node_info> qValues = new LinkedList<>();//create linked list that will storage all nodes that we didn't visit yet\n int firstNodeKey = copy.getV().iterator().next().getKey();//first key for get the first node(its doesnt matter which node\n node_info first = copy.getNode(firstNodeKey);//get the node\n qValues.add(first);//without limiting generality taking the last node added to graph\n int counterVisitedNodes = 0;//counter the times we change info of node to \"visited\"\n while (qValues.size() != 0) {\n node_info current = qValues.removeFirst();\n if (current.getInfo() != null) continue;//if we visit we can skip to the next loop because we have already marked\n current.setInfo(\"visited\");//remark the info\n counterVisitedNodes++;\n\n Collection<node_info> listNeighbors = copy.getV(current.getKey());//create a collection for the neighbors list\n LinkedList<node_info> Neighbors = new LinkedList<>(listNeighbors);//create the neighbors list\n if (Neighbors == null) continue;\n for (node_info n : Neighbors) {\n if (n.getInfo() == null) {//if there is a node we didn't visited it yet, we will insert it to the linkedList\n qValues.add(n);\n }\n }\n }\n if (this.ga.nodeSize() != counterVisitedNodes) return false;//check that we visited all of the nodes\n\n return true;\n }", "public boolean inSamePseudoNode(Edge e) {\n\t\tthrow new RuntimeException(\"Unimplemented\");\r\n\t}", "@Test\n\tvoid testEdgesNotNull() {\n\t\tmap.put(\"Boston\", new LinkedHashSet<String>());\n\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\n\t}", "public boolean hasEdge(T beg, T end);", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "@Override\n public boolean contains(V vertex)\n {\n if (vertex.equals(null)){\n throw new IllegalArgumentException();\n }\n return graph.containsKey(vertex);\n }", "public boolean isConnectedTo(A e) {\n\t\n\t\tif (g == null) return false;\n\t\t\n\t\tfor (Object o: g.getEdges()) {\n\t\t\t\n\t\t\tif (((Edge<?>)o).getFrom().equals(this) && ((Edge<?>)o).getTo().getValue().equals(e)) {\n\t\t\t\treturn true;\n\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isEqual(Edge e){\n if(v1.equals(e.v1) && v2.equals(e.v2)){\n return true;\n }\n else if(v1.equals(e.v2) && v2.equals(e.v1)){\n return true;\n }\n else{\n return false;\n }\n }", "@Test \r\n void create_edge_between_to_nonexisted_vertexes() {\r\n graph.addEdge(\"A\", \"B\");\r\n List<String> adjacentA = graph.getAdjacentVerticesOf(\"A\");\r\n List<String> adjacentB = graph.getAdjacentVerticesOf(\"B\");\r\n if(!adjacentA.contains(\"B\")) { \r\n fail();\r\n }\r\n if(adjacentB.contains(\"A\")) { \r\n fail();\r\n }\r\n }", "@Override\n\tpublic boolean containsVertex(Object value) \n\t{\n\t\treturn (this.map.containsKey(value));\n\t}", "public boolean hasEdge(int i,int j){\n return Matrix[i][j];\n }", "@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}", "public boolean hasEdge(T begin, T end);", "public boolean hasEdge(int node1, int node2)\n{\n\tNode s=(Node)this.getNodes().get(node1);\n return s.hasNi(node2);\n\t\n}", "@Override\r\n\tpublic boolean containsEdge(E src, E dst) {\r\n\t\tif(containsVertex(src) && containsVertex(dst)) {\r\n\t\t\treturn adjacencyLists.get(src).contains(new Edge<E>(src, dst, Integer.MAX_VALUE));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "public boolean addEdge(Edge edge) {\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean containsNode(Object node)\n\t{\n\t\t// This is presumably faster than searching through nodeList\n\t\treturn nodeEdgeMap.containsKey(node);\n\t}", "@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\tif(other instanceof Edge) {\n\t\t\t\tEdge e = (Edge) other;\n\t\t\t\treturn e._one.equals(this._one) && e._two.equals(this._two)\n\t\t\t\t\t|| e._one.equals(this._two) && e._two.equals(this._one);\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "private boolean isEdge(Node node) {\n for (Node n: nodes){\n if(!node.equals(n)) {\n for(Edge e:n.getEdges()){\n if(e.getDestination().equals(node)) {\n return true;\n }\n }\n }\n }\n return false;\n }", "private boolean hasPath(GraphNode origin, GraphNode destination) {\n if (origin.node.getName().equals(outputNode.getName()) || destination.node.getName().equals(inputNode.getName()))\n return false;\n\n Queue<GraphNode> queue = new LinkedList<GraphNode>();\n queue.offer(origin);\n\n while(!queue.isEmpty()) {\n GraphNode current = queue.poll();\n if (current == destination) {\n return true;\n }\n else {\n for (GraphEdge e : current.to) {\n queue.offer(e.to);\n }\n }\n }\n return false;\n }", "public boolean getMergeDuplicateEdge()\n \t{\n \t\treturn mergeDuplicateEdge;\n \t}", "public boolean containsEdge(V source, V target);", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public boolean addEdge(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)) {\n dictionary.get(vertex1).add(vertex2);\n dictionary.get(vertex2).add(vertex1);\n return true;\n } else {\n return false;\n }\n }", "public boolean pathExists(int startVertex, int stopVertex) {\r\n if (startVertex == stopVertex) {\r\n \treturn true;\r\n } else {\r\n \tif (visitAll(startVertex).contains(stopVertex)) {\r\n \t\treturn true;\r\n \t}\r\n }\r\n return false;\r\n }", "public abstract boolean getEdge(Point a, Point b);", "private void checkEdgesToSearch() {\n if (edgesToSearch == null || edgesToSearch.length == 0) {\n Graph hg;\n if (Lookup.getDefault().lookup(DataTablesController.class).isShowOnlyVisible()) {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraphVisible();\n } else {\n hg = Lookup.getDefault().lookup(GraphController.class).getGraphModel().getGraph();\n }\n edgesToSearch = hg.getEdges().toArray();\n }\n }", "public boolean hasEdge(Node source, Node destination) {\n LinkedList<Edge> edges = source.getEdges();\n for (Edge edge : edges) {\n if (edge.getDestination() == destination) {\n return true;\n }\n }\n return false;\n }", "public boolean isInEdge(int width, int height, Position position);", "private boolean hasANeighbour(Graph<V, E> g, Set<V> set, V v)\n {\n return set.stream().anyMatch(s -> g.containsEdge(s, v));\n }", "@Override\n public boolean isAdjacent(E vertex1, E vertex2) {\n if (vertex1 != null\n && vertex2 != null\n && vertex1 != vertex2\n && dictionary.containsKey(vertex1)\n && dictionary.containsKey(vertex2)) {\n return dictionary.get(vertex1).contains(vertex2) && dictionary.get(vertex2).contains(vertex1);\n } else {\n return false;\n }\n }", "boolean hasQueryMessage();", "public boolean hasEdge(String id1, String id2)\n\t{\n\t\treturn nodes.containsKey(id1) && getNode(id1).hasEdge(id2);\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "@Override\n public E getEdgeIfExists(int pintSourceVertexID, int pintDestinationVertexID) {\n V vertexFrom = getVertex(pintSourceVertexID);\n V vertexTo = getVertex(pintDestinationVertexID);\n for(TimeFrame tf : darrGlobalAdjList.get(pintSourceVertexID).keySet()) {\n for (E e : darrGlobalAdjList.get(pintSourceVertexID).get(tf)) { \n if (e.getOtherEndPoint(vertexFrom).equals(vertexTo)) {\n return e;\n }\n } \n }\n return null;\n }", "@Override\r\n\tprotected final int containsEdge(E edge) {\n\t\tfor(int i = 0; i < getSize(); i++)\r\n\t\t\tif(getEdge(i) == edge)\r\n\t\t\t\treturn i;\r\n\t\t\r\n\t\treturn -1;\r\n\t}", "public boolean correctCheckConnectGraph(ArrayList<MECountry> countryArr){\n Queue<String> queue = new LinkedList<String>();\n\n //If it is a empty map.\n if(countryArr.isEmpty()){\n return true;\n }\n\n HashMap<String,Boolean> visited = new HashMap<String,Boolean>();\n for(int i=0 ; i<countryArr.size(); i++ ){\n String countryTemp = countryArr.get(i).getCountryName();\n visited.put(countryTemp,false);\n }\n String firstCountry = countryArr.get(0).getCountryName();\n queue.offer(firstCountry);\n //bfs\n while(!queue.isEmpty()){\n String queueHead = queue.poll();\n visited.put(queueHead, Boolean.TRUE);\n for(int j=0 ;j<countryArr.size();j++){\n if(countryArr.get(j).getCountryName().equals(queueHead)){\n String countryNeighbor = countryArr.get(j).getNeighbor();\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\[\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\"\\\\]\",\"\");\n countryNeighbor = countryNeighbor.replaceAll(\", \",\",\");\n String[] countryNeighbors = countryNeighbor.split(\",\");\n for(int k = 1;k<countryNeighbors.length;k++){\n String readyToAddInQueue = countryNeighbors[k];\n if(visited.get(readyToAddInQueue)==false){\n queue.offer(readyToAddInQueue);\n }\n }\n }\n }\n }\n for (String key: visited.keySet()) {\n if(visited.get(key)==false){\n checkFlagCG = false;\n break;\n }\n }\n return checkFlagCG;\n }", "boolean hasRelation();", "public boolean hasVertex(String name) {\n return mVertices.containsKey(name);\n }", "@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}", "public boolean hasVertex(String label)\n\t{\n\t\tboolean sucess = false;\n\t\ttry {\n\t\t\tgetVertex(label);\n\t\t\tsucess = true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tsucess = false;\n\t\t}\n\t\treturn sucess;\n\t}", "@Override\n public void visit(QueryExpression.Function.Exists exists) {\n visit(exists.getQuery());\n }", "public boolean hasEdge(String from, String to) {\n Vertex v1 = mVertices.get(from);\n Vertex v2 = mVertices.get(to);\n if (v1 == null || v2 == null) return false;\n return mAdjList.get(v1).contains(v2);\n }", "private boolean addIfUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) return true;\n path.add(n);\n if (visited.contains(n)) return nodes.containsKey(n);\n visited.add(n);\n boolean useful = false;\n if (nodes.containsKey(n)) {\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n useful = true;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return true;\n }\n if (n.addedEdges != null) {\n if (TRACE_INTER) out.println(\"Useful because of added edge: \"+n);\n useful = true;\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator i = n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n //jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (addIfUseful(visited, path, (Node)o)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+o);\n useful = true;\n } else {\n if (n != o) i.remove();\n }\n } else {\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node n2 = (Node)j.next();\n if (addIfUseful(visited, path, n2)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+n2);\n useful = true;\n } else {\n if (n != n2) j.remove();\n }\n }\n if (!useful) i.remove();\n }\n }\n }\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n // Call \"addIfUseful()\" on all successor checkcast nodes, and set the \"useful\" flag if the call returns true.\n if (n == goestocast && addIfUseful(visited, path, castsucc))\n useful = true;\n }\n }\n if (n instanceof ReturnedNode) {\n if (TRACE_INTER && !useful) out.println(\"Useful because ReturnedNode: \"+n);\n useful = true;\n }\n if (n.predecessors != null) {\n useful = true;\n if (TRACE_INTER && !useful) out.println(\"Useful because target of added edge: \"+n);\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (useful) {\n this.nodes.put(n, n);\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode)n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n if (n instanceof CheckCastNode) {\n // If the \"useful\" flag is true and the node is a checkcast node,\n // call \"addAsUseful()\" on all predecessors.\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n }\n if (TRACE_INTER && !useful) out.println(\"Not useful: \"+n);\n path.remove(n);\n return useful;\n }", "boolean hasDestinationId();", "boolean hasQueryAddress();", "@Test\n\tvoid testAdjacentNodes() {\n\t\tLinkedHashSet<String> edges = null;\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.ofNullable(map.get(\"Boston\"));\n\t\t// Boston does not have any adjacent nodes\n\t\tAssertions.assertTrue(vertexOptional.isEmpty());\n\t\t// if connected vertex is null new vertex is created. Now Adjacent nodes will\n\t\t// not have any nodes inside it.\n\t\tif (vertexOptional.isEmpty()) {\n\t\t\tedges = new LinkedHashSet<String>();\n\t\t\tmap.put(\"Boston\", edges);\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(0, map.get(\"Boston\").size());\n\n\t\t}\n\n\t}", "public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}", "@DisplayName(\"Has edge\")\n @Test\n public void testHasEdge() {\n boolean directed1 = true;\n graph = new Graph(edges, directed1, 0, 5, GraphType.RANDOM);\n Assertions.assertTrue(graph.hasEdge(new Edge(0, 1)));\n }", "@Test\n\tvoid testEdgesAreEqualForGivenVertice() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\n\t\tedges.add(\"Newark\");\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tedges = map.get(\"Boston\");\n\t\tString[] edgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Newark\", edgesArray[0]);\n\t\tAssertions.assertEquals(\"New York\", edgesArray[1]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Philadelphia\");\n\t\tmap.put(\"Newark\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Philadelphia\", edgesArray[0]);\n\n\t\tedges = new LinkedHashSet<String>();\n\t\tedges.add(\"Albany\");\n\t\tmap.put(\"Trenton\", edges);\n\t\tedgesArray = new String[edges.size()];\n\t\tedgesArray = edges.toArray(edgesArray);\n\t\tAssertions.assertEquals(\"Albany\", edgesArray[0]);\n\t}", "public TransactionBuilder checkInternalVertexExistence();", "protected boolean addEdge(Edge<N, E> edge)\n throws GraphLogicException {\n return edge.attach();\n }", "public static boolean verifyGraph(Graph<V, DefaultEdge> g)\n {\n V start = g.vertexSet().stream().filter(V -> V.getID().equals(\"0\")).findAny().orElse(null);\n Iterator<V> iterator = new DepthFirstIterator<>(g, start);\n while (iterator.hasNext()) {\n V v = iterator.next();\n if (v.color == -1)\n {\n System.out.println(\"Did not color vertex \" + v.getID());\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n for (V neighbor : neighbors)\n {\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n return false;\n }\n if (!verifyColor(g, v))\n {\n System.out.println(\"check neighbors of \" + v.getID());\n List<V> neighbors = Graphs.neighborListOf(g, v);\n for (V neighbor : neighbors)\n {\n if (v.color == neighbor.color)\n {\n System.out.println(\"Vertex \" + v.getID() + \" color: \" + v.color);\n System.out.println(\"neighbor \" + neighbor.getID() + \" color: \" + neighbor.color);\n }\n }\n return false;\n }\n }\n return true;\n }", "@Override\r\n\tpublic boolean containsVertex(E key) {\r\n\t\treturn vertices.containsKey(key);\r\n\t}", "protected boolean hasConnection(int start, int end) {\n\t\tfor (Gene g : genes.values()) {\n\t\t\tif (g.start == start && g.end == end)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsVertex(String node) {\n\t\treturn adj_list.containsKey(node);\n\t}", "@Test\n\tvoid testAddSecondEdgeForGivenVertex() {\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.ofNullable(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tedges.add(\"Newark\");\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"Newark\"));\n\t\t}\n\t}", "public boolean addEdge(jq_Field m, Node n) {\n //if (TRACK_REASONS) {\n // if (edgesToReasons == null) edgesToReasons = new HashMap();\n //if (!edgesToReasons.containsKey(Edge.get(this, n, m)))\n // edgesToReasons.put(new Edge(this, n, m), q);\n //}\n n.addPredecessor(m, this);\n if (addedEdges == null) addedEdges = new LinkedHashMap();\n Object o = addedEdges.get(m);\n if (o == null) {\n addedEdges.put(m, n);\n return true;\n }\n if (o instanceof Set) {\n return ((Set)o).add(n);\n }\n if (o == n) {\n return false;\n }\n Set s = NodeSet.FACTORY.makeSet(); s.add(o); s.add(n);\n addedEdges.put(m, s);\n return true;\n }", "@Override\n\t\tpublic boolean equals(Object o){\n\t\t\tEdge other = (Edge) o;\n\t\t\tif((other.src.equals(this.src) && other.dest.equals(other.dest))\n\t\t\t\t\t|| (other.dest.equals(this.src) && other.src.equals(this.dest))){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}" ]
[ "0.83860016", "0.6556163", "0.6417052", "0.6335431", "0.63323164", "0.62898684", "0.6276972", "0.6272929", "0.62519145", "0.61994797", "0.6184627", "0.6151606", "0.6113072", "0.6088666", "0.6020854", "0.6017651", "0.60044146", "0.5996091", "0.5935599", "0.589265", "0.5866231", "0.58628744", "0.5814691", "0.5771586", "0.5765897", "0.57656217", "0.5756759", "0.57523805", "0.5743493", "0.5723544", "0.57023525", "0.5662638", "0.56461287", "0.56459785", "0.56159234", "0.56145203", "0.55866426", "0.55825", "0.5566705", "0.5564565", "0.55503637", "0.5541775", "0.5521757", "0.5515499", "0.5508869", "0.5505196", "0.5498531", "0.5485698", "0.54769135", "0.5476844", "0.5471616", "0.54589725", "0.5454029", "0.5441898", "0.5439507", "0.54285973", "0.54168785", "0.54164875", "0.54133064", "0.5408038", "0.5400732", "0.53989226", "0.5394507", "0.5383346", "0.53628445", "0.5360339", "0.5356015", "0.5352617", "0.5350102", "0.53432155", "0.5316143", "0.53155375", "0.53084415", "0.5307232", "0.53011477", "0.5298944", "0.5289097", "0.5286653", "0.5284835", "0.5275028", "0.52678555", "0.526644", "0.52617246", "0.5257191", "0.5256159", "0.5254599", "0.52533233", "0.52454805", "0.524529", "0.524019", "0.52319264", "0.5231217", "0.5228878", "0.52248967", "0.52214575", "0.5219708", "0.5218185", "0.52101535", "0.52041394", "0.52017087" ]
0.6698398
1
Builds a graph from the mapped nodes and edges
public abstract Multigraph buildMatchedGraph();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Graph<Integer, DefaultEdge> buildMap();", "private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }", "public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }", "Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }", "private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}", "private void buildGraph() {\n\t\tfor (Map<String, Channel> map: this.channels.values()) {\n\t\t\t// Add all channels\n\t\t\t\n\t\t\t// TODO: deal with channels spread over multiple redis instances (replicated)\n\t\t\t\n\t\t\t// Add all but ignore if some channels should be ignored\n\t\t\tfor (Map.Entry<String, Channel> entry: map.entrySet()) {\n\t\t\t\tif (IGNORE_UNICAST_AND_SUBSCRIBE) {\n\t\t\t\t\tif (entry.getKey().startsWith(\"unicast\") == false && entry.getKey().startsWith(\"sub\") == false) {\n\t\t\t\t\t\tif (entry.getKey().startsWith(\"tile\")) {\n\t\t\t\t\t\t\tchannelList.add(entry.getValue());\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tchannelList.add(entry.getValue());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//channelList.addAll(map.values());\n\t\t}\n\t\t\n\t\t// Double-iteration to build pairs\n\t\tfor (Channel channel1: channelList) {\n\t\t\tfor (Channel channel2: channelList) {\n\t\t\t\tif (channel1 != channel2) {\n\t\t\t\t\t// Put channels as nodes in the set\n\t\t\t\t\tthis.nodes.add(channel1.getChannelName());\n\t\t\t\t\tthis.nodes.add(channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Build pair\n\t\t\t\t\tChannelPair pair = new ChannelPair(channel1.getChannelName(), channel2.getChannelName());\n\t\t\t\t\t\n\t\t\t\t\t// Check if it is contained in the map\n\t\t\t\t\tif (this.pairMultiplicity.containsKey(pair) == false) {\n\t\t\t\t\t\t// Count common subscribers\n\t\t\t\t\t\tint commonSubscribers = countCommonSubscribers(channel1, channel2);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (commonSubscribers > 0) {\n\t\t\t\t\t\t\t// Perform computation and add it\n\t\t\t\t\t\t\tthis.pairMultiplicity.put(pair, commonSubscribers);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}", "public ImmutableNetwork<Node, Edge> buildGraph() {\n\n // MutableNetwork is an interface requiring a type for nodes and a type for edges\n MutableNetwork<Node, Edge> roads = NetworkBuilder.undirected().build();\n\n // Construct Nodes for cities,\n // and add them to a map\n String[] cities = {\"Wuhan\", \"shanghai\", \"Beijing\", \"Tianjin\", \"dalian\"};\n\n Map<String, Node> all_nodes = new TreeMap<String, Node>();\n for (int i = 0; i < cities.length; i++) {\n // Add nodes to map\n Node node = new Node(cities[i]);\n all_nodes.put(cities[i], node);\n\n // Add nodes to network\n roads.addNode(node);\n }\n\n // Construct Edges for roads,\n // and add them to a map\n String[] distances = {\"Wuhan:shanghai:9239\", \"Wuhan:Beijing:1103\", \"Wuhan:Tianjin:1162\", \"Wuhan:dalian:1423\", \"shanghai:Beijing:1214\", \"shanghai:Tianjin:20\", \"Beijing:Tianjin:4\", \"shanghai:dalian:1076\", \"Tianjin:dalian:802\" };\n //String[] distances = {\"A:B:10\",\"A:D:20\", \"A:C:15\", \"B:D:25\", \"B:C:35\" , \"C:D:30\"};\n Map<String, Edge> all_edges = new TreeMap<String, Edge>();\n for (int j = 0; j < distances.length; j++) {\n // Parse out (city1):(city2):(distance)\n String[] splitresult = distances[j].split(\":\");\n String left = splitresult[0];\n String right = splitresult[1];\n String label = left + \":\" + right;\n int value = Integer.parseInt(splitresult[2]);\n\n // Add edges to map\n Edge edge = new Edge(left, right, value);\n all_edges.put(label, edge);\n\n // Add edges to network\n roads.addEdge(all_nodes.get(edge.left), all_nodes.get(edge.right), edge);\n }\n\n // Freeze the network\n ImmutableNetwork<Node, Edge> frozen_roads = ImmutableNetwork.copyOf(roads);\n\n return frozen_roads;\n }", "public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }", "public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}", "public void buildGraph(){\n\t}", "public static Graph instantiateAdjacencyMapGraph() {\r\n\t\treturn new AdjacencyMapGraph();\r\n\t}", "public GraphNode buildGraph()\n {\n GraphNode node1 = new GraphNode(1);\n GraphNode node2 = new GraphNode(2);\n GraphNode node3 = new GraphNode(3);\n GraphNode node4 = new GraphNode(4);\n List<GraphNode> v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node1.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node1);\n v.add(node3);\n node2.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node2);\n v.add(node4);\n node3.neighbours = v;\n v = new ArrayList<GraphNode>();\n v.add(node3);\n v.add(node1);\n node4.neighbours = v;\n return node1;\n }", "public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}", "public Graph(Collection<LabeledEdge> edges, Collection<Vertex> vertices) {\n\t\tthis.edges = new HashSet<>(edges);\n\t\tthis.vertices = new HashSet<>(vertices);\n\t\tthis.edgesByStart = new HashMap<>();\n\t\tthis.edgesByEnd = new HashMap<>();\n\t\tthis.edgesByAction = new HashMap<>();\n\t\tthis.searcher = null;\n\t\tfor(Vertex vertex : vertices){\n\t\t\tthis.edgesByStart.put(vertex, new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByEnd.put(vertex, new HashSet<LabeledEdge>());\n\t\t}\n\t\tfor(LabeledEdge trans : edges){\n\t\t\tassert(edgesByStart.keySet().contains(trans.getStart()));\n\t\t\tassert(edgesByEnd.keySet().contains(trans.getEnd()));\n\t\t\tthis.edgesByStart.get(trans.getStart()).add(trans);\n\t\t\tthis.edgesByEnd.get(trans.getEnd()).add(trans);\n\t\t\tif(edgesByAction.get(trans.getLabel()) == null)\n\t\t\t\tedgesByAction.put(trans.getLabel(), new HashSet<LabeledEdge>());\n\t\t\tthis.edgesByAction.get(trans.getLabel()).add(trans);\n\t\t}\n\t}", "public Map<V,List<E>> adjacencyMap(){\n\t\tMap<V,List<E>> ret = new HashMap<V,List<E>>();\n\t\tfor (E e : edges){\n\t\t\tif (virtualEdges.contains(e))\n\t\t\t\tcontinue;\n\t\t\tList<E> list;\n\t\t\tif (!ret.containsKey(e.getOrigin())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getOrigin(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getOrigin());\n\t\t\tlist.add(e);\n\t\t\t\n\t\t\tif (!ret.containsKey(e.getDestination())){\n\t\t\t\tlist = new ArrayList<E>();\n\t\t\t\tret.put(e.getDestination(), list);\n\t\t\t}\n\t\t\telse\n\t\t\t\tlist = ret.get(e.getDestination());\n\t\t\tlist.add(e);\n\t\t}\n\t\treturn ret;\n\t}", "public static strictfp void main(String... args) {\n\t\tArrayList<Vertex> graph = new ArrayList<>();\r\n\t\tHashMap<Character, Vertex> map = new HashMap<>();\r\n\t\t// add vertices\r\n\t\tfor (char c = 'a'; c <= 'i'; c++) {\r\n\t\t\tVertex v = new Vertex(c);\r\n\t\t\tgraph.add(v);\r\n\t\t\tmap.put(c, v);\r\n\t\t}\r\n\t\t// add edges\r\n\t\tfor (Vertex v: graph) {\r\n\t\t\tif (v.getNodeId() == 'a') {\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t} else if (v.getNodeId() == 'b') {\r\n\t\t\t\tv.getAdjacents().add(map.get('a'));\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t} else if (v.getNodeId() == 'c') {\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'd') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('e'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t} else if (v.getNodeId() == 'e') {\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t} else if (v.getNodeId() == 'f') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('d'));\r\n\t\t\t\tv.getAdjacents().add(map.get('e'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t} else if (v.getNodeId() == 'g') {\r\n\t\t\t\tv.getAdjacents().add(map.get('f'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'h') {\r\n\t\t\t\tv.getAdjacents().add(map.get('a'));\r\n\t\t\t\tv.getAdjacents().add(map.get('b'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t\tv.getAdjacents().add(map.get('i'));\r\n\t\t\t} else if (v.getNodeId() == 'i') {\r\n\t\t\t\tv.getAdjacents().add(map.get('c'));\r\n\t\t\t\tv.getAdjacents().add(map.get('g'));\r\n\t\t\t\tv.getAdjacents().add(map.get('h'));\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t// graph created\r\n\t\t// create disjoint sets\r\n\t\tDisjointSet S = null, V_S = null;\r\n\t\tfor (Vertex v: graph) {\r\n\t\t\tchar c = v.getNodeId();\r\n\t\t\tif (c == 'a' || c == 'b' || c == 'd' || c == 'e') {\r\n\t\t\t\tif (S == null) {\r\n\t\t\t\t\tS = v.getDisjointSet();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tDisjointSet set = DisjointSet.union(S, v.getDisjointSet());\r\n\t\t\t\t\tv.setDisjointSet(set);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (V_S == null) {\r\n\t\t\t\t\tV_S = v.getDisjointSet();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tDisjointSet set = DisjointSet.union(V_S, v.getDisjointSet());\r\n\t\t\t\t\tv.setDisjointSet(set);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Disjoint sets created\r\n\t\tfor (Vertex u: graph) {\r\n\t\t\tfor (Vertex v: u.getAdjacents()) {\r\n\t\t\t\tif (DisjointSet.findSet((DisjointSet) u.getDisjointSet()) == \r\n\t\t\t\t DisjointSet.findSet((DisjointSet) v.getDisjointSet())) {\r\n\t\t\t\t\tSystem.out.println(\"The cut respects (\" + u.getNodeId() + \", \" + v.getNodeId() + \").\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Vertex[] createGraph(){\n\t\t /* constructing a graph using matrices\n\t\t * If there is a connection between two adjacent LETTERS, the \n\t * cell will contain a num > 1, otherwise a 0. A value of -1 in the\n\t * cell denotes that the cities are not neighbors.\n\t * \n\t * GRAPH (with weights b/w nodes):\n\t * E+---12-------+B--------18-----+F----2---+C\n\t * +\t\t\t\t+\t\t\t\t +\t\t +\n\t * |\t\t\t\t|\t\t\t\t/\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t |\n\t * |\t\t\t\t|\t\t\t |\t\t 10\n\t * 24\t\t\t\t8\t\t\t 8\t |\n\t * |\t\t\t\t|\t\t\t |\t\t +\n\t * |\t\t\t\t|\t\t\t | H <+---11---I\n\t * |\t\t\t\t|\t\t\t /\n\t * +\t\t\t\t+\t\t\t +\n\t * G+---12----+A(start)+---10--+D\n\t * \n\t * NOTE: I is the only unidirectional node\n\t */\n\t\t\n\t\tint cols = 9;\n\t\tint rows = 9;\n\t\t//adjacency matrix\n\t\t\t\t //A B C D E F G H I\n\t int graph[][] = { {0,8,0,10,0,0,12,0,0}, //A\n\t {8,0,0,0,12,18,0,0,0}, //B\n\t {0,0,0,0,0,2,0,10,0}, //C\n\t {10,0,0,0,0,8,0,0,0}, //D\n\t {0,12,0,0,0,0,24,0,0}, //E\n\t {0,18,2,8,0,0,0,0,0}, //F\n\t {12,0,0,0,0,0,24,0,0}, //G\n\t {0,0,10,0,0,0,0,0,11}, //H\n\t {0,0,0,0,0,0,0,11,0}}; //I\n\t \n\t //initialize stores vertices\n\t Vertex[] vertices = new Vertex[rows]; \n\n\t //Go through each row and collect all [i,col] >= 1 (neighbors)\n\t int weight = 0; //weight of the neighbor\n\t for (int i = 0; i < rows; i++) {\n\t \tVector<Integer> vec = new Vector<Integer>(rows);\n\t\t\tfor (int j = 0; j < cols; j++) {\n\t\t\t\tif (graph[i][j] >= 1) {\n\t\t\t\t\tvec.add(j);\n\t\t\t\t\tweight = j;\n\t\t\t\t}//is a neighbor\n\t\t\t}\n\t\t\tvertices[i] = new Vertex(Vertex.getVertexName(i), vec);\n\t\t\tvertices[i].state = weight;\n\t\t\tvec = null; // Allow garbage collection\n\t\t}\n\t return vertices;\n\t}", "private static <N> ImmutableMap<N, GraphConnections<N, GraphConstants.Presence>> getNodeConnections(Graph<N> paramGraph) {\n }", "public Graph(int vertices, int[][] edges) {\n this.vertices = vertices;\n this.edges = edges;\n childToParentMap = new HashMap<>();\n\n // initialize map\n for (int i = 0; i < vertices; i++) {\n // put parent as null for each of the vertices\n childToParentMap.put(i, null);\n }\n }", "private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }", "private Map<String, AirportNode> createAirportGraph(List<String> airports, List<List<String>> routes) {\n Map<String, AirportNode> airportGraph = new HashMap<>();\n // put into graph the airports\n for (String airport : airports) {\n airportGraph.put(airport, new AirportNode(airport));\n }\n\n // add connections to each airport\n for (List<String> route : routes) {\n String airport = route.get(0); // first element is airport\n String connection = route.get(1); // second element is the connection\n airportGraph.get(airport).connections.add(connection);\n }\n return airportGraph;\n }", "private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }", "public AbstractListMapGraph()\n\t{\n\t\tsuper();\n\t\tedgeList = new ArrayList<ET>();\n\t\tnodeList = new ArrayList<N>();\n\t\tgcs = new GraphChangeSupport<N, ET>(this);\n\t\tnodeEdgeMap = new HashMap<N, Set<ET>>();\n\t}", "public abstract void map(Edge queryEdge, Edge graphEdge);", "public Graphs() {\n graph = new HashMap<>();\n }", "@SuppressWarnings(\"hiding\")\n\tprivate static void createNavGraph(List<Node> nodeList, Node[][] nodes, int columns, int rows)\n\t{\n\t\t// Build the navigation graph. 0,0 = bottom left.\n\t\t// For now, the navigation graph has one node per map cell, but this may change in the future.\n\t\tfor (int row = 0; row < rows; ++row)\n\t\t{\n\t\t\tfor (int column = 0; column < columns; ++column)\n\t\t\t{\n\t\t\t\tNode node = new Node((int)(column * Node.Size + Screen.Zero.x), (int)(row * Node.Size + Screen.Zero.y));\n\t\t\t\tnodeList.add(node);\n\t\t\t\tnodes[column][row] = node;\n\t\t\t\taddEdges(nodes, row, column, columns);\n\t\t\t}\n\t\t}\n\t\t\n\t\tsetPassability();\n\t}", "private int[][] buildGraph(List<Link> links, List<Node> nodes) throws Exception {\r\n \r\n int graph[][] = new int[nodes.size()][nodes.size()];\r\n // Initialize\r\n for (int i=0; i<graph.length; i++) {\r\n for (int j=0; j<graph.length; j++) {\r\n graph[i][j] = -1;\r\n }\r\n graph[i][i] = 0; // A node has distance 0 to itself\r\n }\r\n \r\n for (int k=0; k<links.size(); k++) {\r\n Link link = links.get(k);\r\n\r\n Node startNode = link.getStartPort().getNode();\r\n int startNodeIndex = findNodeInList(nodes, startNode);\r\n //int startNodeIndex = nodes.indexOf(startNode);\r\n\r\n Node endNode = link.getEndPort().getNode();\r\n int endNodeIndex = findNodeInList(nodes, endNode);\r\n //int endNodeIndex = nodes.indexOf(endNode);\r\n \r\n // Update the value in the adjacency matrix if it is not\r\n // initialized (-1), OR if it has been initialized, but the\r\n // new weight is smaller. This means that if there are multiple\r\n // links between the same start and end, only the link with the\r\n // smallest weight is taken into account for the route computation.\r\n if ( (graph[startNodeIndex][endNodeIndex]==-1) ||\r\n graph[startNodeIndex][endNodeIndex] > link.getDelay() ) {\r\n graph[startNodeIndex][endNodeIndex] = link.getDelay();\r\n }\r\n }\r\n \r\n return graph;\r\n }", "private void createEdges() throws IOException {\r\n\t\tString line;\r\n\t\tString fromVertex=null;\r\n\t\tString toVertex=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\ttoVertex= line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"is_a:\"))\r\n\t\t\t\t{\r\n\t\t\t\tfromVertex = nocomment(line.substring(colon+1));\r\n\t\t\t\t//System.out.println(fromVertex+\" to be connected to: \"+toVertex);\r\n\t\t\t\tTerm fromNode = terms.get(fromVertex);\r\n\t\t\t\tTerm toNode = terms.get(toVertex);\r\n\t\t\t\tif (fromNode.namespace.equals(\"molecular_function\") && toNode.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse if (fromNode.namespace.equals(\"biological_process\") && toNode.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addEdge(fromNode, toNode);\r\n\t\t\t\t} \r\n\t\t\t\telse if (fromNode.namespace.equals(\"cellular_component\") && toNode.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"FAILED TO ADD TO DAG, not belonging to the same NAMESPACE\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}", "AdjacencyGraph(){\r\n vertices = new HashMap<>();\r\n }", "private List<Vertex> prepareGraphAdjacencyList() {\n\n\t\tList<Vertex> graph = new ArrayList<Vertex>();\n\t\tVertex vertexA = new Vertex(\"A\");\n\t\tVertex vertexB = new Vertex(\"B\");\n\t\tVertex vertexC = new Vertex(\"C\");\n\t\tVertex vertexD = new Vertex(\"D\");\n\t\tVertex vertexE = new Vertex(\"E\");\n\t\tVertex vertexF = new Vertex(\"F\");\n\t\tVertex vertexG = new Vertex(\"G\");\n\n\t\tList<Edge> edges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 2));\n\t\tedges.add(new Edge(vertexD, 6));\n\t\tedges.add(new Edge(vertexF, 5));\n\t\tvertexA.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 2));\n\t\tedges.add(new Edge(vertexC, 7));\n\t\tvertexB.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexB, 7));\n\t\tedges.add(new Edge(vertexD, 9));\n\t\tedges.add(new Edge(vertexF, 1));\n\t\tvertexC.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 6));\n\t\tedges.add(new Edge(vertexC, 9));\n\t\tedges.add(new Edge(vertexE, 4));\n\t\tedges.add(new Edge(vertexG, 8));\n\t\tvertexD.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 4));\n\t\tedges.add(new Edge(vertexF, 3));\n\t\tvertexE.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexA, 5));\n\t\tedges.add(new Edge(vertexC, 1));\n\t\tedges.add(new Edge(vertexE, 3));\n\t\tvertexF.incidentEdges = edges;\n\n\t\tedges = new ArrayList<Edge>();\n\t\tedges.add(new Edge(vertexD, 8));\n\t\tvertexG.incidentEdges = edges;\n\n\t\tgraph.add(vertexA);\n\t\tgraph.add(vertexB);\n\t\tgraph.add(vertexC);\n\t\tgraph.add(vertexD);\n\t\tgraph.add(vertexE);\n\t\tgraph.add(vertexF);\n\t\tgraph.add(vertexG);\n\n\t\treturn graph;\n\t}", "private DirectedGraph<State, UniqueEdge> getGraph() {\r\n \t\tDirectedGraph<State, UniqueEdge> graph = new DirectedMultigraph<State, UniqueEdge>(\r\n \t\t\t\tUniqueEdge.class);\r\n \t\tfor (State source : states.values()) {\r\n \t\t\tgraph.addVertex(source);\r\n \t\t\tint index = source.getIndex();\r\n \t\t\tTransition transition = transitions.get(index);\r\n \t\t\tList<NextStateInfo> nextState = transition.getNextStateInfo();\r\n \t\t\tfor (NextStateInfo info : nextState) {\r\n \t\t\t\tState target = info.getTargetState();\r\n \t\t\t\tgraph.addVertex(target);\r\n \t\t\t\tgraph.addEdge(source, target, new UniqueEdge(info.getAction()));\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn graph;\r\n \t}", "@Override\n\tpublic HashMap<Position, Node> generate(){\n\t\tNode tempNode;\n\t\tPosition tempPosition;\n\t\tif(map != null && map.isEmpty()){\n\t\t\tfor(int y=0; y<numNodesY; y++){\n\t\t\t\tfor(int x=0; x<numNodesX; x++){\n\t\t\t\t\ttempPosition = new Position(x*nodeDistance, \n\t\t\t\t\t\t\ty*nodeDistance);\n\t\t\t\t\ttempNode = new Node(field, tempPosition,\n\t\t\t\t\t\t\tnodeSignalStrength,\n\t\t\t\t\t\t\tagentLife,\n\t\t\t\t\t\t\trequestLife);\n\t\t\t\t\tmap.put(tempPosition, tempNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new HashMap<Position, Node>(map);\n\t}", "public HashMap<Intersection,LinkedList<Segment>> createGraph() {\n for (Intersection inter : intersectionList) {\n LinkedList<Segment> interSegments = new LinkedList<>();\n Long intersectionID = inter.getId();\n for (Segment segment : segmentList) {\n Long segmentOriginId = segment.getOrigin().getId();\n if (segmentOriginId.equals(intersectionID)) {\n interSegments.add(segment);\n }\n }\n graphe.put(inter, interSegments);\n }\n return graphe;\n }", "private void initializeEdges() {\n for (NasmInst inst : nasm.listeInst) {\n if (inst.source == null || inst.destination == null)\n return;\n Node from = inst2Node.get(label2Inst.get(inst.source.toString()));\n Node to = inst2Node.get(label2Inst.get(inst.destination.toString()));\n if (from == null || to == null)\n return;\n graph.addEdge(from, to);\n }\n }", "private void createNodesMaps()\n {\n Maze maze = gameState.getMazeState().getMaze();\n\n for (Node node : maze.getNodes()) {\n pixelsNodes.put(nodeToPixelIndex(node), node);\n }\n\n for (Node node : maze.getPillsNodes()) {\n pixelsPillNodes.put(nodeToPixelIndex(node), node);\n }\n\n for (Node node : maze.getPowerPillsNodes()) {\n pixelsPowerPillNodes.put(nodeToPixelIndex(node), node);\n }\n }", "public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}", "public Graph createGraph() {\n String fileName;\n// fileName =\"./428333.edges\";\n String line;\n Graph g = new Graph();\n// List<String> vertexNames = new ArrayList<>();\n// try\n// {\n// BufferedReader in=new BufferedReader(new FileReader(fileName));\n// line=in.readLine();\n// while (line!=null) {\n////\t\t\t\tSystem.out.println(line);\n// String src = line.split(\" \")[0];\n// String dst = line.split(\" \")[1];\n//// vertexNames.add(src);\n//// vertexNames.add(dst);\n//// System.out.println(src+\" \"+dst);\n// g.addEdge(src, dst, 1);\n// line=in.readLine();\n// }\n// in.close();\n// } catch (Exception e) {\n//\t\t\te.printStackTrace();\n// }\n\n fileName=\"./788813.edges\";\n// List<String> vertexNames = new ArrayList<>();\n try\n {\n BufferedReader in=new BufferedReader(new FileReader(fileName));\n line=in.readLine();\n while (line!=null) {\n//\t\t\t\tSystem.out.println(line);\n String src = line.split(\" \")[0];\n String dst = line.split(\" \")[1];\n g.addEdge(src, dst, 1);\n line=in.readLine();\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n// Graph g = new Graph(new String[]{\"v0\", \"v1\", \"v2\", \"v3\", \"v4\", \"v5\", \"v6\", \"v7\", \"v8\"});\n// // Add the required edges.\n// g.addEdge(\"v0\", \"v1\", 4); g.addEdge(\"v0\", \"v7\", 8);\n// g.addEdge(\"v1\", \"v2\", 8); g.addEdge(\"v1\", \"v7\", 11); g.addEdge(\"v2\", \"v1\", 8);\n// g.addEdge(\"v2\", \"v8\", 2); g.addEdge(\"v2\", \"v5\", 4); g.addEdge(\"v2\", \"v3\", 7);\n// g.addEdge(\"v3\", \"v2\", 7); g.addEdge(\"v3\", \"v5\", 14); g.addEdge(\"v3\", \"v4\", 9);\n// g.addEdge(\"v4\", \"v3\", 9); g.addEdge(\"v4\", \"v5\", 10);\n// g.addEdge(\"v5\", \"v4\", 10); g.addEdge(\"v5\", \"v3\", 9); g.addEdge(\"v5\", \"v2\", 4);\n// g.addEdge(\"v5\", \"v6\", 2);\n// g.addEdge(\"v6\", \"v7\", 1); g.addEdge(\"v6\", \"v8\", 6); g.addEdge(\"v6\", \"v5\", 2);\n// g.addEdge(\"v7\", \"v0\", 8); g.addEdge(\"v7\", \"v8\", 7); g.addEdge(\"v7\", \"v1\", 11);\n// g.addEdge(\"v7\", \"v6\", 1);\n// g.addEdge(\"v8\", \"v2\", 2); g.addEdge(\"v8\", \"v7\", 7); g.addEdge(\"v8\", \"v6\", 6);\n\n//\n return g;\n }", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "private Graph<Node, DefaultEdge> initialiseSpaceGraph() {\n Graph<Node, DefaultEdge> g = new SimpleGraph<>(DefaultEdge.class);\n g = addNodes(g);\n g = addEdges(g);\n return g;\n }", "@RequestMapping(value=\"/async/graph\", method=RequestMethod.GET)\n\tpublic @ResponseBody GraphPojo getGraph() {\n\t\tList<Collection> collections = collectionService.findAllCurrent();\n\t\tList<Agent> agents = agentService.findAllCurrent();\n\t\tList<NodePojo> nodes = new ArrayList<NodePojo>();\n\t\tList<EdgePojo> edges = new ArrayList<EdgePojo>();\n\t\tList<String> nodeIds = new ArrayList<String>();\n\t\t\n\t\tNodePojo node;\n\t\tEdgePojo edge;\n\t\t\n\t\t// Nodes\n\t\tfor (Collection c : collections) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(c.getEntityId());\n\t\t\tnode.setLabel(c.getLocalizedDescriptions().get(0).getTitle());\n\t\t\tnode.setType(\"collection\");\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(agent.getEntityId());\n\t\t\t\n\t\t\tif (agent.getForeName()==null) {\n\t\t\t\tnode.setType(\"organization\");\n\t\t\t} else {\n\t\t\t\tnode.setType(\"person\");\n\t\t\t}\n\t\t\t\n\t\t\tString name = (agent.getForeName()==null? \"\": (agent.getForeName() + \" \")) + agent.getName() ;\n\t\t\tnode.setLabel(name);\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\t\n\t\t// Edges\n\t\tfor (Collection c : collections) {\n\t\t\tif (c.getRelations()!=null) {\n\t\t\t\tfor (CollectionRelation cr : c.getRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(cr.getSourceEntityId());\n\t\t\t\t\tedge.setTarget(cr.getTargetEntityId());\n\t\t\t\t\t\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (c.getAgentRelations()!=null && c.getAgentRelations().size()!=0) {\n\t\t\t\tfor (CollectionAgentRelation car : c.getAgentRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(c.getEntityId());\n\t\t\t\t\tedge.setTarget(car.getAgentId());\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tif (agent.getParentAgentId()!=null && !agent.getParentAgentId().isEmpty()) {\n\t\t\t\tedge = new EdgePojo();\n\t\t\t\tedge.setSource(agent.getEntityId());\n\t\t\t\tedge.setTarget(agent.getParentAgentId());\n\t\t\t\t\n\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\tedges.add(edge);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tGraphPojo graph = new GraphPojo();\n\t\tgraph.setNodes(nodes);\n\t\tgraph.setEdges(edges);\n\t\t\n\t\treturn graph;\t\t\n\t}", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}", "public static Graph createGraphFromDataSet(DataSet dataset){\n Logger logger = LoggerFactory.getLogger(GSHelper.class);\n Graph g = new DefaultGraph(\"temp\");\n g.setStrict(false);\n g.setAutoCreate(true); //automatically create nodes based on edges\n for (CoriaEdge edge : dataset.getEdges()) {\n try {\n logger.trace(\"Edge: \" + edge);\n Edge e = g.addEdge(edge.getSourceNode() + \"->\" + edge.getDestinationNode(), edge.getSourceNode(), edge.getDestinationNode());\n for(Map.Entry<String, String> att : edge.getAttributes().entrySet()){\n e.addAttribute(att.getKey(), att.getValue());\n }\n } catch (Exception ex) {\n logger.error(\"failed creating edge for CoriaEdge {}\", edge);\n logger.error(ex.getMessage());\n return null;\n }\n }\n return g;\n }", "Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}", "public Graphs(int maxNumVertices) {\n\t\tthis.maxNumVertices = maxNumVertices + 1;\n\t\tthis.adjListMap = new HashMap<Integer, ArrayList<Integer>>();\n\t\tfor (int i = 0; i < this.maxNumVertices; i++) {\n\t\t\tadjListMap.put(i, new ArrayList<Integer>());\n\t\t}\n\t\t// Reachability matrix so that isLinked() look ups are O(1)\n\t\tthis.reachabilityMatrix = new boolean[this.maxNumVertices + 1][this.maxNumVertices + 1];\n\t}", "Iterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;", "public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}", "public void fillAdjacencyMap(ColEdge[] edges) {\n for (ColEdge edge : edges) {\n edgeMake(edge.u - 1, edge.v - 1);\n }\n\n }", "public MyGraph(Collection<Vertex> v, Collection<Edge> e) {\n myGraph = new HashMap<Vertex, Collection<Edge>>();\n \n Iterator<Vertex> vertices = v.iterator();\n while(vertices.hasNext()) {\n //create a new vertex copy of each passes in vertex in Collection v to restrict any reference\n //to the internals of this class\n Vertex currV = new Vertex(vertices.next().getLabel()); //NEW\n //Vertex currV = vertices.next(); OLD\n if(!myGraph.containsKey(currV)){\n //add the copy of the vertex into the HashMap\n myGraph.put(currV, new ArrayList<Edge>());\n }\n }\n\n Iterator<Edge> edges = e.iterator();\n while(edges.hasNext()){\n //copies a new edge for each edge in Collection e to restrict any reference \n //to the internals of this class\n Edge parameterEdge = edges.next();\n Edge currE = new Edge(parameterEdge.getSource(), parameterEdge.getDestination(), parameterEdge.getWeight()); //NEW\n //Edge currE = edges.next(); OLD\n if(currE.getWeight() < 0){\n throw new IllegalArgumentException(\"Edge weight is negative\");\n }\n Vertex currESrc = currE.getSource();\n Vertex currEDest = currE.getDestination();\n if(v.contains(currESrc) && v.contains(currEDest)){\n Collection<Edge> outEdges = myGraph.get(currESrc);\n if(!outEdges.contains(currE)){\n //add the copy of the edge as a value in the HashMap\n outEdges.add(currE);\n }\n } else {\n throw new IllegalArgumentException(\"Vertex in edge is not valid\");\n }\n }\n }", "void makeSampleGraph() {\n\t\tg.addVertex(\"a\");\n\t\tg.addVertex(\"b\");\n\t\tg.addVertex(\"c\");\n\t\tg.addVertex(\"d\");\n\t\tg.addVertex(\"e\");\n\t\tg.addVertex(\"f\");\n\t\tg.addVertex(\"g\");\n\t\tg.addEdge(\"a\", \"b\");\n\t\tg.addEdge(\"b\", \"c\");\n\t\tg.addEdge(\"b\", \"f\");\n\t\tg.addEdge(\"c\", \"d\");\n\t\tg.addEdge(\"d\", \"e\");\n\t\tg.addEdge(\"e\", \"f\");\n\t\tg.addEdge(\"e\", \"g\");\n\t}", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "private void buildIndex(Collection<Edge> edges) {\n\t\tfor (Edge e : edges) {\r\n\t\t\tList<Integer> ids = getCells(e);\r\n\t\t\tfor (int j = 0; j < ids.size(); j++) {\r\n\t\t\t\tList<Edge> list = dict.get(ids.get(j));\r\n\t\t\t\tif (list == null) {\r\n\t\t\t\t\tlist = new ArrayList<Edge>();\r\n\t\t\t\t\tdict.put(ids.get(j), list);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private KeyedGraph<VWBetw, Edge> prepareGraph(final DataSet edges) {\n KeyedGraph<VWBetw, Edge> graph;\n \n // Get the graph orientation.\n int graphType = -1;\n if (globalOrientation != null) {\n graphType = globalOrientation.equalsIgnoreCase(DIRECTED)\n ? GraphSchema.DIRECT\n : globalOrientation.equalsIgnoreCase(REVERSED)\n ? GraphSchema.DIRECT_REVERSED\n : globalOrientation.equalsIgnoreCase(UNDIRECTED)\n ? GraphSchema.UNDIRECT\n : -1;\n } else if (graphType == -1) {\n LOGGER.warn(\"Assuming a directed graph.\");\n graphType = GraphSchema.DIRECT;\n }\n \n // Create the graph.\n if (weightsColumn != null) {\n graph = new WeightedGraphCreator<VWBetw, Edge>(\n edges,\n graphType,\n edgeOrientationColumnName,\n VWBetw.class,\n Edge.class,\n weightsColumn).prepareGraph();\n } else {\n throw new UnsupportedOperationException(\n \"ST_Distance has not yet been implemented for \"\n + \"unweighted graphs.\");\n }\n return graph;\n }", "public abstract void map(Long queryNode, Long graphNode);", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }", "private IDictionary<URI, ISet<URI>> makeGraph(ISet<Webpage> webpages) {\n IDictionary<URI, ISet<URI>> graph = new ArrayDictionary<URI, ISet<URI>>();\n ISet<URI> webpageUris = new ChainedHashSet<URI>();\n for (Webpage webpage : webpages) {\n \twebpageUris.add(webpage.getUri());\n }\n for (Webpage webpage : webpages) {\n \tURI pageUri = webpage.getUri();\n \tISet<URI> links = new ChainedHashSet<URI>();\n \tfor (URI uri : webpage.getLinks()) {\n \t\tif (!uri.equals(pageUri) && !links.contains(uri) && webpageUris.contains(uri)) {\n \t\t\tlinks.add(uri);\n \t\t}\n \t}\n \tgraph.put(pageUri, links);\n }\n return graph;\n }", "protected Graph<Integer, Edge<Integer>> generateGraph() {\n Graph<Integer, Edge<Integer>> graph = newGraph();\n Integer[] integersArray = new Integer[25];\n\n /*\n * add all integers in [0,24]\n */\n for (int i = 0; i < 25; i++) {\n integersArray[i] = new Integer(i);\n graph.addVertex(integersArray[i]);\n }\n\n /*\n * create edges between all integers i, j for which (i + j) is even\n */\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n if ((i + j) % 2 != 0) {\n continue;\n }\n graph.addEdge(new UnweightedEdge(integersArray[i], integersArray[j]));\n }\n }\n\n return graph;\n }", "public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }", "public Map<Node, MyNode> extractNodes(int numNodes){\r\n\t\t//If numNodes is less than one or there aren't enough nodes, return null\r\n\t\tif (numNodes < 1 || nodesMap.size() < numNodes){\r\n\t\t\treturn null;\r\n\t\t} \r\n\r\n\t\t//Initialize the result set\r\n\t\tMap<Node, MyNode> result = new HashMap<Node, MyNode>();\r\n\r\n\t\t//Special case: If there are no relationships, then return all nodes.\r\n\t\tif(rels.size() == 0){\r\n\t\t\tfor (Node node : nodesMap.keySet()){\r\n\t\t\t\tresult.put(node, nodesMap.get(node));\r\n\t\t\t}\r\n\r\n\t\t\treturn result;\r\n\t\t}\r\n\r\n\t\t//tempRels (used for crawling through the gp)\r\n\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\t\ttempRels.addAll(relsMap.keySet());\r\n\r\n\t\t//Shuffle the tempRels list for random order.\r\n\t\tCollections.shuffle(tempRels, random);\r\n\r\n\t\tboolean first = true;\t//flag for first run\r\n\r\n\t\twhile (result.size() < numNodes) {\t//Loop until we have reached the required result size.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\t\t\t\t\r\n\t\t\t\tif (first){\t\t\t//On the first run\r\n\t\t\t\t\tfirst = false;\t//Update flag\r\n\r\n\t\t\t\t\t//Pick a random relationship and extract its nodes\r\n\t\t\t\t\tRelationship rel = tempRels.get(random.nextInt(tempRels.size()));\r\n\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\tNode src = rel.getStartNode();\r\n\t\t\t\t\tNode tgt = rel.getEndNode();\r\n\r\n\r\n\t\t\t\t\tif (numNodes > 1){\r\n\t\t\t\t\t\t//If numNodes > 1, then add both nodes to result\r\n\t\t\t\t\t\tresult.put(src, nodesMap.get(src));\r\n\t\t\t\t\t\tresult.put(tgt, nodesMap.get(tgt));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//If numNodes == 1, then randomly pick one of the nodes to add to result\r\n\t\t\t\t\t\tif (random.nextBoolean()){\r\n\t\t\t\t\t\t\tresult.put(src, nodesMap.get(src));\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tresult.put(tgt, nodesMap.get(tgt));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\t//On subsequent runs\r\n\r\n\t\t\t\t\tboolean done = false;\t//Flag to specify we're done with this iteration\r\n\t\t\t\t\tint idx = 0;\t\t\t//Loop index counter\r\n\t\t\t\t\twhile (!done){\r\n\t\t\t\t\t\t//Pick the next relationship in tempRels\r\n\t\t\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\t\t\tidx++;\r\n\t\t\t\t\t\tNode other = null;\r\n\r\n\t\t\t\t\t\tif (result.keySet().contains(rel.getStartNode()) && (!result.keySet().contains(rel.getEndNode()))){\r\n\t\t\t\t\t\t\t//If the startNode of the relationship is already in results, but not the end node\r\n\t\t\t\t\t\t\t//then set other to be the end node\r\n\t\t\t\t\t\t\tother = rel.getEndNode();\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t} else if ((!result.keySet().contains(rel.getStartNode())) && result.keySet().contains(rel.getEndNode())){\r\n\t\t\t\t\t\t\t//If the startNode of the relationship is not in results, but the end node is\r\n\t\t\t\t\t\t\t//then set other to be the start node\r\n\t\t\t\t\t\t\tother = rel.getStartNode();\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t} else if (result.keySet().contains(rel.getStartNode()) && result.keySet().contains(rel.getEndNode())){\r\n\t\t\t\t\t\t\t//If both of the nodes of the relationship are in result, remove it from the list\r\n\t\t\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//If we found a matching relationship\r\n\t\t\t\t\t\tif (done){\r\n\t\t\t\t\t\t\t//Add other to the result, and its corresponding mapping\r\n\t\t\t\t\t\t\tresult.put(other, nodesMap.get(other));\r\n\t\t\t\t\t\t\t//Remove rel from the list\r\n\t\t\t\t\t\t\ttempRels.remove(rel);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Graph2D createGraph ()\n {\n Settings settings = Settings.getSettings ();\n int maxDependencyCount = computeMaxDependencyCount (grid);\n GraphManager graphManager = GraphManager.getGraphManager ();\n Graph2D graph = graphManager.createGraph2D ();\n Map<String, Node> allNodes = new HashMap <String, Node> ();\n\n // create graph nodes at each grid cell\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n String label = cell.getClassName ();\n int dotPos = label.lastIndexOf ('.');\n if (dotPos >= 0)\n {\n label = label.substring (dotPos + 1);\n }\n Node node = graph.createNode (x, y, label);\n ClassCloudData.attachCell (node, cell);\n allNodes.put (cell.getClassName (), node);\n NodeRealizer realizer = graph.getRealizer (node);\n realizer.setFillColor (ColorComputer.computeColor (cell.getPreferredX (), cell.getPreferredY (),\n grid.getWidth (), grid.getHeight (), settings));\n NodeLabel nodeLabel = realizer.getLabel ();\n nodeLabel.setFontSize (computeFontSize (cell.getDependencyCount (), maxDependencyCount));\n }\n }\n }\n YDimension maxNodeSize = computeMaxNodeSize (graph);\n double maxWidth = maxNodeSize.getWidth ();\n double maxHeight = maxNodeSize.getHeight ();\n // set first guess for size and position of all nodes\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n Node node = allNodes.get (cell.getClassName ());\n NodeRealizer realizer = graph.getRealizer (node);\n double width = realizer.getLabel ().getWidth ();\n double height = realizer.getLabel ().getHeight ();\n realizer.setFrame (x * (maxWidth + 8) + (maxWidth - width) / 2,\n y * (maxHeight + 8) + (maxHeight - height) / 2,\n width + 4, height + 4);\n }\n }\n }\n // partition all cells into several vertical columns of nodes\n List<List<NodeRealizer>> cellColumns = partitionCells (graph, allNodes);\n // compact all columns by shifting classes down or up to column center\n compactVertically (cellColumns);\n // compact cloud by shifting classes left or right to neighbour classes\n compactHorizontally (cellColumns);\n return graph;\n }", "private final void constructGraph() {\n losScanner = new LineOfSightScannerDouble(graph);\n queue = new int[11];\n\n queueSize = 0;\n\n // STEP 1: Construct SVG (Strict Visibility Graph)\n \n // Initialise SVG Vertices\n xPositions = new int[11];\n yPositions = new int[11];\n nNodes = 0;\n addNodes();\n \n // Now xPositions and yPositions should be correctly initialised.\n // We then initialise the rest of the node data.\n originalSize = nNodes;\n maxSize = nNodes + 2;\n xPositions = Arrays.copyOf(xPositions, maxSize);\n yPositions = Arrays.copyOf(yPositions, maxSize);\n hasEdgeToGoal = new boolean[maxSize];\n nOutgoingEdgess = new int[maxSize];\n outgoingEdgess = new int[maxSize][];\n outgoingEdgeIndexess = new int[maxSize][];\n outgoingEdgeOppositeIndexess = new int[maxSize][];\n outgoingEdgeIsMarkeds = new boolean[maxSize][];\n for (int i=0;i<maxSize;++i) {\n nOutgoingEdgess[i] = 0;\n outgoingEdgess[i] = new int[11];\n outgoingEdgeIndexess[i] = new int[11];\n outgoingEdgeOppositeIndexess[i] = new int[11];\n outgoingEdgeIsMarkeds[i] = new boolean[11];\n }\n\n // Initialise SVG Edges + edgeWeights\n edgeWeights = new float[11];\n nEdges = 0;\n addAllEdges();\n\n \n // Now all the edges, indexes and weights should be correctly initialise.\n // Now we initialise the rest of the edge data.\n originalNEdges = nEdges;\n int maxPossibleNEdges = nEdges + nNodes*2;\n edgeWeights = Arrays.copyOf(edgeWeights, maxPossibleNEdges);\n edgeLevels = new int[maxPossibleNEdges];\n Arrays.fill(edgeLevels, LEVEL_W);\n isMarked = new boolean[maxPossibleNEdges];\n //Arrays.fill(isMarked, false); // default initialises to false anyway.\n \n \n // Reserve space in level w edge and marked edge arrays.\n nLevelWNeighbourss = new int[maxSize];\n levelWEdgeOutgoingIndexess = new int[maxSize][];\n nMarkedEdgess = new int[maxSize];\n outgoingMarkedEdgeIndexess = new int[maxSize][];\n for (int i=0;i<nNodes;++i) {\n levelWEdgeOutgoingIndexess[i] = new int[nOutgoingEdgess[i]];\n outgoingMarkedEdgeIndexess[i] = new int[nOutgoingEdgess[i]];\n }\n for (int i=nNodes;i<maxSize;++i) {\n levelWEdgeOutgoingIndexess[i] = new int[11];\n outgoingMarkedEdgeIndexess[i] = new int[11];\n }\n\n \n // STEP 2: Label edge levels in SVG.\n computeAllEdgeLevelsFast();\n addLevelWEdgesToLevelWEdgesArray();\n\n nSkipEdgess = new int[maxSize];\n outgoingSkipEdgess = new int[maxSize][];\n outgoingSkipEdgeNextNodess = new int[maxSize][];\n outgoingSkipEdgeNextNodeEdgeIndexess = new int[maxSize][];\n outgoingSkipEdgeWeightss = new float[maxSize][]; \n\n // STEP 3: Initialise the skip-edges & Group together Level-W edges using isMarkedIndex.\n setupSkipEdges();\n \n pruneParallelSkipEdges();\n }", "public Map<T, Path> edgesFrom(T node) {\n\t\tif (node == null) {\n\t\t\tthrow new NullPointerException(\"The node should not be null.\");\n\t\t}\n\t\tMap<T, Path> edges = graph.get(node);\n\t\tif (edges == null) {\n\t\t\tthrow new NoSuchElementException(\"Source node does not exist.\");\n\t\t}\n\t\treturn Collections.unmodifiableMap(edges);\n\t}", "private void constructTransitionMatrix() {\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint nodeId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(nodeId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\ttransitionList.add( new NodeTransition(toId, pTransition) );\r\n\t\t\t}\r\n\t\t\tmTransition.add( transitionList );\r\n\t\t}\r\n\t}", "public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void createTopologyGraph() {\n graph = new TopologyGraph(roots, boundaries);\n\n // check and resolve conflicts about input priorities\n AbstractExecNodeExactlyOnceVisitor inputPriorityVisitor =\n new AbstractExecNodeExactlyOnceVisitor() {\n @Override\n protected void visitNode(ExecNode<?> node) {\n if (!boundaries.contains(node)) {\n visitInputs(node);\n }\n updateTopologyGraph(node);\n }\n };\n roots.forEach(n -> n.accept(inputPriorityVisitor));\n }", "public static graphNode[] createGraph() {\n\t\tgraphNode[] graph = new graphNode[16];\n\t\t\n\t\tgraph[0] = new graphNode(1, new graphNode(5, null));\n\t\tgraph[1] = new graphNode(0, null);\n\t\tgraph[2] = new graphNode(7, new graphNode(11, null));\n\t\tgraph[3] = null; //illegal, fox eats chicken\n\t\tgraph[4] = new graphNode(5, new graphNode(7, new graphNode(13, null)));\n\t\tgraph[5] = new graphNode(0, new graphNode(4, null));\n\t\tgraph[6] = null; //illegal, chicken eats grain\n\t\tgraph[7] = new graphNode(2, new graphNode(4, null));\n\t\tgraph[8] = new graphNode(11, new graphNode(13, null));\n\t\tgraph[9] = null; //illegal, chicken eats grain\n\t\tgraph[10] = new graphNode(11, new graphNode(15, null));\n\t\tgraph[11] = new graphNode(2, new graphNode(8, new graphNode(10, null)));\n\t\tgraph[12] = null; //illegal, fox eats chicken\n\t\tgraph[13] = new graphNode(4, new graphNode(8, null));\n\t\tgraph[14] = new graphNode(15, null);\n\t\tgraph[15] = new graphNode(10, new graphNode(14, null));\n\t\t\n\t\treturn graph;\n\t}", "public GraphUtil buildGraph() {\n try {\n GraphUtil graphUtilObject = new GraphUtil();\n graphUtilObject.setCountryGraph(gameMap.getCountryHashMap());\n return graphUtilObject;\n }catch(Exception e) {\n return null;\n }\n }", "private void buildGraph(Target target) {\n Graph g = new Graph();\n\n //add the nodes to the graph\n for (int i = 0; i < vertices.size() ; i++) {\n if (vertices.get(i).getNeigbours().size() != 0) {\n Node d = new Node(\"\" + i);\n d.set_id(i);\n g.add(d);\n }\n }\n\n Node a = new Node(\"\" + (vertices.size() -1));\n a.set_id((vertices.size() -1));\n g.add(a);\n\n //add the edges\n for (int i = 0; i < vertices.size(); i++) {\n GraphNode curr = vertices.get(i);\n if (curr.getNeigbours().size() != 0 ) {\n for (GraphNode neighbour : curr.getNeigbours()) {\n g.addEdge(\"\" + i, \"\" + neighbour.getID(), curr.getPoint().distance2D(neighbour.getPoint()));\n }\n }\n }\n\n // find the minimums path to the fruit\n Graph_Algo.dijkstra(g, \"\"+ 0);\n Node b = g.getNodeByName(\"\" + (vertices.size()-1));\n ArrayList<String> shortestPath = b.getPath();\n target.setDistance(b.getDist());\n\n for (int i = 0 ;i < shortestPath.size() ; i++){\n String s = b.getPath().get(i);\n target.getPath().add(s);\n }\n\n targts.add(target);\n g.clear_meta_data();\n GraphNode.resetCounterId();\n Target.resetCounterId();\n\n if (target.getFruit().getID() != game.getFruits().get(game.getFruits().size()-1).getID()) {\n vertices.clear();\n }\n }", "public Graph getGraph4SingleCores(String nodeId, CustRelationshipMapper custRelationshipMapper, CustPropertyMapper custPropertyMapper) throws CustomException {\n if (StringUtils.isBlank(nodeId)) {\n throw new CustomException(\"[nodeId] is blank null or ' '\");\n }\n\n List<CustRelationship> oneDepthRels = custRelationshipMapper.selectAll1DRelByCertNo(nodeId);\n\n //Map<String, Object> graph = new HashMap<>();\n Graph graph = new Graph();\n if (oneDepthRels.size() == 0) {\n log.info(\"当前1度范围内[边]等于0, 将返回null\");\n graph = new Graph(null, null, StatusCode.NO_MATCHES);\n return graph;\n }\n\n\n\n //仅一度边\n Map<String, Edge> oneDepthEdges = new HashMap<>();\n //一度节点, 含中心\n Map<String, Node> oneDepthNodes = new HashMap<>();\n\n Node core = new Node();\n core.setId(nodeId);\n core.setDepth(0);\n //core 并入 onetDepthNodes\n oneDepthNodes.put(core.getId(), core);\n\n //遍历一度边, 封装数据\n gatherNodeEdge(oneDepthRels, oneDepthEdges, oneDepthNodes,1);\n\n Set<String> oneDepthNodesKeySet = oneDepthNodes.keySet();\n\n //判断一度节点个数, 小于阈值才会继续查询二度边\n if (oneDepthNodes.size() > MAX_DISPLAY_NODES_1D) {\n log.info(\"当前一度范围内[节点]个数大于[{}], 将仅返回一度节点和边数据\", MAX_DISPLAY_NODES_1D);\n\n\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(oneDepthNodesKeySet);\n\n //封装点属性\n dumpCustPropertyData(oneDepthNodes, custProperties, 1);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n\n // -- 一度范围节点数量在范围之内, 则获取所有二度边 --\n\n //装所有节点\n HashMap<String, Node> nodes = (HashMap<String, Node>) ((HashMap<String, Node>) oneDepthNodes).clone();\n //装所有的边\n HashMap<String, Edge> edges = (HashMap<String, Edge>) ((HashMap<String, Edge>) oneDepthEdges).clone();\n\n List<CustRelationship> allRel = custRelationshipMapper.selectRelByGivenCertNos(oneDepthNodesKeySet);\n if (allRel.size() > MAX_DISPLAY_EDGES) {\n log.info(\"当前二度范围内[边]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_EDGES);\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n // -- 二度范围边在范围之内, 则加工边数据集 --\n\n gatherNodeEdge(allRel, edges, nodes,2);\n /* ABANDON: 抽取\n for (CustRelationship rel : allRel) {\n //Note: oneDepthEdges中已有的, 不用再封装了, 没有的, 创建, 封装, 存入edges中, 且depth==2\n if (oneDepthEdges.get(rel.getId()) == null) {\n Edge edge = new Edge(rel.getId(), rel.getuCertNo(), rel.getvCertNo(), rel.getContent(), rel.getContentType(), rel.getRelationType());\n //新建的边, 说明depth==2\n edge.setDepth(2);\n //存入edges\n edges.put(String.valueOf(edge.getId()), edge);\n }\n\n //遇到新节点, 则存入nodes中, 且深度为2 !注意别存错了!\n gatherNodes(nodes, rel, 2);\n }\n */\n\n //查询所有属性: 核, 一度, 二度\n Set<String> allCertNos = nodes.keySet(); //获取所有身份证号, 查取属性数据\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(allCertNos);\n\n //封装属性数据\n dumpCustPropertyData(nodes, custProperties, 2);\n\n //判断节点数目\n if (nodes.size() > MAX_DISPLAY_NODES_2D) {\n //0,1,2度节点之和超过阈值, 则只返回一度节点和边\n log.info(\"当前二度范围内[节点]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_NODES_2D);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n } else {\n //没有超限, 则返回1,2度全部\n log.info(\"返回全部二度范围内节点和边数据\");\n graph.setNodes(nodes);\n graph.setEdges(edges);\n }\n\n\n return graph;\n }", "private void setUpCLRSGraph() {\n\t\tvertices = new HashMap<Character, DirectedOrderedDfsVertex>();\n\t\tfor (char i = 'a'; i <= 'h'; i++) {\n\t\t\tvertices.put(i, new DirectedOrderedDfsVertex());\n\t\t}\n\t\tgraph = new DirectedSimpleGraph<DirectedOrderedDfsVertex>(vertices.values());\n\t\tvertices.get('a').addAdjacency(vertices.get('b'));\n\t\tvertices.get('b').addAdjacency(vertices.get('f'));\n\t\tvertices.get('b').addAdjacency(vertices.get('e'));\n\t\tvertices.get('b').addAdjacency(vertices.get('c'));\n\t\tvertices.get('c').addAdjacency(vertices.get('d'));\n\t\tvertices.get('c').addAdjacency(vertices.get('g'));\n\t\tvertices.get('d').addAdjacency(vertices.get('c'));\n\t\tvertices.get('d').addAdjacency(vertices.get('h'));\n\t\tvertices.get('e').addAdjacency(vertices.get('a'));\n\t\tvertices.get('e').addAdjacency(vertices.get('f'));\n\t\tvertices.get('f').addAdjacency(vertices.get('g'));\n\t\tvertices.get('g').addAdjacency(vertices.get('f'));\n\t\tvertices.get('g').addAdjacency(vertices.get('h'));\n\t\tvertices.get('h').addAdjacency(vertices.get('h'));\n\t}", "public void fillEdges() {\n\t\tfor (int y = 0; y < mapSize; y++) {\n\t\t\tfor (int x = 0; x < mapSize; x++) {\n\t\t\t\tCoordinates coordinates = new Coordinates(x, y);\n\t\t\t\tint vertexSrc = coordinateToVertex(coordinates);\n\n\t\t\t\tif (deletedVertices.contains(vertexSrc)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tDirection[] directions = Direction.values();\n\n\t\t\t\tfor (Direction direction : directions) {\n\t\t\t\t\tCoordinates destCoordinates = new Coordinates(x, y);\n\n\t\t\t\t\tdestCoordinates = destCoordinates.addCoordinates(direction.coordinates());\n\n\t\t\t\t\tif (destCoordinates.areCorrect(mapSize)) {\n\t\t\t\t\t\tint vertexDest = coordinateToVertex(destCoordinates);\n\t\t\t\t\t\tif (!deletedVertices.contains(vertexDest)) {\n\t\t\t\t\t\t\taddEdge(vertexSrc, vertexDest);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic graph copy() {\n\t\tgraph copy = new DGraph();\n\t\tCollection<node_data> nColl = this.GA.getV();\n\t\tfor (node_data node : nColl) {\n\t\t\tnode_data temp = new Node((Node) node );\n\t\t\tcopy.addNode(node);\n\t\t}\n\t\tCollection<node_data> nColl2 = this.GA.getV();\n\t\tfor (node_data node1 : nColl2) {\n\t\t\tCollection<edge_data> eColl = this.GA.getE(node1.getKey());\n\t\t\tif (eColl!=null) {\n\t\t\t\tfor (edge_data edge : eColl) {\n\t\t\t\t\tcopy.connect(edge.getSrc(), edge.getDest(), edge.getWeight());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copy;\n\t}", "private static void simplify (GraphDirected<NodeCppOSMDirected, EdgeCppOSMDirected> osmGraph) {\n \t\tfinal Iterator<NodeCppOSMDirected> iteratorNodes = osmGraph.getNodes().iterator();\n \t\twhile (iteratorNodes.hasNext()) {\n \t\t\tfinal NodeCppOSMDirected node = iteratorNodes.next();\n \t\t\t// one in one out\n \t\t\tif (node.getInDegree() == 1 && node.getOutDegree() == 1) {\n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal Long currentNodeId = node.getId();\n \t\t\t\tfinal List<EdgeCppOSMDirected> edges = node.getEdges();\n \t\t\t\tfinal EdgeCppOSMDirected edge1 = edges.get(0);\n \t\t\t\tfinal EdgeCppOSMDirected edge2 = edges.get(1);\n \t\t\t\tfinal Long node1id = edge1.getNode1().getId() == (currentNodeId) ? edge2.getNode1().getId() : edge1.getNode1().getId();\n \t\t\t\tfinal Long node2id = edge1.getNode1().getId() == (currentNodeId) ? edge1.getNode2().getId() : edge2.getNode2().getId();\n \t\t\t\tif (node2id == node1id){\n \t\t\t\t\t// we are in a deadend and do not erase ourself\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(edge1.getMetadata().getNodes(), edge2.getMetadata().getNodes(), currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tosmGraph.getNode(node1id).connectWithNodeWeigthAndMeta(osmGraph.getNode(node2id), edge1.getWeight() + edge2.getWeight(),\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// two in two out\n \t\t\tif (node.getInDegree() == 2 && node.getOutDegree() == 2) {\n \t\t\t\tfinal long currentNodeId = node.getId();\n \t\t\t\t//check the connections\n \t\t\t\tArrayList<EdgeCppOSMDirected> incomingEdges = new ArrayList<>();\n \t\t\t\tArrayList<EdgeCppOSMDirected> outgoingEdges = new ArrayList<>();\n \t\t\t\tfor(EdgeCppOSMDirected edge : node.getEdges()) {\n \t\t\t\t\tif(edge.getNode1().getId() == currentNodeId){\n \t\t\t\t\t\toutgoingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tincomingEdges.add(edge);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t//TODO make this condition better\n \t\t\t\tif(outgoingEdges.get(0).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t//out0 = in0\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t//out0 should be in1\n \t\t\t\t\t//therefore out1 = in0\n \t\t\t\t\tif(!outgoingEdges.get(0).getNode2().equals(incomingEdges.get(1).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(!outgoingEdges.get(1).getNode2().equals(incomingEdges.get(0).getNode1())){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(0).getWeight() != incomingEdges.get(1).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t\tif(outgoingEdges.get(1).getWeight() != incomingEdges.get(0).getWeight()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\t// get the ids of the two connected nodes\n \t\t\t\tfinal NodeCppOSMDirected node1 = incomingEdges.get(0).getNode1();\n \t\t\t\tfinal NodeCppOSMDirected node2 = incomingEdges.get(1).getNode1();\n \t\t\t\t// \t\t\tif (node1.equals(node2)){\n \t\t\t\t// \t\t\t\t// we are in a loop and do not erase ourself\n \t\t\t\t// \t\t\t\tcontinue;\n \t\t\t\t// \t\t\t}\n \t\t\t\t// concat the list in the right way\n \t\t\t\tList<WayNodeOSM> metaNodes1 = incomingEdges.get(0).getMetadata().getNodes();\n \t\t\t\tList<WayNodeOSM> metaNodes2 = incomingEdges.get(1).getMetadata().getNodes();\n \t\t\t\tdouble weight = incomingEdges.get(0).getWeight() +incomingEdges.get(1).getWeight();\n \t\t\t\tList<WayNodeOSM> newMetaNodes = concatMetanodes(metaNodes1, metaNodes2, currentNodeId);\n \t\t\t\t// add a new edge\n \t\t\t\t// TODO: Handle way properly - what would name be in this context?\n \t\t\t\tnode1.connectWithNodeWeigthAndMeta(node2, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\tnode2.connectWithNodeWeigthAndMeta(node1, weight,\n \t\t\t\t\t\tnew WayOSM(0, WayOSM.WayType.UNSPECIFIED, \"unknown\", newMetaNodes));\n \t\t\t\t// remove the old node\n \t\t\t\t// do this manually because we otherwise corrupt the iterator\n \t\t\t\tnode.removeAllEdges();\n \t\t\t\titeratorNodes.remove();\n \t\t\t}\n \t\t}\n \t}", "private NodePath<T> collectPathNodes( WeightedGraph<T> graph, Object startNodeId, Object endNodeId ) {\n\t\tArrayDeque<Node<T>> deque = new ArrayDeque<>( searchNodes.size() );\n\t\tNode<T> startNode = graph.getNode( startNodeId );\n\t\tNode<T> endNode = graph.getNode( endNodeId );\n\t\tSearchNode<T> node = getSearchNode( endNode );\n\n\t\t//\tkeep this before we flush the maps\n\t\tfinal int finalDistance = node.getDistance();\n\n\t\t//\twalk backwards through the \"previous\" links\n\t\tdo {\n\t\t\tdeque.push( node.getNode() );\n\t\t}\n\t\twhile ( (node = getSearchNode( node.getPrevious() )) != null && ! node.equals( startNode ) );\n\t\tdeque.push( startNode );\n\n\t\tclearSearchNodes();\n\t\treturn new NodePath<>( new ArrayList<>( deque ), finalDistance );\n\t}", "public UGraph()\r\n {\r\n uNodes = new HashMap<Integer , UNode>();\r\n uEdges = new HashMap<Integer, UEdge>();\r\n }", "public Graph subGraph(final Collection<Node> nodeSet) {\n final Graph newG = new Graph();\n newG.metrics = null;\n \n for(Attributes a : this.getAllAttributes())\n newG.addAttributes(a);\n for(EdgeType et : this.getEdgeTypes())\n newG.addEdgeType(et);\n \n final Map<Node,Node> map = new HashMap<Node,Node>();\n \n for(final Node n : nodeSet)\n {\n final NodeTypeHolder nth = newG.ntMap.get(n.getAttributes().getName());\n final Node newN = n.copy(nth.numNodes());\n final String nodeName = newN.getName();\n nth.nodeMap.put(nodeName, newN);\n map.put(n,newN);\n }\n for(final Map.Entry<Node,Node> pair : map.entrySet())\n {\n for(final Edge e : pair.getKey().getEdges())\n {\n final Node dst = map.get(e.getDest());\n if(dst != null) {\n newG.addEdge(e.getEdgeType(),pair.getValue(),dst,e.getWeight());\n }\n }\n }\n \n return newG;\n }", "public static Graph<Vertex,Edge> createGraphObject()\n\t{\n\t\tGraph<Vertex,Edge> g = new DirectedSparseMultigraph<Vertex, Edge>();\n\t\treturn g;\n\t}", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "void parseline(){\n\t\ttry {\n\t\tString currentLine;\n\t\tBufferedReader freader = new BufferedReader(new FileReader(\"C:\\\\wt2g_inlinks.txt\")); //default to dataset\n\t//\tBufferedReader freader = new BufferedReader(new FileReader(\"C:\\\\inlink.txt\")); // Use this for Graph \n\t\tSet<String> ar ;\n\t\t\twhile((currentLine= freader.readLine()) != null){ \n\t\t\t\tSet<String> in_data = new HashSet<>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(currentLine,\" \");\n\t\t\t\tString node = st.nextToken();\n\t\t\t\tif(!inlinks.containsKey(node)){\n\t\t\t\t\tinlinks.put(node, null); // All the nodes are stored in inlinks Map\n\t\t\t\t}\n\t\t\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\t\t\tString edge = st.nextToken();\n\t\t\t\t\t if(!inlinks.containsKey(edge)){\n\t\t\t\t\t \tinlinks.put(edge, null);\n\t\t\t\t\t } \n\t\t\t\t\t if(inlinks.get(node)!=null){\n\t\t\t\t\t \tSet B = inlinks.get(node);\n\t\t\t\t\t \tB.add(edge);\n\t\t\t\t\t \tinlinks.put(node, B);\n\t\t\t\t\t }\n\t\t\t\t\t else{\n\t\t\t\t\t in_data.add(edge);\n\t\t\t\t\t inlinks.put(node, in_data);\n\t\t\t\t\t }\t\t\t\t\t \n\t\t\t\t\t if(!(outlinks.containsKey(edge))){ //Creating the outlinks Map \n\t\t\t\t\t\t Set<String > nd = new HashSet<>();\n\t\t\t\t\t\t nd.add(node);\n\t\t\t\t\t outlinks.put(edge, nd);\n\t\t\t\t\t }\t\n\t\t\t\t\t else{\n\t\t\t\t\t\t ar = outlinks.get(edge);\n\t\t\t\t\t\t ar.add(node);\n\t\t\t\t\t\t outlinks.put(edge, ar);\n\t\t\t\t\t }\n\t\t\t\t\t}\n \t\t\t\t \n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t }\n\t\t\n\t\tSystem.out.println(\"Total Nodes : \" +inlinks.size());\n\t\t\n for(String str : inlinks.keySet()){\n \tSet s1 = inlinks.get(str);\n \tif(s1 != null)\n \tinlinks_count.put(str, s1.size());\n \telse\n \t\tsource++;\n }\n System.out.println(\"Total Source \" +source);\n \n for(String str : outlinks.keySet()){\n \tSet s1 = outlinks.get(str);\n \toutlinks_count.put(str, s1.size());\n }\n\t}", "private PlainGraph mergeGraphsInternal(PlainGraph g1, PlainGraph g2) {\n // Create all nodes of g2 in g1\n // AddNode does check if the node does exist already, if so it doesn't create a new one\n for (Map.Entry<String, PlainNode> entry: graphNodeMap.get(g2).entrySet()){\n addNode(g1, entry.getKey(), null);\n }\n\n // create all edges of g2 in g1\n for (PlainEdge edge: g2.edgeSet()) {\n // check if the edge exists in g1, if so check if the variable names of the source and the target are also the same and not just the node names\n // Since the node names are numbered in each graph starting with 0, collisions could exists without the 2nd and 3rd check\n // Inverse the whole such that if this edge doesn't exist create it in g1\n if (! (g1.containsEdge(edge) && getVarName(g2, edge.source()).equals(getVarName(g1, edge.source())) && getVarName(g2, edge.target()).equals(getVarName(g1, edge.target())))) {\n addEdge(g1, getVarName(g2, edge.source()), edge.label().text(), getVarName(g2, edge.target()));\n }\n }\n return g1;\n }", "public static void readGraph(Map<Integer, Collection<Integer>> graph, Scanner scanner) {\n int amountOfVertexes = scanner.nextInt();\n for (int from = 0; from < amountOfVertexes; from++) {\n graph.put(from, new LinkedHashSet<>());\n }\n int amountOfEdges = scanner.nextInt();\n boolean isDirected = scanner.nextBoolean();\n\n for (int i = 0; i < amountOfEdges; i++) {\n int from = scanner.nextInt();\n int to = scanner.nextInt();\n graph.get(from).add(to);\n if (!isDirected) {\n graph.get(to).add(from);\n }\n }\n }", "void processGraphData(Graph aNodes);", "void createGraphForDistributedSingleLoad();", "protected IWeightedGraph<GraphNode, WeightedEdge> createGraph(List<GoapState> goalState) {\r\n\t\tIWeightedGraph<GraphNode, WeightedEdge> generatedGraph = this.generateGraphObject();\r\n\r\n\t\taddVertices(generatedGraph, goalState);\r\n\t\taddEdges(generatedGraph);\r\n\r\n\t\treturn generatedGraph;\r\n\t}", "public static Graph<Integer,String> GridGraph(int n, int m) {\n\t\t\r\n\t\tGraph<Integer,String> g = new SparseGraph<Integer,String>();\r\n\t\tfor (int i=1; i<=n; i++) {\r\n\t\t\tfor (int j=0; j<m; j++) {\r\n\t\t\t\t// vertex at (i,j) will be i+jn. Last vertex is n + (m-1)n = mn\r\n\t\t\t\tint v = i+j*n;\r\n\t\t\t\tif (i>1) g.addEdge(\"e\"+(v-1)+\",\"+v, v-1,v);\r\n\t\t\t\tif (j>0) g.addEdge(\"e\"+(v-n)+\",\"+v, v-n,v);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn g;\t\t\r\n\t}", "public Graph(ArrayList<Vertex> vertices){\r\n this.vertices = new HashMap<String, Vertex>();\r\n this.edges = new HashMap<Integer, Edge>();\r\n \r\n for(Vertex v: vertices){\r\n this.vertices.put(v.getLabel(), v);\r\n }\r\n \r\n }", "public void topologicalSort() {\n HashMap<Integer, Integer> inDegrees = new HashMap<>();\n Queue<Integer> queue = new LinkedList<>();\n int numTotalNodes = 0;\n\n // Build the inDegree HashMap\n for (Entry<Integer, LinkedList<Edge<Integer>>> entry : g.adj.entrySet()) {\n LinkedList<Edge<Integer>> vList = entry.getValue();\n int currentVertex = entry.getKey();\n\n inDegrees.put(currentVertex, inDegrees.getOrDefault(currentVertex, 0));\n for (Edge<Integer> e : vList) {\n inDegrees.put(e.dest, inDegrees.getOrDefault(e.dest, 0) + 1);\n numTotalNodes++;\n }\n }\n\n // Add Elements with inDegree zero toe the queue\n for (int v : inDegrees.keySet()) {\n if (inDegrees.get(v) > 0)\n continue;\n queue.add(v);\n }\n\n int visitedNodes = 0;\n\n while (!queue.isEmpty()) {\n int v = queue.remove();\n System.out.print(v + \" \");\n for (int u : g.getNeighbors(v)) {\n int inDeg = inDegrees.get(u) - 1;\n if (inDeg == 0)\n queue.add(u);\n inDegrees.put(u, inDeg);\n }\n visitedNodes++;\n }\n\n if (visitedNodes != numTotalNodes) {\n System.out.println(\"Graph is not a DAG\");\n }\n }", "public static Graph instantiateAdjacencyMatrixGraph() {\r\n\t\treturn new AdjacencyMatrixGraph();\r\n\t}", "private static graph graph_creator(int v_size, int e_size, int seed) {\n graph g = new Graph_DS();\n initSeed(seed);\n for(int i=0;i<v_size;i++) {\n node_data n = new NodeData();\n g.addNode(n);\n }\n // Iterator<ex0.node_data> itr = V.iterator(); // Iterator is a more elegant and generic way, but KIS is more important\n int[] nodes = nodes(g);\n while(g.edgeSize() < e_size) {\n int a = nextRnd(0,v_size);\n int b = nextRnd(0,v_size);\n int i = nodes[a];\n int j = nodes[b];\n g.connect(i,j);\n }\n return g;\n }", "public PlainGraph createGraph() {\n PlainGraph graph = new PlainGraph(getUniqueGraphName(), GraphRole.RULE);\n graphNodeMap.put(graph, new HashMap<>());\n return graph;\n }", "public WeightedAdjacencyGraph() {\n this.vertices = new HashMap<>();\n }", "public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}", "public HashGraph()\n {\n graph = new HashMap <>();\n }", "static void generateNodesAndEdges(ArrayList<Node> nodes, StringBuilder graphVis,\n\t\t\tfloat edgeProbability,\n\t\t\tint nodeLevelDistance, float function) {\n\t\tint numberOfNodes = 1;\n\t\tgraphVis.append(\"digraph {\\n\");\n\t\tint numberOfEdges = 0;\n\t\tfor (int i = 0; i < GraphConfig.NUMBER_OF_LEVELS; i++) {\n\t\t\tint numberOfNewNodes = Util.intFromRange(GraphConfig.MIN_PER_LEVEL, GraphConfig.MAX_PER_LEVEL);\n\t\t\tSet<Node> newNodes = new HashSet<Node>();\n\t\t\tfor (int j = 0; j < numberOfNewNodes; j++) {\n\t\t\t\tNode newNode = new Node(numberOfNodes, \"\");\n\t\t\t\tnewNodes.add(newNode);\n\t\t\t\tnewNode.level = i;\n\t\t\t\tnumberOfNodes++;\n\t\t\t\tfor (Node node : nodes) {\n\t\t\t\t\t// Knoten sind auf level beschränkt, nicht sehr dicht\n\t\t\t\t\t// compute prohability differently\n\t\t\t\t\tif (function > 0) {\n\t\t\t\t\t\tif (Math.random() < 1 / Math.pow(function, (i - node.level)) * edgeProbability) {\n\t\t\t\t\t\t\t// System.out.println(1/Math.pow(function,(i -\n\t\t\t\t\t\t\t// node.level)) * edgeProbability);\n\t\t\t\t\t\t\tnode.getOutgoingNodes().add(newNode);\n\t\t\t\t\t\t\tnewNode.getIncomingNodes().add(node);\n\t\t\t\t\t\t\tif (shallCreateGraphVisualization) {\n\t\t\t\t\t\t\t\tgraphVis.append(\" \" + node.getId() + \"->\" + newNode.getId() + \";\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnumberOfEdges ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (Math.random() < edgeProbability) {\n\t\t\t\t\t\t\tif (nodeLevelDistance < 0 || (i - node.level < nodeLevelDistance)) {\n\t\t\t\t\t\t\t\tnode.getOutgoingNodes().add(newNode);\n\t\t\t\t\t\t\t\tnewNode.getIncomingNodes().add(node);\n\t\t\t\t\t\t\t\tif (shallCreateGraphVisualization) {\n\t\t\t\t\t\t\t\t\tgraphVis.append(\" \" + node.getId() + \"->\" + newNode.getId() + \";\\n\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnumberOfEdges ++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// only add nodes with input\n\t\t\t\tif (newNode.getIncomingNodes().size() == 0) {\n\t\t\t\t\t// sink.getOutgoingNodes().add(newNode);\n\t\t\t\t\t// newNode.getIncomingNodes().add(sink);\n\t\t\t\t\t// graphVis.append(\" \" + sink.getId() + \"->\"+\n\t\t\t\t\t// newNode.getId() +\";\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(i + \" \" + nodes.size());\n\t\t\tnodes.addAll(newNodes);\n\t\t}\n\t\t\n\t\t//count how many edges are computed and add percentage of long range vertices\n\t\t//add long range edges\n\t\tSystem.out.println(\"NumberOfEdgesWithoutLongRange:\" + numberOfEdges);\n\t\tint longRangeEdges = 0;\n\t\tfor(int i = 0; i< GraphConfig.PERCENTAGE_OF_LONG_RANGE_EDGES * numberOfEdges; i++){\n\t\t\tint firstIndex = (int) (Math.random() * nodes.size());\n\t\t\tint secondIndex = (int) (Math.random() * nodes.size());\n\t\t\tif(firstIndex != secondIndex && nodes.get(firstIndex).level != nodes.get(secondIndex).level){\n\t\t\t\tNode firstNode = null;\n\t\t\t\tNode secondNode = null;\n\t\t\t\tif(firstIndex > secondIndex){\n\t\t\t\t\tint temp = firstIndex;\n\t\t\t\t\tfirstIndex = secondIndex;\n\t\t\t\t\tsecondIndex = temp;\n\t\t\t\t}\n\t\t\t\tfirstNode = nodes.get(firstIndex);\n\t\t\t\tsecondNode = nodes.get(secondIndex);\n\t\t\t\t//und nicht Kante schon existiert\n\t\t\t\tif(!firstNode.getOutgoingNodes().contains(secondNode)){\n\t\t\t\tfirstNode.getOutgoingNodes().add(secondNode);\n\t\t\t\tsecondNode.getIncomingNodes().add(firstNode);\n\t\t\t\tif (shallCreateGraphVisualization) {\n\t\t\t\t\tgraphVis.append(\" \" + firstNode.getId() + \"->\" + secondNode.getId() + \";\\n\");\n\t\t\t\t}\n\t\t\t\tnumberOfEdges ++;\n\t\t\t\tlongRangeEdges++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"numberOfNodes:\" + numberOfNodes);\n\t\tSystem.out.println(\"NumberOfEdgesLongRange:\" + longRangeEdges);\n\t\tSystem.out.println(\"NumberOfEdges:\" + numberOfEdges);\n\t\tm = numberOfEdges;\n\n\t\t\n\t\t// add sink node after, that no edge from sink node a generated\n\t\t// nodes.add(sink);\n\t\tgraphVis.append(\"}\\n\");\n\t}", "private static int[][] graph(){\n int[][] graph = new int[6][6];\n graph[0][1] = 7;\n graph[1][0] = 7;\n\n graph[0][2] = 2;\n graph[2][0] = 2;\n\n graph[1][2] = 3;\n graph[2][1] = 3;\n\n graph[1][3] = 4;\n graph[3][1] = 4;\n\n graph[2][3] = 8;\n graph[3][2] = 8;\n\n graph[4][2] = 1;\n graph[2][4] = 1;\n\n graph[3][5] = 5;\n graph[5][3] = 5;\n\n graph[4][5] = 3;\n graph[5][4] = 3;\n return graph;\n }", "protected IWeightedGraph<GraphNode, WeightedEdge> createGraph() {\r\n\t\treturn createGraph(goapUnit.getGoalState());\r\n\t}", "public void buildGraph(long tailID, long headID, long weight){\n Node tailNode;\n Node headNode;\n\n if(!nodeArr.containsKey(tailID)){ //if the tail is not already in the node arr\n tailNode = new Node(tailID); //create a new node for tail\n nodeArr.put(tailID,tailNode); //add it to the map\n } else{tailNode = nodeArr.get(tailID);} //else get the tail node using tailID\n\n if(!nodeArr.containsKey(headID)){ //if the head is not already in the node arr\n headNode = new Node(headID); //create new node for head\n nodeArr.put(headID,headNode);\n } else{headNode = nodeArr.get(headID);} //else get the head node using headID\n\n //create edge\n Edge currEdge = new Edge(tailNode, headNode, weight);\n edgeArr.add(currEdge); //add that edge to current Array\n tailNode.connectingEdges.add(currEdge); //connect tail node to curr edge\n tailNode.nextNodeArr.add(headNode); //put it in the list\n// System.out.println(currEdge);\n }", "public void joinGraph(IGraph graph);" ]
[ "0.7768861", "0.7226177", "0.6990131", "0.6861088", "0.68558365", "0.6854957", "0.67887944", "0.676785", "0.6514329", "0.64596903", "0.64522386", "0.6422485", "0.63161343", "0.6216887", "0.6181195", "0.61707085", "0.6166502", "0.61587983", "0.6133303", "0.60549724", "0.60436153", "0.6034087", "0.6014344", "0.60056317", "0.59995794", "0.59797424", "0.5937145", "0.5898728", "0.5890994", "0.58544004", "0.585048", "0.5843162", "0.58188003", "0.5740253", "0.57401824", "0.572612", "0.57151175", "0.56947005", "0.56812364", "0.567579", "0.566866", "0.5665253", "0.5651043", "0.5629672", "0.56038743", "0.5601557", "0.5593566", "0.5591124", "0.5583834", "0.5571591", "0.55704224", "0.55564225", "0.555297", "0.55239046", "0.55214864", "0.55203444", "0.5519677", "0.55147016", "0.5501956", "0.54966396", "0.5492791", "0.54910785", "0.5472007", "0.5463421", "0.5457644", "0.5455958", "0.5451615", "0.5447528", "0.5434991", "0.5430074", "0.54300135", "0.54251647", "0.5423983", "0.54218626", "0.5395425", "0.538781", "0.5385696", "0.5381187", "0.53772837", "0.53754276", "0.5373251", "0.537159", "0.5346232", "0.5344372", "0.53416", "0.53410655", "0.5337874", "0.5331228", "0.5327791", "0.5327458", "0.5325705", "0.53129506", "0.5310047", "0.5305324", "0.53040314", "0.53028524", "0.52991205", "0.52906233", "0.5289221", "0.5288311" ]
0.6188065
14
Adds the weight of the node, replacing if an old one exists
public double addWeight(Long c, Double w) { Double old; old = nodeWeights.put(c, w); if (old != null) { totalWeight -= old; totalWeight += w; } else { totalWeight += w; } return totalWeight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWeight(){\n\t\tweight++;\n\t}", "public void addWeight(int weightToMerge) {\n this.weight += weightToMerge;\n }", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "public void setWeight(int newWeight) {\n weight = newWeight;\n }", "void addNode(int weight) \n {\n Node newNode = new Node(this.numNodes, weight);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n \n }", "public void add(double weight) {\n this.weights.add(weight);\n // flip the flag to accept query operator\n this.acceptWeight = false;\n }", "public void updateWeights() {\n\t\t\n\t}", "private void setWeight(float weight){\n this.weight = weight;\n }", "public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}", "public void updateBottomWeight(){\r\n\t \tif(this.bottomNode != null)\r\n\t \t{\r\n\t \t\tif( this.bottomNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.bottomWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.bottomNode.isRoad() == true && this.bottomNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.bottomWeight = this.bottomNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.bottomWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "public void setWeight(double weight) {\r\n this.weight = weight;\r\n }", "public void setWeight(float value) {\n this.weight = value;\n }", "public void setWeight(double weight) {\n this.weight = weight;\n }", "public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}", "public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }", "public void setWeight(Double weight) {\n this.weight = weight;\n }", "public void addBatchUpdateValue(Node n, double weight) {\n\t\tnextLayerNodesUpdateMap.put(n, weight);\n\t}", "public void setWeight(double w){\n weight = w;\n }", "public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}", "public void addWeight(TextView weight){\n displayedWeights.add(weight);\n }", "public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}", "public void setWeight(int w){\n\t\tweight = w;\n\t}", "public void setWeight(float w) {\n weight = w;\n }", "@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }", "public void setWeight(int w) {\n\t\tweight = w;\n\t}", "@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}", "@Override\n\tpublic void setWeight(final double weight) {\n\n\t}", "public void setWeight(Integer weight) {\n this.weight = weight;\n }", "public void updateTopWeight(){\r\n\t \tif(this.topNode != null)\r\n\t \t{\r\n\t \t\tif(this.topNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.topWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.topNode.road == true && this.topNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.topWeight = this.topNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.topWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "public void setWeight(final int weight) {\n this.weight = weight;\n }", "void addNi(int node, double weight) {\n this.neighbors.put(node, weight);\n }", "public void setWeight(String newValue);", "public void setWeight(String weight) {\n this.weight = weight;\n }", "public void setWeight (java.lang.Double weight) {\r\n\t\tthis.weight = weight;\r\n\t}", "public void addWeight(Weight newWeight) {\n int index = 0;\n\n // Find weight index based on time (table is sorted by time)\n for (Weight rowWeight : mWeightList) {\n if (newWeight.getTime() >= rowWeight.getTime()) {\n break;\n }\n index += 1;\n }\n\n // Add weight to table at specified index\n mWeightList.add(index, newWeight);\n\n // Notify that the weight was inserted\n notifyItemInserted(index);\n\n // Scroll to top of list to see weight\n if (index == 0) {\n mRecyclerView.scrollToPosition(index);\n }\n }", "public void setWeight(float value) {\n\t\t\tthis.weight = value;\n\t\t}", "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeights(GraphNode pNode, double pWeight){\n ArrayList<ArcGraph> conections = pNode.getConections();\n \n for (int i = 0; i < conections.size(); i++){\n GraphNode destiny_node = conections.get(i).getDestiny();\n GraphNode source_node = conections.get(i).getSource();\n int pos_node = findNode(destiny_node); //returns the pos of the destiny node\n if (!MinDistanceStatus.get(pos_node)){ //if the weight isn't final we change it\n MinDistance.set(pos_node, conections.get(i).getWeight() + pWeight); // we change the min weight of the node\n References.set(pos_node, conections.get(i)); //Bueno\n }\n }\n }", "public void setWeight(Byte weight) {\n\t\tthis.weight = weight;\n\t}", "public void addSrvWeight() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"srv-weight\",\n null,\n childrenNames());\n }", "public void setCurrentWeight(double newWeight) throws Exception {\n\t\tthis.currentWeight = new Weight(currentWeight.getWeightType(), newWeight);\n\t}", "public void setWeight(double weight) {\n\t\tweightConfiguration.setWeightForIdentifier(this.getIdentifier(), weight);\n\t}", "public void setWeight(Item item, int value) {\n\t\tweight.put(item, value);\n\t}", "public void updateRightWeight(){\r\n\t \tif(this.rightNode != null)\r\n\t \t{\r\n\t \t\tif( this.rightNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.rightWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.rightNode.isRoad() == true && this.rightNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.rightWeight = this.rightNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.rightWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "public void setEdgeWeight(Node p_a, Node p_b, double p_weight) {\n\t\t\n\t\t// We need to use the makeEdge method to make a new edge\n\t\t// So we can ensure we generate an edge with consistent hashCodes\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tint id = edge.hashCode();\n\t\tweights.put(id, p_weight);\n\t}", "private void setBoneWeightForVertex(Integer BoneId, IVertex vertex, Double newWeight) {\n\t\tvalPairList = boneVertexMap.get(BoneId);\n\t\t// Iterate all vertices from this bone\n\t\tfor (ValuePair<IVertex, Double> valPair : valPairList) {\n\t\t\t// If this is the vertex to update\n\t\t\tif (vertex.equals(valPair.getValue1())) {\n\t\t\t\tvalPair.setValue2(newWeight); // Update it.\n\t\t\t\treturn; // Dont need to look further\n\t\t\t}\n\t\t}\n\t}", "public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}", "public synchronized void setWeight(int weight){\n\t\tthis.personWeight = weight; \n\t}", "public void setWeight(int weight) {\n\t\tif (weight > 0) {\n\t\t\tthis.weight = weight;\n\t\t} else {\n\t\t\tthis.weight = 0;\n\t\t}\n\t}", "protected void updateWeights() {\n\t\tvisualization.updateWeights();\n\t}", "public void updateLeftWeight(){\r\n\t \tif(this.leftNode != null)\r\n\t \t{\r\n\t \t\tif( this.leftNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.leftWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.leftNode.isRoad() == true && this.leftNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.leftWeight = this.leftNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.leftWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }", "@Override\n\tpublic void addNode(node_data n) {\n\t\tif (Nodes.keySet().contains(n.getKey())) {\n\t\t\tSystem.err.println(\"Err: key already exists, add fail\");\n\t\t\treturn;\n\t\t}\n\t\tif(n.getWeight()<=0)\n\t\t{\n\t\t\tSystem.err.println(\"The weight must be positive! . The node hadn't been added successfully..\");\n\t\t\treturn;\n\t\t}\n\t\tthis.Nodes.put(n.getKey(), n);//n used to be casted into (node)\n\t\tthis.Edges.put(n.getKey(), new HashMap<Integer,edge_data>());\n\t\tMC++;\n\n\t}", "public void setWeight(double weight2) {\n\t\tthis.weight = weight2;\n\t}", "private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }", "@Override\n\tpublic double getInternalWeight(int nodeIndex) {\n\t\treturn this.inWeights[nodeIndex];\n\t}", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "void addEdge(int source, int destination, int weight);", "protected abstract void updateWeightsSpecific(double ni);", "public int weight() {\n \treturn weight;\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "public void setWeight(int x)\n {\n weightCarried=x;\n }", "public void setWeight(T3 eWeight) {\r\n\t\tthis.weight = eWeight;\r\n\t}", "public void setMaxWeight(String newValue);", "public RecipeBuilder addComponent(PreparedProduct product, long weight) {\n components.computeIfPresent(product, (key, value) -> value + weight);\n components.putIfAbsent(product, weight);\n return this;\n }", "public void propagateTopicWeight(TObjectDoubleHashMap<NCRPNode> nodeWeights,\n\t\t\t\t\t\t\t\t\t NCRPNode node, double weight) {\n\t\tif (! nodeWeights.containsKey(node)) {\n\t\t\t// calculating the NCRP prior proceeds from the\n\t\t\t// root down (ie following child links),\n\t\t\t// but adding the word-topic weights comes from\n\t\t\t// the bottom up, following parent links and then \n\t\t\t// child links. It's possible that the leaf node may have\n\t\t\t// been removed just prior to this round, so the current\n\t\t\t// node may not have an NCRP weight. If so, it's not \n\t\t\t// going to be sampled anyway, so ditch it.\n\t\t\treturn;\n\t\t}\n\t\n\t\tfor (NCRPNode child: node.children) {\n\t\t\tpropagateTopicWeight(nodeWeights, child, weight);\n\t\t}\n\n\t\tnodeWeights.adjustValue(node, weight);\n }", "public void setObjectWeight(short weight) { this.objectWeight=weight; }", "private static NodeWithWeightDistanceTotal updateNextNodeAlgo2(Node nextNode, Edge edge, Integer weightDistanceTotal) {\n if (edge.weight + edge.getDestination().getDistanceToZ() < weightDistanceTotal) {\n weightDistanceTotal = (edge.weight + edge.getDestination().getDistanceToZ());\n return new NodeWithWeightDistanceTotal(edge.destination, weightDistanceTotal);\n // System.out.println(nextNode.getName());\n }\n return new NodeWithWeightDistanceTotal(nextNode, weightDistanceTotal);\n }", "public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }", "@Override\n public void addNode(node_data n) {\n this.modeCount += this.nodes.putIfAbsent(n.getKey(), n) == null ? 1 : 0; // if the node was already in the graph - it will simply do nothing, if it wasn't - it will add it to the graph and increment modeCount by 1\n }", "public float getWeight();", "public void testSetWeight()\n {\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>();\n assertEquals(WeightedKernel.DEFAULT_WEIGHT, instance.getWeight());\n \n double weight = RANDOM.nextDouble();\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 0.0;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n weight = 4.7;\n instance.setWeight(weight);\n assertEquals(weight, instance.getWeight());\n \n boolean exceptionThrown = false;\n try\n {\n instance.setWeight(-1.0);\n }\n catch ( IllegalArgumentException ex )\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n \n }", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "public void markSrvWeightReplace() throws JNCException {\n markLeafReplace(\"srvWeight\");\n }", "protected void mutateWeights() {\n\t\t// TODO: Change the way weight mutation works\n\t\tif (Braincraft.gatherStats) {\n\t\t\tArrayList<Integer> mutatedgenes = new ArrayList<Integer>();\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate)) {\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t\t\tmutatedgenes.add(g.innovation);\n\t\t\t\t}\n\t\t\t}\n\t\t\tString output = \"weight mutation \" + ID;\n\t\t\tfor (Integer i : mutatedgenes) {\n\t\t\t\toutput += \" \" + i;\n\t\t\t}\n\t\t\tBraincraft.genetics.add(output);\n\t\t} else {\n\t\t\tfor (Gene g : genes.values()) {\n\t\t\t\tif (Braincraft.randomChance(population.perWeightMutationRate))\n\t\t\t\t\tg.weight = Braincraft.randomWeight();\n\t\t\t}\n\t\t}\n\t\t// TODO: Report weight mutations to stats\n\t}", "public double getWeight() {\n\t\n\t\treturn this.weight;\t \n\t}", "@Override\n\tpublic double weight() {\n\t\treturn 1.0;\n\t}", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "Node(int newId, int newWeight)\n {\n connectedNodes = new ArrayList<Node>();\n id = newId;\n weight = newWeight;\n }", "public void setRelativeWeight(int value) {\n this.relativeWeight = value;\n }", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int weight ();", "public int getWeight() {\n\t\treturn _weight;\n\t}", "public float getWeight() {\n return weight;\n }", "public void moveWeight(\r\n int alignmentIndex,\r\n int currCategory,\r\n int prevCategory,\r\n int dirtySite,\r\n int weight){\n\r\n treeLikelihoodMap[alignmentIndex].get(prevCategory).removeWeight(\r\n alignments.get(alignmentIndex).getPatternIndex(dirtySite),\r\n weight\r\n );\r\n\r\n treeLikelihoodMap[alignmentIndex].get(currCategory).addWeight(\r\n alignments.get(alignmentIndex).getPatternIndex(dirtySite),\r\n weight\r\n );\r\n\r\n }", "abstract void setWeight(int i, int j, Double weight);", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "public double getWeight() {\n\t\treturn weight;\n\t}", "double getWeight(int node) {\n\n return this.neighbors.get(node);\n }", "private void updateWeights(Hashtable<NeuralNode, Double> nodeValues, double learnRate, double momentum) {\r\n\t\tfor (OutputNode output : outputs) {\r\n\t\t\toutput.updateWeights(null, nodeValues, learnRate, momentum);\r\n\t\t}\r\n\t}", "public float getWeight() {\n return weight;\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public void addChild(Node child, int weight) {\n\t\tthis.children.put(child, weight);\n\t}", "int getWeight();", "int getWeight();", "public Byte getWeight() {\n\t\treturn weight;\n\t}", "public void addWrestler(Wrestler w) {\r\n\t\tboolean s = false;\r\n\t\tif (teamList == null) {\r\n\t\t\tteamList = new ListNode(w, null);\r\n\t\t\ts = true;\r\n\t\t}\r\n\t\telse if(w.getWeight() < ((Wrestler) teamList.getValue()).getWeight()) {\r\n\t\t\tListNode a = new ListNode(w , teamList);\r\n\t\t\tteamList = a;\r\n\t\t\ts = true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tListNode over;\r\n\t\t\tListNode initial = teamList;\r\n\t\t\tListNode t = teamList;\r\n\t\t\twhile (t.getNext() != null) {\r\n\t\t\t\tt = teamList.getNext();\r\n\t\t\t\tif (((Wrestler) t.getValue()).getWeight() > w.getWeight()) {\r\n\t\t\t\t\tover = t;\r\n\t\t\t\t\twhile (!initial.getNext().equals(over))\r\n\t\t\t\t\t\tinitial = initial.getNext();\r\n\t\t\t\t\tinitial.setNext(new ListNode(w, initial.getNext()));\r\n\t\t\t\t\ts = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!s) {\r\n\t\t\tListNode t = teamList;\r\n\t\t\twhile (t.getNext() != null) {\r\n\t\t\t\tt = teamList.getNext();\r\n\t\t\t}\r\n\t\t\tt.setNext(new ListNode(w, null));\r\n\t\t}\r\n\t}", "public void setEdgeWeight(Edge p_edge, double p_weight) {\n\t\tint id = p_edge.hashCode();\n\t\tweights.put(id, p_weight);\n\t}" ]
[ "0.7937702", "0.74078256", "0.72316176", "0.71945673", "0.70822877", "0.7049385", "0.6962676", "0.6707145", "0.6686282", "0.6684534", "0.6666623", "0.6658172", "0.6650049", "0.66472954", "0.66386914", "0.6634044", "0.66281605", "0.66279304", "0.6596119", "0.65892786", "0.65842", "0.6559399", "0.655296", "0.65375555", "0.6505139", "0.6500757", "0.64615816", "0.64539087", "0.64507425", "0.64200836", "0.6410333", "0.63889915", "0.6381308", "0.637841", "0.636187", "0.6359522", "0.63017064", "0.6293706", "0.62860245", "0.62785304", "0.6270205", "0.62626266", "0.62246966", "0.6203243", "0.6185581", "0.6165539", "0.61549866", "0.61507124", "0.6149487", "0.6143613", "0.6096208", "0.6093938", "0.6036862", "0.59911525", "0.59820753", "0.59701425", "0.59525436", "0.5950811", "0.59369546", "0.5933073", "0.5929002", "0.59274065", "0.59244114", "0.58668166", "0.5861353", "0.5846308", "0.58421373", "0.5828972", "0.5812779", "0.5808383", "0.57938886", "0.5792591", "0.57917106", "0.5791331", "0.5785405", "0.5783073", "0.5781296", "0.57777584", "0.5765523", "0.5763523", "0.5763", "0.575693", "0.5755295", "0.574614", "0.57408786", "0.57379335", "0.572294", "0.572294", "0.5722155", "0.57158667", "0.57152116", "0.5712296", "0.57082623", "0.57082623", "0.5700885", "0.5700667", "0.5700667", "0.5700572", "0.56995136", "0.5688652" ]
0.6926743
7
Compares based on the total weight
@Override public int compareTo(ExemplarAnswer other) { if (other == null) { throw new NullPointerException("Null object cannot be compared"); } if (getClass() != other.getClass()) { throw new ClassCastException("Only RelatedQuery objects can be compared"); } return (new Double(this.totalWeight)).compareTo(other.getTotalWeight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean compareWeight(Weight w1, Weight w2){\n return Double.compare(w1.value*w1.unit.baseUnitConversion, w2.value*w2.unit.baseUnitConversion) == 0;\n }", "public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }", "@Override\n\t\tpublic int compareTo(state arg0) {\n\t\t\treturn (this.weight1 * this.weight2) - (arg0.weight1 * arg0.weight2);\n\t\t}", "@Override\r\n\tpublic int compare(WaterBottle o1, WaterBottle o2) {\n\t\treturn o1.weight-o2.weight;\r\n\t}", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "private boolean isApproximatelyEqualWeight(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw;\r\n\t}", "@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\treturn o1.weight - o2.weight;\n\t\t\t}", "public static Comparator<Trio<Pair<String, Integer>, Pair<String,Integer>, Integer>> sortByWeight()\n\t{\n\t\tComparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>> comp = new Comparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>>() {\n\t\t\n\t\t\tpublic int compare(Trio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight1,\n\t\t\t\t\tTrio<Pair<String, Integer>, Pair<String, Integer>, Integer> weight2) \n\t\t\t{\n\t\t\t\t\n\t\t\t\treturn weight1.getThird() - weight2.getThird();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn comp;\n\t}", "public boolean isWeighted();", "public int weight ();", "public float getWeightUsed()\r\n {\r\n // implement our own magic formula here ...\r\n return 2.0f;\r\n }", "@Override\n public int compare(Edge edge1, Edge edge2) {\n return Integer.compare(edge1.weight, edge2.weight);\n }", "public abstract double totalWeight();", "@Override\n protected SearchResponse compute() {\n if (this.searchRoot.children == null || this.searchRoot.children.isEmpty()) {\n return new SearchResponse(searchRoot.weight, null);\n }\n\n // Search child nodes recursively\n List<UnbalancedNodeSearcher> subtasks = new ArrayList<>(searchRoot.children.size());\n for (Node n : searchRoot.children) {\n UnbalancedNodeSearcher subtask = new UnbalancedNodeSearcher(n);\n subtasks.add(subtask);\n subtask.fork();\n }\n\n // Use a map to vote for the \"wrong\"(i.e. minority) disc weight\n Map<Long, AtomicLong> totalWeight = new HashMap<>();\n\n // To find out who reported the \"wrong\" weight\n Map<Long, Node> resultNodeMap = new HashMap<>();\n for (UnbalancedNodeSearcher searcher : subtasks) {\n SearchResponse response = searcher.join();\n\n // The search is over\n if (response.foundResult != null) {\n return response;\n }\n\n resultNodeMap.put(response.subSum, searcher.searchRoot);\n\n totalWeight.computeIfAbsent(response.subSum, (i) -> new AtomicLong(0L)).incrementAndGet();\n }\n\n if (totalWeight.size() == 1) {\n // Since there's only one\n long subtotal = totalWeight.keySet().iterator().next();\n long total = subtotal * subtasks.size() + searchRoot.weight;\n\n return new SearchResponse(total, null);\n } else if (totalWeight.size() == 2) {\n long correctWeight = -1;\n long wrongWeight = -1;\n for (Map.Entry<Long, AtomicLong> entry : totalWeight.entrySet()) {\n if (entry.getValue().get() != 1L) {\n correctWeight = entry.getKey();\n } else {\n wrongWeight = entry.getKey();\n }\n }\n\n return new SearchResponse(null, resultNodeMap.get(wrongWeight).weight - (wrongWeight - correctWeight));\n } else {\n throw new RuntimeException(\"More than one incorrect nodes\");\n }\n }", "public float getWeight();", "public double matchData() {\n\t\tArrayList<OWLDataProperty> labels1 = getDataProperties(ontology1);\n\t\tArrayList<OWLDataProperty> labels2 = getDataProperties(ontology2);\n\t\tfor (OWLDataProperty lit1 : labels1) {\n\t\t\tfor (OWLDataProperty lit2 : labels2) {\n\t\t\t\tif (LevenshteinDistance.computeLevenshteinDistance(TestAlign.mofidyURI(lit1.toString())\n\t\t\t\t\t\t, TestAlign.mofidyURI(lit2.toString()))>0.8){\n\t\t\t\t\treturn 1.0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0.;\n\n\n\t}", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic int compare(Edge o1, Edge o2) {\n\t\t\t\tif (o1.weight < o2.weight)\n\t\t\t\t\treturn -1;\n\t\t\t\telse if (o1.weight > o2.weight)\n\t\t\t\t\treturn 1;\n\t\t\t\telse\n\t\t\t\t\treturn 0;\n\t\t\t}", "public int compareTo(Vertex v) {\n return this.weight - v.weight;\n }", "int getWeight();", "int getWeight();", "public Double calculateSimilarity(OWLObject a, OWLObject b);", "public double checkModel() {\n\treturn (Weights[2] * Unigram.checkModel() + \n\t\tWeights[1] * Bigram.checkModel() +\n\t\tWeights[0] * Trigram.checkModel());\n }", "public double findWeight(){\n int totalCoins = gold + silver + copper + electrum + platinum;\n if((totalCoins % 3) == 0){\n return totalCoins/3;\n }\n return totalCoins * weight;\n }", "public int compare(Edge a, Edge b) {\n // for ascending\n return a.weight - b.weight;\n\n // for descending\n // return b.weight - a.weight;\n }", "public static void compareCombos() {\n\t\tint currentTotal = 0;\n\t\tint pastTotal = 0;\n\n\t\tcost++;\n\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\tcurrentTotal += board[i][currentCombo[i]];\n\t\t\tpastTotal += board[i][bestCombo[i]];\n\t\t}\n\t\t\n\t\tif (currentTotal >= pastTotal) {\n\t\t\tbestTotal = 0;\n\t\t\tfor (int i = 0; i < numPeople; i++) {\n\t\t\t\tbestCombo[i] = currentCombo[i];\n\t\t\t\tbestTotal += board[i][currentCombo[i]];\n\t\t\t}\n\t\t}\n\n\t}", "public int weight(){\n\t\treturn this.weight;\n\t}", "int Weight();", "public int compare(Tensor newCost, Tensor oldCost) {\n if (oldCost.length() != newCost.length() || oldCost.length() != slack.length())\n throw TensorRuntimeException.of(oldCost, newCost, slack);\n int cmp = 0;\n for (int index = 0; index < oldCost.length() && cmp == 0; ++index) {\n Scalar min = oldCost.Get(index);\n if (Scalars.isZero(min))\n cmp = Scalars.compare(newCost.Get(index), min);\n else {\n Scalar diffRatio = newCost.Get(index).subtract(min).divide(min);\n cmp = Scalars.lessEquals(diffRatio.abs(), slack.Get(index)) //\n ? 0\n : Sign.of(diffRatio).number().intValue();\n }\n }\n return cmp;\n }", "@Override\n public int compareTo(HuffmanCodeNode o) {\n return this.weight - o.getWeight();\n }", "public int getWeight();", "@Test\n public void testWeightedConsistency() {\n\n // See if this statistic computes weighted statistics\n // If not, skip this test\n UnivariateStatistic statistic = getUnivariateStatistic();\n if (!(statistic instanceof WeightedEvaluation)) {\n return;\n }\n\n // Create arrays of values and corresponding integral weights\n // and longer array with values repeated according to the weights\n final int len = 10; // length of values array\n final double mu = 0; // mean of test data\n final double sigma = 5; // std dev of test data\n double[] values = new double[len];\n double[] weights = new double[len];\n\n // Fill weights array with random int values between 1 and 5\n int[] intWeights = new int[len];\n final DiscreteDistribution.Sampler weightDist =\n UniformDiscreteDistribution.of(1, 5).createSampler(RandomSource.WELL_512_A.create(234878544L));\n for (int i = 0; i < len; i++) {\n intWeights[i] = weightDist.sample();\n weights[i] = intWeights[i];\n }\n\n // Fill values array with random data from N(mu, sigma)\n // and fill valuesList with values from values array with\n // values[i] repeated weights[i] times, each i\n final ContinuousDistribution.Sampler valueDist =\n NormalDistribution.of(mu, sigma).createSampler(RandomSource.WELL_512_A.create(64925784252L));\n List<Double> valuesList = new ArrayList<>();\n for (int i = 0; i < len; i++) {\n double value = valueDist.sample();\n values[i] = value;\n for (int j = 0; j < intWeights[i]; j++) {\n valuesList.add(Double.valueOf(value));\n }\n }\n\n // Dump valuesList into repeatedValues array\n int sumWeights = valuesList.size();\n double[] repeatedValues = new double[sumWeights];\n for (int i = 0; i < sumWeights; i++) {\n repeatedValues[i] = valuesList.get(i);\n }\n\n // Compare result of weighted statistic computation with direct computation\n // on array of repeated values\n WeightedEvaluation weightedStatistic = (WeightedEvaluation) statistic;\n TestUtils.assertRelativelyEquals(statistic.evaluate(repeatedValues),\n weightedStatistic.evaluate(values, weights, 0, values.length),\n 10E-12);\n\n // Check consistency of weighted evaluation methods\n Assert.assertEquals(weightedStatistic.evaluate(values, weights, 0, values.length),\n weightedStatistic.evaluate(values, weights), Double.MIN_VALUE);\n }", "private QuotationDetailsDTO checkChargedWeight(TableItem[] items, QuotationDetailsDTO detail) {\n\t\tfloat chargedWt = 0;\n\n\t\tfor (int j = 0; j < items.length; j++) {\n\n\t\t\tchargedWt = Float.parseFloat(items[j].getText(1));\n\n\t\t\tif (items[j].getText(0).equals(detail.getArticleName())) {\n\t\t\t\tif (chargedWt != detail.getChargedWeight()) {\n\t\t\t\t\t//System.out.println(\"CW changed for \" + detail.getArticleName());\n\t\t\t\t\tdetail.setBft(null);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t}\n\n\t\t}\n\t\treturn detail;\n\t}", "private static int compareWeighted(ArrayList<ActivityItem> trace, HashMap<Integer, ActivityPrediction> model) {\n Iterator traceIterator = trace.iterator();\n ActivityPrediction predictionItem = null;\n ActivityItem currentTraceItem;\n int result = 0;\n int traceID;\n if (traceIterator.hasNext()) {\n// get the current item in the trace and get the actual model id from it (needed to distinguish between AM and PM)\n currentTraceItem = (ActivityItem) traceIterator.next();\n traceID = ProcessMiningUtil.getProcessModelID(currentTraceItem.getStarttime(), currentTraceItem.getActivityId(), currentTraceItem.getSubactivityId());\n// find start node of the model representation\n// if (model.containsKey(Fitness.getStartID(model))) {\n if (model.containsKey(9990)) {\n predictionItem = model.get(Fitness.getStartID(model));\n }\n if (Fitness.nextActivityPossible(traceID, predictionItem.getEdgeTargetMap())) {\n predictionItem = model.get(traceID);\n }\n while (predictionItem.getActivityID() == traceID && traceIterator.hasNext()) {\n currentTraceItem = (ActivityItem) traceIterator.next();\n traceID = ProcessMiningUtil.getProcessModelID(currentTraceItem.getStarttime(), currentTraceItem.getActivityId(), currentTraceItem.getSubactivityId());\n if (Fitness.nextActivityPossible(traceID, predictionItem.getEdgeTargetMap())) {\n predictionItem = model.get(traceID);\n } else {\n result = 0;\n break;\n }\n if (!traceIterator.hasNext()) {\n// if (Fitness.nextActivityPossible(Fitness.getEndID(model), predictionItem.getEdgeTargetMap())) {\n if (Fitness.nextActivityPossible(9991, predictionItem.getEdgeTargetMap())) {\n result = 1;\n break;\n }\n }\n }\n }\n return result;\n }", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(new FileReader(\"talent.in\"));// new InputStreamReader(System.in)); //\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"talent.out\")));\n int N = sc.nextInt();\n int minWeight = sc.nextInt();\n int[] weight = new int[N];\n int[] value = new int[N];\n int totalTalent = 0;\n for (int i = 0; i < N; i++) {\n int wt = sc.nextInt();\n int val = sc.nextInt();\n weight[i] = wt;\n value[i] = val;\n totalTalent += val;\n }\n\n // Store, for a given talent, what is the smallest weight used to achieve it?\n int[] dp = new int[totalTalent + 1];\n Arrays.fill(dp, (int) 1e9);\n dp[0] = 0;\n // the min weight to produce 0 talent is 0. However,\n // it is necessary to make everything else big because we can only BUILD\n // from 0\n double bestRatio = 0;\n for (int cow = 0; cow < N; cow++) {\n // look at each cow, and go DOWN THROUGH THE dp array, updating the\n // best weight achievable BEHIND US. This countercurrent motion ensures no repeated\n // counting of a single cow's talents\n int contribution = value[cow];\n int wt = weight[cow];\n for (int talent = totalTalent; talent >= 0; talent--) {\n int boostedTalent = contribution + talent;\n int boostedWeight = dp[talent] + wt;\n // with the min weight of a certain talent,\n // is it possible to get a smaller boostedWeight for a boostedTalent\n if (boostedTalent <= totalTalent) {\n // If we are in bounds,\n if (boostedWeight < dp[boostedTalent]) {\n // and the attempted team has a better weight value\n // then update it!\n // Initially, when everything is 1 billion, this cannot\n // happen except for from the base cases, building outward\n dp[boostedTalent] = boostedWeight;\n\n // At the same time, we can be more efficient by constantly\n // checking if we had enough weight first of all, and\n // second of all had a better talent/weight ratio!\n double ratio = (double) boostedTalent / boostedWeight;\n if (ratio > bestRatio && boostedWeight >= minWeight) {\n bestRatio = ratio;\n }\n }\n }\n }\n }\n\n out.println((int) (1000 * bestRatio));\n out.close();\n }", "public int compare(Object nodes1, Object nodes2) {\r\n\t\tdouble w1 = 0.0;\r\n\t\tIterator it = ((Set)nodes1).iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tDouble v = ((Node) it.next()).getWeightValueUnsynchronized(\"value\");\r\n\t\t\tw1 += (v==null ? 1.0 : v.doubleValue());\r\n\t\t}\r\n\t\tdouble w2 = 0.0;\r\n\t\tit = ((Set)nodes2).iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tDouble v = ((Node) it.next()).getWeightValueUnsynchronized(\"value\");\r\n\t\t\tw2 += (v==null ? 1.0 : v.doubleValue());\r\n\t\t}\r\n\t\tint res = Double.compare(w2, w1);\r\n\t\tif (res==0) { // oops, must figure out how they differ\r\n\t\t\tSet ns1 = (Set) nodes1;\r\n\t\t\tSet ns2 = (Set) nodes2;\r\n\t\t\tint ns1sz = ns1.size();\r\n\t\t\tint ns2sz = ns2.size();\r\n\t\t\tif (ns1sz>ns2sz) return -1; // more nodes, the better\r\n\t\t\telse if (ns1sz<ns2sz) return 1;\r\n\t\t\t// go through the *very* expensive nodes discrimination\r\n\t\t\tIterator it1 = ns1.iterator();\r\n\t\t\tIntSet nis1 = new IntSet();\r\n\t\t\twhile (it1.hasNext()) {\r\n\t\t\t\tNode n = (Node) it1.next();\r\n\t\t\t\tnis1.add(new Integer(n.getId()));\r\n\t\t\t}\r\n\t\t\tIterator it2 = ns2.iterator();\r\n\t\t\tIntSet nis2 = new IntSet();\r\n\t\t\twhile (it2.hasNext()) {\r\n\t\t\t\tNode n = (Node) it2.next();\r\n\t\t\t\tnis2.add(new Integer(n.getId()));\r\n\t\t\t}\r\n\t\t\treturn nis2.compareTo(nis1);\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public int weight() {\n \treturn weight;\n }", "public static int[][] greedy(float[] benefit, float[] weight, int[] knapsackWeight) {\n // number of items\n int itemLen = benefit.length;\n // number of knapsacks\n int knapsackLen = knapsackWeight.length;\n // key: index of item, value: benefit / weight of item\n Map<Integer, Float> benefitPerWeightMap = new TreeMap<>();\n // if item i is included in knapsack j, result[i][j] = 1, otherwise result[i][j] = 0\n int[][] result = new int[itemLen][knapsackLen];\n // initialize the map\n for (int i = 0; i < itemLen; i++) {\n benefitPerWeightMap.put(i, (benefit[i] / weight[i]));\n }\n\n // the value comparator for sorting the entrySet in the map by value in descending order (using lambda)\n Comparator<Map.Entry<Integer, Float>> valueComparator = (o1, o2) -> o2.getValue().compareTo(o1.getValue());\n // convert the map to list to sort it by value comparator\n List<Map.Entry<Integer, Float>> benefitPerWeightList = new ArrayList<>(benefitPerWeightMap.entrySet());\n benefitPerWeightList.sort(valueComparator);\n\n // put items in list into knapsacks\n for (int j = 0; j < knapsackLen; j++) {\n // the items have been put in and ready to be delete\n List<Map.Entry<Integer, Float>> deleteList = new ArrayList<>();\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightList) {\n int i = entry.getKey();\n if (weight[i] <= knapsackWeight[j]) {\n result[i][j] = 1;\n deleteList.add(entry);\n knapsackWeight[j] -= weight[i];\n }\n }\n // delete the items have been put in\n benefitPerWeightList.removeAll(deleteList);\n }\n return result;\n }", "public int compare(Term p, Term q) {\n return Long.compare(q.weight, p.weight);\n }", "public int weight() {\n if (this.weight == null) {\n return 0;\n } else {\n return this.weight;\n } // if/else\n }", "public void testEvaluate()\n {\n Vector zero = new Vector3();\n Vector x = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n Vector y = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n \n double weight = RANDOM.nextDouble();\n WeightedKernel<Vector> instance = new WeightedKernel<Vector>(\n weight, LinearKernel.getInstance());\n \n double expected = weight * x.dotProduct(y);\n assertEquals(expected, instance.evaluate(x, y));\n assertEquals(expected, instance.evaluate(y, x));\n assertEquals(0.0, instance.evaluate(x, zero));\n assertEquals(0.0, instance.evaluate(y, zero));\n assertEquals(0.0, instance.evaluate(zero, zero));\n }", "static double addHeuristic2(GameState c, boolean isMaxNode) {\n\t\tint i;\n\t\tint self_total_weight = 0;\n\t\tint opponent_total_weight = 0;\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_total_weight += i;\n\t\t\t}\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_total_weight += i;\n\t\t\t}\n\t\t}\n\n\t\treturn (double) (-self_total_weight + opponent_total_weight) / 78.0;\n\t}", "public Comparator<Integer> comparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n Http2PriorityNode n1 = nodesByID.get(o1);\n Http2PriorityNode n2 = nodesByID.get(o2);\n if(n1 == null && n2 == null) {\n return 0;\n }\n if(n1 == null) {\n return -1;\n }\n if(n2 == null) {\n return 1;\n }\n //do the comparison\n //this is kinda crap, but I can't really think of any better way to handle this\n\n double d1 = createWeightingProportion(n1);\n double d2 = createWeightingProportion(n2);\n return Double.compare(d1, d2);\n }\n };\n }", "@Test\n\tpublic void testGetWeights() throws GeoTessException, IOException\n\t{\n\t\tdouble[] u = VectorGeo.getVectorDegrees(20., 90.);\n\n\t\t// construct raypth: unit vectors and radii.\n\t\tArrayList<double[]> v = new ArrayList<double[]>();\n\n\t\t// add a bunch of points along a great circle path at \n\t\t// a constant radius.\n\t\tv.clear();\n\t\tdouble[][] gc = VectorUnit.getGreatCircle(u, Math.PI/2);\n\n\t\tdouble angle = PI/6;\n\t\tdouble radius = 5350;\n\t\tint n = 100;\n\t\t\n\t\tdouble[] r = new double[n];\n\t\tArrays.fill(r, radius);\n\n\t\tdouble len = angle /(n-1.);\n\t\tfor (int i=0; i<n; ++i)\n\t\t\tv.add(VectorUnit.getGreatCirclePoint(gc, i* len));\n\n\t\t// get weights from the model.\n\t\tHashMap<Integer, Double> w = new HashMap<Integer, Double>(2*n);\n\t\t\t\t\n\t\tmodel.getWeights(v, r, null, InterpolatorType.LINEAR, InterpolatorType.LINEAR, w);\n\n\t\tdouble sum=0;\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tsum += e.getValue();\n\n\t\tStringBuffer buf = new StringBuffer();\n\t\t// print out the weights, the locations of the points.\n\t\tbuf.append(\"\\nPt Index weight layer lat lon depth\\n\");\n\t\tfor (Map.Entry<Integer, Double> e : w.entrySet())\n\t\t\tbuf.append(String.format(\"%6d %10.4f %3d %s%n\", e.getKey(), e.getValue(), \n\t\t\t\t\tmodel.getPointMap().getLayerIndex(e.getKey()),\n\t\t\t\t\tmodel.getPointMap().toString(e.getKey())));\n\n\t\t// compute the length of the great circle path in km.\n\t\tbuf.append(String.format(\"%nActual length of great circle path = %1.4f km%n%n\", angle*radius));\n\n\t\t// sum of the weights should equal length of great circle path.\n\t\tbuf.append(String.format(\"Size = %d Sum weights = %1.4f km%n\", w.size(), sum));\n\n\t\tassertEquals(buf.toString(), sum, angle*radius, 0.01);\n\n\t}", "@Test\n void findVeichleByWeight() {\n\n final int ALL_CARS = 500;\n final int ONE_CAR = 1500;\n final int NO_CARS = 2500;\n\n vr.registerVeichle(dieselCar);\n vr.registerVeichle(dieselCar2);\n //check if all cars are returned as all cars are over 500 kg\n assertEquals(vr.getVeichles(), vr.findVeichleByWeight(ALL_CARS));\n //checks if that only dieselCar2 is returned as its the only car over 1500 kg\n assertTrue(vr.findVeichleByWeight(ONE_CAR).contains(dieselCar2) && !vr.findVeichleByWeight(ONE_CAR).contains(dieselCar));\n //Checks that no cars are returned since no cars is heavier than 2500\n assertFalse(vr.findVeichleByWeight(NO_CARS).contains(dieselCar) || vr.findVeichleByWeight(NO_CARS).contains(dieselCar2));\n\n }", "public static void checkConsistency(){\n double[] aNormalW=new double[numberOfObjectives];\n double randomIndex=0;\n double sum=0;\n for (int row=0;row<numberOfObjectives;row++){\n for (int column=0;column<numberOfObjectives;column++){\n\n sum+=weights[column]*objectives[row][column];\n }\n df.setRoundingMode(RoundingMode.UP);\n aNormalW[row]= Double.valueOf(df.format(sum));\n sum=0;\n }\n double awtDividedByWt=0;\n for (int i=0;i<numberOfObjectives;i++){\n awtDividedByWt+=aNormalW[i]/weights[i];\n decimalFormat.setRoundingMode(RoundingMode.HALF_UP);\n Double.valueOf(decimalFormat.format(awtDividedByWt));\n }\n double reciprocalNumber=(double) 1/numberOfObjectives;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n Double.valueOf(decimalFormat.format(reciprocalNumber));\n double step3=reciprocalNumber*awtDividedByWt;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double numerator=Double.valueOf(decimalFormat.format(step3))-numberOfObjectives;\n double denominator=numberOfObjectives-1;\n decimalFormat.setRoundingMode(RoundingMode.UP);\n double ci=Double.valueOf(decimalFormat.format(numerator)) /denominator;\n decimalFormat.setRoundingMode(RoundingMode.CEILING);\n System.out.println(\"Consistency Index (CI)= \"+Double.valueOf(decimalFormat.format(ci)));\n System.out.println();\n double ciDividedByRI=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n // Double.valueOf(df.format(ciDividedByRI));\n if (ciDividedByRI<0.10){\n randomIndex=ci/table23(numberOfObjectives);\n decimalFormat.setRoundingMode(RoundingMode.UP);\n System.out.println(\"Random Index (RI)= \"+Double.valueOf(decimalFormat.format(randomIndex)));\n System.out.println(\"degree of consistency is satisfactory !!\");\n }else {\n System.out.println(\"the AHP may not yield meaningful results !!\");\n }\n System.out.println();\n }", "@Override\n\tpublic int compareTo(Cow o) {\n\t\treturn Integer.compare(this.weight, o.weight);\n\t}", "private double costOf(int w) {\n\t\treturn getVertex(w).getCost();\n\t}", "public static TempResult max(int allowedWeight, Set<Item> items) {\n\t\tint[] values=new int[items.size()];\n\t\tint[] weights=new int[items.size()];\n\t\t\n\n\t\tArrayList<Item> items2=new ArrayList<Item>(items);\n\t\tfor (int i=0; i<items2.size(); i++) {\n\t\t\tvalues[i]=items2.get(i).value;\n\t\t\tweights[i]=items2.get(i).weight;\n\t\t}\n\t\t\n int[][] totalValue = new int[values.length+1][allowedWeight+1];\n boolean[][] includedorNot = new boolean[values.length+1][allowedWeight+1];\n \n //We introduce item one by one to the system.\n //For each introduced item, we consider the maximal profit\n //for weight=[0:allowedWeight]\n for (int i=0; i<values.length; i++) {\n \t//introduce item i into the system.\n \tint val=values[i];\n \tint weight=weights[i];\n \t\n \tint itemIndex=i+1;\n \t\n \tfor (int w=1; w<=allowedWeight; w++) {\n \t\t\n \t\t//Zero copy of ith item; i-1 is calculated already\n \t\tint profit1=totalValue[itemIndex-1][w];\n \t\t\n \t\t//one copy of ith item.\n \t\tint profit2=Integer.MIN_VALUE;\n \t\tif (w-weight>=0) {\n \t\t\t//for a particular targeted weight, add item i does not overflow the targeted weight.\n \t\t\tprofit2=totalValue[itemIndex-1][w-weight]+val;\n \t\t}\n \t\t\n \t\tif (profit1>profit2) {\n \t\t\tincludedorNot[itemIndex][w]=false;\n \t\t\ttotalValue[itemIndex][w]=profit1;\n \t\t} else {\n \t\t\tincludedorNot[itemIndex][w]=true;\n \t\t\ttotalValue[itemIndex][w]=profit2;\n \t\t}\n \t}\n }\n\t\t\n \n TempResult result=new TempResult(0, 0);\n result.value=totalValue[values.length][allowedWeight];\n result.items=new LinkedList<>();\n int w=allowedWeight;\n for (int itemIndex=values.length; itemIndex>0; itemIndex--) {\n \tif (includedorNot[itemIndex][w]) {\n \t\tresult.items.add(items2.get(itemIndex-1));\n \t\tw=w-weights[itemIndex-1];\n \t} \n }\n \n return result;\n \n\t}", "@Override\n public int compareTo(UnconstrainedBidElement o) {\n return Double.compare(o.demandWatt, demandWatt);\n }", "public abstract double getWeight ();", "@Test\n public void calculateWeightedAverage_2_Distributed() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(50,50);\n builder.add(100,50);\n assertEquals(builder.calculate().doubleValue(), new BigDecimal(75).doubleValue(), 0.0d);\n assertEquals(builder.build().calculateWeightedAverage().doubleValue(),\n 75.0, 0.0d);\n }", "@Test\n\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}", "@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}", "public void correctWeights() {\n double tmp;\n\n for(int i = 0; i < inputs; ++i) {\n //temporary store old value\n tmp = weights[i];\n // correct weight's value using MOMENTUM parameter\n weights[i] += changes[i] + MOMENTUM * (weights[i] - exWeights[i]);\n //store old value in class member\n exWeights[i] = tmp;\n // clear corrections value\n changes[i] = 0.0;\n }\n\n // const input weight correction if const input is enabled\n if (enableConstAddend) {\n // temporary store old value\n tmp = weights[inputs];\n // change weight's value using MOMENTUM parameter\n weights[inputs] += changes[inputs] + MOMENTUM * (weights[inputs] - exWeights[inputs]);\n // store old value\n exWeights[inputs] = tmp;\n // clear value of calculated change\n changes[inputs] = 0.0;\n }\n }", "public Weight getWeight();", "@Override\n protected double calcSimilarity(Cluster a, Cluster b) {\n List<Point> aItems = a.getItems();\n List<Point> bItems = b.getItems();\n\n // calculate the similarity of each item in a with every item in b,\n // save the min value in sim-variable\n double sim = Double.MAX_VALUE;\n for (Point x : aItems) {\n for (Point y : bItems) {\n double currSim = x.distanceTo(y);\n if (currSim < sim) {\n sim = currSim;\n }\n }\n }\n\n return sim;\n }", "public double computeThreshold(ArrayList<Integer> trust_vals, ArrayList<Double> weights) {\n\t\t\n\t\tdouble result = 0;\n\t\tfor (int i = 0; i < trust_vals.size(); ++i) {\n\t\t\tresult += trust_vals.get(i) * weights.get(i);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "double getWeight(V v, V w);", "void calculateWeights(List<Neuron> connectedNeurons) {\n // neuron_k:weight = neuron_k:weight - this:LearningRate * neuron_k:error * this:output\n Iterator<Neuron> iter = connectedNeurons.iterator();\n while(iter.hasNext()) {\n Neuron neuron = iter.next();\n try{\n double currentWeight = neuron.inputWeights.get(this.neuronName);\n double neuronError = neuron.error;\n double newWeight = currentWeight - LEARNING_RATE*neuronError*this.getOutput(); // !!! equation difference\n \n System.out.println(\"this neuronName: \" + this.neuronName + \" that neuron keys: \" + neuron.inputWeights);\n System.out.println(\"Old weight: \" + currentWeight + \" new weight: \" + newWeight);\n \n neuron.inputWeights.put(this.getName(), newWeight);\n }catch (Exception e) {\n System.out.println(this.neuronName + \" : \" + neuron.inputWeights);\n e.printStackTrace();\n System.exit(1);\n }\n }\n }", "public boolean checkWeight() {\r\n\t\tif ((_15mWeight + _1hWeight + _4hWeight + _12hWeight + _1dWeight + _2dWeight + _7dWeight) == 100) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//make sure to handle this\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private double weightedDistanceFrom(DataPoint p, double weight) {\n //double[] vals = p.getVals();\n double[] cie = p.getCIE();\n //return Math.sqrt(Math.pow((r-vals[0])/255,2) + Math.pow((g-vals[1])/255,2) + Math.pow((b-vals[2])/255,2));\n return Math.sqrt(Math.pow(cie[0]-CIE_l, 2)*weight //CIE luminosity\n + Math.pow(cie[1]-CIE_a, 2) //CIE red-green axis\n + Math.pow(cie[2]-CIE_b, 2) //CIE blue-yellow axis\n );\n }", "public double getWeight(){\n\t\treturn this._weight;\n\t}", "public int compare(Vertex v1, Vertex v2)\n {\n \t// errors are here.\n int weightOne = Dijkstra.this.distances.get(v1.convertToString(v1.getVertexPortNum())); // distances stored by portnum in string form.\n int weightTwo = Dijkstra.this.distances.get(v2.convertToString(v2.getVertexPortNum())); // distances stored by portnum in string form.\n return weightOne - weightTwo; // return the modified weight of the two vertices.\n }", "public int compareTo(Molecule other)\n\t{\n\t\treturn this.getWeight() < other.getWeight() ? -1 : (this.getWeight() > other.getWeight() ? 1 : 0);\n\t}", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "public static int knapSackWithDP(int expectedWeight) {\n\t\tint N = values.length;\n\t\tint[][] dP = new int[N + 1][expectedWeight + 1];\n\t\tboolean[][] takeSoln = new boolean[N + 1][expectedWeight + 1];\n\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= expectedWeight; j++) {\n\t\t\t\tif (weights[i - 1] > j) {\n\t\t\t\t\tdP[i][j] = dP[i - 1][j];\n\t\t\t\t} else {\n\t\t\t\t\tint option1 = dP[i - 1][j], option2 = values[i - 1] + dP[i - 1][j - weights[i - 1]];\n\t\t\t\t\tdP[i][j] = Math.max(option2, option1);\n\t\t\t\t\ttakeSoln[i][j] = (option2 > option1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Selected items are: \");\n\t\tint totalWt = 0, totalValue = 0;\n\t\tfor (int k = N, wt = expectedWeight; k > 0; k--) {\n\t\t\tif (takeSoln[k][wt]) {\n\t\t\t\ttotalWt += weights[k - 1];\n\t\t\t\ttotalValue += values[k - 1];\n\t\t\t\tSystem.out.printf(\"\tItem %d with weight %d and value %d\\n\", k, weights[k - 1], values[k - 1]);\n\t\t\t\twt -= weights[k - 1];\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"Calculated total weight= %d and total value= %d\\n\", totalWt, totalValue);\n\t\treturn dP[N][expectedWeight];\n\t}", "@Override\n\tpublic double weight() {\n\t\treturn 1.0;\n\t}", "private double estimateCategoricalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,\n Comparator comp,\n List<TemporalElementStats> relevantStats2,\n String property2) {\n long count1 = relevantStats1.stream()\n .map(TemporalElementStats::getElementCount)\n .reduce(0L, Long::sum);\n long count2 = relevantStats2.stream()\n .map(TemporalElementStats::getElementCount)\n .reduce(0L, Long::sum);\n long totalCount = count1 * count2;\n\n\n double outerSum = 0.;\n for (TemporalElementStats s1 : relevantStats1) {\n double innerSum = 0.;\n for (TemporalElementStats s2 : relevantStats2) {\n double prob = estimateCategoricalPropertyProb(s1, property1, comp, s2, property2);\n double weight = ((double) s1.getElementCount() * s2.getElementCount()) /\n totalCount;\n innerSum += prob * weight;\n }\n outerSum += innerSum;\n }\n return outerSum;\n }", "@Override\r\n\tpublic double Weight() {\n\t\treturn Weight;\r\n\t}", "public float getWeight() {\n return weight;\n }", "public float getWeight() {\n return weight;\n }", "private boolean isApproximatelyEqual(Node n, Node first) {\r\n\t\tDouble nwD = n.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble nw = nwD==null ? 1.0 : nwD.doubleValue();\r\n\t\tDouble fwD = first.getWeightValueUnsynchronized(\"value\");\r\n\t\tdouble fw = fwD==null ? 1.0 : fwD.doubleValue();\r\n\t\treturn fw*_alphaFactor <= nw &&\r\n\t\t\t first.getNborsUnsynchronized().size()*_alphaFactor >= \r\n\t\t\t n.getNborsUnsynchronized().size();\r\n\t}", "public float getWeight() {\n return weight;\n }", "private double estimateNumericalPropertyProb(List<TemporalElementStats> relevantStats1, String property1,\n Comparator comp, List<TemporalElementStats> relevantStats2,\n String property2) {\n long count1 = relevantStats1.stream()\n .map(TemporalElementStats::getElementCount)\n .reduce(0L, Long::sum);\n long count2 = relevantStats2.stream()\n .map(TemporalElementStats::getElementCount)\n .reduce(0L, Long::sum);\n long totalCount = count1 * count2;\n\n double outerSum = 0.;\n for (TemporalElementStats s1 : relevantStats1) {\n double innerSum = 0.;\n for (TemporalElementStats s2 : relevantStats2) {\n double prob = estimateNumericalPropertyProb(s1, property1, comp, s2, property2);\n double weight = ((double) s1.getElementCount() * s2.getElementCount()) /\n totalCount;\n innerSum += prob * weight;\n }\n outerSum += innerSum;\n }\n return outerSum;\n }", "public static int[][] neighborhoodSearch(float[] benefit, float[] weight, int[] knapsackWeight){\n\n /*\n Using greedy algorithm to put items in knapsacks\n */\n\n // number of items\n int itemLen = benefit.length;\n // number of knapsacks\n int knapsackLen = knapsackWeight.length;\n // key: index of item, value: benefit / weight of item\n Map<Integer, Float> benefitPerWeightToIndexMap = new TreeMap<>();\n // if item i is included in knapsack j, result[i][j] = 1, otherwise result[i][j] = 0\n int[][] result = new int[itemLen][knapsackLen];\n // initialize the map\n for (int i = 0; i < itemLen; i++) {\n benefitPerWeightToIndexMap.put(i, (benefit[i] / weight[i]));\n }\n\n // the value comparator for sorting the entrySet in the map by value in descending order (using lambda)\n Comparator<Map.Entry<Integer, Float>> valueComparator = (o1, o2) -> o2.getValue().compareTo(o1.getValue());\n // convert the map to list to sort it by value comparator\n List<Map.Entry<Integer, Float>> benefitPerWeightToIndexList = new ArrayList<>(benefitPerWeightToIndexMap.entrySet());\n benefitPerWeightToIndexList.sort(valueComparator);\n\n printBenefitPerWeightList(benefitPerWeightToIndexList);\n\n int greedyTotalBenefit = 0;\n\n // put items in list into knapsacks\n for (int j = 0; j < knapsackLen; j++) {\n // the items have been put in and ready to be delete\n List<Map.Entry<Integer, Float>> deleteList = new ArrayList<>();\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightToIndexList) {\n int i = entry.getKey();\n if (weight[i] <= knapsackWeight[j]) {\n result[i][j] = 1;\n greedyTotalBenefit += benefit[i];\n deleteList.add(entry);\n knapsackWeight[j] -= weight[i];\n }\n }\n // delete the items have been put in\n benefitPerWeightToIndexList.removeAll(deleteList);\n }\n // After greedy algorithm\n System.out.println(\"------After greedy algorithm------\");\n printKnapsackWeight(knapsackWeight);\n printItemsNotIncluded(benefitPerWeightToIndexList);\n System.out.println(\"Total benefit:\" + greedyTotalBenefit);\n printResult(result);\n\n /*\n Search neighborhood\n */\n\n int neighborTotalBenefit = greedyTotalBenefit;\n\n // traversing knapsacks\n for (int j1 = 0; j1 < knapsackLen - 1; j1++) {\n for (int j2 = j1 + 1; j2 < knapsackLen; j2++) {\n // traversing items in the two knapsacks\n for (int i1 = 0; i1 < itemLen; i1++) {\n for (int i2 = 0; i2 < itemLen; i2++) {\n // judge if item i1 and item i2 exists in knapsack j1 and j2 respectively\n if (result[i1][j1] == 1 && result[i2][j2] == 1) {\n // tempList for update benefitPerWeightToIndexList in iteration\n List<Map.Entry<Integer, Float>> tempList = new ArrayList<>(benefitPerWeightToIndexList);\n // traversing items that have not been included\n for (Map.Entry<Integer, Float> entry:\n benefitPerWeightToIndexList) {\n int i3 = entry.getKey();\n // judge if the neighborhood solution is feasible\n if (knapsackWeight[j2] + weight[i2] - weight[i1] >= 0\n && knapsackWeight[j1] + weight[i1] - weight[i3] >= 0) {\n // judge if the neighborhood solution is better\n if (neighborTotalBenefit - benefit[i2] + benefit[i3] > neighborTotalBenefit) {\n // change the current solution to the neighborhood solution\n result[i1][j1] = 0;\n result[i1][j2] = 1;\n\n result[i2][j2] = 0;\n\n result[i3][j1] = 1;\n\n tempList.remove(entry);\n int finalI2 = i2;\n tempList.add(new Map.Entry<Integer, Float>() {\n @Override\n public Integer getKey() {\n return finalI2;\n }\n\n @Override\n public Float getValue() {\n return benefit[finalI2] / weight[finalI2];\n }\n\n @Override\n public Float setValue(Float value) {\n return null;\n }\n });\n\n knapsackWeight[j1] += weight[i1] - weight[i3];\n knapsackWeight[j2] += weight[i2] - weight[i1];\n\n neighborTotalBenefit = (int) (neighborTotalBenefit - benefit[i2] + benefit[i3]);\n\n System.out.println(\"------Find a better solution------\");\n System.out.println(\"Remove item\" + i2 + \" in \" + \"knapsack\" + j2 + \", move item\" + i1 + \" from knapsack\" + j1 + \" to \" + \"knapsack\" + j2 + \" and put item\" + i3 + \" in knapsack\" + j1);\n printKnapsackWeight(knapsackWeight);\n printItemsNotIncluded(tempList);\n System.out.println(\"Total benefit:\" + neighborTotalBenefit);\n printResult(result);\n }\n }\n }\n // update the list after traversing the list\n benefitPerWeightToIndexList = tempList;\n }\n }\n }\n }\n }\n\n return result;\n }", "public float getWeight() {\n return weight;\n }", "public void compareFeatures() {\n computeDistances();\n evaluationLogic();\n // compute recall and precision\n recall = truePositiveCount / (truePositiveCount + falseNegativeCount);\n // avoid division by zero\n float denominator = truePositiveCount + falsePositiveCount;\n precision = denominator == 0 ? 0 : truePositiveCount / denominator;\n }", "@Override\r\n\tpublic boolean canHaveAsWeight(int weight) {\r\n\t\treturn (weight >= 10 && weight <= 50);\r\n\t}", "public double getWeight(){return this.aWeight;}", "public double getWeight(){\n return weight;\n }", "public double getWeight() {\r\n return weight;\r\n }", "public double getWeight() {\r\n return weight;\r\n }", "public static void main(String[] args){ w = the total weight\n\t\t// i = item i\n\t\t// m[i, w] = maximum value attained with weight <= w using items up to i\n\t\t//\n\t\t// recurrence relation:\n\t\t// m[0, w] = 0, if there's zero items, the sum is zero\n\t\t// m[i, w] = m[i-1, w], if w(i) > w, the new item's weight > current weight limit\n\t\t// m[i, w] = max(m[i-1, w],\n\t\t// \t\t\t\t m[i-1, w-w(i)] + v(i), if w(i) <= w\n\t\t//\n\t\t//\n\t\tArrayList<Item> items = new ArrayList<Item>();\n\n\t\titems.add(new Item(10, 60));\n\t\titems.add(new Item(20, 100));\n\t\titems.add(new Item(30, 120));\n\n\t\tSystem.out.println(knapsack(items.size()-1, 50, items));\n\t}", "public double getWeight(){\n\t\treturn weight;\n\t}", "public int compareTo(Edge other){\n return this.weight - other.weight;\n }", "@Override\n public int compare(Prediction lhs, Prediction rhs) {\n return Float.compare(rhs.getConfidence(), lhs.getConfidence());\n }", "public double getVavlueOfO(List<Integer> wordCount) {\n double result = 0.0;\n for (int i = 0; i < weights.size(); i++) {\n result = result + weights.get(i).doubleValue() * wordCount.get(i).doubleValue();\n }\n\n if (result > 0) {\n result = 1.0;\n } else {\n result = -1.0;\n }\n\n return result;\n }", "@Override\n public double solutionWeight(){\n return solutionweight;\n }", "@Override\n public double evaluate(IntelliTuple tuple, IntelliContext context) {\n double CBLOF = Double.MAX_VALUE;\n\n double maxSim = Double.MIN_VALUE;\n Cluster closestCluster = null;\n for(Cluster c : clusters){\n double sim = c.similarity(context, tuple);\n if(sim > maxSim){\n maxSim = sim;\n closestCluster = c;\n }\n }\n\n if(closestCluster.getIndex() > split){ // c belongs to small clusters\n double minDistance = Double.MAX_VALUE;\n for(int j=0; j <= split; ++j){\n double distance = clusters.get(j).distance(context, tuple);\n if(minDistance > distance){\n minDistance = distance;\n }\n }\n\n CBLOF = closestCluster.size() * minDistance;\n }else{\n CBLOF = closestCluster.size() * closestCluster.distance(context, tuple);\n }\n\n return CBLOF;\n }", "private void calculateWeight(Iterable<PageRankWritable> messages) {\r\n\t\tlong totalInCount = 0;\r\n\t\tlong totalOutCount = 0;\r\n\r\n\t\t// Because iterator can not go back to the first record,\r\n\t\t// so we need to new another Map to store the in/out edge counts.\r\n\t\tMap<Text, long[]> edgeCountMap = new HashMap<Text, long[]>();\r\n\t\tfor (PageRankWritable msg : messages) {\r\n\t\t\ttotalInCount += msg.getInEdgeCount().get();\r\n\t\t\ttotalOutCount += msg.getOutEdgeCount().get();\r\n\r\n\t\t\t// Store edge counts.\r\n\t\t\tlong[] edgeCounts = new long[2];\r\n\t\t\tedgeCounts[0] = msg.getInEdgeCount().get();\r\n\t\t\tedgeCounts[1] = msg.getOutEdgeCount().get();\r\n\t\t\tedgeCountMap.put(msg.getSenderId(), edgeCounts);\r\n\t\t}\r\n\r\n\t\t// Calculate weight for each destination vertex.\r\n\t\tMapWritable weightMap = new MapWritable();\r\n\t\tfor (Entry<Text, long[]> entry : edgeCountMap.entrySet()) {\r\n\t\t\tText key = entry.getKey();\r\n\t\t\tlong[] value = entry.getValue();\r\n\t\t\tdouble weight = (value[0] / (double) totalInCount)\r\n\t\t\t\t\t* (value[1] / (double) totalOutCount);\r\n\t\t\tweightMap.put(key, new DoubleWritable(weight));\r\n\t\t}\r\n\r\n\t\tgetValue().setWeightMap(weightMap);\r\n\t}", "@Test\n public void calculateWeightedAverage_3_Distributed() throws Exception {\n WeightedAverage.Builder builder = WeightedAverage.newBuilder();\n builder.add(50,0.5);\n builder.add(100,0.5);\n assertEquals(builder.calculate().doubleValue(), new BigDecimal(75).doubleValue(), 0.0d);\n assertEquals(builder.build().calculateWeightedAverage().doubleValue(),\n 75.0, 0.0d);\n }", "private Sim getSimilarity(Product p1, Product p2, double[] weights) {\n\t\tdouble d1 = 1 - matrix.getServiceMatrix()[p1.getNormalizedService()][p2\n\t\t\t\t.getNormalizedService()];\n\t\tdouble d2 = 1 - matrix.getCustomerMatrix()[p1.getNormalizedCustomer()][p2\n\t\t\t\t.getNormalizedCustomer()];\n\t\tdouble d3 = p1.getNormalizedFee() - p2.getNormalizedFee();\n\t\tdouble d4 = p1.getNormalizedAds() - p2.getNormalizedAds();\n\t\tdouble d5 = 1 - matrix.getSizeMatrix()[p1.getNormalizedSize()][p2\n\t\t\t\t.getNormalizedSize()];\n\t\tdouble d6 = 1 - matrix.getPromotionMatrix()[p1.getNormalizedPromo()][p2\n\t\t\t\t.getNormalizedPromo()];\n\t\tdouble d7 = p1.getNormalizedInterest() - p2.getNormalizedInterest();\n\t\tdouble d8 = p1.getNormalizedPeriod() - p2.getNormalizedPeriod();\n\t\tdouble sum = weights[0] * Math.pow(d1, 2) + weights[1]\n\t\t\t\t* Math.pow(d2, 2) + weights[2] * Math.pow(d3, 2) + weights[3]\n\t\t\t\t* Math.pow(d4, 2) + weights[4] * Math.pow(d5, 2) + weights[5]\n\t\t\t\t* Math.pow(d6, 2) + weights[6] * Math.pow(d7, 2) + weights[7]\n\t\t\t\t* Math.pow(d8, 2);\n\t\tdouble simValue = 1 / Math.sqrt(sum);\n\t\tSim sim = new Sim(p2, simValue);\n\t\treturn sim;\n\t}", "@Override\n protected double compareScoredCriteria(ScoredCriteriaMap wikiScoredCriteria) {\n double[] preferenceScores = ScoredCriteriaMap.unpackScores(wikiScoredCriteria);\n double[] wikiScores = ScoredCriteriaMap.unpackScores(this.getPreferenceScoredCriteriaMap());\n\n // Calculate the sum\n double sum = 0;\n for (int i = 0; i < Criterion.NUMBER_OF; i++) {\n sum = sum + (preferenceScores[i] - wikiScores[i]) * (preferenceScores[i] - wikiScores[i]);\n }\n return (1 / (1 + Math.sqrt(sum)));\n }", "public double getWeight() {\n\t\treturn weight; \n\t\t}", "@Override\n public double score(Map<BasedMining, Map<BasedMining, RateEvent>> preferences,\n BasedMining item1,\n BasedMining item2) {\n var sharedInnerItems = new ArrayList<BasedMining>();\n\n preferences.get(item1).forEach((innerItem, rateEvent) -> {\n if (preferences.get(item2).get(innerItem) != null) {\n sharedInnerItems.add(innerItem);\n }\n });\n\n// If they have no rating in common, return 0\n if (sharedInnerItems.size() > 0)\n return 0;\n\n// Add up the square of all the differences\n var sumOfSquares = preferences.get(item1).entrySet()\n .stream()\n .filter(entry -> preferences.get(item2).get(entry.getKey()) != null)\n .mapToDouble(entry -> Math.pow((entry.getValue().getRating() - preferences.get(item2).get(entry.getKey()).getRating()), 2.0))\n .sum();\n\n return 1 / (1 + sumOfSquares);\n }", "public double getActualWeight() {\n return actualWeight;\n }", "public final void test(final List<T> nodes) {\n Graph<T> approximate_graph = computeGraph(nodes);\n\n // Use Brute force to build the exact graph\n Brute brute = new Brute();\n brute.setK(k);\n brute.setSimilarity(similarity);\n Graph<T> exact_graph = brute.computeGraph(nodes);\n\n int correct = 0;\n for (T node : nodes) {\n correct += approximate_graph.getNeighbors(node)\n .countCommons(exact_graph.getNeighbors(node));\n }\n\n System.out.println(\n \"Computed similarities: \" + this.getComputedSimilarities());\n double speedup_ratio\n = (double) (nodes.size() * (nodes.size() - 1) / 2)\n / this.getComputedSimilarities();\n System.out.println(\"Speedup ratio: \" + speedup_ratio);\n\n double correct_ratio = (double) correct / (nodes.size() * k);\n System.out.println(\"Correct edges: \" + correct\n + \" (\" + correct_ratio * 100 + \"%)\");\n\n System.out.println(\"Quality-equivalent speedup: \"\n + speedup_ratio * correct_ratio);\n }", "public int compareTo(Object e){\n if(weight == ((Edge)e).weight){\n return 0;\n }\n else if(weight > ((Edge)e).weight){\n return 1;\n }\n else{\n return -1;\n }\n }", "public double getPrereqWeightSum() { return prereq_w_sum; }", "double calculateSoma(List<Double> weights);" ]
[ "0.6996109", "0.64384866", "0.64261675", "0.6358062", "0.6303969", "0.6243567", "0.622877", "0.61870223", "0.6137053", "0.60656214", "0.6053497", "0.60229576", "0.6020051", "0.6013449", "0.59427667", "0.5937718", "0.5893805", "0.5876959", "0.5862069", "0.5847242", "0.5847242", "0.5811778", "0.5801197", "0.57937455", "0.5776097", "0.5763101", "0.5760364", "0.57300186", "0.5724527", "0.57210994", "0.5717371", "0.57134557", "0.57106334", "0.5681982", "0.56676364", "0.56606376", "0.5658224", "0.5647937", "0.5632506", "0.5629222", "0.5627751", "0.5624025", "0.5618178", "0.56069463", "0.5588628", "0.5582187", "0.5562872", "0.5552993", "0.554737", "0.5546491", "0.5535123", "0.55309016", "0.5530101", "0.5522966", "0.5518536", "0.55154514", "0.5511603", "0.5500341", "0.5499348", "0.5498371", "0.54965085", "0.5492851", "0.54844713", "0.5482983", "0.5480292", "0.54634714", "0.5461042", "0.5456558", "0.54556024", "0.5452955", "0.5450692", "0.5450692", "0.54392016", "0.5434246", "0.5433594", "0.54318845", "0.54203963", "0.5420026", "0.54104406", "0.54103196", "0.5407671", "0.5403945", "0.5403945", "0.54038405", "0.5402558", "0.5399355", "0.53943557", "0.5392181", "0.53918296", "0.5390228", "0.5389653", "0.53843033", "0.5373908", "0.5373061", "0.5371383", "0.5362791", "0.5362585", "0.53625214", "0.5356077", "0.5354891", "0.53537756" ]
0.0
-1
Adds an edge to a multigraph adding the nodes first when needed;
public static Multigraph smartAddEdge(Multigraph graph, Edge edge, boolean stopIfMissing) { if (!graph.containsVertex(edge.getSource())) { if(stopIfMissing){ throw new IllegalStateException("Missing source node for edge "+ edge); } graph.addVertex(edge.getSource()); } if (!graph.containsVertex(edge.getDestination())) { if(stopIfMissing){ throw new IllegalStateException("Missing destination node for edge "+ edge); } graph.addVertex(edge.getDestination()); } //That a good mapping edge, add to the related query graph.addEdge(edge.getSource(), edge.getDestination(), edge.getLabel()); return graph; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addEdge(Edge edge){\n \n synchronized(vertexes){\n Long start = edge.getStart();\n Vertex sVertex = vertexes.get(start);\n if(sVertex != null){\n sVertex.addEdge(edge, true);\n }\n// if undirected graph then adds edge to the finish vertex too \n if(!edge.isDirected()){\n Long finish = edge.getFinish();\n Vertex fVertex = vertexes.get(finish);\n if(fVertex != null){\n fVertex.addEdge(edge, false);\n }\n }\n }\n \n }", "public void addEdge(Edge e){\n\t\tedges.put(e.hashCode(), e);\n\t\te.getHead().addConnection(e);\n\t\te.getTail().addConnection(e);\n\t}", "public void addEdge(E e){\n\t\tedges.add(e);\n\t}", "public void addEdge(Edge e){\n\t\tadjacentEdges.add(e);\n\t}", "void add(Edge edge);", "void addEdge(Edge e) {\n\t\t\tif(!_edges.containsKey(e.makeKey())) {\n\t\t\t\t_edges.put(e.makeKey(),e);\n\t\t\t\te._one.addNeighborEdge(e);\n\t\t\t\te._two.addNeighborEdge(e);\n\t\t\t}\n\t\t}", "public void addEdge(){\n Node[] newAdjacent = new Node[adjacent.length + 1];\n for (int i = 0; i < adjacent.length; i++) {\n newAdjacent[i] = adjacent[i];\n }\n adjacent = newAdjacent;\n }", "void addEdges(Collection<ExpLineageEdge> edges);", "void addEdge(Edge e) {\n if (e.getTail().equals(this)) {\n outEdges.put(e.getHead(), e);\n\n return;\n } else if (e.getHead().equals(this)) {\n indegree++;\n inEdges.put(e.getTail(), e);\n\n return;\n }\n\n throw new RuntimeException(\"Cannot add edge that is unrelated to current node.\");\n }", "public void addEdge(Edge e){\n edgeList.add(e);\n }", "boolean addEdge(E edge);", "public void addEdge(edge_type edge) {\n //first make sure the from and to nodes exist within the graph\n assert (edge.getFrom() < nextNodeIndex) && (edge.getTo() < nextNodeIndex) :\n \"<SparseGraph::AddEdge>: invalid node index\";\n\n //make sure both nodes are active before adding the edge\n if ((nodeVector.get(edge.getTo()).getIndex() != invalid_node_index)\n && (nodeVector.get(edge.getFrom()).getIndex() != invalid_node_index)) {\n //add the edge, first making sure it is unique\n if (isEdgeNew(edge.getFrom(), edge.getTo())) {\n edgeListVector.get(edge.getFrom()).add(edge);\n }\n\n //if the graph is undirected we must add another connection in the opposite\n //direction\n if (!isDirectedGraph) {\n //check to make sure the edge is unique before adding\n if (isEdgeNew(edge.getTo(), edge.getFrom())) {\n GraphEdge reversedEdge = new GraphEdge(edge.getTo(),edge.getFrom(),edge.getCost());\n edgeListVector.get(edge.getTo()).add(reversedEdge);\n }\n }\n }\n }", "void addEdge(Edge e) {\n edges.add(e);\n addVerticle(e.v1);\n addVerticle(e.v2);\n }", "public void edgeMake(int vertex1, int vertex2) {\n addVertex(vertex1); // both vertices added to the set\n addVertex(vertex2);\n adjacencyMap.get(vertex1).add(vertex2); // both vertices receive the edge\n adjacencyMap.get(vertex2).add(vertex1);\n }", "public void addEdge(Edge e)\r\n\t{\n\t\tint v = e.either(), w = e.other(v);\r\n\t\tadj[v].add(e);\r\n\t\tadj[w].add(e);\r\n\t}", "public abstract boolean addEdge(Node node1, Node node2, int weight);", "private void addUndirectedEdge(int i, int j) {\n\t\tNode first = nodeList.get(i-1);\r\n\t\tNode second = nodeList.get(j-1);\r\n//\t\tSystem.out.println(first.name);\r\n//\t\tSystem.out.println(second.name);\r\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\r\n\t\tsecond.getNeighbors().add(first);\r\n\t}", "void addEdge(JNode edge) {\n List<JNode> newEdges = this.getEdges();\n newEdges.add(edge);\n this.setEdges(newEdges);\n }", "public void addEdge(Edge e) {\n incident.add(e);\n }", "@Override\n\tpublic boolean addEdge(ET edge)\n\t{\n\t\tif (edge == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (edgeList.contains(edge))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tList<N> graphNodes = edge.getAdjacentNodes();\n\t\tfor (N node : graphNodes)\n\t\t{\n\t\t\taddNode(node);\n\t\t\tnodeEdgeMap.get(node).add(edge);\n\t\t}\n\t\tedgeList.add(edge);\n\t\tgcs.fireGraphEdgeChangeEvent(edge, EdgeChangeEvent.EDGE_ADDED);\n\t\treturn true;\n\t}", "public void addUndirectedEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge1 = new Edge(v1, v2, edgeInfo);\n Edge edge2 = new Edge(v2, v1, edgeInfo);\n if(!adjLists[v1].contains(edge1)){\n adjLists[v1].addLast(edge1);\n }\n if(!adjLists[v2].contains(edge2)){\n adjLists[v2].addLast(edge2);\n }\n }", "public void add(DefaultEdge edge) {\n edges.add(edge);\n groupObject.add(edge);\n }", "public void addEdge(DirectedEdge e) \n {\n int v = e.from();\n adj[v].add(e);\n E++;\n }", "public void addEdge(FlowEdge e){\n int v = e.getFrom();\n int w = e.getTo();\n adj[v].add(e); //add forward edge\n adj[w].add(e); //add backward edge\n }", "public void addEdge(int start, int end, double weight);", "void addEdge(int source, int destination, int weight);", "private static void addAllEdgeInstances (Graph graph, boolean isDirected){\n Collection<Node> noteSet = graph.getNodeSet();\n\n for (Iterator<Node> iterator = noteSet.iterator(); iterator.hasNext();) {\n Node startNode = (Node) iterator.next();\n\n for (Iterator<Node> iterator2 = noteSet.iterator(); iterator2.hasNext();) {\n Node endNode = (Node) iterator2.next();\n\n if (!(startNode == endNode)){\n graph.addEdge(startNode.toString().concat(endNode.toString()), startNode, endNode, isDirected);\n }\n\n }\n }\n }", "protected void addEdge(CyEdge edge) {\n\tLayoutEdge newEdge = new LayoutEdge(edge);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }", "void addNeighborEdge(Edge e) {\n\t\t\t_neighborEdges.put(e,false);\n\t\t}", "@Test\n\tpublic void addEdgeTest() {\n\t\tList<Vertex> vertices = new ArrayList<>();\n\t\tvertices.add(C);\n\t\tvertices.add(D);\n\t\tedge_0.addVertices(vertices);\n\t\tassertTrue(graph.addEdge(edge_0));\n\t\tassertFalse(graph.addEdge(edge_0));\n\t}", "public void addEdge(Edge e) {\n int v = e.either();\n int w = e.other(v);\n adj[v].add(e);\n adj[w].add(e);\n E++;\n }", "protected void addEdge(IEdge edge) {\n\n if (edge != null) {\n\n this.ids.add(edge.getID());\n this.edgeMap.put(edge.getID(), edge);\n }\n }", "private void addEdge() {\n childMatrix[randomParent][childMatrix[randomParent][0]] = randomChild;\n childMatrix[randomParent][0]++;\n parentMatrix[randomChild][parentMatrix[randomChild][0]] = randomParent;\n parentMatrix[randomChild][0]++;\n }", "public void addEdge(DirectedEdge edge){\r\n\t\tmEdgeList.offer(edge);\r\n\t\t\r\n\t\tint src=edge.from();\r\n\t\tint dest = edge.to();\r\n\t\t\r\n\t\tmVisitStatus.put(src,false);\r\n\t\tmVisitStatus.put(dest,false);\r\n\t\t\r\n\t\tmVertexList.add(src);\r\n\t\tmVertexList.add(dest);\r\n\t\t\r\n\t\t/* Forward Edge */\r\n\t\tList<DirectedEdge> edgeList = adjList.get(src);\r\n\t\tif(edgeList==null)\r\n\t\t\tedgeList = new ArrayList<DirectedEdge>();\r\n\t\t\r\n\t\tedgeList.add(edge);\r\n\t\tadjList.put(src, edgeList);\r\n\t}", "public void addEdge(Edge edgeToAdd){\n for(int i = 0; i<edges.size(); i++){\n Edge edge = edges.get(i);\n if(edge.end() == edgeToAdd.end()){\n edge.setWeight(edgeToAdd.weight()); // Change weight and return if edge is present\n return;\n }\n }\n this.edges.add(edgeToAdd); // Add edge normally\n }", "private Graph<Node, DefaultEdge> addEdges(Graph<Node, DefaultEdge> g) {\n List<Edge> edges = edgeRepository.findAll();\n edges.forEach(e -> g.addEdge(new Node(e.getA()), new Node(e.getB())));\n return g;\n }", "public void addEdge(int start, int end);", "public void addEdge(Node from, Node to);", "public void testAddEdge() {\n System.out.println(\"addEdge\");\n\n Graph<Integer, Edge<Integer>> graph = newGraph();\n\n for (int i = 0; i < 25; i++) {\n graph.addVertex(new Integer(i));\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertTrue(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n\n for (int i = 0; i < 25; i++) {\n for (int j = 0; j < 25; j++) {\n Assert\n .assertFalse(graph.addEdge(new UnweightedEdge(new Integer(i), new Integer(j))));\n }\n }\n }", "public abstract Multigraph buildMatchedGraph();", "public boolean addEdge(Edge edge) {\r\n\t\treturn true;\r\n\t}", "public void addEdge( EdgeIntf edge ) throws Exception {\r\n DirectedEdge dEdge = ( DirectedEdge ) edge;\r\n Vertex fromVertex = dEdge.getSource();\r\n Vertex toVertex = dEdge.getSink();\r\n\r\n if( !isPath( toVertex, fromVertex ))\r\n super.addEdge( dEdge );\r\n else\r\n throw new CycleException();\r\n }", "public void addVirtualEdge(E e){\n\t\tedges.add(e);\n\t\tvirtualEdges.add(e);\n\t}", "protected void addEdge(CyEdge edge, LayoutNode v1, LayoutNode v2) {\n\tLayoutEdge newEdge = new LayoutEdge(edge, v1, v2);\n\tupdateWeights(newEdge);\n\tedgeList.add(newEdge);\n }", "void addDirectedEdge(final Node first, final Node second)\n {\n if ( first == second )\n {\n return;\n }\n else if (first.connectedNodes.contains(second))\n return;\n else\n first.connectedNodes.add(second);\n }", "public void addUndirectedEdge(int vertexOne, int vertexTwo) {\n\t\tGraphNode first = nodeList.get(vertexOne - 1);\n\t\tGraphNode second = nodeList.get(vertexTwo - 1);\n\t\tfirst.getNeighbors().add(second);//Neighbour of first is second. Store it.\n\t\tsecond.getNeighbors().add(first);//Neighbour of second is first. Store it.\n\t\tSystem.out.println(first.getNeighbors());\n\t\tSystem.out.println(second.getNeighbors());\n\t}", "private void addEdge(AtomVertex v, AtomEdge... l) {\n for (AtomEdge e : l) {\n adjacencyMatrix.addEdge(v, e.getSinkVertex(), e.getWeight());\n }\n }", "void addEdge(int s1,int c,int s2)\r\n\t{\r\n\t\tg[s1][c][s2]=true;\r\n\t}", "public boolean addEdge(T begin, T end, int weight);", "void addEdge(int vertex1, int vertex2){\n adjList[vertex1].add(vertex2);\n adjList[vertex2].add(vertex1);\n }", "@Override\n public void appendEdge(Integer first, Integer second) {\n if (col.containsKey(first) && col.containsKey(second)) {\n col.get(first).add(second);\n col.get(second).add(first); \n }\n }", "public void addEdge(Integer id, UNode n1, UNode n2, String edge)\r\n {\r\n UEdge e = new UEdge(id, n1, n2, edge);\r\n n1.addOutEdge(e);\r\n n2.addInEdge(e);\r\n uEdges.put (id, e);\r\n }", "void addEdge(int x, int y);", "public void addEdge(int i,int j){\n Matrix[i][j]=true;\n Matrix[j][i]=true;\n }", "public void addEdge(int i, int j)\n {\n adjList[i].add(j);\n adjList[j].add(i);\n numEdges++;\n }", "public void addEdge(String node1, String node2) {\n\r\n LinkedHashSet<String> adjacent = map.get(node1);\r\n// checking to see if adjacent node exist or otherwise is null \r\n if (adjacent == null) {\r\n adjacent = new LinkedHashSet<String>();\r\n map.put(node1, adjacent);\r\n }\r\n adjacent.add(node2); // if exist we add the instance node to adjacency list\r\n }", "private void addEdge(int start, int end) {\n adjMatrix[start][end] = 1;\n // for undirected graph\n adjMatrix[end][start] = 1;\n }", "public boolean addEdge(Edge e) {\n return g.addNode(e.getSrc())&&g.addNode(e.getDst())&&g.addEdge(e.getSrc(),e.getDst());\n }", "public void addEdge(Edge edge) {\n\t\tthis.edges.add(edge);\n\t\tnrOfEdges++;\n\t}", "public void addEdge(Vertex other) {\n edges.add(other);\n other.edges.add(this);\n }", "public void addEdge(Edge e) {\r\n int v = e.from();\r\n int w = e.to();\r\n validateVertex(v);\r\n validateVertex(w);\r\n adj[v].add(e);\r\n indegree[w]++;\r\n E++;\r\n }", "public boolean addEdge(String id1, String id2, Integer weight)\n\t{\n\t\t// if its a new edge, or a new edge weight\n\t\tif (!hasEdge(id1, id2) || (weight != null && edgeWeight(id1, id2) == null))\n\t\t{\n\t\t\tNode n1 = getNode(id1);\n\t\t\tNode n2 = getNode(id2);\n\t\t\tn1.addEdge(n2, weight);\n\t\t\tn2.addEdge(n1, weight);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void addEdge(int v1, int v2, Object edgeInfo) {\n//your code here\n Edge edge = new Edge(v1, v2, edgeInfo);\n if(adjLists[v1].contains(edge)){\n return;\n }\n adjLists[v1].addLast(edge);\n }", "public void testAddEdgeEdge( ) {\n init( );\n\n try {\n m_g1.addEdge( m_eLoop ); // loops not allowed\n assertFalse( );\n }\n catch( IllegalArgumentException e ) {\n assertTrue( );\n }\n\n try {\n m_g3.addEdge( null );\n assertFalse( ); // NPE\n }\n catch( NullPointerException e ) {\n assertTrue( );\n }\n\n Edge e = m_eFactory.createEdge( m_v2, m_v1 );\n\n try {\n m_g1.addEdge( e ); // no such vertex in graph\n assertFalse( );\n }\n catch( IllegalArgumentException ile ) {\n assertTrue( );\n }\n\n assertEquals( false, m_g2.addEdge( e ) );\n assertEquals( false, m_g3.addEdge( e ) );\n assertEquals( true, m_g4.addEdge( e ) );\n }", "@Test\r\n void add_remove_add() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.addEdge(\"B\",\"D\");\r\n graph.addEdge(\"C\",\"D\");\r\n graph.addEdge(\"D\", \"E\"); \r\n // Check that E is in graph with correct edges\r\n List<String> adjacent = graph.getAdjacentVerticesOf(\"D\");\r\n vertices = graph.getAllVertices(); \r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n //Remove E\r\n graph.removeVertex(\"E\");\r\n if(vertices.contains(\"E\") | adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n \r\n //Add E back into graph with different edge\r\n graph.addEdge(\"B\", \"E\");\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if(!vertices.contains(\"E\") | !adjacent.contains(\"E\")) {\r\n fail();\r\n }\r\n }", "void addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;", "protected boolean addEdge(Edge<N, E> edge)\n throws GraphLogicException {\n return edge.attach();\n }", "public void addEdge(int i, int j, int weight) {\r\n adjacencyMatrix[i][j] = weight;\r\n if (!isDirected) {\r\n adjacencyMatrix[j][i] = weight;\r\n }\r\n }", "@DisplayName(\"Add undirected edge\")\n @Test\n public void testAddEdgeUndirected() {\n graph.addEdge(new Edge(3, 4));\n List<Integer> l0 = new ArrayList<>();\n l0.add(0);\n List<Integer> l1 = new ArrayList<>();\n l1.add(4);\n Assertions.assertEquals(l0.get(0), graph.getNeighbours(4).get(0));\n Assertions.assertEquals(l1.get(0), graph.getNeighbours(0).get(0));\n }", "int addEdge(int tail, int head);", "void addEdge(int a, int b) {\n Edge e = new Edge(V[a], V[b]);\n V[a].Adj.add(e);\n V[b].Adj.add(e);\n }", "void addEdge(SimpleVertex vertexOne, SimpleVertex vertexTwo, int weight) {\n\n\t\tSimpleEdge edge = new SimpleEdge(vertexOne, vertexTwo);\n\t\tedge.weight = weight;\n\t\t// edgeList.add(edge);\n\t\t// System.out.println(edge);\n\t\tvertexOne.neighborhood.add(edge);\n\n\t}", "public void addEdge( Edge edge ) {\r\n if ( edge == null ) return;\r\n edges.addElement(edge);\r\n }", "void addAll(Graph graph);", "public void addEdge(V vertex) {\n this.vertices.put(vertex, new HashSet<>());\n }", "public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}", "public boolean addEdge(jq_Field m, Node n) {\n //if (TRACK_REASONS) {\n // if (edgesToReasons == null) edgesToReasons = new HashMap();\n //if (!edgesToReasons.containsKey(Edge.get(this, n, m)))\n // edgesToReasons.put(new Edge(this, n, m), q);\n //}\n n.addPredecessor(m, this);\n if (addedEdges == null) addedEdges = new LinkedHashMap();\n Object o = addedEdges.get(m);\n if (o == null) {\n addedEdges.put(m, n);\n return true;\n }\n if (o instanceof Set) {\n return ((Set)o).add(n);\n }\n if (o == n) {\n return false;\n }\n Set s = NodeSet.FACTORY.makeSet(); s.add(o); s.add(n);\n addedEdges.put(m, s);\n return true;\n }", "private void createEdges() throws IOException {\r\n\t\tString line;\r\n\t\tString fromVertex=null;\r\n\t\tString toVertex=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.startsWith(\"[\"))\r\n\t\t\t\t{\r\n\t\t\t\tthis.buffer=line;\r\n\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\tint colon=line.indexOf(':');\r\n\t\t\tif(colon==-1) continue;\r\n\t\t\tif(line.startsWith(\"id:\"))\r\n\t\t\t\t{\r\n\t\t\t\ttoVertex= line.substring(colon+1).trim();\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\tif(line.startsWith(\"is_a:\"))\r\n\t\t\t\t{\r\n\t\t\t\tfromVertex = nocomment(line.substring(colon+1));\r\n\t\t\t\t//System.out.println(fromVertex+\" to be connected to: \"+toVertex);\r\n\t\t\t\tTerm fromNode = terms.get(fromVertex);\r\n\t\t\t\tTerm toNode = terms.get(toVertex);\r\n\t\t\t\tif (fromNode.namespace.equals(\"molecular_function\") && toNode.namespace.equals(\"molecular_function\")){\r\n\t\t\t\t\tdagMF.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse if (fromNode.namespace.equals(\"biological_process\") && toNode.namespace.equals(\"biological_process\")){\r\n\t\t\t\t\tdagBP.addEdge(fromNode, toNode);\r\n\t\t\t\t} \r\n\t\t\t\telse if (fromNode.namespace.equals(\"cellular_component\") && toNode.namespace.equals(\"cellular_component\")){\r\n\t\t\t\t\tdagCC.addEdge(fromNode, toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"FAILED TO ADD TO DAG, not belonging to the same NAMESPACE\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(Edge edge){\n edges[edge.getSource()].add(edge);\n if (isDirected()){\n edges[edge.getDest()].add(new Edge(edge.getDest(), edge.getSource(),edge.getWeight()));\n }\n }", "public void addEdge(DrawView edge){\n drawnEdges.add(edge);\n }", "private Edge addEdge(Node source, Node dest, double weight)\r\n\t{\r\n\t final Edge newEdge = new Edge(edgeType, source, dest, weight);\r\n\t if (!eSet.add(newEdge))\r\n\t\tthrow new RuntimeException(\"Edge already exists!\");\r\n\t source.addEdge(newEdge);\n\t return newEdge;\r\n\t}", "public void addIncomingEdge(Edge e) {\n\t\tincomingEdges.add(e);\n\t\tconnectedNodes.add(e.getStart());\n\t\taddIncomingWeight(e.getWeight());\n\t}", "public void addEdge(int v1, int v2) {\n\t\tedges[v1][v2] = 1;\n\t\tedges[v2][v1] = 1;\n\t\tsize++;\n\t}", "public void addEdge(K u, K v, int weight)\n {\n if (u.equals(v))\n {\n throw new IllegalArgumentException(\"adding self loop\");\n }\n\n\t// get u's adjacency list\n Map<K, Edge> adj = adjMaps.get(u);\n\n\t// check for edge already being there\n if (!adj.containsKey(v))\n {\n\t\t// edge is not already there -- add to both adjacency lists\n Edge e = new Edge(weight);\n adj.put(v, e);\n adjMaps.get(v).put(u, e);\n }\n }", "@Override\r\n public void addEdge(Vertex v1, Vertex v2) {\r\n adjacencyList.get(v1).add(v2); //put v2 into the LinkedList of key v1.\r\n adjacencyList.get(v2).add(v1); //put v1 into the LinkedList of key v2.\r\n }", "public boolean addEdges(jq_Field m, Set s) {\n //if (TRACK_REASONS) {\n // if (edgesToReasons == null) edgesToReasons = new HashMap();\n //}\n for (Iterator i=s.iterator(); i.hasNext(); ) {\n Node n = (Node)i.next();\n //if (TRACK_REASONS) {\n //if (!edgesToReasons.containsKey(Edge.get(this, n, m)))\n // edgesToReasons.put(new Edge(this, n, m), q);\n //}\n n.addPredecessor(m, this);\n }\n if (addedEdges == null) addedEdges = new LinkedHashMap();\n Object o = addedEdges.get(m);\n if (o == null) {\n addedEdges.put(m, s);\n return true;\n }\n if (o instanceof Set) {\n return ((Set)o).addAll(s);\n }\n addedEdges.put(m, s); return s.add(o); \n }", "public void addVertex (T vertex){\n if (vertexIndex(vertex) > 0) return; // vertex already in graph, return.\n if (n == vertices.length){ // need to expand capacity of arrays\n expandCapacity();\n }\n \n vertices[n] = vertex;\n for (int i = 0; i < n; i++){ // populating new edges with -1\n edges[n][i] = -1;\n edges[i][n] = -1;\n }\n n++;\n }", "private void addLinkesToGraph()\n\t{\n\t\tString from,to;\n\t\tshort sourcePort,destPort;\n\t\tMap<Long, Set<Link>> mapswitch= linkDiscover.getSwitchLinks();\n\n\t\tfor(Long switchId:mapswitch.keySet())\n\t\t{\n\t\t\tfor(Link l: mapswitch.get(switchId))\n\t\t\t{\n\t\t\t\tfrom = Long.toString(l.getSrc());\n\t\t\t\tto = Long.toString(l.getDst());\n\t\t\t\tsourcePort = l.getSrcPort();\n\t\t\t\tdestPort = l.getDstPort();\n\t\t\t\tm_graph.addEdge(from, to, Capacity ,sourcePort,destPort);\n\t\t\t} \n\t\t}\n\t\tSystem.out.println(m_graph);\n\t}", "private void connectAll()\n {\n\t\tint i = 0;\n\t\tint j = 1;\n\t\twhile (i < getNodes().size()) {\n\t\t\twhile (j < getNodes().size()) {\n\t\t\t\tLineEdge l = new LineEdge(false);\n\t\t\t\tl.setStart(getNodes().get(i));\n\t\t\t\tl.setEnd(getNodes().get(j));\n\t\t\t\taddEdge(l);\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++; j = i+1;\n\t\t}\n\n }", "public void addEdge(StubEdge e) {\n }", "void addEdge(int one, int two, boolean redundant) {\n\t\tif (redundant == true) {\n\t\t\tadjacencyList[one].add(two);\n\t\t\tadjacencyList[two].add(one);\n\t\t}\n\t\telse if (one < two) {\n\t\t\tadjacencyList[one].add(two);\n\t\t}\n\t\telse {\n\t\t\tadjacencyList[two].add(one);\n\t\t}\n\t}", "protected void addEdges(IWeightedGraph<GraphNode, WeightedEdge> graph) {\r\n\t\tQueue<GraphNode> nodesToWorkOn = new LinkedList<GraphNode>();\r\n\r\n\t\taddDefaultEdges(graph, nodesToWorkOn);\r\n\r\n\t\t// Check each already connected once node against all other nodes to\r\n\t\t// find a possible match between the combined effects of the path + the\r\n\t\t// worldState and the preconditions of the current node.\r\n\t\twhile (!nodesToWorkOn.isEmpty()) {\r\n\t\t\tGraphNode node = nodesToWorkOn.poll();\r\n\r\n\t\t\t// Select only node to which a path can be created (-> targets!)\r\n\t\t\tif (!node.equals(this.startNode) && !this.endNodes.contains(node)) {\r\n\t\t\t\ttryToConnectNode(graph, node, nodesToWorkOn);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addEdge(int indexOne, int indexTwo)\n\t{\n\t\tadjacencyMatrix[indexOne][indexTwo] = true;\n\t\tadjacencyMatrix[indexTwo][indexOne] = true;\n\t}", "void addEdge(int from, int to) {\n\t\tadjList.get(from).add(to);\n\t}", "public void insert(Edge edge) {\r\n edges[edge.getSource()].add(edge);\r\n if (!isDirected()) {\r\n edges[edge.getDest()].add(new Edge(edge.getDest(),\r\n edge.getSource(),\r\n edge.getWeight()));\r\n }\r\n }", "private void addEdge(int from, int to, Edge e) {\n _edges.get(from).set(to, e);\n _edgeMap.put(e, new int [] {from, to});\n }", "public abstract boolean putEdge(Edge incomingEdge);", "void addEdge(Vertex u, Vertex v) {\r\n\t\tu.addNeighbor(v);\r\n\t}", "public boolean addEdge(Vertex one,Vertex two,int weight)\n\t{\n\t\tif (one.equals(two)) { return false; }\n\t\t\n\t\t//check that edge is not in graph\n\t\tEdge e = new Edge(one,two,weight);\n\t\t//future location to increment trips along\n\t\t//the same path\n\t\tif (edges.containsKey(e.hashCode()))\n\t\t{\n\t\t\te.addTrip();//does not work\n\t\t\treturn false;\n\t\t}\n\t\t//check that edge is not incident to either vertex\n\t\telse if (one.containsNeighbor(e) || two.containsNeighbor(e))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tedges.put(e.hashCode(), e);\n\t\tone.addNeighbor(e);\n\t\ttwo.addNeighbor(e);\n\t\treturn true;\n\t}", "protected void addHyperEdge(IHyperEdge hyperedge) {\n\n if (hyperedge != null) {\n\n this.ids.add(hyperedge.getID());\n this.hyperEdgeMap.put(hyperedge.getID(), hyperedge);\n }\n }" ]
[ "0.66980904", "0.66576236", "0.6631597", "0.660256", "0.6564388", "0.65026146", "0.64813095", "0.6453903", "0.6447679", "0.6416433", "0.64084023", "0.6395802", "0.6375341", "0.63596326", "0.63120204", "0.63117576", "0.6277831", "0.62595636", "0.6232189", "0.6205481", "0.61933136", "0.61932045", "0.61717516", "0.61658245", "0.6163917", "0.615121", "0.6123614", "0.61157715", "0.6114098", "0.6089889", "0.608733", "0.60801417", "0.6063288", "0.60349625", "0.6034423", "0.6030885", "0.60303277", "0.60256237", "0.6015449", "0.59924394", "0.59840363", "0.59806114", "0.59633565", "0.5954911", "0.59493124", "0.5944813", "0.59408563", "0.5924019", "0.5915157", "0.5913928", "0.5904014", "0.58992165", "0.5890495", "0.58902395", "0.58859897", "0.588464", "0.5869088", "0.58531344", "0.58441985", "0.58278584", "0.58240753", "0.5805443", "0.579043", "0.57887536", "0.5775192", "0.5769199", "0.57683724", "0.5766451", "0.5763328", "0.5756913", "0.575639", "0.5754142", "0.57469684", "0.574302", "0.57400924", "0.57390255", "0.57386124", "0.57375044", "0.57361066", "0.5735986", "0.5734384", "0.57335895", "0.57221425", "0.5691281", "0.56862706", "0.56838274", "0.5660954", "0.5660892", "0.56587803", "0.56560427", "0.5648699", "0.56377435", "0.56372917", "0.56180626", "0.5614948", "0.5613564", "0.56054", "0.56051815", "0.5596735", "0.5596381" ]
0.6508628
5
PopulateVisitor constructor to intialize PopulateVisitor class.
public PopulateVisitor(FileProcessor fileIn){ MyLogger.writeMessage("Inside PopulateVisitor constructor",MyLogger.DebugLevel.CONSTRUCTOR); file = fileIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Visitor() {}", "public Visitante() {\r\n }", "@Override\n public void visit(NodeVisitor v) {\n if (v.visit(this)) {\n target.visit(v);\n if (initializer != null) {\n initializer.visit(v);\n }\n }\n }", "public Parser() {\n\t\tpopulateMaps();\n\t}", "protected Population<T, K> initializePopulation(int size, Class<K> clazz)\n\t\t\tthrows InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException {\n\t\tPopulation<T, K> pop = new Population<>(size, fitnessCalc);\n\t\tpop.initialize(clazz);\n\t\treturn pop;\n\t}", "public Visita() {\n initialize();\n }", "private void initializePopulation() {\n // reset the population\n population = new ArrayList<Genotype>();\n\n // set the population to an array of random genotypes\n for (int i = 0; i < populationSize; i++) {\n population.add(new Genotype(chromosomeSize));\n }\n\n // evaluate the population\n // evaluatePopulation();\n }", "public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}", "public VisitAction() {\n }", "MetadataVisitor() {\n visited = new IdentityHashMap<>();\n propertyPath = new String[6];\n }", "VisitManager() {\r\n\t\tvisits = new TreeMap<String, VisitRecord>();\r\n\t}", "public ExploreFragment() {\n\n }", "public GeneSplicerParser() {\n acceptors = new ArrayList<Integer>();\n donors = new ArrayList<Integer>();\n }", "@PostConstruct\n\tpublic void init() {\n\t\tvisitaSelecionada = new AgendamentoVisitas();\n\n\t}", "private void instantiate(){\n inputAddressList = new LinkedList<Address>();\n inputGroupList = new LinkedList<Group>();\n root = new Group(\"root\", 0);\n }", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "public CollectionFragment() {\n }", "@Override\n public void generateClass(ClassVisitor classVisitor) throws Exception {\n ClassEmitter ce = new ClassEmitter(classVisitor);\n\n Map<Function, String> converterFieldMap = initClassStructure(ce);\n\n initDefaultConstruct(ce, converterFieldMap);\n\n buildMethod_getTargetInstanceFrom(ce);\n\n buildMethod_mergeProperties(ce, converterFieldMap);\n\n ce.end_class();\n }", "SolutionPopulation initialise(ArrayList<City> cities, int populationSize);", "public Gov() {\n }", "public ElaboratorVisitor() {\r\n\t\tthis.classTable = new ClassTable();\r\n\t\tthis.methodTable = new MethodTable();\r\n\t\tthis.currentClass = null;\r\n\t\tthis.type = null;\r\n\r\n\t}", "protected GenTreeOperation() {}", "public void populate(Universe universe, String filter, boolean showNodes,\n boolean showEdges, boolean showHyperEdges) {\n\n this.root = new TreeItem<>(universe);\n this.setRoot(root);\n\n this.showNodes = showNodes;\n this.showEdges = showEdges;\n this.showHyperEdges = showHyperEdges;\n\n\n this.root.getChildren().clear();\n\n // parsing file and creating a collection of graphs\n this.universe = universe;\n\n tree_graphs = new TreeItem<>(\"Graphs\");\n root.getChildren().add(tree_graphs);\n if (this.showNodes) {\n\n tree_nodes = new TreeItem<>(\"Nodes (\"\n + universe.getNodes().size() + \")\");\n root.getChildren().add(tree_nodes);\n }\n if (this.showEdges) {\n tree_edges = new TreeItem<>(\"Edges (\"\n + universe.getEdges().size() + \")\");\n root.getChildren().add(tree_edges);\n }\n if (this.showHyperEdges) {\n tree_hyper_edges = new TreeItem<>(\"HyperEdges (\"\n + universe.getHyperEdges().size() + \")\");\n root.getChildren().add(tree_hyper_edges);\n }\n\n\n Collection<Graph> graphs = universe.getGraphs();\n for (Graph graph : graphs) {\n\n parseGraph(graph, tree_graphs, filter);\n }\n\n if (showNodes) {\n\n for (INode node : universe.getNodes()) {\n\n parseNode(node, tree_nodes, filter);\n }\n }\n\n if (showEdges) {\n\n for (IEdge edge : universe.getEdges()) {\n\n parseEdge(edge, tree_edges, filter);\n }\n }\n if (showHyperEdges) {\n\n for (IHyperEdge hyperEdge : universe.getHyperEdges()) {\n\n parseHyperEdge(hyperEdge, tree_hyper_edges, filter);\n }\n }\n\n\n }", "public interface PopulationInitialiser {\n\t/**\n\t * this generates an initial solution population from which to start optimisation\n\t *\n\t * @param cities the set of cities which are part of each solution\n\t * @param populationSize the number of solutions to be included in a population\n\t */\n\tSolutionPopulation initialise(ArrayList<City> cities, int populationSize);\n}", "public ReputationFragment() {\n }", "public RestaurantFragment() {\n }", "public Parser()\n {\n //nothing to do\n }", "public LiSearchFragment() {\n }", "private Instantiation(){}", "public VenueDetailFragment() {\r\n\t}", "public Gasto() {\r\n\t}", "protected DNA(Population pop, boolean init) {\n\t\tpopulation = pop;\n\t\tID = population.getNewDNAID();\n\t\thighest = 0;\n\t\tgenes = new HashMap<Integer, Gene>();\n\t\tnodes = new HashMap<Integer, NNode>();\n\t\tif (init) {\n\t\t\tinitializeDNA();\n\t\t}\n\t\tif (Braincraft.gatherStats)\n\t\t\tBraincraft.allDNA.add(this);\n\t}", "public FamilyTree(){\r\n super();\r\n }", "@Override\n public void instantiate() {\n //Preconditions\n assert roles != null : \"roles must not be null\";\n assert !roles.isEmpty() : \"roles must not be empty for node \" + name;\n\n stateValueBindings.stream().forEach((stateValueBinding) -> {\n stateValueBinding.instantiate();\n });\n roles.stream().forEach((role) -> {\n role.instantiate();\n // ensure that the referred-to node is not a copy\n role.setNode(this);\n });\n }", "public JdbNavTree() {\r\n super(new Object [] {});\r\n commonInit();\r\n }", "public Page() {\n PageFactory.initElements(getDriver(), this); //snippet to use for @FindBy\n }", "public Graph() {\r\n\t\tinit();\r\n\t}", "public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }", "public PersonView(InMemoryCollections collections, Person person) {\n this.id = person.getId();\n this.councilId = person.getCouncilId();\n this.name = person.getName();\n this.firstname = person.getFirstname();\n this.surname = person.getSurname();\n this.prefix = person.getPrefix();\n this.elections = person.getElections();\n this.offices = person.getOffices();\n this.departments = person.getDepartments();\n this.deputies = person.getDeputies();\n this.commissions = person.getCommissions();\n this.club = person.getClub();\n this.fb = person.getFb();\n this.role = person.getRole();\n\n if (offices != null) {\n officesView = offices.stream().map(x -> new OfficeRefView(collections, x, person)).collect(Collectors.toList());\n }\n\n if (departments != null) {\n departmentsView = departments.stream().map(x -> new DepartmentRefView(collections, x)).collect(Collectors.toList());\n }\n\n if (deputies != null) {\n deputiesView = deputies.stream().map(x -> new DeputyRefView(collections, x, person)).collect(Collectors.toList());\n }\n\n if (commissions != null) {\n commissionsView = commissions.stream().map(x -> new CommissionRefView(collections, x)).collect(Collectors.toList());\n }\n }", "public ScanCommonVisitor() {\n\t\tannotationVisitors = new HashMap<String, AnnotationVisitor>();\n\t}", "public TreeviewBean() {\n \n }", "@Override\r\n public void init(weighted_graph g) {\r\n this.Graph = g;\r\n }", "public Genetic() {\r\n }", "public RestaurantDetailFragment() {\n }", "void visit(Visitor visitor);", "public Builder() {\n this(Graphs.<N, E>createUndirected());\n }", "public City() {\n\t}", "public City() {\n\t}", "private GraphParser(){ \n\t}", "public CustomerFragment() {\n }", "public Parser()\n{\n //nothing to do\n}", "public MovieGridFragment() {\n }", "protected void initializePopulation () {\n\t\tfor (int i = 0; i < this.speciesSize; i++) {\n\t\t\tthis.detectors.add(DetectorFactory.makeDetector(this.featuresLength, this.typeBias, this.generalityBias));\n\t\t}\n\t}", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "public Parser() {}", "public Population(int popSize, String[] studet_ids, int groupSize, \r\n\t\t int initPop, int selMethod, int selPara, \r\n\t\t int crossMethod, double crossPara, int mutMethod,\r\n\t\t double mutPara, int replaceMethod, int replacePara,\r\n\t\t double powerStep, double tourStep, FitnessFunction fitnessFunction)\r\n {\r\n\tthis(selMethod, selPara, crossMethod, crossPara, mutMethod, mutPara, \r\n\t replaceMethod, replacePara, powerStep, tourStep, fitnessFunction);\r\n\r\n\tchromos = new ArrayList<Chromosome>();\r\n\tfor(int i = 0; i < popSize; i++)\r\n\t chromos.add(new Chromosome(studet_ids, groupSize, crossMethod,\r\n\t\t\t\t crossPara, mutMethod, mutPara, initPop, ff));\r\n\tinitialize();\r\n }", "public DFSGraph() {\n this(new HashMap<>(), HashMap::new, HashSet::new, HashSet::new);\n }", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "public InstConstraintVisitor(){}", "public NodeInfo() {\n }", "public void populate(List data) {\n visit(m_root, data);\n }", "public SearchFragment() {\n // Required empty public constructor\n }", "public Restaurant() {\n\t\t\n\t}", "public BinarySearchTree() {\n\n\t}", "public PeersFragment() {\n }", "public BuiltBy() {\n }", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "public BinarySearchTree() {}", "public UniGraph(UniGraph<N, E> g)\r\n/* 20: */ {\r\n/* 21: 39 */ this.map = new HashMap(g.map);\r\n/* 22: 40 */ assert (checkRep());\r\n/* 23: */ }", "@Ponder2op(\"create\")\n\tpublic HashInspector() {\n\t\tinitialise(\"Hash Inspector\");\n\t}", "public Investigator() {}", "public DiscoverWebsearchFragment() {}", "private Parser () { }", "public ProductsFragment() {\n }", "protected NodeProperties() {\r\n }", "private void init(){\n //Get instance of Members to access Members Lists\n Members members = Members.getInstance();\n \n //add to patient members list\n members.getPatients().addMember(this);\n }", "protected void initVisitors(final T annotationMetadata) {\n\t\temptyVisitor = new EmptyVisitor();\n\n\t\t// add @EJB\n\t\tannotationVisitors.put(JavaxEjbEJBVisitor.TYPE,\n\t\t\t\tnew JavaxEjbEJBVisitor<T>(annotationMetadata));\n\n\t\t// add @Resource\n\t\tannotationVisitors.put(JavaxAnnotationResourceVisitor.TYPE,\n\t\t\t\tnew JavaxAnnotationResourceVisitor<T>(annotationMetadata));\n\n\t\t// add @PersistenceContext\n\t\tannotationVisitors.put(JavaxPersistencePersistenceContextVisitor.TYPE,\n\t\t\t\tnew JavaxPersistencePersistenceContextVisitor<T>(\n\t\t\t\t\t\tannotationMetadata));\n\n\t\t// add @PersistenceUnit\n\t\tannotationVisitors.put(JavaxPersistencePersistenceUnitVisitor.TYPE,\n\t\t\t\tnew JavaxPersistencePersistenceUnitVisitor<T>(\n\t\t\t\t\t\tannotationMetadata));\n\n\t}", "public CodeGenVisitor(boolean DEVEL, boolean GRADE, String sourceFileName) {\n\t\tsuper();\n\t\tthis.DEVEL = DEVEL;\n\t\tthis.GRADE = GRADE;\n\t\tthis.sourceFileName = sourceFileName;\n\t\tfillmap();\n\t}", "public Population(int populationSize, boolean initialize, boolean selfCreation) {\r\n\t tours = new Tour[populationSize]; \r\n\t if (initialize) {\t\r\n\t \tif(selfCreation==false) {\r\n\t\t \tfor (int i = 0; i < populationSize; i++) {\t\t\t\t \r\n\t\t Tour newTour = new Tour();\r\n\t\t newTour.generateIndividual();\r\n\t\t saveTour(i, newTour);\t\t\t\t\t\t\t\t\t \r\n\t\t }\r\n\t \t}\r\n\t \telse {\r\n\t \t\tString path=\"C:\\\\Users\\\\BADai\\\\git\\\\BachelorThesis\\\\BA\\\\src\\\\Tour.txt\";\r\n\t \t\treadFile rf = new readFile();\r\n\t \t\tTour t= new Tour(rf.readTour(path));\r\n\t \t\tsaveTour(0,t);\r\n\t \t\tfor(int a=0; a<t.tourSize();a++) {\r\n\t \t\t\tAll_Cities.addCity(t.getCity(a));\r\n\t \t\t}\r\n\t \t\tD_Matrix.startCity=All_Cities.getCity(0);\r\n\t \t}\r\n\t }\r\n\t\r\n\t }", "public UserPage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public UsersFragment() {\n }", "private UniqueChromosomeReconstructor() { }", "public PersonDetailFragment() {\r\n }", "protected DiagClassVisitor() {\n super(ASM5);\n }", "public Results(Node source) {\n\t\tinorder(source);\n\t}", "public static void populateData() {\n\n }", "public Restaurant() { }", "public FilterData() {\n }", "public UGraph()\r\n {\r\n uNodes = new HashMap<Integer , UNode>();\r\n uEdges = new HashMap<Integer, UEdge>();\r\n }", "public interface Visitor {\n //----------------------------------------------------------------------------------- \n\n /**\n * Visit method to handle <code>Assignment</code> elements.\n * \n * @param assignment Assignment object to be handled.\n */\n void visit(final Assignment assignment);\n\n /**\n * Visit method to handle <code>Delete</code> elements.\n * \n * @param delete Delete object to be handled.\n */\n void visit(final Delete delete);\n\n /**\n * Visit method to handle <code>Insert</code> elements.\n * \n * @param insert Insert object to be handled.\n */\n void visit(final Insert insert);\n\n /**\n * Visit method to handle <code>Join</code> elements.\n * \n * @param join Join object to be handled\n */\n void visit(final Join join);\n\n /**\n * Visit method to handle select elements.\n * \n * @param select Select object to be handled.\n */\n void visit(final Select select);\n\n /**\n * Visit method to handle <code>Table</code> elements.\n * \n * @param table Table object to be handled.\n */\n void visit(final Table table);\n\n /**\n * Visit method to handle <code>TableAlias</code> elements.\n * \n * @param tableAlias TableAlias object to be handled.\n */\n void visit(final TableAlias tableAlias);\n\n /**\n * Visit method to handle update elements.\n * \n * @param update Update object to be handled.\n */\n void visit(final Update update);\n\n /**\n * Visit method to handle <code>AndCondition</code> elements.\n * \n * @param andCondition AndCondition object to be handled.\n */\n void visit(final AndCondition andCondition);\n\n /**\n * Visit method to handle <code>Compare</code> elements.\n * \n * @param compare Compare object to be handled.\n */\n void visit(final Compare compare);\n\n /**\n * Visit method to handle <code>IsNullPredicate</code> elements.\n * \n * @param isNullPredicate IsNullPredicate object to be handled.\n */\n void visit(final IsNullPredicate isNullPredicate);\n\n /**\n * Visit method to handle <code>OrCondition</code> elements.\n * \n * @param orCondition OrCondition object to be handled.\n */\n void visit(final OrCondition orCondition);\n\n /**\n * Visit method to handle <code>Column</code> elements.\n * \n * @param column Column object to be handled.\n */\n void visit(final Column column);\n\n /**\n * Visit method to handle <code>NextVal</code> elements.\n * \n * @param nextVal NextVal object to be handled.\n */\n void visit(final NextVal nextVal);\n\n /**\n * Visit method to handle <code>Parameter</code> elements.\n * \n * @param parameter Parameter object to be handled.\n */\n void visit(final Parameter parameter);\n\n //-----------------------------------------------------------------------------------\n\n /**\n * Method returning constructed String.\n * \n * @return Constructed query string.\n */\n String toString();\n\n //----------------------------------------------------------------------------------- \n}", "public void setUp() {\r\n tree = new Lab14BinarySearchTree<String>();\r\n }", "public City() {\n }", "public RestaurantsListFragment() {\n }", "public TechFragment() {\n }", "public ETreeNode(T userObject) {\n super(userObject);\n children = null; // not initialized (lazy)\n }", "public void initialize(Results source) {\r\n this.listBy = source.getListBy();\r\n this.geneList = source.getGeneList();\r\n this.patientList = source.getPatientList();\r\n this.disease = source.getDisease();\r\n this.chromRegions = source.getChromRegions();\r\n this.geneListOptions = source.getGeneListOptions();\r\n this.patientListOptions = source.getPatientListOptions();\r\n this.ctypes = source.getColumnTypes();\r\n }", "public Surgeon() {\n }", "public PeopleFragment() {\n // Required empty public constructor\n }", "public UniGraph()\r\n/* 14: */ {\r\n/* 15: 28 */ this.map = new HashMap();\r\n/* 16: 29 */ assert (checkRep());\r\n/* 17: */ }" ]
[ "0.66349465", "0.57282454", "0.5428345", "0.5338875", "0.51485664", "0.5070995", "0.50275224", "0.5026317", "0.5012573", "0.49904406", "0.49482653", "0.49422592", "0.49389717", "0.49389493", "0.4921311", "0.4907069", "0.48647222", "0.48561743", "0.48544437", "0.48438713", "0.48421967", "0.4839884", "0.48388112", "0.4804328", "0.477593", "0.47751087", "0.47709084", "0.47549835", "0.4735108", "0.47295296", "0.47290444", "0.47249585", "0.4720829", "0.47032258", "0.4703187", "0.47016975", "0.46954608", "0.4693871", "0.46903235", "0.46750852", "0.4671433", "0.46709663", "0.46661004", "0.46657467", "0.4662684", "0.46572047", "0.46490842", "0.46490842", "0.46422717", "0.46415144", "0.4637296", "0.46357894", "0.46312755", "0.46240515", "0.46209535", "0.46194988", "0.4613557", "0.46036595", "0.46036595", "0.45976573", "0.45937026", "0.45929047", "0.45872462", "0.45796016", "0.45780757", "0.45733887", "0.45719036", "0.45657566", "0.4564101", "0.456234", "0.45503467", "0.45457017", "0.45456347", "0.45450866", "0.4537986", "0.4529844", "0.45287222", "0.45270893", "0.45240393", "0.45190328", "0.45189604", "0.45188057", "0.45174468", "0.451636", "0.4514404", "0.451342", "0.45114586", "0.45100704", "0.45100543", "0.4509758", "0.45080742", "0.45074806", "0.4506542", "0.4505606", "0.45042503", "0.44902048", "0.44804084", "0.44788402", "0.44648355", "0.4464218" ]
0.6542436
1
visit method. Vist method for visitor pattern.
public void visit(TreeBuilder tree){ String line; while ((line = file.readLine(true)) != null) { String[] words = line.split(" "); for(String word : words){ if(!word.equals("")){ tree.insertNode(word); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void accept(Visitor visitor);", "public abstract void visit();", "void visit(Visitor visitor);", "public abstract void accept(Visitor v);", "public void accept(Visitor visitor);", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "void accept(Visitor visitor);", "public abstract void visit(V v) throws VisitorException;", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "void accept(Visitor<V> visitor);", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "public void accept(IVisitor visitor);", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public Object accept(Visitor v, Object params);", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "public void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}", "public Object accept (Visitor v) {\n return v.visit(this);\n }", "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}", "public void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "@Override\n public void accept(TreeVisitor visitor) {\n }", "void visit(Element node);", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "@Override\n\tpublic <T> T accept(ASTVisitor<T> v) {\n\t\treturn v.visit(this);\n\t}", "public abstract void accept(CodeVisitor v);", "<R,D> R accept(TreeVisitor<R,D> visitor, D data);", "public abstract void accept(GameObjectVisitor v);", "public interface Visitor {\n\t/* METHODS */\n\t/**\n\t * Visits a Liquor.\n\t * @param liquor The Liquor to visit.\n\t */\n\tvoid visit(Liquor liquor);\n\t\n\t/**\n\t * Visits a Tobacco.\n\t * @param tobacco The Tobacco to visit.\n\t */\n\tvoid visit(Tobacco tobacco);\n\t\n\t/**\n\t * Visits a Necessity.\n\t * @param necessity The Necessity to visit.\n\t */\n\tvoid visit(Necessity necessity);\n}", "public abstract <E, F, D, I> E accept(ReturnVisitor<E, F, D, I> visitor);", "public void accept(Visitor v, Context c) {\n\t\tv.visit(this, c);\n\t}", "void accept(TmxElementVisitor visitor);", "public abstract void accept0(IASTNeoVisitor visitor);", "public void accept(ParseNodeVisitor visitor) {\n visitor.visit(this);\n }", "@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }", "public void accept(Visitor v) {\n/* 103 */ v.visitLoadClass(this);\n/* 104 */ v.visitAllocationInstruction(this);\n/* 105 */ v.visitExceptionThrower(this);\n/* 106 */ v.visitStackProducer(this);\n/* 107 */ v.visitTypedInstruction(this);\n/* 108 */ v.visitCPInstruction(this);\n/* 109 */ v.visitNEW(this);\n/* */ }", "public void acceptVisit(BCVisitor visit) {\n visit.enterBCMethod(this);\n visitAttributes(visit);\n visit.exitBCMethod(this);\n }", "void visit(Entry entry);", "@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }", "<R> R accept(ValueVisitor<R> visitor);", "public void visit(Choke c);", "public void visit(Interested i);", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "public void visit(Call call) {}", "@Override\n public void accept(final SqlNodeVisitor<E> visitor) throws SQLException {\n visitor.visit(this);\n }", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "public abstract int visit(SpatialVisitor visitor);", "void visit(Liquor liquor);", "public interface Visitor {\n void accept(Element element);\n}", "public void accept(ExpressionNodeVisitor visitor);", "@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}", "void accept(final CarElementVisitor visitor);", "void visit(Entity node);", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "public abstract void accept(PhysicalPlanVisitor visitor);", "void accept0(ASTVisitor visitor) {\r\n\t\tboolean visitChildren = visitor.visit(this);\r\n\t\tif (visitChildren) {\r\n\t\t\t// visit children in normal left to right reading order\r\n\t\t\tacceptChild(visitor, getExpression());\r\n\t\t\tacceptChildren(visitor, newArguments);\r\n\t\t\tacceptChildren(visitor, constructorArguments);\r\n\t\t\tacceptChildren(visitor, baseClasses);\r\n\t\t\tacceptChildren(visitor, declarations);\r\n\t\t}\r\n\t\tvisitor.endVisit(this);\r\n\t}", "void accept(Visitor visitor, BufferedImage im);", "public interface Visitor<R> {\n\n //Lists\n public <T extends IRNode> R visit(List<T> ns);\n\n //IRStms\n public R visit(CJUMP n);\n\n public R visit(CMOVE n);\n\n public R visit(EXP n);\n\n public R visit(JUMP n);\n\n public R visit(LABEL n);\n\n public R visit(MOVE n);\n\n public R visit(SEQ n);\n\n //Types\n public R visit(BINOP n);\n\n public R visit(CALL n);\n\n public R visit(CONST n);\n\n public R visit(ESEQ n);\n\n //Statements\n public R visit(MEM n);\n\n public R visit(NAME n);\n\n public R visit(TEMP n);\n}", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, this.typeArguments);\n acceptChild(visitor, getName());\n }\n visitor.endVisit(this);\n }", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "public void accept(ParseNodeVisitor visitor) {\n\t\tvisitor.visitEnter(this);\n\t\tvisitChildren(visitor);\n\t\tvisitor.visitLeave(this);\n\t}", "public void accept(MessageVisitor visitor);", "public void visit(Request r);", "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "void visit(final Select select);", "public Object accept(ExpressionNodeVisitor visitor) {\n\t\t\n\t\treturn visitor.visit(this);\n\t\t\n\t}", "@Override\r\n\tpublic void accept(iRenderVisitor visitor) {\n\t\tvisitor.render(this);\r\n\t\t\r\n\t}", "void visit(User user);", "@Override\n\tpublic void visit(final Aunt person) {\n\t\t\n\t}", "void visit(Text node);", "interface VisitorAccept {\n\t/**\n\t * Methode permettant d'accepter le visiteur.\n\t * \n\t * @param visitor\n\t * ; MessageVisitor\n\t */\n\tpublic void accept(MessageVisitor visitor);\n}", "public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}", "protected void visit(Graph<VLabel, ELabel>.Vertex v) {\n }", "interface CarElement {\n // the element being visited accepts the visitor\n void accept(final CarElementVisitor visitor);\n}", "@Override\n\tpublic void visit(Matches arg0) {\n\n\t}", "@SuppressWarnings(\"unused\")\npublic interface Visitor {\n /**\n * <p>\n * Visits the given <code>Document</code>\n * </p>\n * \n * @param document\n * is the <code>Document</code> node to visit.\n */\n void visit(Document document);\n\n /**\n * <p>\n * Visits the given <code>DocumentType</code>\n * </p>\n * \n * @param documentType\n * is the <code>DocumentType</code> node to visit.\n */\n void visit(DocumentType documentType);\n\n /**\n * <p>\n * Visits the given <code>Element</code>\n * </p>\n * \n * @param node\n * is the <code>Element</code> node to visit.\n */\n void visit(Element node);\n\n /**\n * <p>\n * Visits the given <code>Attribute</code>\n * </p>\n * \n * @param node\n * is the <code>Attribute</code> node to visit.\n */\n void visit(Attribute node);\n\n /**\n * <p>\n * Visits the given <code>CDATA</code>\n * </p>\n * \n * @param node\n * is the <code>CDATA</code> node to visit.\n */\n void visit(CDATA node);\n\n /**\n * <p>\n * Visits the given <code>Comment</code>\n * </p>\n * \n * @param node\n * is the <code>Comment</code> node to visit.\n */\n void visit(Comment node);\n\n /**\n * <p>\n * Visits the given <code>Entity</code>\n * </p>\n * \n * @param node\n * is the <code>Entity</code> node to visit.\n */\n void visit(Entity node);\n\n /**\n * <p>\n * Visits the given <code>Namespace</code>\n * </p>\n * \n * @param namespace\n * is the <code>Namespace</code> node to visit.\n */\n void visit(Namespace namespace);\n\n /**\n * <p>\n * Visits the given <code>ProcessingInstruction</code>\n * </p>\n * \n * @param node\n * is the <code>ProcessingInstruction</code> node to visit.\n */\n void visit(ProcessingInstruction node);\n\n /**\n * <p>\n * Visits the given <code>Text</code>\n * </p>\n * \n * @param node\n * is the <code>Text</code> node to visit.\n */\n void visit(Text node);\n}", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChildren(visitor, initializers);\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, updaters);\n acceptChild(visitor, getBody()); }\n visitor.endVisit(this); }", "public <C> void accept(Visitor<B> visitor, Class<C> clz);", "public interface Visitor {\n //----------------------------------------------------------------------------------- \n\n /**\n * Visit method to handle <code>Assignment</code> elements.\n * \n * @param assignment Assignment object to be handled.\n */\n void visit(final Assignment assignment);\n\n /**\n * Visit method to handle <code>Delete</code> elements.\n * \n * @param delete Delete object to be handled.\n */\n void visit(final Delete delete);\n\n /**\n * Visit method to handle <code>Insert</code> elements.\n * \n * @param insert Insert object to be handled.\n */\n void visit(final Insert insert);\n\n /**\n * Visit method to handle <code>Join</code> elements.\n * \n * @param join Join object to be handled\n */\n void visit(final Join join);\n\n /**\n * Visit method to handle select elements.\n * \n * @param select Select object to be handled.\n */\n void visit(final Select select);\n\n /**\n * Visit method to handle <code>Table</code> elements.\n * \n * @param table Table object to be handled.\n */\n void visit(final Table table);\n\n /**\n * Visit method to handle <code>TableAlias</code> elements.\n * \n * @param tableAlias TableAlias object to be handled.\n */\n void visit(final TableAlias tableAlias);\n\n /**\n * Visit method to handle update elements.\n * \n * @param update Update object to be handled.\n */\n void visit(final Update update);\n\n /**\n * Visit method to handle <code>AndCondition</code> elements.\n * \n * @param andCondition AndCondition object to be handled.\n */\n void visit(final AndCondition andCondition);\n\n /**\n * Visit method to handle <code>Compare</code> elements.\n * \n * @param compare Compare object to be handled.\n */\n void visit(final Compare compare);\n\n /**\n * Visit method to handle <code>IsNullPredicate</code> elements.\n * \n * @param isNullPredicate IsNullPredicate object to be handled.\n */\n void visit(final IsNullPredicate isNullPredicate);\n\n /**\n * Visit method to handle <code>OrCondition</code> elements.\n * \n * @param orCondition OrCondition object to be handled.\n */\n void visit(final OrCondition orCondition);\n\n /**\n * Visit method to handle <code>Column</code> elements.\n * \n * @param column Column object to be handled.\n */\n void visit(final Column column);\n\n /**\n * Visit method to handle <code>NextVal</code> elements.\n * \n * @param nextVal NextVal object to be handled.\n */\n void visit(final NextVal nextVal);\n\n /**\n * Visit method to handle <code>Parameter</code> elements.\n * \n * @param parameter Parameter object to be handled.\n */\n void visit(final Parameter parameter);\n\n //-----------------------------------------------------------------------------------\n\n /**\n * Method returning constructed String.\n * \n * @return Constructed query string.\n */\n String toString();\n\n //----------------------------------------------------------------------------------- \n}", "public void visit() {\n visited = true;\n }", "public void visit(Instanceof i) {}", "void visit(Line line);", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "public void visit(Message message);", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void visit(final Uncle person) {\n\t\t\n\t}", "public interface Visitor {\r\n \r\n /**\r\n * Visits an Operand and performs the action given when overriding\r\n * this method.\r\n * @param operand An Operand this Visitor has visited\r\n * @return \r\n * @see Operand\r\n */\r\n public void visit(Operand operand);\r\n \r\n /**\r\n * Visits an Operator and performs the action given when overriding\r\n * this method.\r\n * @param operator An Operator this Visitor has visited.\r\n * @see Operator\r\n */\r\n public void visit(Operator operator);\r\n \r\n}", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(Personality personality)\r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void visit(TypeID typeID) {\n\r\n\t}", "@Override\n\tpublic Object visit(SimpleNode node, Object data)\n\t{\n\t\t//Delegate to the appropriate class\n\t\treturn node.jjtAccept(this, data);\n\t}", "@Override\n\tpublic void visited(ComputerPartVisitor visitor) {\n\t\tvisitor.visit(this);\n\t\t\n\t}" ]
[ "0.8112397", "0.81050503", "0.8087474", "0.80159944", "0.7907912", "0.78649116", "0.77287525", "0.7646036", "0.76394176", "0.763381", "0.7626288", "0.7589164", "0.7589164", "0.75292045", "0.75279486", "0.75179225", "0.7495401", "0.74885136", "0.7399078", "0.72923094", "0.7288533", "0.726002", "0.72108775", "0.7183907", "0.7182935", "0.71629393", "0.7161872", "0.71613693", "0.6906262", "0.6883971", "0.68740714", "0.68718356", "0.6812377", "0.6810746", "0.6764103", "0.6756282", "0.67165494", "0.6709373", "0.6680508", "0.6613439", "0.6613333", "0.65722954", "0.65609527", "0.6552208", "0.65421027", "0.65302217", "0.6527892", "0.65262735", "0.65120804", "0.65088916", "0.6484916", "0.6473068", "0.64688474", "0.64684546", "0.6428426", "0.6428281", "0.6423963", "0.640053", "0.6398713", "0.63873065", "0.63873065", "0.6386084", "0.6379886", "0.63760734", "0.6370171", "0.63687295", "0.6354571", "0.6354571", "0.6354571", "0.6354014", "0.63435155", "0.6341488", "0.6334612", "0.63330245", "0.63300973", "0.63300747", "0.63295996", "0.63281786", "0.6314698", "0.6308418", "0.63051474", "0.6274471", "0.62675655", "0.6262464", "0.62487227", "0.62265164", "0.62203884", "0.62148726", "0.6206993", "0.6206751", "0.62008935", "0.6184548", "0.6177159", "0.61648077", "0.6160134", "0.6148354", "0.6143869", "0.6141396", "0.6138785", "0.61379397", "0.6131005" ]
0.0
-1
This method will diplay the updated measurement weather data
private void diplay() { System.out.println(new StringBuilder(HUMIDITY_CONSTANT + humidity + TEMPRETURE_CONSTANT + temp + PRESSURE_CONSTANT + pressure)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayWeather() throws IOException {\n weather.getWeather();\n weather.notifyObservers();\n window.getWeatherLabel().setText(weatherPrinter.printWeather());\n window.getTemperatureLabel().setText(weatherPrinter.printTemperature());\n window.getMaxTempLabel().setText(weatherPrinter.printMaxTemp());\n window.getMinTempLabel().setText(weatherPrinter.printMinTemp());\n window.getWeatherIcon().setIcon(new ImageIcon(weatherPrinter.getIcon()));\n }", "public void show(){\n sensorTextView.setText(String.format(Locale.US,\"Earth\\nx: %f\\n\" +\"y: %f\\nz: %f\", earthMag[0], earthMag[1], earthMag[2]));\n }", "private void updateViews() {\n if (mStructure == null || mThermostat == null) {\n return;\n }\n\n display_temp = mThermostat.getTargetTemperatureC();\n Log.v(TAG,\"updateViews: display_temp=\"+display_temp);\n // updates all views\n updateAmbientTempTextView();\n updateMenuItems();\n updateThermostatViews();\n updateControlView();\n\n //update the seekbar progress\n double temp = display_temp;\n mTempSeekbar.setProgress(0);\n display_temp = temp;\n mTempSeekbar.setProgress((int)((display_temp-9)/(32-9)*100));\n }", "private void showWeatherDataView() {\n /* First, to make sure the error is invisible */\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n /* Then, to make sure the weather data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n mLayout.setVisibility(View.VISIBLE);\n }", "public void update(float temp, float humidity, float windSpeed) {\n\t\tSystem.out.println(\n\t\t\t\t\"temp On Park Display\\t\" + temp + \"\\nHumidity\\t\" + humidity + \"\\nWind Speed\\t\" + windSpeed + \"\\n\");\n\t}", "private void showWeatherDataView() {\n /* First, make sure the error is invisible */\n mEmptyTextView.setText(\"Error in data\");\n mEmptyTextView.setVisibility(View.INVISIBLE);\n /* Then, make sure the weather data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n }", "public void updateCurrentConditions(Forcast weatherData) {\n // If the view doesn't exist, an error will occur because we are calling it below. Return to prevent this.\n if (getView() == null || !isAdded()) {\n return;\n }\n\n /**\n * Fetch all the text views to populate them below.\n */\n TextView currentTempLabel = (TextView) getView().findViewById(R.id.text_current_temp);\n TextView currentConditionLabel = (TextView) getView().findViewById(R.id.text_current_condition);\n TextView currentPrecipitationLabel = (TextView) getView().findViewById(R.id.text_current_precipitation);\n TextView currentWindLabel = (TextView) getView().findViewById(R.id.text_wind_speed);\n TextView todayHighTempLabel = (TextView) getView().findViewById(R.id.text_today_high);\n TextView todayLowTempLabel = (TextView) getView().findViewById(R.id.text_today_low);\n ImageView weatherIcon = (ImageView) getView().findViewById(R.id.weatherIcon);\n\n /**\n * Fetch all the data.\n */\n String summary = weatherData.getCurrently().getSummary();\n long currentTemp = Math.round(weatherData.getCurrently().getTemperature());\n long precipitation = Math.round(weatherData.getCurrently().getPrecipProbability());\n long lowTemp = Math.round(weatherData.getDaily().getData().get(0).getTemperatureMin());\n long highTemp = Math.round(weatherData.getDaily().getData().get(0).getTemperatureMax());\n long windSpeed = Math.round(weatherData.getCurrently().getWindSpeed());\n\n\n\n /**\n * Populate all the text views.\n */\n currentConditionLabel.setText(summary);\n currentPrecipitationLabel.setText(getString(R.string.weather_percent, precipitation));\n currentTempLabel.setText(getString(R.string.weather_temperature, currentTemp));\n todayHighTempLabel.setText(getString(R.string.weather_temperature, highTemp));\n todayLowTempLabel.setText(getString(R.string.weather_temperature, lowTemp));\n currentWindLabel.setText(getString(R.string.weather_wind, windSpeed));\n\n }", "private void updateHumidityValue(float humidity) {\n \t\thumidityValueView.setText(String.format(humidityFormat, humidity));\n \t}", "public void updateWeather(){\n syncImmediately(getActivity());\n }", "private void showWeatherDataView() {\n /* First, make sure the error is invisible */\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n /* Then, make sure the weather data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n }", "private void displayData() {\n if (mOutlet1State) {\n //print value\n mCurrent1.setText(returnCurrent(4));\n } else {\n mCurrent1.setText(R.string.off);\n }\n //print timer data\n if (mTimer1State) {\n //print time remaining\n mTimer1.setText(returnControllerTime(7));\n } else {\n mTimer1.setText(R.string.disabled);\n }\n\n //outlet 2\n //print current\n if (mOutlet2State) {\n //print value\n mCurrent2.setText(returnCurrent(12));\n } else {\n mCurrent2.setText(R.string.off);\n }\n //print timer data\n if (mTimer2State) {\n //print time remaining\n mTimer2.setText(returnControllerTime(15));\n } else {\n mTimer2.setText(R.string.disabled);\n }\n }", "void outputWeatherUI();", "public void updateCurrentDisplay(Forecast forecast) {\n if(forecast != null) {\n mTemperatureLabel.setText(String.format(\"%s\", forecast.getCurrent().getTemperature()));\n mTemperatureValueUnits.setText(String.format(\"%s\", getString(forecast.getTemperatureUnitsId())));\n mApparentTemperatureValue.setText(String.format(\"%s\", forecast.getCurrent().getApparentTemperature()));\n mApparentTemperatureUnits.setText(String.format(\"%s\", getString(forecast.getTemperatureUnitsId())));\n mTimeLabel.setText(String.format(getString(R.string.time_label_format_string), forecast.getCurrent().getFormattedTime()));\n mHumidityValue.setText(String.format(\"%s%%\", forecast.getCurrent().getHumidity()));\n mPrecipitationChanceValue.setText(String.format(\"%s%%\", forecast.getCurrent().getPrecipitationProbability()));\n mWindValue.setText(String.format(\"%s %s %s\", forecast.getCurrent().getWindSpeed(), getString(forecast.getVelocityUnitsId()), forecast.determineWindBearing(forecast)));\n mStormValue.setText(String.format(\"%s %s %s\", forecast.getCurrent().getNearestStormDistance(), getString(forecast.getDistanceUnitsId()), forecast.determineStormBearing(forecast)));\n mDewValue.setText(String.format(\"%s\", forecast.getCurrent().getDewPoint()));\n mDewValueUnits.setText(String.format(\"%s\", getString(forecast.getTemperatureUnitsId())));\n mVisibilityValue.setText(String.format(\"%s %s\", forecast.getCurrent().getVisibility(), getString(forecast.getDistanceUnitsId())));\n mPressureValue.setText(String.format(\"%s %s\", forecast.getCurrent().getPressure(), getString(forecast.getPressureUnitsId())));\n mOzoneValue.setText(String.format(\"%s %s\", forecast.getCurrent().getOzone(), getString(R.string.units_dobson)));\n mSummaryValue.setText(String.format(\"%s\", forecast.getCurrent().getSummary()));\n mTimeUntilPrecipValue.setText(String.format(\"%s\", forecast.getTimeUntilPrecipitation()));\n mLocationLabel.setText(String.format(\"%s\", getStandardAddress()));\n Drawable drawable = ContextCompat.getDrawable(this, forecast.getCurrent().getIconId(mTempestatibusApplicationSettings.getAppThemePreference(), this));\n mIconImageView.setImageDrawable(drawable);\n mDailyGridView.setAdapter(new DayAdapter(this, forecast.getDailyForecastList()));\n mDailyGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n startDailyActivity(position);\n }\n });\n }\n toggleRefresh();\n }", "private void renderWeather(JSONObject json){\n try {\n cF.setText(json.getString(\"name\").toUpperCase(Locale.US) +\n \", \" +\n json.getJSONObject(\"sys\").getString(\"country\"));\n\n\n JSONObject details = json.getJSONArray(\"weather\").getJSONObject(0);\n JSONObject main = json.getJSONObject(\"main\");\n Double fTemp = main.getDouble(\"temp\");\n fTemp = fTemp * 1.8 + 32;\n dF.setText(\n details.getString(\"description\").toUpperCase(Locale.US) +\n \"\\n\" + \"Humidity: \" + main.getString(\"humidity\") + \"%\" +\n \"\\n\" + \"Pressure: \" + main.getString(\"pressure\") + \" hPa\");\n\n cTF.setText(\n String.format(\"%.2f\", fTemp)+ \"°F\");\n\n DateFormat df = DateFormat.getDateTimeInstance();\n String updatedOn = df.format(new Date(json.getLong(\"dt\")*1000));\n uF.setText(\"Last update: \" + updatedOn);\n\n setWeatherIcon(details.getInt(\"id\"),\n json.getJSONObject(\"sys\").getLong(\"sunrise\") * 1000,\n json.getJSONObject(\"sys\").getLong(\"sunset\") * 1000);\n\n }catch(Exception e){\n Log.e(\"SimpleWeather\", \"One or more fields not found in the JSON data\");\n }\n }", "private void updateWeather()\n\t{\n\t\tSunshineSyncAdapter.syncImmediately(getActivity());\n\t}", "private void refreshList() {\n\t\tString cityName = cityWeatherPreferences.getString(\"cityweathername\",\n\t\t\t\tnull);\n\t\tif (cityName != null) {\t\t\n\t\t\tcityTv.setText(cityName.substring(cityName.indexOf(\"-\") + 1));\n\t\t}\n\t\tString tempStr=weatherPreferences.getString(\"temperatureStr\", null);\n\t\tString airIfStr=weatherPreferences.getString(\"airInfoStr\", null);\n\t\tString airPmStr=weatherPreferences.getString(\"airPMStr\", null);\n\t\tString humiStr=weatherPreferences.getString(\"humidityStr\", null);\n\t\tString visiStr=weatherPreferences.getString(\"visibilyStr\", null);\n\t\tString winStr=weatherPreferences.getString(\"windStr\", null);\n\t\tString chyMakStr=weatherPreferences.getString(\"chuangyiMakStr\", null);\n\t\tString chyiAdviceStr=weatherPreferences.getString(\"chuanyiAdviceStr\", null);\n\t\tString ydMarkStr=weatherPreferences.getString(\"yundongMarkStr\", null);\n\t\tString ydAdaviceStr=weatherPreferences.getString(\"yundongAdaviceStr\", null);\n\t\tString gmMarkStr=weatherPreferences.getString(\"ganmaoMarkStr\", null);\n\t\tString gmAdaviceStr=weatherPreferences.getString(\"ganmaoAdaviceStr\", null);\n\t\tString wrMarkStr=weatherPreferences.getString(\"wuranMarkStr\", null);\n\t\tString wrAdaviceStr=weatherPreferences.getString(\"wuranAdaviceStr\", null);\n\t\tString zwxMarkStr=weatherPreferences.getString(\"ziwaixianMarkStr\", null);\n\t\tString zwxAdaviceStr=weatherPreferences.getString(\"ziyaixianAdaviceStr\", null);\n\t\tString ktMarkStr=weatherPreferences.getString(\"kongtiaoMarkStr\", null);\n\t\tString ktAdaviceStr=weatherPreferences.getString(\"kongtiaoAdaviceStr\", null);\n\t\tString xchMarkStr=weatherPreferences.getString(\"xicheMarkStr\", null);\n\t\tString xchAdaviceStr=weatherPreferences.getString(\"xicheAdaviceStr\", null);\n\t\tString wf=weatherPreferences.getString(\"weatherFutrues\", null);\n\t\tif(tempStr!=null&&airIfStr!=null&&airPmStr!=null&&humiStr!=null&&visiStr!=null&&winStr!=null&&wf!=null){\n\t\t\tsetDataToFragment(tempStr,airIfStr,airPmStr,humiStr,visiStr,winStr,\n\t\t\t\t\tchyMakStr,chyiAdviceStr,ydMarkStr,ydAdaviceStr,\n\t\t\t\t\tgmMarkStr,gmAdaviceStr,wrMarkStr,wrAdaviceStr,\n\t\t\t\t\tzwxMarkStr,zwxAdaviceStr,ktMarkStr,ktAdaviceStr,\n\t\t\t\t\txchMarkStr,xchAdaviceStr,PreferencesSaveList.String2SceneList(wf));\n\t\t}\n\t}", "private void updateWeather() {\n\t\tFetchWeatherTask weatherTask = new FetchWeatherTask(getActivity()); \n\t\tString location = Utility.getPreferredLocation(getActivity());\n\t\tweatherTask.execute(location); \n\t}", "public void update() {\n\n\t\tdisplay();\n\t}", "public void updateHud() {\r\n\r\n\t\tif (m_planet.getCoordinateSystemType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Hud.getSexagesinal(m_planet.getLongitude(), true);\r\n\t\t\tlat = Hud.getSexagesinal(m_planet.getLatitude(), false);\r\n\t\t\t\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t} else {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Double.toString(m_planet.getLongitude());\r\n\t\t\tlat = Double.toString(m_planet.getLatitude());\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t}\r\n\t\t\r\n\t\tcompass.setScale(new Vec3(75,75,75));\r\n\t\tcompass.setPosition(new Vec3(m_canvas3d.getWidth()-70,m_canvas3d.getHeight()-70,0));\r\n\t\t// Repainting view\r\n\t\tif (m_canvas3d != null)\r\n\t\t\tm_canvas3d.repaint();\r\n\t}", "@SuppressLint(\"SetTextI18n\")\n @Override\n protected void onGetDataSuccess() {\n TextView temperatureTextView = root.findViewById(R.id.temperature_now);\n temperatureTextView.setText(telemetryModel.Temperature.toString() + \"°C\");\n\n TextView pressureValueTextView = root.findViewById(R.id.pressure_value_now);\n pressureValueTextView.setText(telemetryModel.Pressure.toString() + \" mm Hg\");\n\n TextView moistureValueTextView = root.findViewById(R.id.moisture_value_now);\n moistureValueTextView.setText(telemetryModel.Moisture.toString() + \" %\");\n\n TextView luminosityValueTextView = root.findViewById(R.id.luminosity_value_now);\n luminosityValueTextView.setText(telemetryModel.Luminosity.toString() + \" lx\");\n }", "public void output_UpdatedData(){\r\n\r\n\t System.out.println(\"\\nParameters are updated as following...\");\r\n\t \r\n\t System.out.println(\"Dry (double): \"+DRY);\r\n\t \r\n\t System.out.println(\"Wet (double): \"+WET);\r\n\t System.out.println(\"ISNOW (double): \"+ISNOW);\r\n\t System.out.println(\"Wind(double): \"+WIND);\r\n\t System.out.println(\"BUO (double): \"+BUO);\r\n\t System.out.println(\"Iherb (int): \"+IHERB);\r\n}", "public void updateChange(View v){\n if(tempUnit=='F')\n changeToTemp.setText(Double.toString(\n (double)Math.round(totalChangeFarenheit*10)/10)\n );\n // Display temperature in Celsius\n else\n changeToTemp.setText(Double.toString(\n (double)Math.round((totalChangeFarenheit-32)*5/9*10)/10)\n );\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tday1.setText(daily.get(0).getText_day());\n\t\t\t\t\t\t\t\t\ttemp1.setText(daily.get(0).getHigh()+\"° / \"+daily.get(0).getLow()+\"°\");\n\t\t\t\t\t\t\t\t\tday2.setText(daily.get(1).getText_day());\n\t\t\t\t\t\t\t\t\ttemp2.setText(daily.get(1).getHigh()+\"° / \"+daily.get(1).getLow()+\"°\");\n\t\t\t\t\t\t\t\t\tday3.setText(daily.get(2).getText_day());\n\t\t\t\t\t\t\t\t\ttemp3.setText(daily.get(2).getHigh()+\"° / \"+daily.get(2).getLow()+\"°\");\n\t\t\t\t\t\t\t\t}", "public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}", "public void run() {\n\t\tsetFrame();\n\t\tsetWeatherListener();\n\t\tp1.add(c); p1.add(city); p1.add(p); p1.add(pressure);\n\t\tp1.add(t); p1.add(temp); p1.add(h); p1.add(humidity);\n\t\tp1.setBorder(new LineBorder(Color.red));\n\t\toutput.add(text);\n\t\tadd(output); add(btn1);\n\t\tpack();\n\t}", "private void weather() {\n\t\t// System.out.println(\"Sending weather information via Twitter.\");\n\t\t// TwitterComm.sendDirectMessage(Constants.AUTH_USER,\n\t\t// Alfred.getYrParser()\n\t\t// .getWeatherReport().twitterForecastToString());\n\t}", "public void setAirHumidity(double airhum){humidityval.setText(Double.toString(airhum));}", "private synchronized void updateWeather(String town)\n {\n this.townName = town;\n Platform.runLater(() ->\n {\n try\n {\n String queryParameterForecast = \"forecast/daily\";\n weatherFetcher.fetchWeather(queryParameterForecast, town);\n weatherFetcher.fetchWeather(\"weather\", town);\n\n this.town.setText(town.substring(0, town.indexOf(\",\")));\n\n this.todayTem.setText(String.valueOf(weatherParser.getWeather(0).getTemp()) + \"°\");\n this.minToday.setText(String.valueOf(weatherParser.getWeather(0).getMinTemp()) + \"°\");\n this.maxToday.setText(String.valueOf(weatherParser.getWeather(0).getMaxTemp()) + \"°\");\n this.dayNameToday.setText(weatherParser.getWeather(0).getDayName());\n this.imgTodayTemp.setImage(weatherFetcher.getImage(weatherParser.getWeather(0).getIcon()));\n\n this.forecast1.setText(String.valueOf(weatherParser.getWeather(1).getTemp()) + \"°\");\n this.minForecast1.setText(String.valueOf(weatherParser.getWeather(1).getMinTemp()) + \"°\");\n this.maxForecast1.setText(String.valueOf(weatherParser.getWeather(1).getMaxTemp()) + \"°\");\n this.dayNameForecast1.setText(weatherParser.getWeather(1).getDayName());\n this.imgForecast1.setImage(weatherFetcher.getImage(weatherParser.getWeather(1).getIcon()));\n\n this.forecast2.setText(String.valueOf(weatherParser.getWeather(2).getTemp()) + \"°\");\n this.minForecast2.setText(String.valueOf(weatherParser.getWeather(2).getMinTemp()) + \"°\");\n this.maxForecast2.setText(String.valueOf(weatherParser.getWeather(2).getMaxTemp()) + \"°\");\n this.dayNameForecast2.setText(weatherParser.getWeather(2).getDayName());\n this.imgForecast2.setImage(weatherFetcher.getImage(weatherParser.getWeather(2).getIcon()));\n\n setChanged();\n notifyObservers(weatherParser.getWeather(0));\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n });\n }", "public Update_info() {\n initComponents();\n display_data();\n }", "void visualizeUp(Pollutants data) {\n String air_today_text = \"\";\n String color = \"#BFE355\";\n switch (data.aqi) {\n case \"1\":\n air_today_text = \"The air now is CLEAN (AQI: \"+data.aqi+\")\";\n color = \"#BFE355\";\n break;\n case \"2\":\n case \"3\":\n air_today_text = \"The air now is MODERATE (AQI: \"+data.aqi+\")\";\n color = \"#FFD580\";\n break;\n case \"4\":\n case \"5\":\n air_today_text = \"The air now is DANGEROUS (AQI: \"+data.aqi+\")\";\n color = \"#F38181\";\n break;\n }\n TextView air_today = (TextView)findViewById(R.id.air_today);\n air_today.setText(air_today_text);\n air_today.setBackgroundColor(Color.parseColor(color));\n\n //Insert the increased pollutants value string\n Float[] pollutants = new Float[6];\n pollutants[0] = Float.parseFloat(data.pm2_5);\n pollutants[1] = Float.parseFloat(data.pm10);\n pollutants[2] = Float.parseFloat(data.o3);\n pollutants[3] = Float.parseFloat(data.co);\n pollutants[4] = Float.parseFloat(data.so2);\n pollutants[5] = Float.parseFloat(data.no2);\n\n String[] pollutant_names = new String[6];\n pollutant_names[0] = \"PM2.5\";\n pollutant_names[1] = \"PM10\";\n pollutant_names[2] = \"Ozone\";\n pollutant_names[3] = \"Carbon Monoxide\";\n pollutant_names[4] = \"Sulfur Dioxide\";\n pollutant_names[5] = \"Nitrogen Dioxide\";\n\n Integer[] pollutant_indexes = new Integer[6];\n\n //Compare pollutant values from API with baselines from the DB and update the text\n\n //get the pollutants table\n databaseAccess.open();\n ArrayList<Pollutant> pollutant_data = databaseAccess.getAllPollutantObjects();\n String values_string = \"\";\n for (int i=0; i<pollutants.length; i++) {\n if (pollutants[i]>pollutant_data.get(i).columnPollutantDanger) {\n //add dangerous values text\n values_string = values_string + \"Dangerous amounts of \"+pollutant_names[i]+\" (\"+pollutants[i]+\"μg/m3) \\n\";\n pollutant_indexes[i] = 5;\n }\n else if (pollutants[i]>pollutant_data.get(i).columnPollutantHigh) {\n //add high values text\n values_string = values_string + \"High amounts of \"+pollutant_names[i]+\" (\"+pollutants[i]+\"μg/m3) \\n\";\n pollutant_indexes[i] = 4;\n }\n else if (pollutants[i]>pollutant_data.get(i).columnPollutantMedium) {\n //add moderate values text\n values_string = values_string + \"Moderate amounts of \"+pollutant_names[i]+\" (\"+pollutants[i]+\"μg/m3) \\n\";\n pollutant_indexes[i] = 3;\n }\n else if (pollutants[i]>pollutant_data.get(i).columnPollutantLow) {\n //add increased values text\n values_string = values_string + \"Increased amounts of \"+pollutant_names[i]+\" (\"+pollutants[i]+\"μg/m3) \\n\";\n pollutant_indexes[i] = 2;\n }\n else {\n pollutant_indexes[i] = 1;\n }\n }\n //Insert increased values text\n ((TextView) findViewById(R.id.increased_values)).setText(values_string);\n\n String advice_text = \"\";\n //If user is set, get the condition - else set condition as 0\n String user_condition = user!=null ? Integer.toString(user.condId):\"0\";\n\n if (Integer.parseInt(data.aqi)>2) {\n databaseAccess.open();\n /*\n For each pollutant, if it has a pollution index >2, get the proper text from the database.\n If the condition of the user is affected by the pollutant AND the index value is the max index\n of all the pollutants, display the text.\n */\n int maxIndex = 0;\n ArrayList<Text> text_data;\n for (int i = 0; i < pollutant_indexes.length; i++) {\n if (pollutant_indexes[i] > 2) {\n text_data = databaseAccess.getTextByPollutantAndIndex(i+1, pollutant_indexes[i]);\n String[] conditions = text_data.get(0).columnConditionIdList.split(\",\");\n if (Arrays.stream(conditions).anyMatch(user_condition::equals) && pollutant_indexes[i] > maxIndex) {\n advice_text = text_data.get(0).columnText;\n }\n }\n }\n databaseAccess.close();\n }\n else if (data.aqi.equals(\"2\") && !user_condition.equals(\"0\")) {\n advice_text = \"If you are unusually sensitive consider reducing heavy outdoor exertion\";\n }\n\n ((TextView) findViewById(R.id.text_main)).setText(advice_text);\n\n }", "private void updateUI() {\n// if (mCurrentLocation != null) {\n// mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n// mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n// mLastUpdateTimeTextView.setText(mLastUpdateTime);\n// }\n }", "public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tviewPort.getGraphicsPainter().repaint();\n\t\t}\n\t}", "public void getData(String lat, String lon) {\n // Instantiate the RequestQueue.\n RequestQueue queue = Volley.newRequestQueue(this);\n String url = \"https://api.openweathermap.org/data/2.5/air_pollution?lat=\"+lat+\"&lon=\"+lon+\"&appid=2bcdd94a20ae1c5acd2f35b063bb3a0f\";\n String forecast_url = \"https://api.openweathermap.org/data/2.5/air_pollution/forecast?lat=\"+lat+\"&lon=\"+lon+\"&appid=2bcdd94a20ae1c5acd2f35b063bb3a0f\";\n\n //*****************GET THE CURRENT VALUES***********************\n // Request a JSON response for the current values from the provided URL.\n JsonObjectRequest stringRequest = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONObject details = response.getJSONArray(\"list\").getJSONObject(0);\n\n //Get day of the week\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEEE\");\n Date date = new java.util.Date(Long.valueOf(details.getInt(\"dt\"))*1000);\n String day = dateFormat.format(date );\n System.out.println(day);\n\n //Insert the retrieved to an object in order to be visualized\n Pollutants data = new Pollutants(day,\n details.getJSONObject(\"main\").getString(\"aqi\"),\n details.getJSONObject(\"components\").getString(\"pm2_5\"),\n details.getJSONObject(\"components\").getString(\"pm10\"),\n details.getJSONObject(\"components\").getString(\"o3\"),\n details.getJSONObject(\"components\").getString(\"co\"),\n details.getJSONObject(\"components\").getString(\"so2\"),\n details.getJSONObject(\"components\").getString(\"no2\"));\n\n //sending the data to be visualized\n visualizeUp(data);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, \"An error occurred!\", Toast.LENGTH_SHORT).show();\n Log.i(\"error\", String.valueOf(error));\n }\n }\n );\n\n // Add the request to the RequestQueue.\n queue.add(stringRequest);\n\n\n //***********************GET THE FORECAST VALUES**************************\n Pollutants[] forecast = new Pollutants[5];\n // Request a JSON response for the current values from the provided URL.\n JsonObjectRequest stringRequestF = new JsonObjectRequest(Request.Method.GET, forecast_url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n for (int i = 0; i<5; i++) {\n JSONObject details = response.getJSONArray(\"list\").getJSONObject(132+(i*24)); //calculate date numbers by adding 24 hours per day\n\n //Get day of the week\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"EEEE\");\n Date date = new java.util.Date(Long.valueOf(details.getInt(\"dt\"))*1000);\n String day = dateFormat.format(date );\n System.out.println(day);\n\n forecast[i] = new Pollutants(day,\n details.getJSONObject(\"main\").getString(\"aqi\"),\n details.getJSONObject(\"components\").getString(\"pm2_5\"),\n details.getJSONObject(\"components\").getString(\"pm10\"),\n details.getJSONObject(\"components\").getString(\"o3\"),\n details.getJSONObject(\"components\").getString(\"co\"),\n details.getJSONObject(\"components\").getString(\"so2\"),\n details.getJSONObject(\"components\").getString(\"no2\"));\n }\n //Call visualize function to view the results\n visualizeForecast(forecast);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, \"An error occurred!\", Toast.LENGTH_SHORT).show();\n Log.i(\"error\", String.valueOf(error));\n }\n }\n );\n\n // Add the request to the RequestQueue.\n queue.add(stringRequestF);\n }", "private void updateText() {\n updateDateText();\n\n TextView weightText = findViewById(R.id.tvWeight);\n TextView lowerBPText = findViewById(R.id.tvLowerBP);\n TextView upperBPText = findViewById(R.id.tvUpperBP);\n\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n\n double weight = mUser.weight.getWeightByDate(mDate.getTime());\n int upperBP = mUser.bloodPressure.getUpperBPByDate(mDate.getTime());\n int lowerBP = mUser.bloodPressure.getLowerBPByDate(mDate.getTime());\n\n weightText.setText(String.format(Locale.getDefault(), \"Paino\\n%.1f\", weight));\n lowerBPText.setText(String.format(Locale.getDefault(), \"AlaP\\n%d\", lowerBP));\n upperBPText.setText(String.format(Locale.getDefault(), \"YläP\\n%d\", upperBP));\n\n ((EditText)findViewById(R.id.etWeight)).setText(\"\");\n ((EditText)findViewById(R.id.etLowerBP)).setText(\"\");\n ((EditText)findViewById(R.id.etUpperBP)).setText(\"\");\n }", "@SuppressLint(\"SetTextI18n\")\n private void renderWeather(JSONObject json) {\n try {\n WeatherMap map = new Gson().fromJson(json.toString(), WeatherMap.class);\n\n String city = map.getName().toUpperCase(Locale.US) + \", \"\n + map.getCountry();\n String detailsText = map.getDescription();\n cityName.setText(city);\n humidity.setText(map.getHumidity() + \" %\");\n preasure.setText(Math.round(map.getPressure()) + \" мм рт. ст.\");\n temperature.setText(Math.round(map.getTemp()) + \" ℃\");\n rain.setText(detailsText);\n cloud.setText(\"\");\n wind.setText(map.getWindSpeed() + \" м/с\");\n\n setWeatherIcon(74, json.getJSONObject(\"sys\").getLong(\"sunrise\") * 1000,\n json.getJSONObject(\"sys\").getLong(\"sunset\") * 1000);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void showOtherWeatherInfo(Weather weather) throws Exception {\n\n weatherListAdapter = new WeatherListAdapter(getContext(), weather);\n tableLayoutHeader.setVisibility(View.VISIBLE);\n listviewWeather.setAdapter(weatherListAdapter);\n textviewCity.setText(weather.getCity().getName());\n textviewCountry.setText(weather.getCity().getCountry());\n\n }", "private void refresh() {\n progressDialog = new ProgressDialog(this);\n progressDialog.setMessage(\"Loading...\");\n progressDialog.show();\n\n textViewTemperature = (TextView) findViewById(R.id.textViewTemperature);\n textViewRain = (TextView) findViewById(R.id.textViewRain);\n textViewDescription = (TextView) findViewById(R.id.textViewDescription);\n textViewDescription = (TextView) findViewById(R.id.textViewDescription);\n icon = (ImageView) findViewById(R.id.icon);\n\n LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION },\n 0);\n\n progressDialog.dismiss();\n return;\n }\n try {\n Location location2 = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n final double longitude = location2.getLongitude();\n final double latitude = location2.getLatitude();\n latlong.clear();\n latlong.add(latitude);\n latlong.add(longitude);\n location.clear();\n location.add(latlong.get(0) + \",\" + latlong.get(1));\n } catch (Exception e) {\n Log.d(\"BAD\", \"unable to pull location\");\n }\n\n new AsyncTask<Void, Void, Void>() {\n protected Void doInBackground(Void... voids) {\n try {\n URL url;\n if (location.size() == 0) {\n url = new URL(\"https://api.darksky.net/forecast/5711edd00f69e7c3d178667848166542/\" + \"37.85267,-122.4233\");\n } else {\n url = new URL(\"https://api.darksky.net/forecast/5711edd00f69e7c3d178667848166542/\" + location.get(0));\n }\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n InputStream in = new BufferedInputStream(conn.getInputStream());\n String response = convertStreamToString(in);\n JSONObject json = new JSONObject(response);\n Log.d(\"DEBUG\", json.toString());\n temperature = json.getJSONObject(\"currently\").getString(\"temperature\");\n double value = Double.parseDouble(temperature);\n int temp = (int) Math.round(value);\n\n formattedTemperature = Integer.toString(temp);\n\n\n description = json.getJSONObject(\"currently\").getString(\"summary\");\n iconType = json.getJSONObject(\"currently\").getString(\"icon\");\n JSONArray minuteData = json.getJSONObject(\"minutely\").getJSONArray(\"data\");\n willRainInCurrentHour = false;\n\n willRainInCurrentHour = false;\n for (int i = 0; i < 60; i ++) {\n if (minuteData.getJSONObject(i).getInt(\"precipProbability\") > 0) {\n willRainInCurrentHour = true;\n long unixSeconds = minuteData.getJSONObject(i).getInt(\"time\");\n Date date = new Date(unixSeconds*1000L); // *1000 is to convert seconds to milliseconds\n SimpleDateFormat sdf = new SimpleDateFormat(\"h:mm a\"); // the format of your date\n sdf.setTimeZone(TimeZone.getTimeZone(\"GMT-7\")); // give a timezone reference for formating (see comment at the bottom\n formattedTime = sdf.format(date);\n break;\n }\n }\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.e(\"bad\", \"url\");\n } catch (ProtocolException p) {\n p.printStackTrace();\n Log.e(\"bad\", \"protocol\");\n } catch (IOException e) {\n e.printStackTrace();\n Log.e(\"bad\", \"io\");\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"bad\", e.getMessage());\n }\n return null;\n }\n\n @Override\n protected void onProgressUpdate(Void... values) { }\n\n @Override\n protected void onPostExecute(Void aVoid) {\n\n progressDialog.dismiss();\n\n textViewTemperature.setText(formattedTemperature + \"°\");\n textViewDescription.setText(description);\n\n if (willRainInCurrentHour) {\n\n textViewRain.setText(\"It will rain at \" + formattedTime);\n }\n\n if (!willRainInCurrentHour) {\n textViewRain.setText(\"It will not rain in the next hour!\");\n }\n\n if (iconType.equals(\"clear-day\")) {\n icon.setImageResource(R.drawable.ic_brightness_high_black_24dp);\n }\n else if (iconType.equals(\"clear-night\")) {\n icon.setImageResource(R.drawable.ic_brightness_2_black_24dp);\n }\n else {\n icon.setImageResource(R.drawable.ic_cloud_queue_black_24dp);\n }\n }\n }.execute();\n\n }", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "private String updateWindow()\n\t{\n \t return String.format(\"Batt: %d Alt: %d Hdg: %d Rdy: %b Track: %b Id: %d\", drone.getBattery(), drone.getHeight(), \n \t\t\tdrone.getHeading(), drone.isFlying(), trackMarker, markerId);\n\t}", "private void updateUI() {\n\t\tint steps_today = Math.max(todayOffset + since_boot, 0);\n\t\tint total = total_start + steps_today;\n\t\tint average = (total_start + steps_today) / total_days;\n\n\t\tJSONObject result = new JSONObject();\n\n\t\ttry {\n\t\t result.put(\"steps_today\", steps_today);\n\t\t result.put(\"total\", total);\n\t\t result.put(\"average\", average);\n\t\t} catch (JSONException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\t\n\t\t/*\n\t\tJSONObject r = new JSONObject();\n // pedometerData.startDate; -> ms since 1970\n // pedometerData.endDate; -> ms since 1970\n // pedometerData.numberOfSteps;\n // pedometerData.distance;\n // pedometerData.floorsAscended;\n // pedometerData.floorsDescended;\n try {\n r.put(\"startDate\", this.starttimestamp);\n r.put(\"endDate\", System.currentTimeMillis());\n r.put(\"numberOfSteps\", steps);\n\t\t\t r.put(\"status\", this.status);\n\t\t\t r.put(\"startsteps\", this.startsteps);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return r;\n\t\t*/\n\t\t\n\t\twin(result);\n\t}", "public MarsWeather(JSONObject info) throws Exception {\n\n\t\tDecimalFormat temp = new DecimalFormat(\"#.#\");\n\t\t \n\t\t //Declare Json Objects for use\n\t\t JSONObject data = info.getJSONObject(\"report\");\n\t\t \n\t\t //TEMPERATURE\n\t\t int maxTemp = data.getInt(\"max_temp\");\n\t\t int minTemp = data.getInt(\"min_temp\");\n\t\t int avgTemp = (maxTemp+minTemp)/2;\n\t\t \n\t\t //TEMPERATURE\n\t\t int maxFTemp = data.getInt(\"max_temp_fahrenheit\");\n\t\t int minFTemp = data.getInt(\"min_temp_fahrenheit\");\n\t\t int avgFTemp = (maxFTemp+minFTemp)/2;\n\t\t \n\t\t //DATE\n\t\t String date = data.getString(\"terrestrial_date\"); //Earth Date\n\t\t String season = data.getString(\"season\"); //Martian Month\n\t\t String totalDate = date + \" (\" + season + \" on mars)\";\n\t\t \n\t\t //WIND\n\t\t String windDirection = data.getString(\"wind_direction\");\n\t\t Object windSpeed = data.get(\"wind_speed\");\n\t\t \n\t\t //PRESSURE\n\t\t int pressureNum = data.getInt(\"pressure\");\n\t\t String pressureString = data.getString(\"pressure_string\");\n\t\t //String pressure = temp.format(pressureNum) + \" (\" + pressureString + \")\";\n\t\t String pressure = temp.format(pressureNum);\n\t\t \n\t\t //HUMIDITY + CONDITION\n\t\t Object humidity = data.get(\"abs_humidity\"); \n\t\t String skyCondition = data.getString(\"atmo_opacity\");\n\t\t String atmoOpacity = data.getString(\"atmo_opacity\");\n\t\t \n\t\t\n\t\tthis.date = String.format(\"Date of update: \" + totalDate);\n\t\tthis.temperature = temp.format(avgTemp) + \"\\u00b0\";\n\t\tthis.Ftemp = temp.format(avgFTemp) + \"\\u00b0\";\n\t\t\n\t\tif (!windDirection.equals(\"--\"))\n\t\t\tthis.windDirection = (\"Wind Direction: \" + windDirection);\n\t\t else this.windDirection = (\"\");\n\t\t \n\t\t if (!windSpeed.equals(null))\n\t\t\t this.windDirection = (\"Wind speed \" + windSpeed);\n\t\t else this.windSpeed = (\"No wind speed available.\");\n\t\t \n\t\t if (!humidity.equals(null))\n\t\t\t this.humidity = (\"Humidity \"+ humidity);\t\n\t\t else this.humidity = (\"No humidity available.\");\t \n\t\tthis.atmoOpacity = atmoOpacity;\n\t\tthis.skyCondition = \"Sky Conditon: \" + skyCondition;\n\t\tthis.pressure = pressure + \" KpA\";\n\t\t\n\t}", "private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}", "private void displayDetailMeasurement(Measurement measurement){\n goodVibes.vibrate(60);\n\n String filepath = measurement.getFilepath();\n Bitmap bitmap = translateImgToBitmap(filepath);\n double difference_double = measurement.getDifference();\n DecimalFormat df = new DecimalFormat(\"#0.000\");\n String leftPupil = df.format(measurement.getPupilLeft()) + \"mm\";\n String rightPupil = df.format(measurement.getPupilRight()) + \"mm\";\n String difference = df.format(measurement.getDifference()) + \"mm\";\n String filename = measurement.getFilepath().substring(measurement.getFilepath().lastIndexOf(\"/\")+1);\n DateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy HH:mm\");\n Date date = new Date(measurement.getDate());\n String date_string = dateFormat.format(date).toString();\n\n textLPDetail.setText(leftPupil);\n textRPDetail.setText(rightPupil);\n textDiffDetail.setText(difference);\n textFileDetail.setText(filename);\n textDateDetail.setText(date_string);\n\n detailViewImg.setImageBitmap(bitmap);\n\n if(difference_double > 0.0f) textResult0.setText(\"L > R\");\n if(difference_double < 0.0f) textResult0.setText(\"L < R\");\n if(difference_double == 0.0f) textResult0.setText(\"L = R\");\n\n showLayout(detailViewLayout);\n }", "private void setWeather(JSONArray weather) throws JSONException {\n TextView mainWeatherTxtView = findViewById(R.id.mainWeatherTxtView);\n mainWeatherTxtView.setText((weather.getJSONObject(0)).get(\"main\").toString());\n\n // Set mainWeatherDescTxtView\n TextView mainWeatherDescTxtView = findViewById(R.id.mainWeatherDescTxtView);\n mainWeatherDescTxtView.setText(capitalize((weather.getJSONObject(0)).get(\"description\").toString()));\n }", "private void updateAmbientTempTextView() {\n mAmbientTempText.setText(String.format(Locale.CANADA, DEG_C, mThermostat.getAmbientTemperatureC()));\n }", "public void refreshDisplayData() {\n if (useLiveDisplayUpdates && displaySection.isOpen()) {\n displayPanel.setValue(device.getDisplayData(), true);\n }\n\n }", "@Override\n public void onChanged(Measurement measurement) {\n updateTextViews(measurement.getTimeStamp(),\n measurement.isGi(), measurement.getAmount(),\n measurement.getStress(), measurement.getTired(), measurement.isPhysicallyActivity(),\n measurement.isAlcoholConsumed(), measurement.isIll(), measurement.isMedication(),\n measurement.isPeriod(), measurement.getGlucoseStart(), measurement.getGlucose15(),\n measurement.getGlucose30(), measurement.getGlucose45(), measurement.getGlucose60(),\n measurement.getGlucose75(), measurement.getGlucose90(), measurement.getGlucose105(),\n measurement.getGlucose120()\n );\n }", "@Override\n public void run() {\n SimpleDateFormat todayFormat = new SimpleDateFormat(\"dd-MMM-yyyy\");\n String todayKey = todayFormat.format(Calendar.getInstance(TimeZone.getDefault(), Locale.getDefault()).getTime());\n contactsToday.setText(\"Today's exposure score: \" + prefs.getInt(todayKey, 0));\n if (isVisible) {\n chartView.loadUrl(generateChartString(prefs.getInt(\"chartMode\", 2))); //update the chart\n }\n\n //show the devices contirbuting--this is not visible by default because the textView that holds it is set to GONE but can be turned pn\n String dispResult = \"\";\n for (String i : scanData.getInstance().getData().keySet()) {\n ScanResult temp = scanData.getInstance().getData().get(i);\n if (temp.getRssi() > LIST_THRESH) {\n dispResult = dispResult + temp.getDevice().getAddress() + \" : \" + temp.getDevice().getName() + \" \" + temp.getRssi() + \"\\n\";\n }\n }\n status.setText(dispResult);\n\n handler.postDelayed(this, 30000);\n\n }", "private void updateTemperatureValue(float temperature) {\n \t\t\n \t\tString mValue = null;\n \t\t\n \t\tif(temperatureFormat.equals(\"c\")) {\n \t\t\tmValue = String.format(celsiusFormat, temperature);\n \t\t} else if(temperatureFormat.equals(\"f\")) {\n \t\t\tmValue = String.format(fahrenheitFormat, \n \t\t\t\t\tUnitConversionUtils.comvertTemperature(temperature, UnitConversionUtils.CELSIUS, UnitConversionUtils.FAHRENHEIT));\n \t\t} else {\n \t\t\tmValue = String.format(kelvinFormat, \n \t\t\t\t\tUnitConversionUtils.comvertTemperature(temperature, UnitConversionUtils.CELSIUS, UnitConversionUtils.KELVIN));\n \t\t}\n \t\t\n temperatureValueView.setText(mValue);\n \t}", "private void updateUI() {\n Bite bite = BiteLab.get(getActivity()).getBite(mBiteId);\n\n mPlacementTextView.setText(bite.getPlacement());\n\n Calendar c = bite.getCalendar();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH)+1;\n int day = c.get(Calendar.DAY_OF_MONTH);\n mDateTextView.setText(getString(R.string.show_date, day, month, year));\n\n mDaysSinceBiteTextView.setText(getString(R.string.days_since_bite\n , bite.getDaysSinceBite()));\n\n mStageTextView.setText(getString(R.string.show_stage, bite.getStage()));\n }", "private void displayMeasurementItem(View view, Measurement measurement){\n txtPupil1 = view.findViewById(R.id.pupil1);\n txtPupil2 = view.findViewById(R.id.pupil2);\n txtDiff = view.findViewById(R.id.difference);\n txtTimestamp = view.findViewById(R.id.timestamp);\n txtFilename = view.findViewById(R.id.filename);\n viewBtn = view.findViewById(R.id.viewBtn);\n\n DecimalFormat df = new DecimalFormat(\"#0.000\");\n String leftPupil = df.format(measurement.getPupilLeft()) + \"mm\";\n String rightPupil = df.format(measurement.getPupilRight()) + \"mm\";\n String difference = df.format(measurement.getDifference()) + \"mm\";\n String filename = measurement.getFilepath().substring(measurement.getFilepath().lastIndexOf(\"/\")+1);\n DateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy HH:mm\");\n Date date = new Date(measurement.getDate());\n String date_string = dateFormat.format(date).toString();\n\n txtPupil1.setText(leftPupil);\n txtPupil2.setText(rightPupil);\n txtDiff.setText(difference);\n txtFilename.setText(filename);\n txtTimestamp.setText(date_string);\n }", "protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }", "public void setValuesForDisplay() {\n \tthis.trainModelGUI.tempLabel.setText(Integer.toString(this.temperature) + DEGREE + \"F\");\n\n //this.trainCars = this.trainModelGUI.numCars();\n this.trainWheels = this.trainCars * TRAIN_NUM_WHEELS;\n this.trainModelGUI.crewCountLabel.setText(Integer.toString(crew));\n this.trainModelGUI.heightVal.setText(Double.toString(truncateTo(this.trainHeight, 2)));\n this.trainModelGUI.widthVal.setText(Double.toString(truncateTo(this.trainWidth, 2)));\n this.trainModelGUI.lengthVal.setText(Double.toString(truncateTo(this.trainLength, 2)));\n this.trainModelGUI.weightVal.setText(Integer.toString(((int)this.trainWeight)));\n this.trainModelGUI.capacityVal.setText(Integer.toString(this.trainCapacity));\n this.trainModelGUI.powerVal.setText(Double.toString(truncateTo(this.powerIn/1000,2)));\n \n GPSAntenna = this.trainModelGUI.signalFailStatus();\n if(!GPSAntenna) {\n \tthis.trainModelGUI.gpsAntennaStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.gpsAntennaStatusLabel.setText(\"OFF\");\n }\n MBOAntenna = this.trainModelGUI.signalFailStatus();\n if(!MBOAntenna) {\n \tthis.trainModelGUI.mboAntennaStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.mboAntennaStatusLabel.setText(\"OFF\");\n }\n \t\n \tthis.trainModelGUI.timeVal.setText(trnMdl.currentTime.toString());\n \tthis.trainModelGUI.stationVal.setText(this.station);\n \t\n \tif(rightDoorIsOpen == true) {\n \tthis.trainModelGUI.rightDoorStatusLabel.setText(\"OPEN\");\n } else {\n \tthis.trainModelGUI.rightDoorStatusLabel.setText(\"CLOSED\");\n }\n \tif(leftDoorIsOpen == true) {\n \tthis.trainModelGUI.leftDoorStatusLabel.setText(\"OPEN\");\n } else {\n \tthis.trainModelGUI.leftDoorStatusLabel.setText(\"CLOSED\");\n }\n\n \tif(lightsAreOn == true) {\n \t\tthis.trainModelGUI.lightStatusLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.lightStatusLabel.setText(\"OFF\");\n }\n \t\n \tthis.trainModelGUI.numPassengers.setText(Integer.toString(this.numPassengers));\n \tthis.trainModelGUI.numCarsSpinner.setText(Integer.toString(this.trainCars));\n \tthis.trainModelGUI.authorityVal.setText(Double.toString(truncateTo(this.CTCAuthority/METERS_PER_MILE,2)));\n \tthis.trainModelGUI.ctcSpeedLabel.setText(Double.toString(truncateTo(this.CTCSpeed*KPH_TO_MPH,2)));\n \t\n \tif(serviceBrake) {\n \t\tthis.trainModelGUI.serviceLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.serviceLabel.setText(\"OFF\");\n }\n \tif(emerBrake) {\n \t\tthis.trainModelGUI.emergencyLabel.setText(\"ON\");\n } else {\n \tthis.trainModelGUI.emergencyLabel.setText(\"OFF\");\n }\n \t\n \tif(this.arrivalStatus == ARRIVING) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"ARRIVING\");\n \t} else if (this.arrivalStatus == EN_ROUTE) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"EN ROUTE\");\n \t} else if (this.arrivalStatus == APPROACHING) {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"APPROACHING\");\n \t} else {\n \t\tthis.trainModelGUI.arrivalStatusLabel.setText(\"DEPARTING\");\n embarkingPassengersSet = false;\n \t}\n\n \tthis.trainModelGUI.currentSpeedLabel.setText(Double.toString(truncateTo((this.currentSpeed*MS_TO_MPH), 2)));\n \n \tif (this.lineColor.equals(\"GREEN\")) {\n \t\tthis.trainModelGUI.lblLine.setText(lineColor);\n \t\tthis.trainModelGUI.lblLine.setForeground(Color.GREEN);\n \t} else {\n \t\tthis.trainModelGUI.lblLine.setText(\"RED\");\n \t\tthis.trainModelGUI.lblLine.setForeground(Color.RED);\n }\n \t\n }", "public void displayCurrentValues() {\n currentX.setText(Float.toString(singleSample[0]));\n currentY.setText(Float.toString(singleSample[1]));\n currentZ.setText(Float.toString(singleSample[2]));\n }", "public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}", "public void UI_Refresh ()\r\n\t{\r\n\t\tUI_RefreshSensorData ();\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "private void getWeatherData() {\n System.out.println(\"at getWeather\");\n String url = \"https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=\";\n url += databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE);\n url += \"&lon=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE);\n url += \"&dt=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.START_TIME).substring(0, 10);\n url += \"&appid=your openweathermap API key\";\n new ClientThread(ClientThread.GET_WEATHER, new String[]{url, Integer.toString(experimentNumber)}, this).start();\n }", "public CurrentConditionsDisplay(Subject weatherData) {\n\t\tthis.weatherData = weatherData;\n\t\tweatherData.registerObserver(this);\n\t}", "private void updateStationViews() {\n // set name, image, metadata and url\n updateStationNameView(mThisStation);\n updateStationImageView(mThisStation);\n updateStationMetadataView(mThisStation);\n mStationDataSheetStreamUrl.setText(mThisStation.getStreamUri().toString());\n }", "private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }", "private void renderData() {\n TextView minBatteryTextView = (TextView) this.findViewById(R.id.min_battery_tv);\n minBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinBatteryLevel(), \"%\"));\n TextView averageBatteryTextView = (TextView) this.findViewById(R.id.average_battery_tv);\n averageBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageBatteryLevel(), \"%\"));\n TextView maxBatteryTextView = (TextView) this.findViewById(R.id.max_battery_tv);\n maxBatteryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxBatteryLevel(), \"%\"));\n\n TextView minGsmTextView = (TextView) this.findViewById(R.id.min_gsm_tv);\n minGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMinGSMStrength()));\n TextView averageGsmTextView = (TextView) this.findViewById(R.id.average_gsm_tv);\n averageGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getAverageGSMStrength()));\n TextView maxGsmTextView = (TextView) this.findViewById(R.id.max_gsm_tv);\n maxGsmTextView.setText(String.format(\"%.1f\", this.diagnosticStatistics.getMaxGSMStrength()));\n\n TextView minStorageTextView = (TextView) this.findViewById(R.id.min_storage_tv);\n minStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinStorageUtilization(), \"%\"));\n TextView averageStorageTextView = (TextView) this.findViewById(R.id.average_storage_tv);\n averageStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageStorageUtilization(), \"%\"));\n TextView maxStorageTextView = (TextView) this.findViewById(R.id.max_storage_tv);\n maxStorageTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxStorageUtilization(), \"%\"));\n\n TextView minMemoryTextView = (TextView) this.findViewById(R.id.min_memory_tv);\n minMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinMemoryUtilization(), \"%\"));\n TextView averageMemoryTextView = (TextView) this.findViewById(R.id.average_memory_tv);\n averageMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageMemoryUtilization(), \"%\"));\n TextView maxMemoryTextView = (TextView) this.findViewById(R.id.max_memory_tv);\n maxMemoryTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxMemoryUtilization(), \"%\"));\n\n TextView minCpuTextView = (TextView) this.findViewById(R.id.min_processor_tv);\n minCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMinCPUUtilization(), \"%\"));\n TextView averageCpuTextView = (TextView) this.findViewById(R.id.average_processor_tv);\n averageCpuTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageCPUUtilization(), \"%\"));\n TextView maxProcessorTextView = (TextView) this.findViewById(R.id.max_processor_tv);\n maxProcessorTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getMaxCPUUtilization(), \"%\"));\n TextView wifiAvailabilityTextView = (TextView) this.findViewById(R.id.average_wireless_tv);\n wifiAvailabilityTextView.setText(String.format(\"%.1f%s\", this.diagnosticStatistics.getAverageWiFIAvailability() * 100, \"%\"));\n\n }", "private void updatePanels() // updatePanels method start\n\t{\n\t\tbalanceOutput.setText(log.balanceReport());\n\t\tlogOutput.setText(log.logReport());\n\t\tATBOutput.setText(log.adjustedTrialBalance());\n\t\tISOutput.setText(log.incomeStatement());\n\t\tRESOutput.setText(log.retainedEarningsStatement());\n\t\tBSOutput.setText(log.balanceSheet());\n\t}", "public void setTemperature(double temp){tempval.setText(Double.toString(temp));}", "@Override\n public void run() {\n valTemp.setText(gestion.valTemperature);\n valSon.setText(gestion.valSon);\n valHum.setText(gestion.valHumidity);\n valLum.setText(gestion.valLumiere);\n\n maj();\n }", "@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }", "private void updateDisplay() {\r\n date1.setText(\r\n new StringBuilder()\r\n // Month is 0 based so add 1\r\n .append(pDay).append(\"/\")\r\n .append(pMonth + 1).append(\"/\")\r\n .append(pYear).append(\" \"));\r\n }", "private void setDailyValues(){\n //set updateTime\n SimpleDateFormat t = new SimpleDateFormat(\"h:mm:ss a\");\n updatedTime = \"Last updated: \" + t.format(new Date(System.currentTimeMillis()));\n \n //set maxTemp and minTemp\n maxTemp = Integer.toString(weather.getMaxTemp());\n minTemp = Integer.toString(weather.getMinTemp());\n \n //set sunriseTime and sunsetTime\n SimpleDateFormat sr = new SimpleDateFormat(\"h:mm a\");\n sunriseTime = sr.format(new Date(weather.getSunrise()*1000));\n SimpleDateFormat ss = new SimpleDateFormat(\"h:mm a\");\n sunsetTime = sr.format(new Date(weather.getSunset()*1000));\n }", "public void updateUI() {\n\n TextView site1 = (TextView) findViewById(R.id.site1);\n TextView temp1 = (TextView) findViewById(R.id.temp1);\n TextView disc1 = (TextView) findViewById(R.id.discharge1);\n TextView height1 = (TextView) findViewById(R.id.height1);\n\n TextView site2 = (TextView) findViewById(R.id.site2);\n TextView temp2 = (TextView) findViewById(R.id.temp2);\n TextView disc2 = (TextView) findViewById(R.id.discharge2);\n TextView height2 = (TextView) findViewById(R.id.height2);\n\n TextView site3 = (TextView) findViewById(R.id.site3);\n TextView temp3 = (TextView) findViewById(R.id.temp3);\n TextView disc3 = (TextView) findViewById(R.id.discharge3);\n TextView height3 = (TextView) findViewById(R.id.height3);\n\n TextView site4 = (TextView) findViewById(R.id.site4);\n TextView temp4 = (TextView) findViewById(R.id.temp4);\n TextView disc4 = (TextView) findViewById(R.id.discharge4);\n TextView height4 = (TextView) findViewById(R.id.height4);\n\n TextView site5 = (TextView) findViewById(R.id.site5);\n TextView temp5 = (TextView) findViewById(R.id.temp5);\n TextView disc5 = (TextView) findViewById(R.id.discharge5);\n TextView height5 = (TextView) findViewById(R.id.height5);\n\n\n site1.setText(siteNames.get(0));\n tempIndex = 0;\n discIndex = 0;\n heightIndex = 0;\n\n if(!temps.isEmpty()) { //add this to all\n if (r.checkTemp(0)) {\n temp1.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp1.setVisibility(View.VISIBLE);\n }\n }\n\n if(!discharge.isEmpty()) {\n if (r.checkDisc(0)) {\n disc1.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc1.setVisibility(View.VISIBLE);\n\n }\n }\n\n if(!heights.isEmpty()){\n if(r.checkHeight(0)){\n height1.setText(\"Water Height: \" + heights.get(heightIndex++));\n height1.setVisibility(View.VISIBLE);\n }\n }\n\n\n\n site2.setText(siteNames.get(1));\n\n if(!temps.isEmpty()) {\n if (r.checkTemp(1)) {\n temp2.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp2.setVisibility(View.VISIBLE);\n }\n }\n if(!discharge.isEmpty()) {\n if (r.checkDisc(1)) {\n disc2.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc2.setVisibility(View.VISIBLE);\n }\n }\n\n if(!heights.isEmpty()){\n if(r.checkHeight(1)) {\n if (heights.size() >= 2) {\n height2.setText(\"Water Height: \" + heights.get(heightIndex++));\n height2.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if(numSites >= 3){\n\n site3.setText(siteNames.get(2));\n if(!temps.isEmpty()) {\n if (r.checkTemp(2)) {\n temp3.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp3.setVisibility(View.VISIBLE);\n }\n }\n if(!discharge.isEmpty()) {\n if (r.checkDisc(2)) {\n if (discharge.size() >= 3) {\n disc3.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc3.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!heights.isEmpty()){\n if(r.checkHeight(2)) {\n if (heights.size() >= 3) {\n height3.setText(\"Water Height: \" + heights.get(heightIndex++));\n }\n }\n }\n }\n\n if (numSites >= 4) {\n site4.setText(siteNames.get(3));\n site4.setVisibility(View.VISIBLE);\n\n if(!discharge.isEmpty()) {\n if (r.checkDisc(3)) {\n if (discharge.size() >= 4) {\n disc4.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc4.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if(!heights.isEmpty()){\n\n if(r.checkHeight(3)) {\n if (heights.size() >= 4) {\n height4.setText(\"Water Height: \" + heights.get(heightIndex++));\n height4.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!temps.isEmpty()) {\n if (r.checkTemp(3)) {\n\n temp4.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp4.setVisibility(View.VISIBLE);\n }\n }\n }\n\n if (numSites == 5) {\n site5.setText(siteNames.get(4));\n site5.setVisibility(View.VISIBLE);\n if (!discharge.isEmpty()) {\n if (r.checkDisc(4)) {\n if(discharge.size() >= 5) {\n disc5.setText(\"Water Discharge: \" + discharge.get(discIndex++));\n disc5.setVisibility(View.VISIBLE);\n }\n }\n }\n if(!heights.isEmpty()){\n if(r.checkHeight(4)) {\n if (heights.size() >= 5) {\n height5.setText(\"Water Height: \" + heights.get(heightIndex++));\n height5.setVisibility(View.VISIBLE);\n }\n }\n }\n if (!temps.isEmpty()) {\n if (r.checkTemp(4)) {\n\n temp5.setText(\"Temperature: \" + temps.get(tempIndex++));\n temp5.setVisibility(View.VISIBLE);\n }\n }\n }\n }", "protected void updateAltitude() {\n Altitude droneAltitude = this.drone.getAttribute(AttributeType.ALTITUDE);\n\n\n\n alt.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n // altitudeTextView.setText(String.format(\"%3.1f\", droneAltitude.getAltitude()) + \"m\");\n }", "private void createFormMars() throws IOException {\n\t\t\t\n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grabMars(app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\ttmp = app.getMars();\n\n\t\t\tJLabel lblcity = new JLabel(\"Mars Weather\"); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\t//considers whether the wind speed is null in the JSON\n\t\t\tJLabel lblspeed2 = new JLabel();\n\t\t\tif(tmp.getSpeed()==99){\n\t\t\t\tlblspeed2 = new JLabel(\"Null\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlblspeed2 = new JLabel(\"\" + tmp.getSpeed()); \n\t\t\t}\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\t//JLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\t//considers whether the wind direction is null in the JSON\n\t\t\tJLabel lbldir2 = new JLabel();\n\t\t\tif(tmp.getDir() == 99){ //accounts for erroneous input\n\t\t\t\tlbldir2 = new JLabel(\"Null\"); //print N/A\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\t}\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblhumid2 = new JLabel();\n\t\t\tif(tmp.getHumid() == 99){ //accounts for erroneous input\n\t\t\t\tlblhumid2 = new JLabel(\"Null\"); //print N/A\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humdid\n\t\t\t}\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, 18));\n\n\t\t\t//used to set picture\n\t\t\tInputStream img = getClass().getResourceAsStream(\"/mars_picture.png\");\n\t\t\tBufferedImage pic = ImageIO.read(img);\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(marsPanel);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets wetaher Data labels\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t );\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\t\t\t\t\t\n\t\t\t\t\t\t);\n\t\n\t\t\t\t\t\tmarsPanel.setLayout(layout); //sets the layout\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t}", "@Override()\n public void update() {\n showSeparator(' ');\n \n // Update time display\n showTime(alarmTime);\n \n // Clear weekday Selector\n for(int i = 0; i < DAYS.length; i++) {\n clock.getDigit(2).setText(i+2, DAYS[i]);\n }\n // Update weekday selector\n String str;\n for(int i = 0; i < DAYS.length; i++){\n str = DAYS[i];\n if(days[i]){\n str = \">\"+DAYS[i]+\"<\";\n }\n clock.getDigit(2).setText(i+2,str); \n }\n String activeText = alarm.active ? \"Disable\" : \"Enable\";\n clock.getDigit(2).setText(10, activeText);\n }", "private void updateDisplay() \n\t{\n\t\t// updates the date in the TextView\n if(bir.hasFocus())\n {\n\t\tbir.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }else\n {\n\t\taniv.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }\n\n\n\t}", "public void displayForecast(ArrayList<Weather> result, String uv) {\n StringBuilder builder = new StringBuilder();\n for(Weather weather : result){\n builder.append(weather.getStart().replace(\"T\", \" \") + \" - \" + weather.getEnd().replace(\"T\", \" \"))\n .append(\"\\n\").append(\"Temperature: \" + weather.getTemperature())\n .append(\"\\n\").append(\"Description: \" + weather.getSymbol())\n .append(\"\\n\").append(\"Precipitation: \" + weather.getPrecipitation())\n .append(\"\\n\").append(\"Clouds: \" + weather.getClouds())\n .append(\"\\n\").append(\"Wind Speed: \" + weather.getWindSpeed())\n .append(\"\\n\").append(\"Wind Direction: \" + weather.getWindDirection())\n .append(\"\\n\").append(\"Pressure: \" +weather.getPressure())\n .append(\"\\n\").append(\"Humidity: \" + weather.getHumidity()).append(\"\\n\\n\");\n temperature.setText(temperature.getText() + builder.toString());\n builder = new StringBuilder();\n }\n temperature.setText(temperature.getText() + \"UV Index: \" + uv);\n }", "protected void updateUI() {\n this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n xWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro X:\\n\"\n + mWakeupUncalibratedGyroData[0]);\n yWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Y:\\n\"\n + mWakeupUncalibratedGyroData[1]);\n zWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Z:\\n\"\n + mWakeupUncalibratedGyroData[2]);\n }\n });\n }", "protected void showNotify () {\n if (timer != null) {\n timer.cancel ();\n }\n\n timer = new Timer ();\n timer.schedule (new updateTask (), 500, 500);\n cityMap.addMapListener (this);\n }", "@Override\n\tpublic void updateData() {\n\t\tSpendPage spend = new SpendService().getSpendPage();\n\t\tvMonthSpend.setText(spend.monthSpend);\n\t\tvTodaySpend.setText(spend.todaySpend);\n\t\tvAvgSpendPerDay.setText(spend.avgSpendPerDay);\n\t\tvMonthAvailable.setText(spend.monthAvailable);\n\t\tvDayAvgAvailable.setText(spend.avgAvailablePerDay);\n\t\tvMonthLeftDay.setText(spend.leftDay);\n\t\t\n\t\tbar.setProgress(spend.usagePercentage);\n\t\tif (spend.isOverSpend) {\n\t\t\tvMonthAvailable.setForeground(ColorUtil.warningColor);\n\t\t\tvMonthSpend.setForeground(ColorUtil.warningColor);\n\t\t\tvTodaySpend.setForeground(ColorUtil.warningColor);\n\t\t} else {\n\t\t\tvMonthAvailable.setForeground(ColorUtil.grayColor);\n vMonthSpend.setForeground(ColorUtil.blueColor);\n vTodaySpend.setForeground(ColorUtil.blueColor);\n\t\t}\n\t\tbar.setForegroundColor(ColorUtil.getByPercentage(spend.usagePercentage));\n\t}", "private void updateDisplay() { \n\t \tmDateDisplay.setText( \n\t \t\t\tnew StringBuilder()\n\t \t\t\t.append(mYear).append(\"/\")\n\t \t\t\t// Month is 0 based so add 1 \n\t \t\t\t.append(mMonth + 1).append(\"/\") \n\t \t\t\t.append(mDay).append(\" \")); \n\t \t\t\t \n\t \t\t\t \n\t \t\t\t \n\t }", "public void displayCurrentValues() {\n currentX.setText(_DF.format(deltaX));\n currentY.setText(_DF.format(deltaY));\n currentZ.setText(_DF.format(deltaZ));\n }", "public void displayTemperature(double temperature) {\n\t\toutputPanel.displayTemperature(temperature);\n\t}", "public void updateUpdatePatientPanel() {\n\t\tupdateNameTF.setText(getDoctor(tempDoctorId).getPatient(tempPatientId)\n\t\t\t\t.getPName());\n\t\tupdateAddressTA.setText(getDoctor(tempDoctorId).getPatient(\n\t\t\t\ttempPatientId).getPAddress());\n\t\tupdatePhoneNoTA\n\t\t\t\t.setText(\"\"\n\t\t\t\t\t\t+ getDoctor(tempDoctorId).getPatient(tempPatientId)\n\t\t\t\t\t\t\t\t.getPPhone());\n\t}", "public void showWeatherViewData(List<SixParams> obj){\n\n SixParamsAdapter sixAdapter = new SixParamsAdapter(this,R.layout.sixparams_view,obj);\n weather_listView.setAdapter(sixAdapter);\n weather_time.setText(temp_weather_time);\n\n }", "void update(float temp, float humidity, float pressure);", "private void updateUI() {\n if (mCurrentLocation != null) {\n mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n mLastUpdateTimeTextView.setText(mLastUpdateTime);\n\n localLatitude = Double.parseDouble(mLatitudeTextView.getText().toString());\n localLongtitude = Double.parseDouble(mLongitudeTextView.getText().toString());\n double newDistance = Math.round(gps2m(previousLatitude, previousLongitude, localLatitude, localLongtitude) * 100) / 100.0;\n\n /*\n if (!mStartUpdatesButton.isEnabled()) {\n mMoveTextView.setText(String.valueOf(newDistance) + \" m\");\n totalDistance += newDistance;\n\n mTotalDistanceTextView.setText(String.valueOf(totalDistance) + \"m\");\n }\n previousLatitude = localLatitude != 0 ? localLatitude : previousLongitude;\n previousLongitude = localLongtitude != 0 ? localLongtitude : previousLatitude;\n\n\n if (!mStartUpdatesButton.isEnabled()) {\n double speed = Double.parseDouble(timeToSpeed());\n\n timeslots.add(System.currentTimeMillis());\n userspeeds.add((float) speed);\n float randomspeed = (float)Math.random()*6;\n compspeeds.add(randomspeed);\n mSpeedTextView.setText(String.valueOf(speed) + \"km/h\");\n\n //TODO: change weight\n double calValue = calorieCalculator(weight, timeSingleValue / 3600, speed);\n calValue = Math.round(calValue * 100) / 100;\n calValue = calValue < 0 ? 0 : calValue;\n calValue = calValue > 100 ? 100 : calValue;\n calValue = calValue / 1000;\n mCalTextView.setText(String.valueOf(calValue));\n compDistance += 5*randomspeed/3600*1000;\n int predictedCalories = (int) Math.round((calValue / timeSingleValue)) * 3600;\n mCalPredictTextView.setText(String.valueOf(predictedCalories));\n\n\n if (compDistance > totalDistance) {\n if (status == 0 || status == 1) {\n MediaPlayer mediaPlayer1 = MediaPlayer.create(getApplicationContext(), R.raw.tooslow);\n mediaPlayer1.start();\n status = 2;\n }\n } else {\n if (status == 0 || status == 2) {\n MediaPlayer mediaPlayer2 = MediaPlayer.create(getApplicationContext(), R.raw.toofast);\n mediaPlayer2.start();\n status = 1;\n }\n }\n }\n */\n if (!mStartUpdatesButton.isEnabled()) {\n mMoveTextView.setText(String.valueOf(newDistance) + \" m\");\n totalDistance += newDistance;\n double totalDistanceOutput = Math.round(totalDistance * 100) / 100.0;\n totalDistanceOutput = totalDistanceOutput < 0 ? 0 : totalDistanceOutput;\n mTotalDistanceTextView.setText(String.valueOf(totalDistanceOutput) + \"m\");\n }\n previousLatitude = localLatitude != 0 ? localLatitude : previousLongitude;\n previousLongitude = localLongtitude != 0 ? localLongtitude : previousLatitude;\n if (!mStartUpdatesButton.isEnabled()) {\n double speed = Double.parseDouble(timeToSpeed());\n timeslots.add(System.currentTimeMillis());\n userspeeds.add((float) speed);\n float randomspeed = (float) Math.random() * 2;\n compspeeds.add(randomspeed);\n mSpeedTextView.setText(String.valueOf(speed) + \" km/h\");\n double calValue = calorieCalculator(weight, timeSingleValue / 3600, speed);\n calValue = calValue < 0 ? 0 : calValue;\n calValue = calValue > 100 ? 100 : calValue;\n calValue = calValue / 1000.0 * 60;\n calValue = Math.round(calValue * 100) / 100.0;\n mCalTextView.setText(String.valueOf(calValue) + \" kCal/m\");\n compDistance += 5 * randomspeed / 3600 * 1000;\n double predictedCalories = (calValue / timeSingleValue) * 60;\n predictedCalories = (predictedCalories < 0 || predictedCalories > 100000) ? 0 : predictedCalories;\n mCalPredictTextView.setText(\"~ \" + String.valueOf(predictedCalories) + \" kCal\");\n\n if (compDistance > totalDistance) {\n if (status == 0 || status == 1) {\n MediaPlayer mediaPlayer1 = MediaPlayer.create(getApplicationContext(), R.raw.tooslow);\n mediaPlayer1.start();\n status = 2;\n }\n } else {\n if (status == 0 || status == 2) {\n MediaPlayer mediaPlayer2 = MediaPlayer.create(getApplicationContext(), R.raw.toofast);\n mediaPlayer2.start();\n status = 1;\n }\n }\n }\n }\n }", "@Override\n protected void onPostExecute(String temperature) {\n ((TextView) findViewById(R.id.temperature_of_the_day)).setText(temperature);\n\n for(int i=0; i<5; i++){\n updateIconByDay(JSON_Array,i);\n }\n updateCityName(city_name);\n updateWeekday();\n updateDate();\n updateTemperature();\n }", "public void setWindSpeed(double windspeed){windspeedval.setText(Double.toString(windspeed));}", "public void showData() {\n\t\tif(dataExample == null) dataExample = new DataExample();\n\t\tsetWidgetAsExample(dataExample);\n\t}", "public void update() {\n this.infoWindowManager.update();\n }", "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "public void update(){\n infoBar = new GreenfootImage (960, 50);\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n String output = (\"Trees: \" + numTrees + \" Bushes: \" + numBushes + \" Prey: \" + numPrey + \" Predators: \" + numPredators);\n\n //centres the output on the bar.\n int centre = (960/2) - ((output.length() * 14)/2);\n\n infoBar.drawString(output, centre, 22); //draw the bar.\n this.setImage(infoBar);\n }", "void updateInformation();", "@Override\n\tpublic void update(float temp, float humidity, float pressure) {\n\n\t}", "private void updateWeatherData(final String city){\n new Thread(){\n public void run(){\n final JSONObject json = WeatherJSON.getJSON(getActivity(), city);\n if(json != null){\n handler.post(new Runnable(){\n public void run(){\n renderWeather(json);\n }\n });\n } else {\n\n }\n }\n }.start();\n }", "public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies());\r\n\t\tmoney.setText(money());\r\n\t\ttileProduction.setText(tileProduction());\r\n\t\tcapital.setText(capital());\r\n\t\thappiness.setText(happiness());\r\n\t\tland.setText(land());\r\n\t\t//ArrayList of Agents sorted from lowest to highest in money is retrieved from Tile\r\n\t\tagents=tile.getAgentsByMoney();\r\n\t\tgui3.refresh();\r\n\t\tsliderPerson.setText(\"\"+agents.get(slider.getValue()).getMoney());\r\n\t\ttick.setText(tick());\r\n\t\tthis.pack();\r\n\t}", "private void updateHumidityValues(BluetoothGattCharacteristic characteristic) {\n double humidity = SensorTagData.extractHumidity(characteristic);\n\n mHumidity.setText(String.format(\"%.0f%%\", humidity));\n }", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }", "public void updateInfo() {\n\t}", "public static void setData() \n\t{\n\t\tsetCustomerData();\n\t\ttry\n\t\t{\n\t\t\tsetSensorData();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t}", "public void updateWeather(double lat, double lon){\n String appId = getString(R.string.owmapikey);\n\n new ConnectionTask().execute(\"http://api.openweathermap.org/data/2.5/weather?units=metric&lat=\" + lat +\"&lon=\" + lon + \"&appId=\" + appId, \"current\");\n new ConnectionTask().execute(\"http://api.openweathermap.org/data/2.5/forecast?units=metric&lat=\" + lat +\"&lon=\" + lon + \"&appId=\" + appId + \"&cnt=24\", \"forecast\");\n\n }", "public void lookOut() //looking out the window\r\n\t{\r\n\tSystem.out.println(this.weather.description); //prints a description of the weather\r\n\t}", "private void updateDisplayText(double change) { updateDisplayText(change, null); }" ]
[ "0.7445696", "0.70702094", "0.7019263", "0.69711953", "0.68813735", "0.6829921", "0.6820543", "0.68133897", "0.6781745", "0.67772007", "0.6725657", "0.6675746", "0.6662387", "0.6627166", "0.66034925", "0.6547745", "0.654626", "0.650131", "0.6398917", "0.63732445", "0.63421774", "0.63229406", "0.63051444", "0.63042796", "0.62930226", "0.62795985", "0.6263613", "0.62571925", "0.6255708", "0.6248938", "0.62406474", "0.62269104", "0.621645", "0.61857665", "0.6167419", "0.6149742", "0.6118899", "0.6118806", "0.6095997", "0.60807467", "0.6065563", "0.60498476", "0.6048215", "0.60326254", "0.60297585", "0.60217535", "0.60196644", "0.6009812", "0.5999989", "0.599933", "0.59980375", "0.5995376", "0.5989088", "0.59876615", "0.59813374", "0.59750086", "0.5973504", "0.5958426", "0.5957331", "0.59559655", "0.5940457", "0.59364593", "0.5936058", "0.5933211", "0.5918336", "0.5908321", "0.5899025", "0.589771", "0.5878043", "0.58774877", "0.5874362", "0.5872079", "0.5866607", "0.5853458", "0.58523405", "0.58483034", "0.5844826", "0.5844823", "0.5844821", "0.5840001", "0.5831713", "0.58295935", "0.5816187", "0.58064103", "0.58031505", "0.57950693", "0.57923603", "0.5783994", "0.57805085", "0.57795286", "0.57701755", "0.5767731", "0.57657653", "0.5758272", "0.5755882", "0.5733265", "0.572686", "0.5726614", "0.5724843", "0.57246244" ]
0.6529782
17
For add and update person both
@RequestMapping(value= "/user/add", method = RequestMethod.POST) public String addUser(@ModelAttribute("user") CreateUsersBean bean,RedirectAttributes redirectAttrs ,HttpServletRequest request) throws NoSuchAlgorithmException{ AdminModuleDao dao = Beans.adminModuleDao; EditProfileBean profileBean =new EditProfileBean(); profileBean.setUser_id(bean.getSerial_no()); profileBean.setUser_name(bean.getUsername()); profileBean.setFirst_name(bean.getFirstname()); profileBean.setAddress(""); profileBean.setCity(""); profileBean.setEmail_id("[email protected]"); profileBean.setLast_name(""); profileBean.setPhone_number("0123456789"); if((bean.getChanger()).equals("1")){ Session session = dao.getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); session.update(bean); session.update(profileBean); tx.commit(); session.close(); redirectAttrs.addFlashAttribute("messenger", MessageDispatcher.message(AuditLog.userActivity("Modified Data of User.",request),true)); }else{ @SuppressWarnings("unused") boolean i =dao.insertValues(bean); boolean res=dao.insertValues(profileBean); if(res){ redirectAttrs.addFlashAttribute("messenger", MessageDispatcher.message("User was created.",true)); redirectAttrs.addFlashAttribute("messenger", MessageDispatcher.message(AuditLog.userActivity("Added new user information.",request),true)); dao.close(); }else{ redirectAttrs.addFlashAttribute("messenger", MessageDispatcher.message("User creation is failed,Try Again.",false)); } } return "redirect:/createUser.htm"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void lookupAndSaveNewPerson();", "public void addPerson(Person p);", "@Override\r\n\tpublic void update(Person p) \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void update(Person person) {\n\r\n\t}", "public Person updatePerson(Person pr){\t\n\t\tPerson old_p = new Person(pr.getId());\n\t\tPerson new_p = new Person(pr.getId(), pr.getFirstName(), pr.getLastName(),\n\t\t\t\tpr.getRelationship(),pr.getAddress(),pr.getPhone(),pr.getEmail(),pr.getComment(),pr.getUser_id());\n\t\tSystem.out.println(\"new_p : \" +new_p);\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager();\n\t\ttry {\n\t\t\told_p = PersonDBManager.getInstance().GetPersonByID(con.getConnectionFromPool(), old_p.getId());\n\t\t\tSystem.out.println(\"old_p :\" + old_p);\n\t\t\tif(old_p !=null){\n\t\t\tSystem.out.println(\"second new_p to update :\" +new_p);\n\t\t\tPersonDBManager.getInstance().UpdateAPerson(con.getConnectionFromPool(), new_p);\n\t\t\tExpensesDBManager.getInstance().updatePersonParamOnExpensesTable(con.getConnectionFromPool(),\n\t\t\t\t\tnew_p.getFirstName(), new_p.getLastName(), new_p.getId(), new_p.getUser_id());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"GetPersonByID Not Found\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn old_p;\n\t\t\n\t}", "public int update(person p){\n\t\t\treturn j.update(\" update person\"+ \" set name=?,location=?,birthdate=?\"+\" where id=? \", new Object[] {p.getName(),p.getLocation(),new Timestamp(p.getDate().getTime()),p.getId()});\r\n\t\t\r\n\t}", "void addPerson(Person person) throws UniquePersonList.DuplicatePersonException;", "public void updatePerson() {\n\t\tSystem.out.println(\"update person\");\n\t}", "private static void LessonDAOUpdate() {\n PersonDAO personDAO = new PersonDAOImpl();\n\n Person person = personDAO.getPersonById(7);\n person.setFirstName(\"Teddy\");\n\n if(personDAO.updatePerson(person)) {\n System.out.println(\"Person Update Success!\");\n } else {\n System.out.println(\"Person Update Fail!\");\n }\n }", "public void add(Person person) {\n\t\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\tsession.save(person);\n\t}", "private static Person updatePerson(Request req) {\n int id = Integer.parseInt(req.params(\"id\"));\n Person personRequested = gson.fromJson(req.body(), Person.class);\n \n // get the data from personRequested keeping the id\n Person personFound = findPersonById(id);\n int index = persons.lastIndexOf(personFound);\n\n personFound = personRequested;\n personFound.setId(id);\n\n persons.set(index, personRequested);\n\n System.out.println(personRequested);\n return personRequested;\n }", "public void addAccount(Account account,Person person);", "public void updatePerson(){\r\n\r\n // Generally update is performed after search \r\n // need to find out which record is going to update \r\n\r\n if (recordNumber >= 0 && recordNumber < personsList.size())\r\n {\r\n PersonInfo person = (PersonInfo)personsList.get(recordNumber);\r\n\r\n int id = person.getId();\r\n\r\n\t /*get values from text fields*/ \r\n\t name = tfName.getText();\r\n\t address = tfAddress.getText();\r\n\t phone = Integer.parseInt(tfPhone.getText());\r\n email = tfEmail.getText();\r\n\r\n\t /*update data of the given person name*/\r\n\t person = new PersonInfo(id, name, address, phone, email);\r\n pDAO.updatePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Person info record updated successfully.\"); \r\n }\r\n else\r\n { \r\n JOptionPane.showMessageDialog(null, \"No record to Update\"); \r\n }\r\n }", "public void addPerson(String name){\n Person newPerson = new Person(name,this.x1,this.x2);\n for(Person p : personList){\n if(p.equals(newPerson)){\n System.out.println(\"Error! The person already exists.\");\n }\n }\n personList.add(newPerson);\n }", "public void updateUser(Person person){\n\t\tem.merge(person);\n\t}", "public Person addPerson(Person person) {\n \tqueryExecutor.insertPerson(person);\n \t//personMap.put(person.getName(), person);\n return person;\n }", "@PUT\n @Produces({ \"application/json\" })\n @Path(\"{id}\")\n @CommitAfter\n public abstract Response update(Person person);", "@Override\r\n\tpublic boolean updatePerson(int id, String fieldName, String newValue) {\n\t\treturn false;\r\n\t}", "void addPhoneToPerson(Phone phone,int personId);", "public void savePerson(Person person) {\n\t\t\n\t}", "public void addPerson(Person thePerson) {\r\n staff.add(thePerson);\r\n }", "public <T> void addPerson(Person p) {\n\t\tsession.save(p);\n\t}", "public void edit(Person person) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = (Person) session.get(Person.class, person.getId());\n\t\t\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\n\t\t// Save updates\n\t\tsession.merge(existingPerson);\n\t}", "int updateNameNmNameLast(String nmNameLast, int idName, int idPerson);", "public void update(Person p) {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Person person = session.load(Person.class, p.getId());\n person.setGivenName(p.getGivenName());\n person.setFamilyName(p.getFamilyName());\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully updated \" + p.toString());\n }\n catch(Exception e){\n if (session.getTransaction() != null)\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO, \"Upadate on \" + p.toString() + \" failed\");\n }\n finally {\n session.close();\n }\n }", "public void edit(Person person) {\n\t\tlogger.debug(\"Editing existing person\");\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = this.get(person.getId());\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\t // Save updates\n\t\tentityManager.merge(person);\n\t}", "int updateByPrimaryKey(PersonRegisterDo record);", "Patient update(Patient patient);", "public int addSickPerson(SickPerson sickPerson) throws SQLException;", "@POST\n @Produces({ \"application/json\" })\n @CommitAfter\n public abstract Response addNew(Person person);", "void addPerson(Player player);", "public boolean insertPerson(SamplePerson person) {\n //TODO\n throw new NotImplementedException();\n }", "@Override\n\tpublic void addPerson(User pUser) {\n\t\t\n\t}", "public boolean updateSickPerson(SickPerson sickPerson) throws SQLException;", "public int update(Person person) {\r\n\t\treturn jdbcTemplate.update(\"update person \" + \" set name = ?, location = ?, birthDate = ? \" + \" where id = ?\",\r\n\t\t\t\tnew Object[] { person.getName(), person.getLocation(), person.getBirthDate() , person.getId()});\r\n\t}", "int updateByPrimaryKeySelective(PersonRegisterDo record);", "public void savePerson()\r\n { \r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\taddress = tfAddress.getText();\r\n\tphone = Integer.parseInt(tfPhone.getText());\r\n\temail = tfEmail.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null, \"Please enter person name.\");\r\n\t}else\r\n {\r\n\r\n\t /*create a new PersonInfo object and pass it to PersonDAO to save it*/\r\n\t PersonInfo person = new PersonInfo(name, address, phone, email);\r\n\t pDAO.savePerson(person);\r\n\r\n\t JOptionPane.showMessageDialog(null, \"Record added\");\r\n }\r\n }", "@Override\n public void put(Object o, Person person) {\n \n }", "@Override\n\tpublic String upsert(PersonKey key, Person person) {\n\t\tif (repo.save(person) != null) {\n\t\t\treturn (\"Data is successfully inserted/updated\");\n\t\t} else {\n\t\t\treturn (\"Data is not successfully inserted\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}", "int insertName(String nmNameLast, int idPerson);", "private void updatePerson() {\n Statement statement = null;\n try {\n statement = this.connection.createStatement();\n System.out.print(\"What is the first name of the person you would like to update? \");\n Scanner scanner = new Scanner(System.in);\n String first = scanner.next();\n int id = Utils.selectPersonFromFirstName(first, connection);\n System.out.print(\"What do you want to update? LastName, FirstName, DOB, or DOD? \");\n String field = scanner.next();\n System.out.println(field);\n if (field.equalsIgnoreCase(\"LastName\")) {\n System.out.print(\"Enter the new last name of the person you wish to update: \");\n String newLastName = scanner.next();\n statement.executeUpdate(\"UPDATE person SET last_name = \" + \"\\'\" +\n newLastName + \"\\'\" + \"WHERE person_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"FirstName\")) {\n System.out.print(\"Enter the new first name of the person you wish to update: \");\n String newFirstName = scanner.next();\n statement.executeUpdate(\"UPDATE person SET first_name = \" + \"\\'\" +\n newFirstName + \"\\'\" + \"WHERE person_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"DOB\")) {\n System.out.print(\"Enter the new DOB of the person you wish to update: \");\n String newDOB = scanner.next();\n statement.executeUpdate(\"UPDATE person SET DoB = \" + \"\\'\" +\n newDOB + \"\\'\" + \"WHERE person_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"DOD\")) {\n System.out.print(\"Enter the new DOD of the person you wish to update: \");\n String newDOD = scanner.next();\n statement.executeUpdate(\"UPDATE person SET DoD = \" + \"\\'\" +\n newDOD + \"\\'\" + \"WHERE person_id = \" + id);\n }\n else {\n System.out.println(\"Field not identified. Enter again. \");\n this.updatePerson();\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public Person updatePerson(Person person) {\n \tqueryExecutor.updatePerson(person);\n \t\n \t//personMap.put(person.getName(), person);\n return person;\n }", "public void add(Person person){\n\t\tpersonRepository.add(person);\n\t}", "public static void addUserToDb(Person person) {\n\n //converting person's data for SQL database\n String name = person.getName();\n int height = person.getHeight();\n double weight = person.getWeight();\n double waist = person.getWaistCircumference();\n int multiplier = person.getMultiplier();\n double calorieRate = person.getCalorieRate();\n String lastDate = getTodaysDate();\n\n //using data to create a query\n String dbQuery = \"INSERT INTO users(username, userheight, userweight, userwaist, usermultiplier, usercaloryrate, lastdate) \" +\n \"VALUES ('\" + name + \"', \" + height + \", \" + weight + \", \" + waist + \", \" +\n multiplier + \", \" + calorieRate + \", '\" + lastDate + \"')\";\n\n //sending a query and effectively adding user to the DB. Setting sql generated ID to the java object\n int personsId = DbConnector.addingNewRecordToDb(dbQuery);\n person.setId(personsId);\n }", "@Override\n\tpublic void save(Person person) {\n\t\t\n\t}", "public void updateUser(Person user) {\n\t\t\n\t}", "@Override\n\tpublic void updatePerson(Person person) {\n\t\tsessionFactory.getCurrentSession().update(person);\n\t}", "@Override\r\n public boolean update(Person old, Person updated) {\n return false;\r\n }", "public void save(Person p) {\n\n\t}", "@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }", "private void saveNewPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Save new Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINISTRATOR,\r\n\t\t\t\t\t\"Hauptadministrator\"), \"Passwort\", \"[email protected]\", \"Vorname\",\r\n\t\t\t\t\t\"Nachname\", \"Organisation\", \"Abteilung\", \"Fachrichtung\",\r\n\t\t\t\t\t\"Strasse\", \"3e\", \"54321\", \"Ort\");\r\n\r\n\t\t\tp1.save();\r\n\t\t} catch (BusinesslogicException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t} catch (DatabaseException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"New Patient saved!!\");\r\n\t}", "int updateByPrimaryKey(LawPerson record);", "public void addUser(Person person){\n \t\n \ttry {\n\t\t\tperson.sethPassword(Base64.getEncoder().encodeToString(MessageDigest.getInstance(\"SHA-256\").digest(person.gethPassword().getBytes(StandardCharsets.UTF_8))));\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \t\n \tSystem.out.println(\"aanmaken van \" + person.getLogin());\n \tem.persist(person);\n \t\n }", "Builder addAccountablePerson(Person value);", "public void addAccount(Person p, Account a);", "public void savePerson() {\n\t\tthis.personService.savePerson();\n\t}", "public int insert(person p){\n\t\t\treturn j.update(\" insert into person (id,name,location,birthdate) \"+ \" values(?,?,?,?) \", new Object[] {p.getId(),p.getName(),p.getLocation(),new Timestamp(p.getDate().getTime())});\r\n\t\t\r\n\t}", "int insert(PersonRegisterDo record);", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "public void savePerson() {\n\t\tSystem.out.println(\"save person\");\n\t}", "public void addperson(Person p, int floorNum) {\n\r\n\r\n }", "public void edit(Person person) {\n\t\tpersonRepository.edit(person);\n\t}", "public void addPerson(String name, String id) {\n if (personIds.contains(id)) {\n return;\n }\n personNames.add(name);\n personIds.add(id);\n personPhotos.add(getBitmapFromId(context, id));\n personSelections.add(new HashSet<Integer>());\n }", "@Override\r\n\tpublic void add() {\n\t\tif(alreadyAdded()) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Member is already added\");\r\n\t\t}else {\r\n\t\t\t\r\n\t\t\t\ttry(Connection connection= db.getConnection();) {\r\n\t \t\r\n\t\t\t\t\r\n\t\t\t\tString addString=\"INSERT INTO members VALUES(?,?,?,?)\";\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(addString);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t\t\tpreparedStatement.setString(2, super.getNameString());\r\n\t\t\t\tpreparedStatement.setString(3, super.getSurnameString());\r\n\t\t\t\tpreparedStatement.setString(4, super.getEmailString());\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t}", "public void addPerson(Person person) throws DataAccessException {\n String sql = \"INSERT INTO Person(personId,AssociatedUsername,firstName,lastName,\" +\n \"gender,father,mother,spouse) VALUES(?,?,?,?,?,?,?,?)\";\n\n try (PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setString(1, person.getPersonID());\n pstmt.setString(2, person.getAssociatedUsername());\n pstmt.setString(3, person.getFirstName());\n pstmt.setString(4, person.getLastName());\n pstmt.setString(5, person.getGender());\n pstmt.setString(6, person.getFatherID());\n pstmt.setString(7, person.getMotherID());\n pstmt.setString(8, person.getSpouseID());\n pstmt.executeUpdate();\n } catch (SQLException e) {\n throw new DataAccessException(\"Error encountered while inserting into the database\");\n }\n }", "public void updatePerson(Person person, String firstName, String lastName) throws LogicLayerException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdataService.updatePerson(person, firstName, lastName);\r\n\t\t}\r\n\t\tcatch (DataServiceException e)\r\n\t\t{\r\n\t\t\tthrow new LogicLayerException(e.getMessage());\r\n\t\t}\t\t\r\n\t}", "Builder addEditor(Person value);", "@PUT(\"/{id}\")\n @Consumes(\"application/json\")\n @PermitAll\n public Person upsert(String id, Person person) {\n logger.debug(\"upsert({}, {})\", id, person);\n Person upsert = personService.upsert(id, person);\n logger.debug(\"created/updated {}: {}\", id, upsert);\n return upsert;\n }", "protected void onSavePerson(Person person) {\n boolean isNew = false;\n if (person.getId() == null) {\n isNew = true;\n }\n\n try {\n personManager.save(person);\n } catch (Exception e) {\n e.printStackTrace();\n log.error(\"Error saving person: \" + e.getMessage());\n }\n\n String message = getLocalizer().getString(\"person.updated\", this);\n if (isNew) {\n message = getLocalizer().getString(\"person.added\", this);\n }\n getSession().info(message);\n if (isNew) {\n FeedbackPanel feedback = (FeedbackPanel) responsePage.get(\"feedback\");\n feedback.setVisible(true);\n feedback.setEscapeModelStrings(true);\n throw new RestartResponseAtInterceptPageException(responsePage);\n } else {\n FeedbackPanel feedback = (FeedbackPanel) this.get(\"feedback\");\n feedback.setVisible(true);\n feedback.setEscapeModelStrings(true);\n }\n }", "public static void AddPerson(Person person)\n {\n dataWraper.addRecordTrans(person, dataWraper.tables.get(Person.class.getAnnotation(Entity.class).name()), null);\n }", "void update(Employee nurse);", "@Override\n public void savePerson() {\n this.personDao.savePerson();\n }", "public List <Person> editUser(List <Person> listOfPerson)\n\t{\n\t System.out.println(\"Enter the First Name you want to make changes in: \");\n\t String fname = Utility.inputString();\n\t for(int i = 0; i < listOfPerson.size(); i++)\n\t {\n\t \tif(listOfPerson.get(i).getFname().equals(fname))\n\t \t{\n\t \t\tPerson temp = listOfPerson.get(i);\n\t do {\n\t\t System.out.println(\"Enter the detail you want to edit: \");\n\t\t System.out.println(\"Enter 1 to edit Last Name: \");\n\t\t System.out.println(\"Enter 2 to edit Address: \");\n\t\t System.out.println(\"Enter 3 to edit City: \");\n\t\t System.out.println(\"Enter 4 to edit State: \");\n\t\t System.out.println(\"Enter 5 to edit Zip code: \");\n\t\t System.out.println(\"Enter 6 to edit Phone Number: \");\n\t\t int choice = Utility.inputInteger();\n\t\t switch(choice)\n\t\t {\n\t\t case 1:\n\t\t\t System.out.println(\"Enter the new Last Name\");\n\t\t\t temp.setLname(Utility.inputString()); \n\t\t\t System.out.println(\"Details saved successfully\");\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t \t System.out.println(\"Enter the New Address\");\n\t\t \t temp.setAddress(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 3:\n\t\t \t System.out.println(\"Enter the New City\");\n\t\t \t temp.setCity(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 4:\n\t\t \t System.out.println(\"Enter the New State\");\n\t\t \t temp.setState(Utility.inputString());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 5:\n\t\t \t System.out.println(\"Enter the new Zip code\");\n\t\t \t temp.setZip(Utility.inputInteger());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t case 6:\n\t\t \t System.out.println(\"Enter the New Phone Number\");\n\t\t \t temp.setPhn(Utility.inputLong());\n\t\t \t System.out.println(\"Details saved successfully\");\n\t\t \t break;\n\t\t \t \n\t\t \t default:\n\t\t \t\t System.out.println(\"Invaild choice\");\n\t\t \t\t break;\n\t\t } \n\t\t listOfPerson.add(temp);\n\t\t return listOfPerson;\n\t }while(Utility.inputBoolean());\n\t }\n\t }\n\t return listOfPerson;\n\t}", "public User update(User user)throws Exception;", "int insertSelective(PersonRegisterDo record);", "public void update(Person person) {\n\t\tpersonRepository.save(person);\n\t}", "public People savePeople(People people);", "public void insertInfo(editUserSetGet eu);", "public void Update_Person(final String name, final String new_name){\n realm.executeTransactionAsync(new Realm.Transaction() {\n @Override\n public void execute(Realm bgRealm) {\n\n Person user = bgRealm.where(Person.class).equalTo(\"name\", name).findFirst();\n\n user.setName(new_name);\n }\n }, new Realm.Transaction.OnSuccess() {\n @Override\n public void onSuccess() {\n // Original queries and Realm objects are automatically updated.\n //puppies.size(); // => 0 because there are no more puppies younger than 2 years old\n //managedDog.getAge(); // => 3 the dogs age is updated\n }\n });\n }", "int insertPerson(UUID id, Person person);", "public ResponseEntity<String> processAddingAPerson(AddPeopleRequest addPeopleRequest) {\n // check if person being added already exists\n if (personAlreadyExists(addPeopleRequest)) {\n // return user already exists\n logger.info(\"user already exists\");\n return new ResponseEntity(Utils.result(Constants.USER_ALREADY_EXISTS), HttpStatus.BAD_REQUEST);\n } else {\n // record should be saved..\n this.addPersonRequestMongoRepository.save(addPeopleRequest);\n return new ResponseEntity(Utils.result(Constants.RECEIVED), HttpStatus.OK);\n }\n }", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "public String updatePerson(Register entity) {\n\t\tAccount acc = accServ.findByUser(entity.getDni());\n\t\tPerson per = findByPerson(acc);\n\t\tper.setEmail(entity.getEmail());\n\t\tper.setName(entity.getName());\n\t\tper.setPhone(entity.getPhone());\n\t\tper.setSurname(entity.getSurname());\n\t\treturn update(per);\n\t}", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "Person addPerson(JSONObject person);", "@Override\n public void save() {\n String query = null;\n super.save();\n ((DataUser) user).save();\n\n if (getId() == 0) {\n String[] values = {super.getId() + \"\", \"\" + getUser().getId()};\n\n query = Database.compose(\n \"INSERT INTO case_workers (person_id, user_id)\",\n \"VALUES('\" + String.join(\"','\", values) + \"')\",\n \"RETURNING id\"\n );\n } else {\n query = Database.compose(\n \"UPDATE case_workers SET\",\n \"person_id = \" + super.getId() + \",\",\n \"user_id = \" + getUser().getId() + \"\",\n \"WHERE id = \" + getId()\n );\n\n }\n\n Database.getInstance().query(query, rs -> {\n if (id == 0) {\n id = rs.getInt(1);\n }\n });\n }", "private void addPerson(){\r\n\t\tpeople.add(new Person(this));\r\n\t\t// fire the listeners so the screen updates\r\n\t\t// when addPerson is called (by the button click)\r\n\t\tpersonTableModel.fireTableRowsInserted(0,0);\r\n\t}", "public void savePerson() {\n\t\tSystem.out.println(\"save--person\");\n\t}", "public void CreatePerson(Person p){\n\t\tWeddingConnectionPoolManager con = new WeddingConnectionPoolManager(); \n\t\t Person p1 = new Person(p.getId(), p.getFirstName(), p.getLastName(), p.getRelationship(),\n\t\t\t\t p.getAddress(), p.getPhone(), p.getEmail(), p.getComment(), user.getId());\n\t\t System.out.println(\"p1 : \" + p1);\n\t\t System.out.println(\"p : \" + p);\n\t\t// TODO - should to iterate on the results that returns when calling to \"getpersons\" method.\n\t\tPersonDBManager.getInstance().CreateNewPerson(con.getConnectionFromPool(), p1);\t\n\t}", "public static void upsertPerson(NodePerson p) {\n ArangoDatabase db = client.db(dbName);\n db.query(p.upsertAql(vertexColls[1]), null);\n }", "private void addorUpdteTeacher(HttpServletRequest req, HttpServletResponse resp,boolean update) throws ServletException, IOException {\n\t\tString url=\"/listTeacher.jsp\";\n\t\tTeacher teacher=new Teacher();\n\t\tString firstName=req.getParameter(\"firstName\");\n\t\tString lastName=req.getParameter(\"lastName\");\n\t\tString designation=req.getParameter(\"designation\");\n\t\tteacher.setFirstName(firstName);\n\t\tteacher.setLastName(lastName);\n\t\tteacher.setDesignation(designation);\n\t\t\n\t\t\ttry {\n\t\t\t\tif(!update) {\n\t\t\t\tteacherDAO.addTeacher(teacher);\n\t\t\t\t}else {\n\t\t\t\t\tint id=Integer.parseInt(req.getParameter(\"teacherid\"));\n\t\t\t\t\tteacher.setId(id);\n\t\t\t\t\tteacherDAO.updateTeacher(teacher);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\treq.setAttribute(\"message\", e.getMessage());\n\t\t\t\tif(!update)\n\t\t\t\t\turl=\"/addTeacher.jsp\";\n\t\t\t\telse \n\t\t\t\t\turl=\"/updateTeacher.jsp\";\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\treq.getRequestDispatcher(url)\n\t\t.forward(req, resp);;\n\t\t\n\n\t}", "int updateByExample(@Param(\"record\") PersonRegisterDo record, @Param(\"example\") PersonRegisterDoExample example);", "User editUser(User user);", "@Override\n @Transactional\n public void update(Surname changedSurname) {\n \n }", "int updateByPrimaryKeySelective(LawPerson record);", "public void add(Person person) {\n\t\tlistOfPeople.add(person);\n\t\t\n\t}", "protected ProcessAddPerson() {\n }", "public void addPerson(Person per) {\r\n\t\tthis.persons.put(per.getPersonID(), per);\r\n\t}", "public long addPerson(final Person person) {\n\t\ttry (Session session = this.driver.session()) {\n\t\t\tsession.writeTransaction(new TransactionWork<Void>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Void execute(Transaction transaction) {\n\t\t\t\t\treturn Operation.this.createPersonNode(transaction, person);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn session.readTransaction(new TransactionWork<Long>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Long execute(Transaction transaction) {\n\t\t\t\t\treturn Operation.this.matchPersonNode(transaction, person);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "public User update(User updatedInfo);" ]
[ "0.7343239", "0.692142", "0.67933285", "0.6784737", "0.6768771", "0.6647801", "0.66431624", "0.6572571", "0.65063465", "0.6490937", "0.64854145", "0.6484291", "0.6481636", "0.6473611", "0.6466653", "0.64610344", "0.64592004", "0.6436795", "0.64151746", "0.6402995", "0.63864666", "0.63544154", "0.63324803", "0.6316483", "0.6292315", "0.6289291", "0.62815243", "0.62707084", "0.6268806", "0.6254023", "0.62439597", "0.6219107", "0.6211397", "0.62103456", "0.62047386", "0.62026095", "0.6201704", "0.6198043", "0.619033", "0.61879575", "0.6184752", "0.61687803", "0.6166011", "0.6151341", "0.61501837", "0.6130804", "0.6102027", "0.6095929", "0.6085682", "0.6078314", "0.6071297", "0.6051377", "0.60414445", "0.60327685", "0.60295224", "0.60231626", "0.60217685", "0.6020772", "0.60157007", "0.60125715", "0.60125715", "0.6007312", "0.6006863", "0.5998733", "0.59957504", "0.598889", "0.5972941", "0.59620893", "0.5957029", "0.59543", "0.5951314", "0.5930834", "0.5926611", "0.59066176", "0.5904128", "0.59003234", "0.5899253", "0.5897052", "0.5895597", "0.5869943", "0.5846965", "0.5838805", "0.5833922", "0.58321667", "0.5829927", "0.58245516", "0.581907", "0.5817527", "0.5809009", "0.58046204", "0.5797979", "0.5797072", "0.57959193", "0.5786849", "0.57864535", "0.5782918", "0.57767045", "0.5776234", "0.5769352", "0.5767001", "0.57594246" ]
0.0
-1
Plugin interface which is implemented by all kinds of plugins (Operators, CLassifier,...).
public interface Plugin<T> { /** * Method returns the hashmap with loaded plugins. </p> Hashmap is inside * PluginManager class. * * @return hashmap with loaded plugins */ public HashMap<String, T> getStorage(); /** * Method adds the plugin specified in pluginClass param into hashmap with * param key. </p> Hashmap is inside PluginManager class. * * @param key * to hashmap with added plugin * @param pluginClass * of type class to save into hashmap */ public void addPlugin(String key, T pluginClass); /** * Name of the plugin. * * @return name of plugin */ public String getName(); /** * Tests if the plugin has any error * * @return true if there is any error. */ public boolean hasError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Plugin {\n void doUsefil();\n}", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}", "public interface PluginBase {\n void init();\n void run();\n}", "public interface PluginGateway {\r\n ExecutionResult runPlugin(Object... inputs) throws Exception;\r\n}", "public interface QueryEnginePluginDescriptor extends PluginDescriptor {\n}", "public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}", "public interface IPluginLibrary {\n \n /*\n * Initializes the library\n */\n public void initialize(DefaultPluginsCollector collector);\n \n /*\n * Start the module and initialize components\n */\n public void startLibrary();\n \n /*\n * Fetches all extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return The gathered plugins in a LinkedList\n */\n public void loadAllPlugins(final String extPointId);\n \n /*\n * Fetches new extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return A human readable string\n */\n public String loadNewPlugin(final String extPointId); \n \n /**\n * Checks a plugin for validity.\n * \n * @param plugin The plugin to check\n * @param The level to test against, this method will return true if the result is greater or\n * equal than the testLevel\n * @return true or false\n */\n public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);\n\n /**\n * Answer a request by searching plugin-library for function and executing\n * them.\n * \n * @param req The {@link ExtendedQequest} to answer.\n * \n * @return The generated {@link MResponse}.\n */\n public MResponse executeRequest(ExtendedRequest req);\n\n \n public List<PluginInformation> getPluginInformation();\n \n /**\n * Returns a list of example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of example calls\n */\n public List<MExampleCall> getExampleCalls();\n \n /**\n * Returns a list of 5 randomly choosen example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of 5 randomly choosen example calls\n */\n public List<MExampleCall> getRandomExampleCalls();\n \n public Map<String, Pair<Boolean, MartinPlugin> > getPluginExtentions();\n}", "Plugin getPlugin();", "public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}", "public interface IPlugin {\n void setParam(IParam param);\n\n IParam getParam();\n\n void setMonitor(IPluginMonitor monitor);\n\n IPluginMonitor getMonitor();\n\n void init();\n\n void connection();\n\n void finish();\n\n Map<String, String> getMonitorInfo();\n}", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public interface PluginDeveloperSpec {\n void developer(Action<? super PluginDeveloper> action);\n}", "public interface GameHelperPlugin {\n\n public ScoreBoard getScoreBoard();\n\n public void getRules();\n\n public void displayMenu();\n\n\n}", "Plugin getPlugin( );", "public interface Plugin\n{\n /**\n * Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are\n * supported.\n * \n * @param textArea the text area of the editor\n * @param config the configuration object\n */\n void init(RichTextArea textArea, Config config);\n\n /**\n * @return all the user interface extensions that are provided by this plug-in\n */\n UIExtension[] getUIExtensions();\n\n /**\n * Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.\n */\n void destroy();\n}", "public interface FJPluginInterface\r\n{\r\n\t/**\r\n\t * When the plugin is loaded, the pluin's implementation of this method\r\n\t * will be invoked. If nothing needs to be done on startup in a plugin,\r\n\t * keep the method empty. For instance you might do all the work in the\r\n\t * constructor, or you could wait for user input, which will make this\r\n\t * method unnecessary.\r\n\t */\r\n\tpublic void start();\r\n\t\r\n\t/**\r\n\t * Invoked when a plugin is unloaded and another plugin is loaded or when\r\n\t * Flask Jaws is terminated. Useful for shutting down sockets and readers\r\n\t * when you exit your plugin. If nothing needs to be done upon exit or no\r\n\t * cleaning needs to be done, this method may be left empty.\r\n\t * <p>\r\n\t * If a plugin supports networking of any kind, it should call\r\n\t * {@link se.mansehr.flaskjaws.pluginclasses.FJNetwork#close()} in this method.\r\n\t */\r\n\tpublic void stop();\r\n\t\r\n\t/**\r\n\t * Whenever there's a plugin loaded and you select a menu item from the\r\n\t * menu bar, this method will be called. It should pause the plugin\r\n\t * implementing this method. If no pausing is neccessary, it can be\r\n\t * implemented as an emtpy method.\r\n\t */\r\n\tpublic void pause();\r\n\t\r\n\t/**\r\n\t * Has the opposite function as {@link #pause()}, it resumes the plugin\r\n\t * once the actions invoked by selecting a menu item is done.\r\n\t */\r\n\tpublic void resume();\r\n}", "@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}", "public interface Operator {\n /**\n * String literal to enter operator\n * @return\n */\n String getKey();\n\n void execute(EvaluatedParameters evaluatedParameters) throws ProcessorException;\n}", "public interface PluginProvider {\n\n /**\n * Returns an instance of the specified plugin by loading the plugin class through the specified class loader.\n *\n * @param type plugin type class\n * @param className plugin class name\n * @param classLoader class loader to be used to load the plugin class\n * @param <T> plugin type\n * @return instance of the plugin\n * @throws PluginLoadingException if en error occurred when loading or instantiation of the plugin\n */\n <T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;\n}", "private PluginsInternal() {}", "public interface AnalysisPluginInterface {\n\n\t/**\n\t * The framework will call this method to get the title of this analysis\n\t * plugin.\n\t * \n\t * @return The title.\n\t */\n\tString getTitle();\n\n\t/**\n\t * The framework will call this method to get the description of this\n\t * analysis plugin.\n\t * \n\t * @return The description.\n\t */\n\tString getDescription();\n\n\t/**\n\t * The framework will use the method to pass by a complete set of user's\n\t * data.\n\t * \n\t * @param data\n\t * A list of all person objects.\n\t */\n\tvoid setData(List<Person> data);\n\n\t/**\n\t * The framework will call this method to get the result. The result\n\t * should be presented in a JPanel.\n\t * \n\t * @return A JPanel the presents the result.\n\t */\n\tJPanel getPanel();\n\n}", "public interface OperatorInterface {\n public Object call(Engine engine, List<?> args);\n}", "void registerQuestionPlugin(QuestionPlugin plugin);", "public interface MultiversePlugin {\n\n /**\n * Gets the reference to MultiverseCore.\n *\n * @return A valid {@link MultiverseCore}.\n */\n @NotNull\n MultiverseCore getMultiverseCore();\n\n /**\n * Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol is.\n *\n * This number should change when something will break the code. Generally your plugin should be checking the\n * Multiverse-Core's protocol version to ensure compatibility.\n *\n * @return The protocol version.\n */\n int getProtocolVersion();\n\n /**\n * Returns the version string of this Multiverse Plugin.\n *\n * @return the version string of this Multiverse Plugin.\n */\n String getVersion();\n}", "protected abstract void onPluginEnable();", "public BuildAnalyzerPlugin() {\n\t\tsuper();\n\t\tmonitor.register();\n\t\tplugin = this;\n\t}", "private interface FakeVersionedPlugin extends VersionedPlugin, StoragePlugin {\n }", "public interface TTSPlugin extends Plugin{\n\n\t/**\n\t * Synthesize the given text and play the result.\n\t * \n\t * @param msg The text to synthesize.\n\t */\n\tpublic void sayText(String msg);\n}", "@Beta\npublic interface PluginEndpoint {\n /**\n * get the type of method parameter\n *\n * @return Type of method's first parameter\n * @throws IllegalArgumentException if argument list is empty\n */\n Type getMethodParameterType() throws IllegalArgumentException;\n\n /**\n * get the return type of plugin method\n *\n * @return return type of method\n */\n Type getResultType();\n\n /**\n * invoke method with the request object as parameter.\n *\n * @param reqest request object\n * @return result from invoking the object\n * @throws IOException when instantiating plugin before invoking method on it\n * @throws ClassNotFoundException when instantiating plugin before invoking method on it\n * @throws InvocationTargetException method invoke can throw\n * @throws IllegalAccessException method invoke can throw\n * @throws IllegalArgumentException method invoke can throw\n */\n Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;\n}", "void addPlugin(BaseComponentPlugin baseComponent);", "@Override\n public void register(PluginAPI api){\n if(api instanceof VPluginAPI){\n VPluginAPI vapi = (VPluginAPI) api;\n vapi.addComponent(ODECreator.class);\n vapi.addComponent(ODESolver.class);\n }\n }", "@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "public AbstractPlugin() { }", "public interface IPluginManager {\n\tpublic BasePluginPackage initPlugin(String pluginPath);\n\n\tpublic BasePluginPackage getPluginPackage(String packageName);\n\n\tpublic Class loadPluginClass(BasePluginPackage basePluginPackage, String className);\n}", "private PluginAPI() {\r\n\t\tsuper();\r\n\t}", "public void enable(CommonPlugin plugin);", "public interface Operator {\n\n Map<String, Operator> oprators = Factory.instance();\n\n /**\n * calculate first operator second such as 1 + 2\n * @param first\n * @param second\n * @return\n */\n @NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);\n\n int priority();\n\n\n\n class Factory {\n public static Map<String, Operator> instance() {\n Map<String, Operator> instance = new HashMap();\n\n instance.put(\"+\", new AddOperator());\n instance.put(\"-\", new SubOperator());\n instance.put(\"*\", new MultiOperator());\n instance.put(\"/\", new DiviOperator());\n\n return instance;\n }\n }\n\n}", "public interface ISimpleSuggestionPluginProvider extends ISuggestionPluginProvider {\n\n Collection<String> getSuggestions(String input, SuggestionRequestContext context);\n\n}", "public void loadPlugins()\n throws Exception\n {\n SecurityClassLoader securityClassLoader = new SecurityClassLoader(Plugin.class.getClassLoader(),\n ImmutableList.of(\"ideal.sylph.\", \"com.github.harbby.gadtry.\")); //raed only sylph-api deps\n this.loader = ModuleLoader.<Plugin>newScanner()\n .setPlugin(Plugin.class)\n .setScanDir(pluginDir)\n .setLoader(OperatorManager::serviceLoad)\n .setClassLoaderFactory(urls -> new VolatileClassLoader(urls, securityClassLoader)\n {\n @Override\n protected void finalize()\n throws Throwable\n {\n super.finalize();\n logger.warn(\"Jvm gc free ClassLoader: {}\", Arrays.toString(urls));\n }\n })\n .setLoadHandler(module -> {\n logger.info(\"loading module {} find {} Operator\", module.getName(), module.getPlugins().size());\n ModuleInfo moduleInfo = new ModuleInfo(module, new ArrayList<>());\n analyzeModulePlugins(moduleInfo);\n ModuleInfo old = userExtPlugins.put(module.getName(), moduleInfo);\n if (old != null) {\n Try.of(old::close).onFailure(e -> logger.warn(\"free old module failed\", e)).doTry();\n }\n }).load();\n }", "QuestionPlugin getQuestionPlugin(String type);", "@Override\n\tprotected void addRequestedOperators() {\n\t}", "public interface GeoServerPluginConfigurator {\r\n \r\n /**\r\n * Get the list of Resources used by the plugin.\r\n * \r\n * @return\r\n * @throws IOException\r\n */\r\n public List<Resource> getFileLocations() throws IOException;\r\n \r\n /**\r\n * Allows the plugin to store its configuration on the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to save its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void saveConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n \r\n /**\r\n * Allows the plugin to reload its configuration from the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to load its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void loadConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n\r\n}", "public void loadPluginsStartup();", "public interface PluginConfigType {\n public static final String PLUGIN_PROPERTY_NAME_PREFIX = \"pluginProperty_\";\n\n /**\n * Render the configuration item to the given writer. This should result in some form control element.\n * The name of the form control should be \"pluginProperty_\" followed by the pluginConfig.getKey().\n *\n * @param writer The writer to render to\n * @param pluginConfig The configuration to render\n * @param value The value to render\n * @throws IOException If an error occured\n */\n void render(JspWriter writer, PluginConfig pluginConfig, String value) throws IOException;\n\n /**\n * Validate the value entered the user\n * \n * @param pluginConfig The config to validate against\n * @param value The value to validate\n * @return null if validation passed, or a error message if not\n */\n String validate(PluginConfig pluginConfig, String value);\n\n}", "public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}", "public interface JavaEvaluator extends Evaluators {\n}", "public interface Operator\n{\n /**\n * Prueft, ob der Messwert das Testkriterium erfuellt.\n * Falls die Implementierung beispielsweise pruefen soll, ob ein\n * Maximalwert ueberschritten ist, muss sie dann \"true\" zurueckliefern,\n * wenn \"value\" groesser als \"limit\" ist.\n * @param sensor der Sensor samt seinem Messwert.\n * @param limit der festgelegte Grenzwert.\n * @return true, wenn die Bedingung erfuellt ist.\n * @throws IllegalArgumentException wenn die Parameter ungueltig sind.\n */\n public boolean matches(Sensor sensor, String limit) throws IllegalArgumentException;\n}", "void visitOperatorImpl(OperatorImpl operator);", "public void addPlugin(String key, T pluginClass);", "protected abstract PluginManager<String, BaseType> getPluginManager();", "public interface Operator {\n public Object operate(List<LispStatement> operands);\n\n}", "public interface IScreenPlugin {\n\t\n\tpublic void setActionContext(GuiPanel screen);\n\t\n}", "List<QuestionPlugin> getQuestionPlugins();", "public NormalizationPlugin()\n {\n super(\"Normalization\");\n }", "public interface PluginAdapterBuild extends PluginAdapterBase {\n\n /**\n * Defines the project frontend directory from where resources should be\n * copied from for use with webpack.\n *\n * @return {@link File}\n */\n\n File frontendResourcesDirectory();\n\n /**\n * Whether to generate a bundle from the project frontend sources or not.\n *\n * @return boolean\n */\n\n boolean generateBundle();\n\n /**\n * Whether to generate embeddable web components from WebComponentExporter\n * inheritors.\n *\n * @return boolean\n */\n\n boolean generateEmbeddableWebComponents();\n\n /**\n * Whether to use byte code scanner strategy to discover frontend\n * components.\n *\n * @return boolean\n */\n boolean optimizeBundle();\n\n /**\n * Whether to run <code>npm install</code> after updating dependencies.\n *\n * @return boolean\n */\n boolean runNpmInstall();\n\n}", "public Plug1CommandExecutor(Plug1 plugin) {\n\t\tthis.plugin = plugin;\n\t}", "@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }", "public interface BasicOperator {\n public double compute(double... args);\n}", "public SARLEclipsePlugin() {\n\t\tsetDefault(this);\n\t}", "public PluginCommand(@NotNull DropMultiplier plugin) {\n Preconditions.checkArgument(plugin != null, \"plugin cannot be null.\");\n this.plugin = plugin;\n }", "public interface PluginClient {\n\n /**\n * Retrieves all automator types readable by the user. If no automator types exist, returns an empty list.\n *\n * @return List of {@link co.cask.coopr.spec.plugin.AutomatorType} objects\n * @throws IOException in case of a problem or the connection was aborted\n */\n List<AutomatorType> getAllAutomatorTypes() throws IOException;\n\n /**\n * Retrieves a specific automator type if readable by the user.\n *\n * @return {@link co.cask.coopr.spec.plugin.AutomatorType} object\n * @throws IOException in case of a problem or the connection was aborted\n */\n AutomatorType getAutomatorType(String id) throws IOException;\n\n /**\n * Retrieves all provider types readable by the user. If no provider types exist, returns an empty list.\n *\n * @return List of {@link co.cask.coopr.spec.plugin.ProviderType} objects\n * @throws IOException in case of a problem or the connection was aborted\n */\n List<ProviderType> getAllProviderTypes() throws IOException;\n\n /**\n * Retrieves a specific provider type if readable by the user.\n *\n * @return {@link co.cask.coopr.spec.plugin.ProviderType} object\n * @throws IOException in case of a problem or the connection was aborted\n */\n ProviderType getProviderType(String id) throws IOException;\n\n /**\n * Retrieves a list of all versions of the given resource of the given type for the given automator type.\n * Method can optionally contain a 'status' parameter, whose value is one of 'active', 'inactive', 'staged', or\n * 'recalled' to filter the results to only contain resource that have the given status.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to get\n * @param status Status of the resources to get {@link co.cask.coopr.provisioner.plugin.ResourceStatus}.\n * Or null, for resources of any status are returned\n * @return Immutable map of resource name to resource metadata\n * @throws IOException in case of a problem or the connection was aborted\n */\n Map<String, Set<ResourceMeta>> getAutomatorTypeResources(String id, String resourceType, ResourceStatus status)\n throws IOException;\n\n /**\n * Retrieves a mapping of all resources of the given type for the given provider type.\n * Method can optionally contain a 'status' parameter, whose value is one of 'active', 'inactive', 'staged', or\n * 'recalled' to filter the results to only contain resource that have the given status.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to get\n * @param status Status of the resources to get {@link co.cask.coopr.provisioner.plugin.ResourceStatus}.\n * Or null, for resources of any status are returned\n * @return Immutable map of resource name to resource metadata\n * @throws IOException in case of a problem or the connection was aborted\n */\n Map<String, Set<ResourceMeta>> getProviderTypeResources(String id, String resourceType, ResourceStatus status)\n throws IOException;\n\n /**\n * Stage a particular resource version, which means that version of the resource will get pushed to provisioners\n * on the next sync call. Staging one version recalls other versions of the resource.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to stage\n * @param resourceName Name of the resource to stage\n * @param version Version of the resource to stage\n * @throws IOException in case of a problem or the connection was aborted\n */\n void stageAutomatorTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Stage a particular resource version, which means that version of the resource will get pushed to provisioners\n * on the next sync call. Staging one version recalls other versions of the resource.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to stage\n * @param resourceName Name of the resource to stage\n * @param version Version of the resource to stage\n * @throws IOException in case of a problem or the connection was aborted\n */\n void stageProviderTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Recall a particular resource version, which means that version of the resource will get removed from provisioners\n * on the next sync call.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to recall\n * @param resourceName Name of the resource to recall\n * @param version Version of the resource to recall\n * @throws IOException in case of a problem or the connection was aborted\n */\n void recallAutomatorTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Recall a particular resource version, which means that version of the resource will get removed from provisioners\n * on the next sync call.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to recall\n * @param resourceName Name of the resource to recall\n * @param version Version of the resource to recall\n * @throws IOException in case of a problem or the connection was aborted\n */\n void recallProviderTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Delete a specific version of the given resource.\n *\n * @param id Id of the automator type that has the resources\n * @param resourceType Type of resource to delete\n * @param resourceName Name of the resource to delete\n * @param version Version of the resource to delete\n * @throws IOException in case of a problem or the connection was aborted\n */\n void deleteAutomatorTypeResourceVersion(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Delete a specific version of the given resource.\n *\n * @param id Id of the provider type that has the resources\n * @param resourceType Type of resource to delete\n * @param resourceName Name of the resource to delete\n * @param version Version of the resource to delete\n * @throws IOException in case of a problem or the connection was aborted\n */\n void deleteProviderTypeResourceVersion(String id, String resourceType, String resourceName, String version)\n throws IOException;\n\n /**\n * Push staged resources to the provisioners, and remove recalled resources from the provisioners.\n *\n * @throws IOException in case of a problem or the connection was aborted\n */\n void syncPlugins() throws IOException;\n}", "public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}", "public interface Operacion {\n\n /**\n * Metodo que evalua el valor de un nodo del arbol, calculando su valor recorriendo a todos sus\n * hijos\n */\n Hojas eval();\n void agregar(Operacion op);\n Boolean isBin();\n}", "public interface DataImporter {\t\n\t\n\t/**\n\t * Abstract method used by plugins system.\n\t * This method is called when \"load XXXX using PLUGIN_NAME(PARAMS)\"\n\t * is executed in Cli.\n\t * \n\t * @param modname destination of import\n\t * @param data must contain data to be interpreted\n\t * @param params params to be parsed by importer\n\t * @throws FilterException\n\t */\n\tpublic void importData(String modname, String data, String params) throws FilterException;\n\n\t/**\n\t * Imports into a given object. Source of import is given in specific ImportFilter constructor, which is depending\n\t * on concrete implementation. This method may be called only once after filter creation. \n\t * \n\t * @param parent object inside which objects will be imported\n\t * @return returns OID of a newly created object \n\t * @throws DatabaseException\n\t * @throws FilterException\n\t * @throws ShadowObjectException \n\t */\n\tOID [] importInto(OID parent) throws DatabaseException, FilterException, ShadowObjectException;\n}", "protected void pluginInitialize() {}", "public CommandFramework(Plugin plugin) {\n this.plugin = plugin;\n\n if (plugin.getServer().getPluginManager() instanceof SimplePluginManager) {\n SimplePluginManager manager = (SimplePluginManager) plugin.getServer().getPluginManager();\n\n try {\n Field field = SimplePluginManager.class.getDeclaredField(\"commandMap\");\n field.setAccessible(true);\n map = (CommandMap) field.get(manager);\n } catch (IllegalArgumentException | NoSuchFieldException | IllegalAccessException | SecurityException e) {\n e.printStackTrace();\n }\n }\n }", "public interface Command_Quality {\r\n\t\r\n\tvoid execute();\r\n\r\n}", "public interface CEPEngineAdvanced extends CEPEngine {\n\n public <T extends Object>void insertObject(String name,T variable) throws UnsupportedOperationException;\n /**\n * Add additional package used in the engine\n * @param canonicalNameClassOrPkg String representing a class or a package path containing classes (e.g. my.package.*).\n *\n * @return <code>true</code> if the Class or Package Path was loaded into the CEP engine. <code>false</code> otherwise.\n * */\n public boolean loadAdditionalPackages( String canonicalNameClassOrPkg) throws Exception;\n public boolean setEngineTimeTo( Date date)throws Exception;\n public Date getEngineCurrentDate();\n}", "public interface Command {\n\t/**\n *it is used to be defined and to call engine methods\n */\n public void execute();\n \n}", "protected IAuthorizationPlugin getPlugin() {\n return plugin;\n }", "public abstract boolean execute(PlugInContext context) throws Exception;", "@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }", "Operator operator();", "public interface ICalculator {\n String add(String num1, String num2);\n}", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }", "public static Object gvContextPlugins(Object... arg) {\r\nUNSUPPORTED(\"ed1o9q8yu974j7v5vbap4dlsk\"); // GVC_t *gvContextPlugins(const lt_symlist_t *builtins, int demand_loading)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"8f3ds00y6y855lum5r1q8iguu\"); // GVC_t *gvc;\r\nUNSUPPORTED(\"8808fnx5fweuiso27n5bmlach\"); // agattr(NULL, AGNODE, \"label\", \"\\\\N\");\r\nUNSUPPORTED(\"1n7k6h7whkgv2pc7hm2vxrtlz\"); // gvc = gvNEWcontext(builtins, demand_loading);\r\nUNSUPPORTED(\"36nskub1lmc5t5yi3kt1v69ot\"); // gvconfig(gvc, 0); /* configure for available plugins */\r\nUNSUPPORTED(\"8vhd87hbzyu5ic6asaqlo81d5\"); // return gvc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}", "public interface IPSynthesizer {\n\n\t/**\n\t * Try to start the synthesizer\n\t */\n\tpublic void start();\n\n\t/**\n\t * Try to stop the synthesizer\n\t */\n\tpublic void stop();\n\n\t/**\n\t * Add a module presentation to the synthesizer\n\t * \n\t * @param module\n\t * presentation\n\t */\n\tpublic void addModule(IPModule module);\n\n\t/**\n\t * Remove a module presentation from the synthesizer\n\t * \n\t * @param module\n\t */\n\tpublic void removeModule(IPModule module);\n\n\t// INTERACTIONS\n\t/**\n\t * Start the synthesizer's presentation\n\t */\n\tpublic void c2pStart();\n\n\t/**\n\t * Stop the synthesizer's presentation\n\t */\n\tpublic void c2pStop();\n\n\t/**\n\t * The presentation must add the given module presentation\n\t * \n\t * @param presentation\n\t */\n\tpublic void c2pAddModule(IPModule module);\n\n\t/**\n\t * The presentation can remove the given module presentation\n\t * \n\t * @param presentation\n\t */\n\tpublic void c2pRemoveModuleOk(IPModule module);\n\n\t/**\n\t * The presentation can add the given module presentation\n\t * \n\t * @param presentation\n\t */\n\tpublic void c2pAddModuleOk(IPModule module);\n\n\t/**\n\t * The presentation can add the given wire presentation\n\t * \n\t * @param wire\n\t */\n\tpublic void c2pAddWire(IPWire presentation);\n\n\t/**\n\t * Remove a wire presentation from the synthesizer presentation\n\t * \n\t * @param pres\n\t */\n\tpublic void removeWire(IPWire pres);\n\n}", "public interface Visitor {\r\n \r\n /**\r\n * Visits an Operand and performs the action given when overriding\r\n * this method.\r\n * @param operand An Operand this Visitor has visited\r\n * @return \r\n * @see Operand\r\n */\r\n public void visit(Operand operand);\r\n \r\n /**\r\n * Visits an Operator and performs the action given when overriding\r\n * this method.\r\n * @param operator An Operator this Visitor has visited.\r\n * @see Operator\r\n */\r\n public void visit(Operator operator);\r\n \r\n}", "public interface SysPluginService extends BaseService<Sys_plugin> {\n}", "public APlugin getPlugin() {\n return plugin;\n }", "public interface NamedListPlugin {\n\tpublic void init(NamedList<?> args) throws ErrorException;\n}", "public MakePlugin() {\n super(\n new ExerciseBuilder(),\n new StudentFileAwareSubmissionProcessor(),\n new StudentFileAwareZipper(),\n new StudentFileAwareUnzipper());\n this.makeUtils = new MakeUtils();\n }", "public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}", "public DemoPluginFactory() {}", "public interface IMul {\n Var mul(Var var);\n\n}", "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is removed successfully, otherwise false\n */\n boolean remove(Object obj);\n}", "public interface ICalculator {\n\n int calculate(String exp);\n\n}", "public interface ArithmeticOperation {\n\n /**\n * Operation to be performed on two arguments\n *\n * @param argument1 first operand\n * @param argument2 second operand\n * @return result of the operation\n */\n double performeOperation(double argument1, double argument2);\n}", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "@Override\n protected void pluginInitialize() {\n // init();\n }", "public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}", "public final <C extends IOpipePluginExecution> C plugin(Class<C> __cl)\n\t\tthrows ClassCastException, NoSuchPluginException, NullPointerException\n\t{\n\t\tC rv = this.optionalPlugin(__cl);\n\t\tif (rv == null)\n\t\t\tthrow new NoSuchPluginException(\"No plugin exists, it is disabled, \" +\n\t\t\t\t\"or it failed to initialize for execution class \" + __cl);\n\t\treturn rv;\n\t}", "public interface PlatformInjector {\n /**\n * Injects the server connection. This will allow various addons (like getting the Floodgate\n * data and debug mode) to work.\n *\n * @throws Exception if the platform couldn't be injected\n */\n void inject() throws Exception;\n\n /**\n * Some platforms may not be able to remove their injection process. If so, this method will\n * return false.\n *\n * @return true if it is safe to attempt to remove our injection performed in {@link #inject()}.\n */\n default boolean canRemoveInjection() {\n return true;\n }\n\n /**\n * Removes the injection from the server. Please note that this function should only be used\n * internally (on plugin shutdown). This method will also remove every added addon.\n *\n * @throws Exception if the platform injection could not be removed\n */\n void removeInjection() throws Exception;\n\n /**\n * If the server connection is currently injected.\n *\n * @return true if the server connection is currently injected, returns false otherwise\n */\n boolean isInjected();\n\n /**\n * Adds an addon to the addon list of the Floodgate Injector (the addon is called when Floodgate\n * injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the addon to add to the addon list\n * @return true if the addon has been added, false if the addon is already present\n */\n boolean addAddon(InjectorAddon addon);\n\n /**\n * Removes an addon from the addon list of the Floodgate Injector (the addon is called when\n * Floodgate injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the class of the addon to remove from the addon list\n * @param <T> the addon type\n * @return the removed addon instance\n */\n <T extends InjectorAddon> T removeAddon(Class<T> addon);\n}", "public interface PluginIcons {\n\n Icon playFirst = IconLoader.getIcon(\"/icons/play_first.svg\", PluginIcons.class);\n Icon playPrevious = IconLoader.getIcon(\"/icons/play_back.svg\", PluginIcons.class);\n Icon play = IconLoader.getIcon(\"/icons/toolWindowRun.svg\", PluginIcons.class);\n Icon pause = IconLoader.getIcon(\"/icons/pause.svg\", PluginIcons.class);\n Icon playNext = IconLoader.getIcon(\"/icons/play_forward.svg\", PluginIcons.class);\n Icon playLast = IconLoader.getIcon(\"/icons/play_last.svg\", PluginIcons.class);\n Icon volume = IconLoader.getIcon(\"/icons/volume_up.svg\", PluginIcons.class);\n Icon volumeOff = IconLoader.getIcon(\"/icons/volume_off.svg\", PluginIcons.class);\n Icon autoPlayOff = IconLoader.getIcon(\"/icons/infinity.svg\", PluginIcons.class);\n Icon autoPlayOn = IconLoader.getIcon(\"/icons/infinity_on.svg\", PluginIcons.class);\n Icon showCodeOff = IconLoader.getIcon(\"/icons/showCode.svg\", PluginIcons.class);\n Icon showCodeOn = IconLoader.getIcon(\"/icons/showCode_on.svg\", PluginIcons.class);\n Icon jumpToCode = IconLoader.getIcon(\"/icons/stepOutCodeBlock.svg\", PluginIcons.class);\n Icon playCodecast = IconLoader.getIcon(\"/icons/play_codecast.svg\", PluginIcons.class);\n Icon refresh = IconLoader.getIcon(\"/icons/refresh.svg\", PluginIcons.class);\n}", "public interface ICompilerWorker extends IWorker {\n}", "public interface ICalculator\n{\n\tvoid setAction(IAction act);\n\n\tString calc(String[] args);\n}", "public static boolean loadPlugin(Class pluginClass, CytoscapeObj cytoscapeObj,\n CyWindow cyWindow) {\n if (pluginClass == null) {return false;}\n\n\n //System.out.println( \"AbstractPlugin loading: \"+pluginClass );\n\n //look for constructor with CyWindow argument\n if (cyWindow != null) {\n Constructor ctor = null;\n try {\n Class[] argClasses = new Class[1];\n argClasses[0] = CyWindow.class;//cyWindow.getClass();\n ctor = pluginClass.getConstructor(argClasses);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n\n\n// (SecurityException se) {\n// System.err.println(\"In AbstractPlugin.loadPlugin:\");\n// System.err.println(se.getMessage());\n// se.printStackTrace();\n// return false;\n// } catch (NoSuchMethodException nsme) {\n// //ignore, there are other constructors to look for\n// }\n\n \n\n if (ctor != null) {\n try {\n Object[] args = new Object[1];\n args[0] = cyWindow;\n return ctor.newInstance(args) != null;\n } catch (Exception e) {\n System.err.println(\"In AbstractPlugin.loadPlugin:\");\n System.err.println(\"Exception while constructing plugin instance:\");\n System.err.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }\n }\n return false;\n }", "void visitOperatorFunction(OperatorFunction operator);", "public interface ComparisonOperator{\r\n\r\n\t /** Set PropertyName\r\n\t */\r\n\tpublic void setPropertyName (String property);\r\n\t\r\n\t/**\r\n\t * Get PropertyName\r\n\t */\r\n\tpublic String getPropertyName();\r\n}" ]
[ "0.71153176", "0.68611807", "0.6777271", "0.67476946", "0.66914296", "0.66890174", "0.6675445", "0.6600494", "0.65375894", "0.6468842", "0.64489263", "0.6391207", "0.6298452", "0.62880903", "0.62418926", "0.61758226", "0.61574864", "0.6073088", "0.60571414", "0.60547274", "0.6019245", "0.5980994", "0.5976597", "0.59657276", "0.59467", "0.5942408", "0.59016854", "0.5878594", "0.58750504", "0.5866161", "0.5839447", "0.583809", "0.5768873", "0.57522744", "0.57321715", "0.570936", "0.5690543", "0.5644123", "0.56342024", "0.5598556", "0.55915564", "0.55887157", "0.5585834", "0.55783314", "0.5575485", "0.5570568", "0.5568211", "0.5563624", "0.5563316", "0.55559796", "0.5554324", "0.55220425", "0.55056167", "0.54964674", "0.54932433", "0.5489152", "0.5455495", "0.54525906", "0.5448541", "0.5411804", "0.54088885", "0.5406102", "0.53974944", "0.5389829", "0.53657854", "0.53501856", "0.5331824", "0.5330538", "0.5311281", "0.5300262", "0.5280349", "0.527997", "0.52782404", "0.5262735", "0.5255405", "0.52488637", "0.52420825", "0.5225348", "0.521541", "0.52134305", "0.52119833", "0.52113277", "0.5207113", "0.5200146", "0.51926315", "0.51924384", "0.5187322", "0.5182281", "0.517221", "0.5169389", "0.5159361", "0.51528966", "0.5146989", "0.51425695", "0.5138585", "0.51370597", "0.5133616", "0.51296246", "0.51293725", "0.5127829" ]
0.64306784
11
Method returns the hashmap with loaded plugins. Hashmap is inside PluginManager class.
public HashMap<String, T> getStorage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Plugin> getPlugins()\n {\n final List<Plugin> plugins;\n synchronized ( this )\n {\n plugins = Arrays.asList(pluginsLoaded.values().toArray(new Plugin[0]));\n }\n return Collections.unmodifiableCollection( plugins );\n }", "public JSONObject getPlugins() {\r\n\t\tJSONObject plugins = (JSONObject) super.get(PLUGINS_FIELD_NAME);\r\n\t\tif (plugins == null) {\r\n\t\t\tplugins = new JSONObject();\r\n\t\t\tsuper.put(PLUGINS_FIELD_NAME, plugins);\r\n\t\t}\r\n\t\treturn plugins;\r\n\t}", "public final static List<KaranteeniPlugin> getPluginInstances() {\r\n\t\treturn new ArrayList<KaranteeniPlugin>(kPluginInstances.values());\r\n\t}", "public Map<String, String> getPluginIdentifierToNameMap() {\n\t\treturn pluginIdentifierToNameMap;\n\t}", "@VisibleForTesting\n List<TimelineEntityGroupPlugin> getPlugins() {\n return cacheIdPlugins;\n }", "protected OwPluginStatusCachingUtility getPluginCache()\r\n {\r\n return this.pluginCache;\r\n }", "public void loadPluginsStartup();", "private void loadPlugins(){\r\n\t\tKomorebiCoreConfig config = new KomorebiCoreConfig();\r\n\t\t\r\n\t\tif(config.getRootNode().getChildrenCount(\"plugins\") < 1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tList<ConfigurationNode> pluginNodes = config.getRootNode().getChildren(\"plugins\").get(0).getChildren(\"plugin\");\r\n\t\tfor(int pos=0; pos<pluginNodes.size(); ++pos){\r\n\t\t\tString name = config.getString(\"plugins.plugin(\"+pos+\")[@name]\");\r\n\t\t\tString version = config.getString(\"plugins.plugin(\"+pos+\")[@version]\");\r\n\t\t\tif(version == null || name == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tloadPluginsJar(name+\"-\"+version); // check all classes in jar\r\n\t\t}\r\n\t}", "public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}", "public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}", "public HashMap<URL, HashSet<Nodemapper>> getLoadedFilesMap()\n {\n return this.loadedFiles;\n }", "private String[] detectPlugins() {\n \t\t\tchangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tparent.changeStampIsValid = false;\n \t\t\tparent.pluginsChangeStampIsValid = false;\n \n \t\t\tplugins = new ArrayList();\n \n \t\t\tif (!supportsDetection(resolvedURL))\n \t\t\t\treturn new String[0];\n \n \t\t\t// locate plugin entries on site\n \t\t\tFile root = new File(resolvedURL.getFile().replace('/', File.separatorChar) + PLUGINS);\n \t\t\tString[] list = root.list();\n \t\t\tString path;\n \t\t\tFile plugin;\n \t\t\tfor (int i = 0; list != null && i < list.length; i++) {\n \t\t\t\tpath = list[i] + File.separator + PLUGIN_XML;\n \t\t\t\tplugin = new File(root, path);\n \t\t\t\tif (!plugin.exists()) {\n \t\t\t\t\tpath = list[i] + File.separator + FRAGMENT_XML;\n \t\t\t\t\tplugin = new File(root, path);\n \t\t\t\t\tif (!plugin.exists())\n \t\t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tplugins.add(PLUGINS + \"/\" + path.replace(File.separatorChar, '/')); //$NON-NLS-1$\n \t\t\t}\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(resolvedURL.toString() + \" located \" + plugins.size() + \" plugin(s)\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\t}\n \n \t\t\treturn (String[]) plugins.toArray(new String[0]);\n \t\t}", "protected abstract PluginManager<String, BaseType> getPluginManager();", "private List<IUserLoginPlugin> getLoginPlugins()\n/* */ {\n/* 341 */ if (this.plugins == null)\n/* 342 */ this.plugins = PluginManager.newIns().getExtInstances(\"loginplugin\", IUserLoginPlugin.class);\n/* 343 */ return this.plugins;\n/* */ }", "public interface IPluginManager {\n\tpublic BasePluginPackage initPlugin(String pluginPath);\n\n\tpublic BasePluginPackage getPluginPackage(String packageName);\n\n\tpublic Class loadPluginClass(BasePluginPackage basePluginPackage, String className);\n}", "public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }", "@Nonnull\n public List<Class<? extends PluginInterface>> loadPlugins(@Nonnull String pluginDirName) {\n\n List<Class<? extends PluginInterface>> plugins=new ArrayList<>();\n\n //Директория для просмотра файлов\n File pluginDirectory=new File(pluginDirName);\n File[] files=pluginDirectory.listFiles((dir, name) -> name.endsWith(PLUGIN_EXT));\n\n //Загрузка плагинов\n if(files!=null && files.length>0) {\n getPluginsClasses(files).forEach(className->{\n try {\n //Получим свой загрузчик файлов и загрузим с помощью него плагины\n Class cls=getClassLoaderByFilesURL(files)\n .loadClass(className\n .replaceAll(\"/\",\".\")\n .replace(\".class\",\"\"));\n\n //Если класс расширяет PluginInterface, то добавим этот класс в массив\n Class[] interfaces=cls.getInterfaces();\n for(Class intface:interfaces) {\n if(intface.equals(PluginInterface.class)) {\n plugins.add(cls);\n }\n }\n }\n catch (Exception e){\n e.printStackTrace();\n }\n });\n }\n\n return plugins;\n }", "private HashMap getRuntimeImport() {\n \t\tURL url = InternalBootLoader.class.getProtectionDomain().getCodeSource().getLocation();\n \t\tString path = InternalBootLoader.decode(url.getFile());\n \t\tFile base = new File(path);\n \t\tif (!base.isDirectory())\n \t\t\tbase = base.getParentFile(); // was loaded from jar\n \n \t\t// find the plugin.xml (need to search because in dev mode\n \t\t// we can have some extra directory entries)\n \t\tFile xml = null;\n \t\twhile (base != null) {\n \t\t\txml = new File(base, BOOT_XML);\n \t\t\tif (xml.exists())\n \t\t\t\tbreak;\n \t\t\tbase = base.getParentFile();\n \t\t}\n \t\tif (xml == null)\n \t\t\tthrow new RuntimeException(Policy.bind(\"error.boot\")); //$NON-NLS-1$\n \n \t\ttry {\n \t\t\treturn getImport(xml.toURL(), RUNTIME_PLUGIN_ID);\n \t\t} catch (MalformedURLException e) {\n \t\t\treturn null;\n \t\t}\n \t}", "public boolean arePluginsLoaded() {\n return pluginsLoaded.get();\n }", "public PluginInfo getInfo() {\r\n if(mPluginInfo == null) {\r\n String name = mLocalizer.msg(\"pluginName\", \"View List Plugin\");\r\n String desc = mLocalizer.msg(\"description\", \"Shows a List of current running Programs\");\r\n String author = \"Bodo Tasche\";\r\n \r\n mPluginInfo = new PluginInfo(ListViewPlugin.class, name, desc, author);\r\n }\r\n \r\n return mPluginInfo;\r\n }", "public void loadPlugins()\n throws Exception\n {\n SecurityClassLoader securityClassLoader = new SecurityClassLoader(Plugin.class.getClassLoader(),\n ImmutableList.of(\"ideal.sylph.\", \"com.github.harbby.gadtry.\")); //raed only sylph-api deps\n this.loader = ModuleLoader.<Plugin>newScanner()\n .setPlugin(Plugin.class)\n .setScanDir(pluginDir)\n .setLoader(OperatorManager::serviceLoad)\n .setClassLoaderFactory(urls -> new VolatileClassLoader(urls, securityClassLoader)\n {\n @Override\n protected void finalize()\n throws Throwable\n {\n super.finalize();\n logger.warn(\"Jvm gc free ClassLoader: {}\", Arrays.toString(urls));\n }\n })\n .setLoadHandler(module -> {\n logger.info(\"loading module {} find {} Operator\", module.getName(), module.getPlugins().size());\n ModuleInfo moduleInfo = new ModuleInfo(module, new ArrayList<>());\n analyzeModulePlugins(moduleInfo);\n ModuleInfo old = userExtPlugins.put(module.getName(), moduleInfo);\n if (old != null) {\n Try.of(old::close).onFailure(e -> logger.warn(\"free old module failed\", e)).doTry();\n }\n }).load();\n }", "public Path getPluginsDirectory()\n {\n return pluginDirectory;\n }", "public static List<String> getPluginsByType(PluginType t){\r\n\t\tMap<String, Class<IKomorebiPlugin>> plugins = instance.pluginRegister.get(t);\r\n\t\tif(plugins == null){\r\n\t\t\treturn new ArrayList<String>();\r\n\t\t}\r\n\t\treturn new ArrayList<String>(plugins.keySet());\r\n\t}", "public Map<String, Script> getScriptsMap()\n\t{\n\t\treturn scripts;\n\t}", "List<QuestionPlugin> getQuestionPlugins();", "public List<String> getAllPluginNames() {\n\t\treturn allPluginNames;\n\t}", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "@Nonnull @NotEmpty public Map<PluginVersion, VersionInfo> getAvailableVersions() {\n ComponentSupport.ifNotInitializedThrowUninitializedComponentException(this);\n return versionInfo;\n }", "public PluginLocation[] getBuiltinPluginLocations()\r\n {\r\n java.lang.String conf = \"/net/sf/xpontus/plugins/plugins.txt\";\r\n\r\n InputStream is = null;\r\n LineIterator it = null;\r\n\r\n List<PluginLocation> locations = new ArrayList<PluginLocation>();\r\n\r\n try\r\n {\r\n is = getClass().getResourceAsStream(conf);\r\n it = IOUtils.lineIterator(is, \"UTF-8\");\r\n\r\n while (it.hasNext())\r\n {\r\n String line = it.nextLine();\r\n\r\n PluginLocation loc = getPluginLocation(line);\r\n locations.add(loc);\r\n }\r\n }\r\n catch (IOException ex)\r\n {\r\n LOG.error(ex.getMessage(), ex);\r\n }\r\n finally\r\n {\r\n if (is != null)\r\n {\r\n IOUtils.closeQuietly(is);\r\n }\r\n\r\n if (it != null)\r\n {\r\n LineIterator.closeQuietly(it);\r\n }\r\n }\r\n\r\n return (PluginLocation[]) locations.toArray(new PluginLocation[0]);\r\n }", "public final synchronized Map<String, PlugInBean> m104s() {\n return null;\n }", "@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }", "public static Map<String, PlayerConfig> getPlayers() {\n return players;\n }", "private Map<String, IPlugin> toPlugins( Market market ) {\n Collection<Market.MarketEntry> marketEntries = market.getMarketEntry();\n Map<String, IPlugin> plugins = new HashMap<>( marketEntries.size() );\n\n int rank = 0;\n for ( Market.MarketEntry entry : marketEntries ) {\n plugins.put( entry.getId(), this.toPlugin( entry, rank++ ) );\n }\n\n return plugins;\n }", "@GET\n @Path(\"/typesByPlugin\")\n public Map<Long, List<PluginType>> getTypesByPlugin() {\n return definitionsService.getTypesByPlugin();\n }", "private ArrayList<MapPlugin> listPlugins(String type) {\r\n System.out.println(\"===== HomeController.listPlugins() starting with type : \" + type);\r\n System.out.println(\"List plugins of type \" + type);\r\n ArrayList<MapPlugin> pluginList = new ArrayList();\r\n String plugins = env.getProperty(\"plugins.\" + type);\r\n if (plugins != null) {\r\n /* Unpick the value: <control_name>,<login|public>,<caption>,<tooltip>,<icon_class>,<js_filename>,<ext_css>,<ext_js> */\r\n String[] pluginArr = plugins.split(\",\");\r\n if (pluginArr.length % 8 == 0) {\r\n /* Plausible */ \r\n System.out.println(\"Properties file record is of plausible length\");\r\n for (int i = 0; i < pluginArr.length; i += 8) {\r\n MapPlugin mp = new MapPlugin();\r\n mp.setName(pluginArr[i]);\r\n mp.setAllowed_usage(pluginArr[i+1]);\r\n mp.setCaption(pluginArr[i+2]);\r\n mp.setTooltip(pluginArr[i+3]);\r\n mp.setIconclass(pluginArr[i+4]);\r\n mp.setJs_filename(pluginArr[i+5]);\r\n mp.setExt_css(pluginArr[i+6]);\r\n mp.setExt_js(pluginArr[i+7]);\r\n System.out.println(\"--> Name : \" + mp.getName());\r\n System.out.println(\"--> Icon class : \" + mp.getIconclass());\r\n System.out.println(\"--> JS file : \" + mp.getJs_filename());\r\n System.out.println(\"--> External CSS resources : \" + mp.getExt_css());\r\n System.out.println(\"--> External JS resources : \" + mp.getExt_js());\r\n pluginList.add(mp);\r\n } \r\n }\r\n }\r\n System.out.println(\"===== HomeController.listPlugins() complete\");\r\n return(pluginList.isEmpty() ? null : pluginList);\r\n }", "java.util.List<com.google.wireless.android.sdk.stats.CriticalPathAnalyzerData.PluginBuildData>\n getPluginsCriticalPathList();", "private static void initPlugins() {\n \tJSPFProperties props = new JSPFProperties();\n PluginManager pm = PluginManagerFactory.createPluginManager(props);\n pm.addPluginsFrom(new File(\"plugins/\").toURI());\n JavaBot.plugins = new PluginManagerUtil(pm).getPlugins(javaBotPlugin.class);\n }", "public PluginRegister getRegisterManager(){\n return pluginRegister;\n }", "public Map getKeyMethodMap() {\r\n\t\tMap map = new HashMap();\r\n\r\n\t\tString pkg = this.getClass().getPackage().getName();\r\n\t\tResourceBundle methods = ResourceBundle.getBundle(pkg\r\n\t\t\t\t+ \".LookupMethods\");\r\n\r\n\t\tEnumeration keys = methods.getKeys();\r\n\r\n\t\twhile (keys.hasMoreElements()) {\r\n\t\t\tString key = (String) keys.nextElement();\r\n\t\t\tmap.put(key, methods.getString(key));\r\n\t\t}\r\n\r\n\t\treturn map;\r\n\t}", "public static PluginManager getInstance() {\n\t\tif (pm == null) {\n\t\t\tpm = new PluginManager();\n\t\t}\n\t\treturn pm;\n\t}", "private List<Object> pluginPropertyDefinitions() {\n List<Object> extensions = new ArrayList<>();\n extensions.add(getProperty(Constants.ENABLED, \"Plugin enabled\",\n \"Are Teams notifications enabled in general?\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.BYPASS_HTTPS_VALIDATION, \"Bypass HTTPS Validation\",\n \"Bypass SSL/TLS certificate validation on HTTPS requests (useful for proxies)\",\n \"false\", PropertyType.BOOLEAN));\n extensions.add(getProperty(Constants.PROXY_IP, \"Proxy Server\",\n \"Domain or IP address of proxy server to use\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PORT, \"Proxy Port\",\n \"Port for the proxy server\",\n \"8080\", PropertyType.INTEGER));\n extensions.add(getProperty(Constants.PROXY_USER, \"Proxy User\",\n \"User name for proxy authentication\",\n \"\", PropertyType.STRING));\n extensions.add(getProperty(Constants.PROXY_PASS, \"Proxy Password\",\n \"Password for proxy authentication\",\n \"\", PropertyType.PASSWORD));\n return extensions;\n }", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public static String getPluginsLocation() {\r\n return pluginsLocation.getValue();\r\n }", "public Map getWebServiceModules() {\n Map map = new HashMap();\n\n // admin config context\n ConfigContext configCtx = AdminService.getAdminService().\n getAdminContext().getAdminConfigContext();\n\n CacheMgr mgr = CacheMgr.getInstance();\n\n // j2ee application\n Map apps = mgr.getJ2eeApplications();\n Collection aValues = apps.values();\n for (Iterator iter=aValues.iterator(); iter.hasNext();) {\n J2eeApplication app = (J2eeApplication) iter.next();\n\n // ejb bundles\n List ejbBundles = app.getEjbBundles();\n if (ejbBundles != null) {\n for (Iterator itr=ejbBundles.iterator(); itr.hasNext();) {\n String ejb = (String) itr.next();\n try {\n Map m = getEjbBundleInfo(configCtx, app.getName(), ejb);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n\n // web bundles \n List webBundles = app.getWebBundles();\n if (webBundles != null) {\n for (Iterator itr=webBundles.iterator(); itr.hasNext();) {\n String web = (String) itr.next();\n try {\n Map m = getWebBundleInfo(configCtx, app.getName(), web);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n }\n }\n\n // stand alone ejb module\n Map ejbs = mgr.getEjbModules();\n Collection eValues = ejbs.values();\n for (Iterator iter=eValues.iterator(); iter.hasNext();) {\n String ejbMod = (String) iter.next();\n try {\n Map m = getEjbModuleInfo(configCtx, ejbMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n // stand alone web module\n Map webs = mgr.getWebModules();\n Collection wValues = webs.values();\n for (Iterator iter=wValues.iterator(); iter.hasNext();) {\n String webMod = (String) iter.next();\n\n try {\n Map m = getWebModuleInfo(configCtx, webMod);\n map.put(m.get(WebServiceInfoProvider.\n SUN_WEB_XML_LOCATION_PROP_NAME), m);\n } catch (RepositoryException re) { }\n }\n\n return map;\n }", "public static HashMap getInterfaces() {\n\t\treturn interfacehashmapAlreadyImpl;\r\n\t\t\r\n\t}", "private synchronized static Map getListeners() {\n\t\tif (registeredListeners == null) {\n\t\t\tregisteredListeners = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\treturn registeredListeners;\n\t}", "public static Map<String, DSEMergeConfigurator> initializeConfiguration() {\n try {\n configuratorMapping = Maps.newHashMap();\n IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(CONFIGURATION_POINT);\n for (IExtension ext : extensionPoint.getExtensions()) {\n\n for (IConfigurationElement conf : ext.getConfigurationElements()) {\n String uri = conf.getAttribute(URI_ATTRIBUTE);\n DSEMergeConfigurator configurator;\n configurator = (DSEMergeConfigurator) conf.createExecutableExtension(CLASS_ATTRIBUTE);\n if (uri != null && configurator != null)\n configuratorMapping.put(uri, configurator);\n }\n }\n } catch (InvalidRegistryObjectException | CoreException e) {\n logger.error(e.getMessage(),e);\n }\n return configuratorMapping;\n }", "public Map<ComponentId, CHILD> getComponentMap() {\n return Collections.unmodifiableMap(producerById);\n }", "public Map<String, Object> getInfoMap()\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n this.putInMap(paramMap);\n return paramMap;\n }", "public Object GetPlugin()\r\n\t{\r\n\t\tif (_isSingleton)\r\n\t\t{\r\n\t\t\tif (_singletonPlugin == null)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\t_singletonPlugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n \ttry\r\n \t{\r\n XmlFramework.DeserializeXml(_configuration, _singletonPlugin);\r\n \t}\r\n catch(Exception e)\r\n {\r\n _singletonPlugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \t\tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n\t\t\t}\r\n\t\t\treturn _singletonPlugin;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tObject plugin = null;\r\n\t\t\ttry {\r\n\t\t\t\tplugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n try\r\n {\r\n XmlFramework.DeserializeXml(_configuration, plugin);\r\n }\r\n catch(Exception e)\r\n {\r\n plugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n return plugin;\r\n\t\t}\r\n\t}", "public PluginInfo getInfo() {\r\n return new devplugin.PluginInfo(TvBrowserDataService.class,\r\n mLocalizer.msg(\"name\",\"EPGfree data\"),\r\n mLocalizer.msg(\"description\", \"Data that is available for free with mostly German, Swiss, Austrian and Danish channels.\"),\r\n \"Til Schneider, www.murfman.de\",\r\n mLocalizer.msg(\"license\",\"Terms of Use:\\n=============\\nAll TV/Radio listings provided by TV-Browser (http://www.tvbrowser.org) are protected by copyright laws and may only be used within TV-Browser or other name like applications authorizied by the manufacturer of TV-Browser (http://www.tvbrowser.org) for information about the upcoming program of the available channels.\\nEvery other manner of using, reproducing or redistributing of the TV/Radio listings is illegal and may be prosecuted on civil or criminal law.\\n\\nOn downloading the TV/Radio listings you declare your agreement to these terms.\\n\\nIf you have any questions concerning these terms please contact [email protected]\"));\r\n }", "Plugin getPlugin();", "public List getPluginInfoList(String pluginType) {\n\t\treturn (List) pluginTypeInfoMap.get(pluginType);\n\t}", "public void reInitialize() {\n lock.writeLock().lock();\n try {\n extensionPointPluginMap = HashBasedTable.create();\n final PluginRegistry registry = PluginRegistry.getInstance();\n List<IPlugin> extensionPointPlugins = registry.getPlugins(ExtensionPointPluginType.class);\n for (IPlugin extensionPointPlugin : extensionPointPlugins) {\n addExtensionPoint(extensionPointPlugin);\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "public static String[] getInfo(){\n\t\n\t\treturn new String[]{\n\t\t\t\t\"plugin_name\",\n\t\t\t\t\"plugin_host\",\n\t\t\t\t\"plugin_version\",\n\t\t\t\t\"plugin_author\"\n\t\t};\n\t\t\t\t\n\t}", "public List<String> getPluginNames() {\n\t\tList<String> pluginNames = new ArrayList<String>();\n\t\tfor (Plugin plugin : pluginManager.getPlugins(Plugin.class)) {\n\t\t\tif (StringUtils.isEmpty(plugin.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpluginNames.add(plugin.getName().trim());\n\t\t}\n\t\treturn pluginNames;\n\t}", "public PropertyResourceBundle getPluginProperties() {\r\n\t\tif (pluginProperties == null) {\r\n\t\t\ttry {\r\n\t\t\t\tpluginProperties = JDTUtil.getPluginProperties(getBundle());\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pluginProperties;\r\n\t}", "public final synchronized Map<String, PlugInBean> m76E() {\n return null;\n }", "private void fillPluginList() {\n\t\tlesSitesPlugin = new ArrayList<HashMap<String, String>>();\n\t\tcategories = new ArrayList<String>();\n\t\tPackageManager packageManager = getPackageManager();\n\t\tIntent baseIntent = new Intent(ACTION_PICK_PLUGIN);\n\t\tbaseIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);\n\t\tList<ResolveInfo> list = packageManager.queryIntentServices(baseIntent, PackageManager.GET_RESOLVED_FILTER);\n\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\tResolveInfo info = list.get(i);\n\t\t\tServiceInfo sinfo = info.serviceInfo;\n\t\t\t IntentFilter filter = info.filter;\n\t\t\tNotification.log(tag, \"taille de la liste de Plugin: \" + i + 1 + \"; sinfo: \" + sinfo);\n\t\t\tif (sinfo != null) {\n\t\t\t\t HashMap<String, String> item = new HashMap<String, String>();\n\t\t\t\t item.put(KEY_PKG, sinfo.packageName); // nom du package\n//\t\t\t\t item.put(KEY_SERVICENAME, StringLt.lastSegment(sinfo.name, '.')); // nom du plugin\n\t\t\t\t item.put(KEY_SERVICENAME, sinfo.name);\n\t\t\t\t String firstCategory = null;\n\t\t\t\t if (filter != null) {\n\t\t\t\t StringBuilder actions = new StringBuilder();\n\t\t\t\t for (Iterator<String> actionIterator = filter.actionsIterator(); actionIterator.hasNext();) {\n\t\t\t\t String action = actionIterator.next();\n\t\t\t\t if (actions.length() > 0)\n\t\t\t\t actions.append(\",\");\n\t\t\t\t actions.append(action);\n\t\t\t\t }\n\t\t\t\t StringBuilder categories = new StringBuilder();\n\t\t\t\t for (Iterator<String> categoryIterator = filter.categoriesIterator(); categoryIterator.hasNext();) {\n\t\t\t\t String category = categoryIterator.next();\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = category;\n\t\t\t\t if (categories.length() > 0)\n\t\t\t\t categories.append(\",\");\n\t\t\t\t categories.append(category);\n\t\t\t\t }\n\t\t\t\t// item.put(KEY_ACTIONS, new\n\t\t\t\t// String(StringLt.lastSegment(actions.toString(), '.')));\n\t\t\t\t// item.put(KEY_CATEGORIES, new\n\t\t\t\t// String(StringLt.lastSegment(categories.toString(),\n\t\t\t\t// '.')));\n\t\t\t\t item.put(KEY_ACTIONS, new String(actions));\n\t\t\t\t item.put(KEY_CATEGORIES, new String(categories));\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t item.put(KEY_ACTIONS, \"<null>\");\n\t\t\t\t item.put(KEY_CATEGORIES, \"<null>\");\n\t\t\t\t }\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = \"\";\n\t\t\t\t categories.add(firstCategory);\n\t\t\t\t lesSitesPlugin.add(item);\n\t\t\t\t// lesSitesPlugin.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t\tlesSites.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t}\n\t\t}\n\t}", "public Map<String, Object> getInfoMap() {\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tthis.putInMap(paramMap);\n\t\treturn paramMap;\n\t}", "public JsonObject getPluginData() {\n JsonObject data = new JsonObject();\n \n String pluginName = plugin.getDescription().getName();\n String pluginVersion = plugin.getDescription().getVersion();\n \n data.addProperty(\"pluginName\", pluginName); // Append the name of the plugin\n data.addProperty(\"id\", pluginId); // Append the id of the plugin\n data.addProperty(\"pluginVersion\", pluginVersion); // Append the version of the plugin\n \n data.add(\"customCharts\", new JsonArray());\n \n return data;\n }", "void bootPlugins() {\n\t\tList<List<String>>vals = (List<List<String>>)properties.get(\"PlugInConnectors\");\n\t\tif (vals != null && vals.size() > 0) {\n\t\t\tString name, path;\n\t\t\tIPluginConnector pc;\n\t\t\tList<String>cntr;\n\t\t\tIterator<List<String>>itr = vals.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tcntr = itr.next();\n\t\t\t\tname = cntr.get(0);\n\t\t\t\tpath = cntr.get(1);\n\t\t\t\ttry {\n\t\t\t\t\tpc = (IPluginConnector)Class.forName(path).newInstance();\n\t\t\t\t\tpc.init(this, name);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogError(e.getMessage(), e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int size() {\n\t\treturn plugins.size();\n\t}", "Map<String, FileModule> getSymbolMap() {\n Map<String, FileModule> out = new LinkedHashMap<>();\n for (FileModule module : fileToModule.values()) {\n for (String symbol : module.importedNamespacesToSymbols.keySet()) {\n out.put(symbol, module);\n }\n }\n return out;\n }", "public static Plugin getPlugin() {\n return plugin;\n }", "public Map<String, Object> getGlobals() {\n return globals;\n }", "public static IP_Main getPluginInstance() { return pluginInstance; }", "private static Map<String, Greetable> loadHandlers() {\n Map<String, Greetable> result = new HashMap<>();\n\n try (InputStream is = Server.class.getClassLoader()\n .getResourceAsStream(\"server.properties\")){\n\n Properties properties = new Properties();\n properties.load(is);\n\n //Get full name of handler class by associated map key\n for (Object command : properties.keySet()) {\n String className = properties.getProperty(command.toString());\n //Get link on class realizzation\n Class<Greetable> cl = (Class<Greetable>) Class.forName(className);\n //Get class entity\n Greetable handler = cl.getConstructor().newInstance();\n result.put(command.toString(), handler);\n\n }\n\n } catch (Exception e){\n e.printStackTrace(System.out);\n }\n\n\n return result;\n }", "Set<DependencyDescriptor> getPluginDependencyDescriptors() {\n return pluginDependencyDescriptors;\n }", "public synchronized PluginClassLoader getPluginClassloader( Plugin plugin )\n {\n return classloaders.get( plugin );\n }", "public Map<String, WorldConfig> getWorldConfigs() {\n\t\treturn Collections.unmodifiableMap(WorldCfg);\n\n\t}", "public Map<String, ?> getAll() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return sharedPreferences.getAll();\r\n }", "private PluginsInternal() {}", "private PluginLoader<Object> createPluginLoader() {\n return PluginLoader.forType(Object.class)\n .ifVersionGreaterOrEqualTo(JAVA_9).load(pluginTypeBetweenJava9AndJava13.getName())\n .ifVersionGreaterOrEqualTo(JAVA_14).load(pluginTypeAfterJava13.getName())\n .fallback(newInstance(pluginTypeBeforeJava9));\n }", "public static HashMap<String, Shelter> getMap() {\n return shelters;\n }", "public void loadAllPlugins(final String extPointId);", "public static Set<String> getPluginNamesOfType(String interfaceName) { \n if (PLUGINS.get(interfaceName) != null) {\n return PLUGINS.get(interfaceName).keySet();\n }\n \n return null;\n }", "public LibraryMap getLibrariesMap() {\n return librariesMap;\n }", "public Map<String, SmartHomeHub> getCachedInterfaces();", "public Map<Object, Object> getGlobalMap() {\n return Collections.unmodifiableMap(globalMap);\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }", "Map<String, RemoteModule> allModulesByKey();", "public Map<String, SmartHomeHub> loadInterfaces();", "public Map<String, Player> getPlayersMap(){\n return this.players;\n }", "@Override\n public List<Module> getPluginModules(ServletContext context) {\n List<Module> modules = new ArrayList<>();\n\n modules.add(new PushLiquibaseModule(context));\n modules.add(new PushPersistenceModule(context));\n modules.add(new PushRestModule());\n\n return modules;\n }", "Plugin getPlugin( );", "public interface IPlugin {\n void setParam(IParam param);\n\n IParam getParam();\n\n void setMonitor(IPluginMonitor monitor);\n\n IPluginMonitor getMonitor();\n\n void init();\n\n void connection();\n\n void finish();\n\n Map<String, String> getMonitorInfo();\n}", "private Map<String, TestModuleHolder> getTestModules() {\n\t\treturn testModuleSupplier.get();\n\t}", "int getPluginsCriticalPathCount();", "public Map<String, Object> getBzlGlobals() {\n return bzlGlobals;\n }", "public Map<String, Object> getComponentConfiguration() {\n\t\treturn null;\n\t}", "public final ClassMap getUsedClassMap()\n {\n return useClassMap;\n }", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "public static List<String[]> getPluginDomains() {\r\n final List<String[]> ret = new ArrayList<String[]>();\r\n // each entry in List<String[]> will result in one PluginForHost, Plugin.getHost() will return String[0]->main domain\r\n ret.add(new String[] { \"brfiles.com\" });\r\n return ret;\r\n }", "public interface IPluginLibrary {\n \n /*\n * Initializes the library\n */\n public void initialize(DefaultPluginsCollector collector);\n \n /*\n * Start the module and initialize components\n */\n public void startLibrary();\n \n /*\n * Fetches all extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return The gathered plugins in a LinkedList\n */\n public void loadAllPlugins(final String extPointId);\n \n /*\n * Fetches new extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return A human readable string\n */\n public String loadNewPlugin(final String extPointId); \n \n /**\n * Checks a plugin for validity.\n * \n * @param plugin The plugin to check\n * @param The level to test against, this method will return true if the result is greater or\n * equal than the testLevel\n * @return true or false\n */\n public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);\n\n /**\n * Answer a request by searching plugin-library for function and executing\n * them.\n * \n * @param req The {@link ExtendedQequest} to answer.\n * \n * @return The generated {@link MResponse}.\n */\n public MResponse executeRequest(ExtendedRequest req);\n\n \n public List<PluginInformation> getPluginInformation();\n \n /**\n * Returns a list of example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of example calls\n */\n public List<MExampleCall> getExampleCalls();\n \n /**\n * Returns a list of 5 randomly choosen example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of 5 randomly choosen example calls\n */\n public List<MExampleCall> getRandomExampleCalls();\n \n public Map<String, Pair<Boolean, MartinPlugin> > getPluginExtentions();\n}", "@Override\n\tpublic Map<String, FREFunction> getFunctions() \n\t{\n\t\tLog.d(TAG, \"Registering Extension Functions\");\n\t\tMap<String, FREFunction> functionMap = new HashMap<String, FREFunction>();\n\t\tfunctionMap.put(\"isInstalled\", new IsInstalledFunction());\n\t\tfunctionMap.put(\"shareText\", new ShareTextFunction());\n\t\tfunctionMap.put(\"shareImage\", new ShareImageFunction());\n\t\t// add other functions here\n\t\treturn functionMap;\t\n\t}", "public java.util.Map<java.lang.String, java.lang.String> getAppClientParas() {\n return internalGetAppClientParas().getMap();\n }", "public Map getESBManagers()\n\t{\n\t\tMap mgrs = (Map)cache( \"esbManagers\" );\t\t\n\t\t\n\t\tif ( mgrs == null )\n\t\t{\n\t\t\tmgrs = new HashMap();\n\t\t\tCollection names \t= getESBManagerNames();\n\t\t\t\n\t\t\tIterator iter\t\t= names.iterator();\n\t\t\tString name\t\t\t= null;\n\t\t\t\t\n\t\t\twhile( iter.hasNext() )\n\t\t\t{\n\t\t\t\tname = (String)iter.next();\n\t\t\t\tmgrs.put( name, getESBManagerData( name ) );\n\t\t\t}\n\t\t\t\n\t\t\tcache( \"esbManagers\", mgrs );\n\t\t}\n\t\t\n\t\treturn( mgrs );\n\t\t\n\t}", "public static Set<InstalledPlugin> collectPlugins(ClassLoaderLifeCycle classLoaderLifeCycle,\n Path directory)\n throws IOException\n {\n PluginProcessor processor = new PluginProcessor(classLoaderLifeCycle, directory);\n\n return processor.collectPlugins(classLoaderLifeCycle.getBootstrapClassLoader());\n }", "public Map<String, Object> getGlobals() {\n return Collections.unmodifiableMap(globals);\n }" ]
[ "0.7058659", "0.6948148", "0.671068", "0.6461489", "0.6442092", "0.6387785", "0.6335065", "0.62521785", "0.6158933", "0.6136379", "0.6131197", "0.60455483", "0.60241693", "0.5957077", "0.5927018", "0.5924659", "0.5914378", "0.5899453", "0.5853745", "0.58311164", "0.57931817", "0.5695361", "0.5682213", "0.5678324", "0.5677099", "0.5672286", "0.5650737", "0.5643079", "0.5613526", "0.5611372", "0.56030387", "0.55994487", "0.55906385", "0.55774254", "0.5574409", "0.5549327", "0.5539747", "0.5524153", "0.5519575", "0.55058295", "0.5495985", "0.5432042", "0.5421962", "0.5414812", "0.54045826", "0.53929204", "0.5368906", "0.5349993", "0.5344032", "0.5337806", "0.532445", "0.5320818", "0.5318881", "0.53081465", "0.5300027", "0.5295395", "0.52881896", "0.5286523", "0.5276882", "0.5265558", "0.5242733", "0.52415967", "0.52373654", "0.5229687", "0.522225", "0.5220142", "0.52193314", "0.52170163", "0.52090365", "0.52049106", "0.51849324", "0.5175323", "0.5175217", "0.5169853", "0.51662844", "0.51648396", "0.5158255", "0.51503086", "0.5146284", "0.51352537", "0.51259875", "0.51259875", "0.5119048", "0.51163197", "0.5104029", "0.5103145", "0.5100519", "0.5098234", "0.50886846", "0.5086396", "0.5079906", "0.5077354", "0.5077166", "0.5072973", "0.50725156", "0.5071258", "0.5069904", "0.50647473", "0.50570756", "0.50564134", "0.50519025" ]
0.0
-1
Method adds the plugin specified in pluginClass param into hashmap with param key. Hashmap is inside PluginManager class.
public void addPlugin(String key, T pluginClass);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}", "public void addExtensionPoint(IPlugin extensionPointPlugin) {\n lock.writeLock().lock();\n try {\n for (String id : extensionPointPlugin.getIds()) {\n extensionPointPluginMap.put(\n extensionPointPlugin.getName(), id, createLazyLoader(extensionPointPlugin));\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "synchronized private void tryRegisterPlugin(String name, Class<IKomorebiPlugin> pluginClass){\r\n\t\t\r\n\t\t// check status\r\n\t\tKomorebiPluginStatus pStatus = pluginClass.getAnnotation(KomorebiPluginStatus.class);\r\n\t\tif(pStatus != null){\r\n\t\t\tif(pStatus.disabled()){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Plugin '\"+pluginClass.getName()+\"' is disabled.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check if configuration consumer is correctly implemented\r\n\t\ttry{\r\n\t\t\tConstructor<IKomorebiPlugin> c = pluginClass.getConstructor();\r\n\t\t\tIKomorebiPlugin pi = c.newInstance();\r\n\t\t\tif(pi.isConfigConsumer() && !IKomorebiConfigurationConsumer.class.isAssignableFrom(pluginClass)){\r\n\t\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (configuration consumer) and will be omitted.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}catch(NoSuchMethodException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' does not adhere to defined standards (default constructor) and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InvocationTargetException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(IllegalAccessException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}catch(InstantiationException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+name+\"' caused an error (\"+e.getMessage()+\") and will be omitted.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(IKomorebiStorage.class.isAssignableFrom(pluginClass)){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).info(\"Registered storage PlugIn '\"+pluginClass.getName()+\"'\");\r\n\t\t\tif(!pluginRegister.containsKey(PluginType.STORAGE)){\r\n\t\t\t\t// if submap does not already exist it has to be created\r\n\t\t\t\tpluginRegister.put(PluginType.STORAGE, new HashMap<String, Class<IKomorebiPlugin>>());\r\n\t\t\t}\r\n\t\t\tpluginRegister.get(PluginType.STORAGE).put(name, pluginClass);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn;\r\n\t}", "private PluginRegistry(@Nonnull Config config,\n @Nonnull Map<String, PluginMap> pluginMapsByCategory,\n @Nonnull BiMap<Class<?>, PluginMap> pluginMapsByClass) {\n this.config = config;\n this.pluginMapsByCategory = pluginMapsByCategory;\n this.pluginMapsByClass = pluginMapsByClass;\n }", "void addPlugin(BaseComponentPlugin baseComponent);", "@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "public TelegrafPlugin addPlugin(TelegrafPlugin pluginToAdd) {\n\t\t\n\t\t//TODO implement combination of plugins\n\t\tTelegrafPlugin similarPlugin;\n\t\tif (false && (pluginToAdd.getPluginType() == TelegrafPluginType.OUTPUT || pluginToAdd.getPluginType() == TelegrafPluginType.AGGREGATOR) && (similarPlugin = getSimilarPlugin(pluginToAdd))!=null) {\n//\t\t\tSystem.out.println(\"Ähnliches PlugIn gefunden\");\n//\t\t\t\n//\t\t\tfor (TelegrafPluginSubComponent subComponent : similarPlugin.getSubComponents()) {\n//\t\t\t\tif (subComponent.name.equals(\"tagpass\")) {\n//\t\t\t\t\tsubComponent.getOptionByName(\"to_cep\").add(pluginToAdd.get)\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\t\n//\t\t\t//TODO change tagpass\n\t\t\treturn null;\n\t\t} else {\n\t\t\tboolean pluginTypeSectionReached = false;\n\t\t\t\n\t\t\tfor (int i = 0; i < configComponents.size(); i++) {\n\t\t\t\tTelegrafConfigComponent component = configComponents.get(i);\n\t\t\t\tif (!pluginTypeSectionReached) {\n\t\t\t\t\tif (component.getType() == TelegrafComponentType.PLUGIN) {\n\t\t\t\t\t\tTelegrafPlugin plugin = (TelegrafPlugin) component;\n\t\t\t\t\t\tif (plugin.getPluginType() == pluginToAdd.getPluginType()) {\n\t\t\t\t\t\t\tpluginTypeSectionReached = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (component.getType() == TelegrafComponentType.HEADER) {\n\t\t\t\t\t\tTelegrafConfigHeader header = (TelegrafConfigHeader) component;\n\t\t\t\t\t\tif (header.getPluginType() == pluginToAdd.getPluginType()) {\n\t\t\t\t\t\t\tpluginTypeSectionReached = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconfigComponents.add(i, TelegrafConfigComponent.createPluginSpacer());\n\t\t\t\t\tconfigComponents.add(i, pluginToAdd);\n\t\t\t\t\treturn pluginToAdd;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!pluginTypeSectionReached) {\n\t\t\t\t// TODO add header for new Plugin section\n\t\t\t}\n\t\t\tconfigComponents.add(configComponents.size() - 1, TelegrafConfigComponent.createPluginSpacer());\n\t\t\tconfigComponents.add(configComponents.size() - 1, pluginToAdd);\n\t\t\treturn pluginToAdd;\n\t\t}\n\t}", "public void addPluginFileBean(PluginFileBean pluginFileBean){\n\t\tthis.pluginFileBeanList.add(pluginFileBean);\n\t\tthis.pluginFileBeanMap.put(pluginFileBean.getId(), pluginFileBean);\n\t}", "public void setPluginIdentifierToNameMap(Map<String, String> pluginIdentifierToNameMap) {\n\t\tthis.pluginIdentifierToNameMap = pluginIdentifierToNameMap;\n\t}", "public void insertPluginMenu(java.awt.MenuItem mi);", "public CommandFramework(Plugin plugin) {\n this.plugin = plugin;\n\n if (plugin.getServer().getPluginManager() instanceof SimplePluginManager) {\n SimplePluginManager manager = (SimplePluginManager) plugin.getServer().getPluginManager();\n\n try {\n Field field = SimplePluginManager.class.getDeclaredField(\"commandMap\");\n field.setAccessible(true);\n map = (CommandMap) field.get(manager);\n } catch (IllegalArgumentException | NoSuchFieldException | IllegalAccessException | SecurityException e) {\n e.printStackTrace();\n }\n }\n }", "public void reInitialize() {\n lock.writeLock().lock();\n try {\n extensionPointPluginMap = HashBasedTable.create();\n final PluginRegistry registry = PluginRegistry.getInstance();\n List<IPlugin> extensionPointPlugins = registry.getPlugins(ExtensionPointPluginType.class);\n for (IPlugin extensionPointPlugin : extensionPointPlugins) {\n addExtensionPoint(extensionPointPlugin);\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "void activePlugIn(String plugInKey);", "public interface PluginProvider {\n\n /**\n * Returns an instance of the specified plugin by loading the plugin class through the specified class loader.\n *\n * @param type plugin type class\n * @param className plugin class name\n * @param classLoader class loader to be used to load the plugin class\n * @param <T> plugin type\n * @return instance of the plugin\n * @throws PluginLoadingException if en error occurred when loading or instantiation of the plugin\n */\n <T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;\n}", "public void enable(CommonPlugin plugin);", "public void registerPlugin(QuartzPlugin quartzPlugin) {\n this.quartzPlugin = quartzPlugin;\n for (Pair<String, Class<? extends Job>> pair : jobList) {\n String cronExp = pair.getKey();\n Class jobClass = pair.getValue();\n try {\n this.quartzPlugin.add(cronExp, jobClass);\n logger.info(\"registered job: \" + jobClass.getName());\n } catch (Exception ex) {\n logger.error(ex.getMessage());\n }\n\n }\n }", "private void addProvider(\n String elementName,\n String namespace,\n Class<?> provider)\n {\n // Attempt to load the provider class and then create\n // a new instance if it's an IQProvider. Otherwise, if it's\n // an IQ class, add the class object itself, then we'll use\n // reflection later to create instances of the class.\n try\n {\n // Add the provider to the map.\n if (IQProvider.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider.newInstance());\n }\n else if (IQ.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider);\n }\n }\n catch (Throwable t)\n {\n logger.error(\"Error adding iq provider.\", t);\n }\n }", "void add( Map< String, Object > paramMap );", "@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}", "protected abstract void onPluginEnable();", "public void startPlugin() {\n classesDisponibles = new HashMap[types.length];\n try { // enregistrer le service d'acces aux depot de jars\n ServicesRegisterManager.registerService(Parameters.JAR_REPOSITORY_MANAGER, this);\n rescanRepository(); // creer les listes de classes disponibles a partir du depot\n }\n catch (ServiceInUseException mbiue) {\n System.err.println(\"Jar Repository Manager service created twice\");\n }\n }", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public PM(BattleKits instance) {\n\t\tplugin = instance;\n\t}", "void registerQuestionPlugin(QuestionPlugin plugin);", "public interface IPluginManager {\n\tpublic BasePluginPackage initPlugin(String pluginPath);\n\n\tpublic BasePluginPackage getPluginPackage(String packageName);\n\n\tpublic Class loadPluginClass(BasePluginPackage basePluginPackage, String className);\n}", "private void fillPluginList() {\n\t\tlesSitesPlugin = new ArrayList<HashMap<String, String>>();\n\t\tcategories = new ArrayList<String>();\n\t\tPackageManager packageManager = getPackageManager();\n\t\tIntent baseIntent = new Intent(ACTION_PICK_PLUGIN);\n\t\tbaseIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);\n\t\tList<ResolveInfo> list = packageManager.queryIntentServices(baseIntent, PackageManager.GET_RESOLVED_FILTER);\n\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\tResolveInfo info = list.get(i);\n\t\t\tServiceInfo sinfo = info.serviceInfo;\n\t\t\t IntentFilter filter = info.filter;\n\t\t\tNotification.log(tag, \"taille de la liste de Plugin: \" + i + 1 + \"; sinfo: \" + sinfo);\n\t\t\tif (sinfo != null) {\n\t\t\t\t HashMap<String, String> item = new HashMap<String, String>();\n\t\t\t\t item.put(KEY_PKG, sinfo.packageName); // nom du package\n//\t\t\t\t item.put(KEY_SERVICENAME, StringLt.lastSegment(sinfo.name, '.')); // nom du plugin\n\t\t\t\t item.put(KEY_SERVICENAME, sinfo.name);\n\t\t\t\t String firstCategory = null;\n\t\t\t\t if (filter != null) {\n\t\t\t\t StringBuilder actions = new StringBuilder();\n\t\t\t\t for (Iterator<String> actionIterator = filter.actionsIterator(); actionIterator.hasNext();) {\n\t\t\t\t String action = actionIterator.next();\n\t\t\t\t if (actions.length() > 0)\n\t\t\t\t actions.append(\",\");\n\t\t\t\t actions.append(action);\n\t\t\t\t }\n\t\t\t\t StringBuilder categories = new StringBuilder();\n\t\t\t\t for (Iterator<String> categoryIterator = filter.categoriesIterator(); categoryIterator.hasNext();) {\n\t\t\t\t String category = categoryIterator.next();\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = category;\n\t\t\t\t if (categories.length() > 0)\n\t\t\t\t categories.append(\",\");\n\t\t\t\t categories.append(category);\n\t\t\t\t }\n\t\t\t\t// item.put(KEY_ACTIONS, new\n\t\t\t\t// String(StringLt.lastSegment(actions.toString(), '.')));\n\t\t\t\t// item.put(KEY_CATEGORIES, new\n\t\t\t\t// String(StringLt.lastSegment(categories.toString(),\n\t\t\t\t// '.')));\n\t\t\t\t item.put(KEY_ACTIONS, new String(actions));\n\t\t\t\t item.put(KEY_CATEGORIES, new String(categories));\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t item.put(KEY_ACTIONS, \"<null>\");\n\t\t\t\t item.put(KEY_CATEGORIES, \"<null>\");\n\t\t\t\t }\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = \"\";\n\t\t\t\t categories.add(firstCategory);\n\t\t\t\t lesSitesPlugin.add(item);\n\t\t\t\t// lesSitesPlugin.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t\tlesSites.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t}\n\t\t}\n\t}", "public void registerConfigurationEntry(String key, Object entry);", "public void registerKBoxProtocol(String protocol, KBoxHandler plugin) {\r\n\t\tkboxPlugins.put(protocol, plugin);\r\n\t}", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "void add(String key);", "<T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;", "private void addPluginStatusForObject(OwObject object_p, OwPluginEntry pluginEntry_p, boolean isEnabled_p)\r\n {\r\n try\r\n {\r\n String key = createKey(object_p, pluginEntry_p);\r\n m_object2PluginStatusMap.put(key, isEnabled_p ? Boolean.TRUE : Boolean.FALSE);\r\n }\r\n catch (Exception e)\r\n {\r\n //nothing to do, just log\r\n LOG.error(\"Cannot add plugin status for object: \" + object_p + \" and for plugin entry: \" + pluginEntry_p, e);\r\n }\r\n\r\n }", "@SuppressWarnings(\"serial\")\n protected void addInstance(\n Map<String, Object> keyMap, String key, CIMInstance instance)\n throws BaseCollectionException {\n try {\n Object result = keyMap.get(key);\n if (keyMap.containsKey(key) && result instanceof List<?>) {\n @SuppressWarnings(\"unchecked\")\n List<CIMInstance> cimInstanceList = (List<CIMInstance>) keyMap\n .get(key);\n\n cimInstanceList.add(instance);\n keyMap.put(key, cimInstanceList);\n } else {\n keyMap.put(key, instance);\n }\n } catch (Exception ex) {\n throw new BaseCollectionException(\n \"Error while adding CIMInstance to Map : \" + instance.getObjectPath(), ex) {\n @Override\n public int getErrorCode() {\n // To-Do errorCode\n return -1;\n }\n };\n }\n }", "private void addToHashmap(String key, Long timestamp){\r\n\t\tkeyHashMap.putIfAbsent(key, new PriorityQueue<Long>());\r\n\t\tsynchronized(keyHashMap.get(key)){\r\n\t\t\tSystem.out.println(\"Added Key: \" + key + \" Time: \" + timestamp);\r\n\t\t\tkeyHashMap.get(key).add(timestamp);\r\n\t\t}\r\n\t}", "public native void loadPlugin(final String plugin);", "public String getPluginClass() {\n return pluginClass;\n }", "protected void setPluginCache(OwPluginStatusCachingUtility newCache)\r\n {\r\n this.pluginCache = newCache;\r\n }", "public void loadPluginsStartup();", "private void loadPlugin(File file) {\n JarFile jarFile;\n\n try {\n jarFile = new JarFile(file);\n } catch (IOException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_JARFILE_CREATE, e);\n return;\n }\n\n JarEntry pJson = jarFile.getJarEntry(\"plugin.json\");\n\n if (pJson == null)\n return;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(jarFile.getInputStream(pJson)));\n PluginInfo info = new GsonBuilder().setPrettyPrinting().create().fromJson(reader, PluginInfo.class);\n\n if (info != null) {\n ClassLoader classLoader = new URLClassLoader(new URL[] { file.toURI().toURL() }, this.getClass().getClassLoader());\n\n Plugin plugin;\n\n try {\n plugin = (Plugin) classLoader.loadClass(info.getMain()).newInstance();\n plugin.setInfo(info);\n plugins.add(plugin);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_INSTANTIATION, e);\n return;\n }\n\n Enumeration<JarEntry> entries = jarFile.entries();\n while (entries.hasMoreElements()) {\n JarEntry e = entries.nextElement();\n String name = e.getName();\n\n if (name.endsWith(\".class\")) {\n try {\n Class clazz = Class.forName(name.substring(0, name.length() - 6).replace('/', '.'), true, classLoader);\n\n if (clazz != null && clazz.getSuperclass().equals(Module.class)) {\n try {\n plugin.loadModule((Module) clazz.newInstance());\n } catch (InstantiationException | IllegalAccessException exception) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_MODULE, exception);\n }\n }\n } catch (ClassNotFoundException exception) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_LOAD_CLASS, name);\n }\n }\n }\n }\n } catch (IOException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_INPUTSTREAM, file.getAbsolutePath());\n }\n }", "protected abstract PluginManager<String, BaseType> getPluginManager();", "public interface IPluginLibrary {\n \n /*\n * Initializes the library\n */\n public void initialize(DefaultPluginsCollector collector);\n \n /*\n * Start the module and initialize components\n */\n public void startLibrary();\n \n /*\n * Fetches all extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return The gathered plugins in a LinkedList\n */\n public void loadAllPlugins(final String extPointId);\n \n /*\n * Fetches new extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return A human readable string\n */\n public String loadNewPlugin(final String extPointId); \n \n /**\n * Checks a plugin for validity.\n * \n * @param plugin The plugin to check\n * @param The level to test against, this method will return true if the result is greater or\n * equal than the testLevel\n * @return true or false\n */\n public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);\n\n /**\n * Answer a request by searching plugin-library for function and executing\n * them.\n * \n * @param req The {@link ExtendedQequest} to answer.\n * \n * @return The generated {@link MResponse}.\n */\n public MResponse executeRequest(ExtendedRequest req);\n\n \n public List<PluginInformation> getPluginInformation();\n \n /**\n * Returns a list of example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of example calls\n */\n public List<MExampleCall> getExampleCalls();\n \n /**\n * Returns a list of 5 randomly choosen example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of 5 randomly choosen example calls\n */\n public List<MExampleCall> getRandomExampleCalls();\n \n public Map<String, Pair<Boolean, MartinPlugin> > getPluginExtentions();\n}", "public synchronized void add(AudioPlugin newPlugin)\n\t\t\tthrows AudioFormatNotSupportedException {\n\t\tif (format == null && plugins.size() == 0) {\n\t\t\tgetSourceFormat();\n\t\t}\n\t\tif (format != null) {\n\t\t\tAudioFormat apFormat = newPlugin.getInputFormat();\n\t\t\tif (apFormat == null) {\n\t\t\t\tnewPlugin.setInputFormat(format);\n\t\t\t} else {\n\t\t\t\tif (!apFormat.matches(format))\n\t\t\t\t\tthrow new AudioFormatNotSupportedException(apFormat);\n\t\t\t}\n\t\t}\n\t\tformat = newPlugin.getOutputFormat();\n\t\tplugins.add(newPlugin);\n\t\tframeLengthObj=null;\n\t\treturn;\n\t}", "public void setPluginManager(PluginManager pluginManager);", "public void load(Maussentials plugin);", "public interface IPlugin {\n void setParam(IParam param);\n\n IParam getParam();\n\n void setMonitor(IPluginMonitor monitor);\n\n IPluginMonitor getMonitor();\n\n void init();\n\n void connection();\n\n void finish();\n\n Map<String, String> getMonitorInfo();\n}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "public void registerPlugin(final DajlabExtension plugin) {\r\n\r\n\t\tif (plugin != null) {\r\n\t\t\tif (plugin instanceof DajlabControllerExtensionInterface) {\r\n\t\t\t\tcontrollers.add((DajlabControllerExtensionInterface<DajlabModelInterface>) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof TabExtensionInterface) {\r\n\t\t\t\ttabPlugins.add((TabExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof MenuExtensionInterface) {\r\n\t\t\t\tmenuPlugins.add((MenuExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addComponent(String key, Component c) {\n\t\tconfiguration.put(key, c);\n\t}", "public void addConfigParam(IFloodlightModule mod, String key, String value) {\n\t Map<String, String> moduleParams = configParams.get(mod.getClass());\n\t if (moduleParams == null) {\n\t moduleParams = new HashMap<String, String>();\n\t configParams.put(mod.getClass(), moduleParams);\n\t }\n\t moduleParams.put(key, value);\n\t}", "@Override\n public boolean setPlugin(IAuthorizationPlugin plugin) {\n if (!getName().equals(plugin.getClass().getCanonicalName())\n || !getName().equals(plugin.getClass().getName())) {\n return false;\n }\n if (hasPlugin()) {\n unload();\n }\n try {\n /**\n * The exception should not happen here as we already have an\n * instance of IAuthorizationPlugin. But it is required by the\n * compiler.\n *\n * NOTE: If we were to add a throws clause here we would interrupt\n * the whole stack walk through and prevent the other authorization\n * entities to work properly.\n */\n this.plugin = plugin.getClass().getDeclaredConstructor().newInstance();\n return true;\n } catch (InstantiationException ex) {\n LOGGER.log(Level.INFO, \"Class could not be instantiated: \", ex);\n } catch (IllegalAccessException ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an exception: \", ex);\n } catch (Throwable ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an unknown error: \", ex);\n }\n return false;\n }", "public String loadNewPlugin(final String extPointId);", "void loadMyDogPluginParams(MyDogPluginsParams myDogPluginsParams);", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "public void addPluginListener( PluginListener listener )\n {\n pluginListeners.add( listener );\n }", "public static synchronized void putAll(Map<? extends Class<?>, ? extends String> map) {\n\t\tfor (Class<?> entry : ClassRegistry.primitives.keySet()){\n\t\t\tif (map.containsKey(entry))\n\t\t\t\tthrow new IllegalArgumentException(\"A primitive type cannot be added to the class dictionary.\");\n\t\t}\n\t\tClassRegistry.dictionary.putAll(map);\n\t}", "public Map<String, String> getPluginIdentifierToNameMap() {\n\t\treturn pluginIdentifierToNameMap;\n\t}", "public void setPluginClass(String pluginClass) {\n this.pluginClass = pluginClass == null ? null : pluginClass.trim();\n }", "public String getPluginClass() {\n return pluginClass;\n }", "public void registerCachedFile(\n String factoryIdentifier, ClassLoader classLoader, String dirName) {\n Set<URL> urlSet =\n PluginUtil.getJarFileDirPath(\n factoryIdentifier, this.localPluginPath, this.remotePluginPath, dirName);\n try {\n Method add = URLClassLoader.class.getDeclaredMethod(\"addURL\", URL.class);\n add.setAccessible(true);\n List<String> urlList = new ArrayList<>(urlSet.size());\n for (URL jarUrl : urlSet) {\n add.invoke(classLoader, jarUrl);\n if (!this.classPathSet.contains(jarUrl)) {\n urlList.add(jarUrl.toString());\n this.classPathSet.add(jarUrl);\n String classFileName =\n String.format(\n CLASS_FILE_NAME_FMT.defaultValue(), this.classFileNameIndex);\n this.env.registerCachedFile(jarUrl.getPath(), classFileName, true);\n this.classFileNameIndex++;\n }\n }\n PluginUtil.setPipelineOptionsToEnvConfig(this.env, urlList, executionMode);\n } catch (Exception e) {\n log.warn(\"can't add jar in {} to cachedFile, e = {}\", urlSet, e.getMessage());\n }\n }", "boolean addHelpInfo(PluginHelpInfo helpInfo);", "private static void initPlugins() {\n \tJSPFProperties props = new JSPFProperties();\n PluginManager pm = PluginManagerFactory.createPluginManager(props);\n pm.addPluginsFrom(new File(\"plugins/\").toURI());\n JavaBot.plugins = new PluginManagerUtil(pm).getPlugins(javaBotPlugin.class);\n }", "public void setPluginName(String pluginName);", "private void sendInfoPlugins(HttpServletRequest request, String action) {\n\t\t\n\t\tEmployee user = getUser(request);\n\t\t\n\t\tif (user != null && !isAjaxCall(request)) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Info for load plugins\n\t\t\t\tList<PluginLoad> pluginsLoad = new ArrayList<PluginLoad>();\n\t\t\t\t\n\t\t\t\tString servletName = this.getClass().getSimpleName();\n\t\t\t\t\n\t\t\t\tPluginLogic logic = new PluginLogic();\n\t\t\t\t\n\t\t\t\t// Find plugins for logged user\n\t\t\t\tHashMap<String, Boolean> plugins = logic.getPlugins(getUser(request).getContact());\n\t\t\t\n\t\t\t\tfor (String plugin : plugins.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\t// Plugin enabled\n\t\t\t\t\tif (plugins.get(plugin)) {\n\n\t\t\t\t\t\tOperationPlugin operationPlugin = null;\n\t\t\t\t \t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Instantiate the operation\n\t\t\t\t\t\t\toperationPlugin = (OperationPlugin) Class.forName(OperationPlugin.pluginClass(plugin)).newInstance();\n setInformationPlugin(request, operationPlugin);\n\n\t\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t\tLOGGER.warn(e);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Plugin has configuration\n\t\t\t\t\t\tif (operationPlugin != null) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Add configuration of plugin\n\t\t\t\t\t\t\tpluginsLoad.addAll(operationPlugin.pluginLoad(servletName, action));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n // Find in package annotation\n Set<Class<?>> configuredClasses = CacheStatic.getPluginLoads();\n\n if (ValidateUtil.isNotNull(configuredClasses)) {\n\n // Proccess anotations\n for (Class<?> configuredClass : configuredClasses) {\n\n\n // Get annotation configuration\n es.sm2.openppm.core.plugin.annotations.PluginLoad load = configuredClass.getAnnotation(es.sm2.openppm.core.plugin.annotations.PluginLoad.class);\n\n if (Arrays.asList(load.servlet()).contains(servletName)) {\n\n PluginAction annotation = CacheStatic.getPluginAction(configuredClass);\n\n PluginLoad pluginLoad = new PluginLoad();\n pluginLoad.setPluginName(annotation.plugin());\n pluginLoad.setSelector(load.selector());\n pluginLoad.setTypeModification(load.loadType().name());\n pluginLoad.setTemplate(annotation.action());\n pluginLoad.setForms(load.forms());\n\n pluginsLoad.add(pluginLoad);\n }\n }\n }\n\n\n\t\t\t\t// Add configuration for load plugins\n\t\t\t\tif (ValidateUtil.isNotNull(pluginsLoad)) {\n\t\t\t\t\t\n\t\t\t\t\tfor (PluginLoad load : pluginsLoad) {\n\t\t\t\t\t\tLOGGER.debug(\"Plugin for load: \"+load.getPluginName()+\" [\"+load.getSelector()+\"||\"+load.getTemplate()+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"pluginsLoad\", pluginsLoad);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOGGER.warn(\"Error in plugin\", e);\n\t\t\t}\n\t\t}\n\t}", "public void addExtProvider(\n String elementName,\n String namespace,\n Class<?> provider)\n {\n // Attempt to load the provider class and then create\n // a new instance if it's a Provider. Otherwise, if it's\n // a PacketExtension, add the class object itself and\n // then we'll use reflection later to create instances\n // of the class.\n try\n {\n // Add the provider to the map.\n if (PacketExtensionProvider.class.isAssignableFrom(provider))\n {\n addExtensionProvider(\n elementName,\n namespace,\n provider.newInstance());\n }\n else if (PacketExtension.class.isAssignableFrom(\n provider))\n {\n addExtensionProvider(elementName, namespace, provider);\n }\n }\n catch (Throwable t)\n {\n logger.error(\"Error adding extension provider.\", t);\n }\n }", "public void add(Map<Variable, Object> instance) {\n\t\tthis.listInstance.add(instance);\n\t}", "void add(AbstractImplementationArtifact ia, AbstractNodeTemplate nodeTemplate, IPlanBuilderPrePhaseIAPlugin plugin) {\n\t\t\n\t\tfor (AbstractImplementationArtifact candidateIa : this.ias) {\n\t\t\tif (candidateIa.equals(ia)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthis.ias.add(ia);\n\t\tthis.infraNodes.add(nodeTemplate);\n\t\tthis.plugins.add(plugin);\n\t}", "public PluginInfo(Plugin plugin, PluginVersion version, PlayerPluginWrapperType wrapperType) {\n this.version = version;\n this.wrapperType = wrapperType;\n this.plugin = plugin;\n }", "public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}", "private Map<String, IPlugin> toPlugins( Market market ) {\n Collection<Market.MarketEntry> marketEntries = market.getMarketEntry();\n Map<String, IPlugin> plugins = new HashMap<>( marketEntries.size() );\n\n int rank = 0;\n for ( Market.MarketEntry entry : marketEntries ) {\n plugins.put( entry.getId(), this.toPlugin( entry, rank++ ) );\n }\n\n return plugins;\n }", "void addKeyMapping(KeyMap map){\n this.addKeyListener(map);\n this.km = map;\n }", "public interface GameHelperPlugin {\n\n public ScoreBoard getScoreBoard();\n\n public void getRules();\n\n public void displayMenu();\n\n\n}", "@Override\n\tpublic void contribute(Builder builder) {\n\t\tMap<String, String> pluginDetails = new HashMap<>();\n\t\tList<Plugin> plugins = pluginManager.getPlugins(Plugin.class);\n\t\tpluginDetails.put(\"number of plugins\", plugins.size() + \"\");\n\t\tpluginDetails.put(\"plugins\", plugins.stream().map(p -> p.getName()).collect(Collectors.toList()).toString());\n\t\tbuilder.withDetail(\"plugin controller\", pluginDetails).build();\n\n\t}", "public interface GeoServerPluginConfigurator {\r\n \r\n /**\r\n * Get the list of Resources used by the plugin.\r\n * \r\n * @return\r\n * @throws IOException\r\n */\r\n public List<Resource> getFileLocations() throws IOException;\r\n \r\n /**\r\n * Allows the plugin to store its configuration on the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to save its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void saveConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n \r\n /**\r\n * Allows the plugin to reload its configuration from the target {@link GeoServerResourceLoader}.\r\n * This way we delegate the plugin to load its configuration since it is the only\r\n * on who knows how to do it better.\r\n * \r\n * @param resourceLoader\r\n * @throws IOException\r\n */\r\n public void loadConfiguration(GeoServerResourceLoader resourceLoader) throws IOException;\r\n\r\n}", "public static boolean loadPlugin(Class pluginClass, CytoscapeObj cytoscapeObj,\n CyWindow cyWindow) {\n if (pluginClass == null) {return false;}\n\n\n //System.out.println( \"AbstractPlugin loading: \"+pluginClass );\n\n //look for constructor with CyWindow argument\n if (cyWindow != null) {\n Constructor ctor = null;\n try {\n Class[] argClasses = new Class[1];\n argClasses[0] = CyWindow.class;//cyWindow.getClass();\n ctor = pluginClass.getConstructor(argClasses);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n\n\n// (SecurityException se) {\n// System.err.println(\"In AbstractPlugin.loadPlugin:\");\n// System.err.println(se.getMessage());\n// se.printStackTrace();\n// return false;\n// } catch (NoSuchMethodException nsme) {\n// //ignore, there are other constructors to look for\n// }\n\n \n\n if (ctor != null) {\n try {\n Object[] args = new Object[1];\n args[0] = cyWindow;\n return ctor.newInstance(args) != null;\n } catch (Exception e) {\n System.err.println(\"In AbstractPlugin.loadPlugin:\");\n System.err.println(\"Exception while constructing plugin instance:\");\n System.err.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }\n }\n return false;\n }", "public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}", "public void add(WFJFilterMap filterMap) {\n synchronized (lock) {\n WFJFilterMap results[] = Arrays.copyOf(array, array.length + 1);\n results[array.length] = filterMap;\n array = results;\n }\n }", "public static void addFilterMap(WFJFilterMap filterMap) {\n validateFilterMap(filterMap);\n // Add this filter mapping to our registered set\n filterMaps.add(filterMap);\n }", "public final KaranteeniPlugin getPluginInstance(String string) {\r\n\t\treturn (KaranteeniPlugin) kPluginInstances.get(string);\r\n\t}", "@Override\r\n public void store( Component component, Plugin plugin )\r\n {\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_UPDATE, plugin );\r\n\r\n daoUtil.setInt( 1, component.getId( ) );\r\n daoUtil.setString( 2, component.getGroupId( ) );\r\n daoUtil.setString( 3, component.getTitle( ) );\r\n daoUtil.setString( 4, component.getDescription( ) );\r\n daoUtil.setString( 5, component.getArtifactId( ) );\r\n daoUtil.setString( 6, component.getVersion( ) );\r\n daoUtil.setString( 7, component.getComponentType( ) );\r\n daoUtil.setInt( 8, component.getId( ) );\r\n\r\n daoUtil.executeUpdate( );\r\n daoUtil.free( );\r\n }", "public ClassRegistry() {\n this.classMap.putAll(CLASS_MAP);\n this.conversionMap.putAll(CONVERSION_MAP);\n conversionMap.put(\"key->new\",defaultSupplier);\n conversionMap.put(\"new\",typeName->defaultSupplier.apply(typeName));\n }", "void bootPlugins() {\n\t\tList<List<String>>vals = (List<List<String>>)properties.get(\"PlugInConnectors\");\n\t\tif (vals != null && vals.size() > 0) {\n\t\t\tString name, path;\n\t\t\tIPluginConnector pc;\n\t\t\tList<String>cntr;\n\t\t\tIterator<List<String>>itr = vals.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tcntr = itr.next();\n\t\t\t\tname = cntr.get(0);\n\t\t\t\tpath = cntr.get(1);\n\t\t\t\ttry {\n\t\t\t\t\tpc = (IPluginConnector)Class.forName(path).newInstance();\n\t\t\t\t\tpc.init(this, name);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogError(e.getMessage(), e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void addToPlugsNode(PluginDataModel pluginDataModel){\r\n\t\tplugsNode.add(new DefaultMutableTreeNode(pluginDataModel));\r\n\t}", "public MeaFlarf(JavaPlugin plugin){\n\t\tthis.plugin = plugin;\n\t}", "private void mapContext(ManagedPlugin managedPlugin) {\n RequestMappingHandlerMapping mapper = new RequestMappingHandlerMapping();\n mapper.setApplicationContext(managedPlugin.getPluginContext());\n mapper.afterPropertiesSet();\n this.handlerMappings.add(mapper);\n this.pluginMappings.put(managedPlugin.getPlugin().getDescriptor().getId(), mapper);\n }", "public void configurePlugin(String pluginId) throws EmuException {\n if (!configuredPlugins.contains(pluginId)) {\n XMLElement pluginDescriptor = loadPluginDescriptor(pluginId);\n extractAliases(pluginDescriptor);\n extractSyntaxBundles(pluginDescriptor);\n configuredPlugins.add(pluginId);\n }\n }", "private void addPlugIn(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'addPlugIn'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.addPlugIn(aConnector, aToken));\n\t}", "private ArrayList<MapPlugin> listPlugins(String type) {\r\n System.out.println(\"===== HomeController.listPlugins() starting with type : \" + type);\r\n System.out.println(\"List plugins of type \" + type);\r\n ArrayList<MapPlugin> pluginList = new ArrayList();\r\n String plugins = env.getProperty(\"plugins.\" + type);\r\n if (plugins != null) {\r\n /* Unpick the value: <control_name>,<login|public>,<caption>,<tooltip>,<icon_class>,<js_filename>,<ext_css>,<ext_js> */\r\n String[] pluginArr = plugins.split(\",\");\r\n if (pluginArr.length % 8 == 0) {\r\n /* Plausible */ \r\n System.out.println(\"Properties file record is of plausible length\");\r\n for (int i = 0; i < pluginArr.length; i += 8) {\r\n MapPlugin mp = new MapPlugin();\r\n mp.setName(pluginArr[i]);\r\n mp.setAllowed_usage(pluginArr[i+1]);\r\n mp.setCaption(pluginArr[i+2]);\r\n mp.setTooltip(pluginArr[i+3]);\r\n mp.setIconclass(pluginArr[i+4]);\r\n mp.setJs_filename(pluginArr[i+5]);\r\n mp.setExt_css(pluginArr[i+6]);\r\n mp.setExt_js(pluginArr[i+7]);\r\n System.out.println(\"--> Name : \" + mp.getName());\r\n System.out.println(\"--> Icon class : \" + mp.getIconclass());\r\n System.out.println(\"--> JS file : \" + mp.getJs_filename());\r\n System.out.println(\"--> External CSS resources : \" + mp.getExt_css());\r\n System.out.println(\"--> External JS resources : \" + mp.getExt_js());\r\n pluginList.add(mp);\r\n } \r\n }\r\n }\r\n System.out.println(\"===== HomeController.listPlugins() complete\");\r\n return(pluginList.isEmpty() ? null : pluginList);\r\n }", "protected static void register(Plugin plugin) {\n\t\tPlatform platform = PLATFORMS.get(plugin);\n\t\tif (platform != null)\n\t\t\treturn;\n\n\t\tplatform = new Platform(plugin);\n\t\tPLATFORMS.put(plugin, platform);\n\t}", "public void setPlugboard(String pbMap){\r\n\t\tplugboard = new Plugboard(pbMap);\r\n\t}", "private void addPluginComponent(Component c,\n Container container,\n Object constraints)\n {\n if (container.equals(Container.CONTAINER_CHAT_WINDOW))\n {\n if (constraints.equals(BorderLayout.SOUTH))\n {\n pluginPanelSouth.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.WEST))\n {\n pluginPanelWest.add(c);\n pluginPanelSouth.repaint();\n }\n else if (constraints.equals(BorderLayout.EAST))\n {\n pluginPanelEast.add(c);\n pluginPanelSouth.repaint();\n }\n }\n else if (container.equals(Container.CONTAINER_CHAT_STATUS_BAR))\n {\n statusBarPanel.add(c);\n }\n\n this.getContentPane().repaint();\n }", "public void loadPlugins()\n throws Exception\n {\n SecurityClassLoader securityClassLoader = new SecurityClassLoader(Plugin.class.getClassLoader(),\n ImmutableList.of(\"ideal.sylph.\", \"com.github.harbby.gadtry.\")); //raed only sylph-api deps\n this.loader = ModuleLoader.<Plugin>newScanner()\n .setPlugin(Plugin.class)\n .setScanDir(pluginDir)\n .setLoader(OperatorManager::serviceLoad)\n .setClassLoaderFactory(urls -> new VolatileClassLoader(urls, securityClassLoader)\n {\n @Override\n protected void finalize()\n throws Throwable\n {\n super.finalize();\n logger.warn(\"Jvm gc free ClassLoader: {}\", Arrays.toString(urls));\n }\n })\n .setLoadHandler(module -> {\n logger.info(\"loading module {} find {} Operator\", module.getName(), module.getPlugins().size());\n ModuleInfo moduleInfo = new ModuleInfo(module, new ArrayList<>());\n analyzeModulePlugins(moduleInfo);\n ModuleInfo old = userExtPlugins.put(module.getName(), moduleInfo);\n if (old != null) {\n Try.of(old::close).onFailure(e -> logger.warn(\"free old module failed\", e)).doTry();\n }\n }).load();\n }", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }", "public void pluginComponentAdded(PluginComponentEvent event)\n {\n PluginComponentFactory factory = event.getPluginComponentFactory();\n\n Component comp = (Component)factory.getPluginComponentInstance(\n ChatWindow.this).getComponent();\n\n // If this component has been already added, we have nothing more to do\n // here.\n if (comp.getParent() != null)\n return;\n\n if (factory.getContainer().equals(Container.CONTAINER_CHAT_WINDOW)\n || factory.getContainer().equals(\n Container.CONTAINER_CHAT_STATUS_BAR))\n {\n Object borderLayoutConstraints = UIServiceImpl\n .getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n this.addPluginComponent(comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }", "protected abstract String getPluginId();", "@Override\n\tpublic void addRolePlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "@Override\n public void executeByPluginType(PluginType pluginType) {\n pluginFactory\n .getPlugin(pluginType)\n .otherOutput();\n }", "public void add(String masterKey, HashMap<String, String> featureInfo) {\n this.featureInfoHashMap.put(masterKey, featureInfo);\n }", "public PluginManager( Path pluginDir )\n {\n this.pluginDirectory = pluginDir;\n pluginMonitor = new PluginMonitor( this );\n }" ]
[ "0.6047874", "0.57990557", "0.57738745", "0.5665381", "0.560319", "0.5599152", "0.5364425", "0.5201983", "0.5134417", "0.51194745", "0.511879", "0.51147777", "0.50526834", "0.5038461", "0.49952868", "0.49714056", "0.49420798", "0.49234426", "0.48971358", "0.48889208", "0.48788327", "0.48785692", "0.4873286", "0.48634297", "0.4858555", "0.4851761", "0.48359865", "0.48139977", "0.48115578", "0.47931847", "0.4788643", "0.47752953", "0.47640407", "0.47524366", "0.4749736", "0.47373185", "0.47354227", "0.47343272", "0.4730903", "0.4729452", "0.47248223", "0.47134024", "0.47109124", "0.47103372", "0.46900478", "0.4667886", "0.4662937", "0.4662662", "0.46541658", "0.46402943", "0.46373123", "0.46304274", "0.4623136", "0.4619298", "0.46060008", "0.46025565", "0.460235", "0.4598912", "0.4576085", "0.4567911", "0.4554373", "0.45483992", "0.45406404", "0.45400974", "0.45357227", "0.45351875", "0.45344844", "0.452925", "0.45270175", "0.45168394", "0.4495253", "0.4493939", "0.44930008", "0.4487672", "0.44749036", "0.44747308", "0.44712177", "0.44710943", "0.44706163", "0.4465937", "0.4449736", "0.444597", "0.44417173", "0.44396058", "0.4437349", "0.44314846", "0.44250694", "0.442279", "0.4414584", "0.44131136", "0.4409604", "0.44055983", "0.43997133", "0.4396612", "0.43949354", "0.43931085", "0.43906933", "0.43874854", "0.4385975", "0.43793893" ]
0.81183374
0
Name of the plugin.
public String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPluginName(){\n\t\treturn pluginName;\n\t}", "@Override\n public String getPluginName() {\n return null;\n }", "@Override\n public String getPluginName() {\n return null;\n }", "public String getName() {\r\n try {\r\n return PirolPlugInMessages.getString(this.getShortClassName());\r\n } catch (RuntimeException e) {\r\n return super.getName();\r\n }\r\n\r\n }", "public void setPluginName(String pluginName);", "@Override\n public String getPluginName() {\n return \"Unify server-exporter\";\n }", "public String getName() {\n return m_module.getConfiguration().getName();\n }", "public String getName() {\n return Utility.getInstance().getPackageName();\n }", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.8133344", "0.7967467", "0.7967467", "0.77553517", "0.7230101", "0.69942313", "0.6839238", "0.6732247", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714", "0.67222714" ]
0.0
-1
Tests if the plugin has any error
public boolean hasError();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasError();", "boolean hasError();", "boolean hasError();", "boolean isError();", "public boolean hasErrors();", "boolean hadErrors();", "@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}", "boolean hasErrors();", "boolean hasErr();", "boolean hasErrormessage();", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}", "public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "public boolean hasError() {\n\t\treturn results.getErrors().contains( \"ERROR\") ;\n\t}", "public boolean isError() { return error; }", "boolean error() {\n return error;\n }", "public boolean hasError()\n {\n return hasError;\n }", "public boolean isErrorEnabled()\n/* */ {\n/* 258 */ return getLogger().isErrorEnabled();\n/* */ }", "boolean isFailure();", "boolean hasErrmsg();", "boolean hasErrorMessage();", "boolean hasErrorMessage();", "@Override\n boolean isFailed() {\n return false;\n }", "public void error();", "boolean isFail();", "@Override\r\n\tpublic boolean hasErrors() {\n\t\treturn hasErrors;\r\n\t}", "public boolean needsProblem();", "public boolean urlHasAnError() {\n\t\tString url = driver.getCurrentUrl();\n\t\tboolean error = false;\n\t\t\n\t\tif (url.contains(\"ERROR\"))\n\t\t\terror = true;\n\t\treturn error;\n\t}", "public boolean errorState();", "protected void errorIfStarted() {\r\n if (HasStarted) {\r\n throw new Error(\"Cannot change settings, algorithm has started.\");\r\n }\r\n }", "public boolean proceedOnErrors() {\n return false;\n }", "public boolean isError(){\n\t\treturn isError;\n\t}", "public boolean hasError() {\n\t\treturn hasERR;\n\t}", "public abstract boolean isFatal();", "public boolean isError() {\n return _type == Type.ERROR;\n }", "public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }", "@Override\n\tpublic boolean hasError() {\n\t\treturn super.hasError() || (answerCode != null && answerCode == GeneralAnswerCode.FAIL);\n\t}", "public synchronized boolean isErrored() {\n return error != null;\n }", "default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }", "boolean hasException();", "public boolean hasFailed ()\r\n {\r\n return exception_ != null;\r\n }", "public boolean isError() {\n return error;\n }", "@Override\n public void OnError() {\n bRemoteInitOk = false;\n }", "public boolean hasError() {\r\n return \"\".equals(recentErrorCode) ? false : true;\r\n }", "public boolean isError() {\n\t\treturn error;\n\t}", "boolean hasErrorCode();", "@Override\n boolean canFail() {\n return true;\n }", "public boolean hasError()\n {\n return data().containsKey(_ERROR);\n }", "public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }", "@Override\n\tpublic boolean isErrorEnabled() {\n\t\treturn false;\n\t}", "public boolean isError() {\n\t\treturn packet.isError();\n\t}", "public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }", "public boolean errors() {\n \treturn semantErrors != 0;\n }", "protected boolean errors()\n \t{\n\t\treturn !errors.isEmpty();\n \t}", "public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }", "protected void VerifyUrlDoesntHaveAnError() {\n\t\tif (urlHasAnError())\n\t\t\tReports.logAMessage(LogStatus.ERROR, \"BasePage: URL has an error\");\n\t}", "void notSupported(String errorcode);", "public boolean getError() {\r\n \treturn error;\r\n }", "@Override\n public boolean hasErrorResults() {\n return false;\n }", "@Override\n\t\t\tpublic boolean hasError(ClientHttpResponse response) throws IOException {\n\t\t\t\treturn false;\n\t\t\t}", "boolean hasErrcode();", "public static boolean isErrorEnabled() {\n\n return errorLogger.isErrorEnabled();\n }", "public void checkServerErrors() throws NumberFormatException, PluginException {\r\n if (new Regex(brbefore, Pattern.compile(\"No file\", Pattern.CASE_INSENSITIVE)).matches()) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"SERVER_ERROR\"));\r\n }\r\n if (new Regex(brbefore, \"(Not Found|<h1>(404 )?Not Found</h1>)\").matches()) {\r\n logger.warning(\"Server says link offline, please recheck that!\");\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n if (br.containsHTML(\"Twój dzienny limit transferu\")) {\r\n UserIO.getInstance().requestMessageDialog(0, getPhrase(\"PREMIUM_ERROR\"), getPhrase(\"DAILY_LIMIT\") + \"\\r\\n\" + getPhrase(\"PREMIUM_DISABLED\"));\r\n throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_TEMP_DISABLE);\r\n } else if (br.containsHTML(\"<input type=\\\"submit\\\" class=\\\"btn btn-large btn-inverse\\\" style=\\\"font-size:30px; font-weight: bold; padding:30px\\\" value=\\\"Pobierz szybko\\\" />\")) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"LINK_BROKEN\"));\r\n }\r\n\r\n }", "public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);", "boolean getFileErr();", "public boolean hasExceptions();", "@Override\n public boolean hasErrorMessage() {\n return errorMessage != null;\n }", "boolean hasErrorTime();", "boolean isFailOnError() {\n return failOnError;\n }", "public boolean hasMoreErrors() {\n return false;\n }", "public boolean isError() {\n\t\tif (response.containsKey(\"Result\")) {\n\t\t\tif (response.get(\"Result\").equals(\"E\") || response.get(\"Result\").equals(\"MISSING\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}", "public boolean hasErrors() {\n return hasErrors;\n }", "public static boolean printErrorMessage() {\n System.out.println(\"Error: Invalid URL entered\");\n return true;\n }", "public void inquiryError() {\n\t\t\n\t}", "Object getFailonerror();", "Object getFailonerror();", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "protected abstract void executeActionsIfError();", "public boolean hasFieldErrors();", "boolean hasIsSuccess();", "private boolean initDisplayMessage()\n {\n boolean errors = false;\n String errMsg = RxInstallerProperties.getString(\"pluginErrMsg\") + \"\\n\\n\";\n File postLogFileDir = new File(RxUpgrade.getPostLogFileDir());\n if (postLogFileDir.exists())\n {\n File[] logFiles = postLogFileDir.listFiles();\n for (int i = 0; i < logFiles.length; i++)\n {\n File logFile = logFiles[i];\n try\n {\n String logFileContent = IOTools.getFileContent(logFile);\n if (logFileContent.indexOf(\"Exception\") != -1)\n {\n errMsg += logFile.getName() + \"\\n\";\n errors = true;\n }\n \n }\n catch (IOException e)\n {\n e.printStackTrace();\n RxLogger.logError(\"RxUpgradePluginsModel#initDisplayMessage : \" +\n e.getMessage());\n }\n }\n }\n \n if (errors)\n {\n m_displayMessage += errMsg;\n m_displayMessage += \"\\n\" + \"These files can be found at the \"\n + \"following location: \" + postLogFileDir.getAbsolutePath();\n m_displayMessage += \"\\n\\n\"\n + RxInstallerProperties.getString(\"docHelp\");\n m_displayMessage += \"\\n\\n\"\n + RxInstallerProperties.getString(\"northAmericaSupport\");\n m_displayMessage += \"\\n\\n\"\n + RxInstallerProperties.getString(\"europeSupport\");\n }\n return errors;\n }", "private boolean pluginLoading(String pluginName) {\n return pm.getPlugin(pluginName) != null;\n }", "boolean isIgnoreErrorPriority();", "boolean hasWarnings();", "public void test_DefaultDebugPluginIsReturnedWhenError() {\n\n Context appContext = getAppContext();\n\n PluginManager pluginManager = new PluginManager(appContext);\n\n DebugManager debugManager = pluginManager.getDebugToolManager();\n\n // Check the debugPlugin is not null\n assertNotNull(debugManager);\n\n Class<DefaultDebugPlugin> defaultDebugPluginClass = DefaultDebugPlugin.class;\n\n DebugPlugin debugPluginInstance = debugManager.getDebugPlugin();\n\n // Check a debugPlugin class instance was returned\n assertEquals(defaultDebugPluginClass, debugPluginInstance.getClass());\n }", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "public boolean hasErrors(){\n\t\treturn ! errorList.isEmpty();\n\t}", "@Then ( \"the Prescription was not added\" )\r\n public void failure () {\r\n // assertTrue( driver.getPageSource().contains( \"Error occurred creating\r\n // prescription\" ) );\r\n }", "public boolean isErrored() {\n return errored;\n }", "public static void RomLoadErr(){\n\t\tloadError = true;\t\t\n\t}", "public void correctErrors();", "public boolean isError(int i);", "public boolean hasErrorLog() {\n return result.hasErrorLog();\n }", "public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}", "public boolean hasRecordErrors();", "@Override\r\n\tpublic void error(MediaPlayer mediaPlayer)\r\n\t{\n\r\n\t}", "public boolean isApiError() {\n return this.getCode() != null && this.getCode() > 0;\n }", "public boolean hasErrors() {\n return !errors.isEmpty();\n }" ]
[ "0.7287571", "0.7287571", "0.7287571", "0.7083112", "0.70801175", "0.7054225", "0.70064366", "0.6927887", "0.69004065", "0.6768669", "0.6685611", "0.6634579", "0.6631297", "0.64636755", "0.640741", "0.6368616", "0.63606435", "0.63419014", "0.630502", "0.6282179", "0.62693214", "0.62693214", "0.6211115", "0.62008196", "0.6200813", "0.61908793", "0.6185427", "0.61657965", "0.61587334", "0.6134866", "0.61250734", "0.61169565", "0.609946", "0.6097581", "0.60920936", "0.60871893", "0.6083639", "0.60829234", "0.6077615", "0.60746413", "0.6068956", "0.6058686", "0.60346705", "0.6027982", "0.6027165", "0.6020324", "0.6012456", "0.5988683", "0.59882474", "0.59698164", "0.59688234", "0.59651095", "0.5926026", "0.5912416", "0.5890212", "0.58817756", "0.5829684", "0.5827037", "0.5826459", "0.58161443", "0.58055365", "0.57873094", "0.57818985", "0.5781671", "0.5780967", "0.5777342", "0.5767981", "0.57570624", "0.57544196", "0.57537496", "0.575205", "0.5746956", "0.56985694", "0.56941545", "0.5674181", "0.56448716", "0.56448716", "0.5644116", "0.5641515", "0.56403595", "0.564007", "0.5639113", "0.5622758", "0.5614904", "0.5606398", "0.56029737", "0.56017905", "0.55830264", "0.5581394", "0.55780405", "0.5541465", "0.5538558", "0.55346125", "0.5533891", "0.5532172", "0.55240154", "0.55211747", "0.5513808", "0.55123454", "0.5511466" ]
0.7465378
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar card_view_for_weather_forecast_5_day clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement switch (id) { case R.id.action_settings: activityTransitionIntent(ScreenSetting.class, SETTING_CODE); break; case R.id.enter_city_selection2: activityTransitionIntent(CitySelectionScreen.class, REQUEST_CODE); break; case R.id.refresh_the_weather: presenter.updateWeather(); break; case R.id.about_app: initAlertDialogAboutApp(this); break; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(View arg0) {\n scanCurrentDay();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDailyView.setDaily(c);\n\t\t\t\tstartActivity(new Intent(\"com.calendar.DAILYVIEW\"));\n\n\t\t\t}", "public void goToForecast(View view) {\n Intent myIntent = new Intent(MainActivity.this, Forecast.class);\n MainActivity.this.startActivity(myIntent);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main_activity);\n getActionBar().setDisplayHomeAsUpEnabled(true);\n bindViews();\n LinearLayout layout = (LinearLayout) findViewById(R.id.weatherDisplay);\n layout.setOnClickListener(this);\n }", "@Override\n public void onClick(View v) {\n startHourlyActivity();\n }", "public void onClick(View view){\n Toast.makeText(WelcomePage.this,R.string.Processing,Toast.LENGTH_LONG).show();\n\n // Jumps to Weather forecast Activity\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n }", "@Override\n public void onBackPressed() {\n\n Intent intent = new Intent(Day_Picker_Activity.this, ShowWeather.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle your other action bar items...\n\n if(item.getItemId() == R.id.action_new_food)\n {\n \tIntent intent = new Intent(HistoryActivity.this, SearchActivity.class);\n \t\n \tDate date = new Date(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DAY_OF_MONTH));\n \tTime time = new Time(calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE));\n \tintent.putExtra(Constants.SEARCH_MODE_KEY, Constants.FOOD);\n \tintent.putExtra(Constants.DATE_KEY, date);\n \tintent.putExtra(Constants.TIME_KEY, time);\n \t\n \tstartActivity(intent);\n }\n else if(item.getItemId() == R.id.action_pick_date)\n {\n \tpersianDatePickerDialog.setYearRange(Constants.FIRST_YEAR_FOOD, calendar.get(Calendar.YEAR));\n\t\t\tpersianDatePickerDialog.setVibrate(false);\n\t\t\tpersianDatePickerDialog.setCloseOnSingleTapDay(false);\n\t\t\tpersianDatePickerDialog.show(getSupportFragmentManager(), \"date_picker\");\n }\n else if(item.getItemId() == R.id.action_previous_day)\n {\n \tcalendar.add(Calendar.DATE, -1);\n \thistoryFragment.update(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE));\n \treturn true;\n }\n else if(item.getItemId() == R.id.action_next_day)\n {\n \tCalendar tmpCal = Calendar.getInstance();\n \tif(calendar.getTimeInMillis() + 24*60*60*1000 <= tmpCal.getTimeInMillis())\n \t{\n \t\tcalendar.add(Calendar.DATE, +1);\n \t\thistoryFragment.update(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH)+1, calendar.get(Calendar.DATE));\n \t}\n \treturn true;\n }\n \n return super.onOptionsItemSelected(item);\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "@Override\n public void onDayBarClick(DayBarItem choosedItem) {\n ModelTask.getInstance().setChoosedDate(choosedItem.getDayItem());\n setmViewPager();\n\n }", "@Override\n\t\tpublic boolean onSingleTapUp(MotionEvent ev) {\n\n\t\t\t Toast.makeText(getActivity(),\"onSingleTapUp\",Toast.LENGTH_LONG).show();\n\n\t\t\t clickMyActivities();\n\t\t\treturn true;\n\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tgoHome();\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "@Override\r\n public void onClickHome(View view) {\r\n \t// if user is performing an IMCI or CCM assessment then \r\n \t// display a confirmation dialog to confirm that the user wishes \r\n \t// to exit the patient assessment\r\n \texitAssessmentDialogHandler();\r\n }", "@Override\n public void onClick(View arg0) {\n System.out.println(mPosition);\n\n HomeActivity sct = (HomeActivity) activity;\n sct.onItemClick(mPosition);\n\n }", "@Override\n public void onClick(View v) {\n actionBar.setClickable(false);\n ((HomeActivity) mParent).setToVisit(user);\n ((HomeActivity) mParent).goToMeal(mConversationKey);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"com.calendar.TODOLIST\"));\n\t\t\t}", "public void onWeatherClick(View v)\n {\n }", "private void setActionBar() {\n ActionBar mActionBar = getSupportActionBar();\n mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);\n mActionBar.setCustomView(R.layout.actionbar_design);\n\n\n View mCustomView = mActionBar.getCustomView();\n ImageView image_drawer = (ImageView) mCustomView.findViewById(R.id.image_drawer);\n ImageView img_btllogo = (ImageView) mCustomView.findViewById(R.id.img_btllogo);\n ImageView img_home = (ImageView) mCustomView.findViewById(R.id.img_home);\n ImageView img_virtualRoom = (ImageView) mCustomView.findViewById(R.id.img_virtualRoom);\n ImageView img_search=(ImageView)mCustomView.findViewById(R.id.img_search);\n ImageView img_fav=(ImageView)mCustomView.findViewById(R.id.img_fav);\n\n img_search.setVisibility(View.VISIBLE);\n img_fav.setVisibility(View.VISIBLE);\n img_virtualRoom.setVisibility(View.VISIBLE);\n\n img_virtualRoom.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent=new Intent(getApplicationContext(),VirtualRoomActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }\n });\n\n img_fav.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), FavouriteList.class);\n app = new AppPrefs(getApplicationContext());\n app.setfav(\"list\");\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n\n img_search.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), Search.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n\n image_drawer.setImageResource(R.drawable.back);\n image_drawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onBackPressed();\n }\n });\n\n img_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n app = new AppPrefs(LaminateList.this);\n app.setCategoryid(\"\");\n Intent i = new Intent(LaminateList.this, MainActivity.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n finish();\n }\n });\n\n mActionBar.setCustomView(mCustomView);\n mActionBar.setDisplayShowCustomEnabled(true);\n }", "public void onClickHome (View v)\n\t{\n\t\tgoHome (this);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Handle action buttons\n\t\tswitch (item.getItemId()) {\n\t\t// this is not a desirable approach!\n\t\tcase android.R.id.home:\n\t\t\t// Toast.makeText(this, \"Need to be implemented\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t/*\n\t\t\t * android.support.v4.app.FragmentTransaction ft =\n\t\t\t * getSupportFragmentManager().beginTransaction();\n\t\t\t * ft.replace(R.id.container, fmt); ft.commit();\n\t\t\t */\n\n\t\t\tbreak;\n\t\tcase R.id.action_websearch:\n\t\t\t// // create intent to perform web search for this planet\n\t\t\t// Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n\t\t\t// intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n\t\t\t// // catch event that there's no activity to handle intent\n\t\t\t// if (intent.resolveActivity(getPackageManager()) != null) {\n\t\t\t// startActivity(intent);\n\t\t\t// } else {\n\t\t\t// Toast.makeText(this, R.string.app_not_available,\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t// }\n\n\t\t\t// item.expandActionView();\n\t\t\treturn false;\n\t\tcase R.id.menu_exit:\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tcase R.id.action_share:\n\n\t\t\t// String message = \"Text I wan't to share.\";\n\t\t\t// Intent share = new Intent(Intent.ACTION_SEND);\n\t\t\t// share.setType(\"text/plain\");\n\t\t\t// share.putExtra(Intent.EXTRA_TEXT, message);\n\t\t\t// startActivity(Intent.createChooser(share,\n\t\t\t// \"Title of the dialog the system will open\"));\n\n\t\t\tbreak;\n\t\tcase R.id.menu_settings2:\n\t\t\tIntent intent3 = new Intent(this, SettingsPreferences.class);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\tcase R.id.set_date:\n\n\t\t\tfinal CharSequence[] items;\n\t\t\titems = getResources().getTextArray(R.array.dates_for_police);\n\n\t\t\tAlertDialog.Builder builder = Global.giveMeDialog(this, \"Choose a month for police data\");\n\n\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tint i = 0;\n\t\t\tfor (; i < items.length; i++) {\n\t\t\t\tif (items[i].equals(Global.POLICE_DATA_REQUEST_MONTH))\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuilder.setSingleChoiceItems(items, i, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tGlobal.setPOLICE_DATA_REQUEST_MONTH(items[which].toString());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tbuilder.show();\n\n\t\t\tbreak;\n\t\tcase R.id.register_dialgo_action_bar:\n\t\t\tif (!Global.isRegistered(this)) {\n\t\t\t\tif (regDialog == null) {\n\t\t\t\t\tregDialog = new RegDialogFragment();\n\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t} else {\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t\t// Toast.makeText(this, DEBUG + \" ID Yes\",\n\t\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\titem.setVisible(false);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.email_developer:\n\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\t\t\tintent.setType(\"message/rfc822\");\n\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"[DESURBS] - YOURSafe\");\n\t\t\tintent.putExtra(Intent.EXTRA_TEXT, \"Hi, Yang \\n\\n\");\n\t\t\ttry {\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Send mail...\"));\n\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\tToast.makeText(this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.survey_developer:\n\n\t\t\tString url = \"https://docs.google.com/forms/d/1HgHhfY-Xgt53xqMPCZC_Q_rL8AKUhNi9LiPXyhKkPq4/viewform\";\n\t\t\tintent = new Intent(Intent.ACTION_VIEW);\n\t\t\tintent.setData(Uri.parse(url));\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\n\t\tcase R.id.menu_about:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\n\t}", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\tIntent intent = new Intent();\n\t\t\tintent.setClass(context, PostBarActivity.class);\n\t\t\tstartActivity(intent);\n\t\t\tcontext.finish();\n\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(SuperScouting.this, HomeScreen.class);\n startActivity(intent);\n }", "@Override\r\n\tpublic void onClick(View arg0) {\n\r\n\t\tswitch (arg0.getId()) {\r\n\t\tcase R.id.title_bar_back:\r\n\t\t\tHuanKuan.this.finish();\r\n\t\t\tanim_right_out();\r\n\t\t\tbreak;\r\n\t\tcase R.id.hk_chongzhi:\r\n\t\t\t// 充值\r\n\r\n\t\t\tbreak;\r\n\t\tcase R.id.hk_huankuan:\r\n\t\t\t//确认还款 \r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void afterClickHistory(View view) {\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent doopn = new Intent(Dish.this, Done.class);\r\n\t\t\t\tstartActivity(doopn);\r\n\t\t\t}", "public void BackHomePage(View v) {\n onBackPressed();\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tstartActivity(new Intent(\"comp.history.BHA\"));\n\t\t\t}", "@OnClick(R.id.fab)\n protected void fabClicked() {\n showPostTweetDialog(null);\n }", "public void onClickHome (View v)\n{\n goHome (this);\n}", "@Override\n\t\t\t// On click function\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent(view.getContext(),\n\t\t\t\t\t\tHomeActivity.class);\n\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\tstartActivity(intent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\r\n\r\n\t\t\t}", "@Override\n\t public void onClick(View arg0) {\n\t\tfinish();\n\t }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmCallbacks.openDrawerExhi();\r\n\t\t\t}", "public void fabFiveClick(View view)\n {\n if (player != null && player.isPlaying())\n player.stop();\n\n player = MediaPlayer.create(this, R.raw.drum_pad);\n player.start();\n textViewToast.setText(\"Drum Pad\");\n toast.show();\n }", "public void goToHomePage() {\n super.onBackPressed();\n }", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tfinish();\n\t\t\t\t}", "public void clickHistory(View v){\n\tIntent intent = new Intent(TimedWorkout.this, History.class);\n\tintent.putExtra(\"EXERCISE_NAME\", dayName);\n\tintent.putExtra(\"EXERCISE_TYPE\", 3);\n\tstartActivity(intent);\n}", "public void onClick(View arg0) {\n goBack();\n }", "public void onClick(View arg0) {\r\n\t\t\t\t}", "void onSnackBarActionClicked(int uniqueId, View view);", "public void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "public void onClick(View arg0) {\n\t\t\t\tfinish();\n\t\t\t}", "private void setUpHomeButton() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n ActionBar actionBar = this.getSupportActionBar();\n if(actionBar != null){\n actionBar.setDisplayHomeAsUpEnabled(true);\n }\n }", "private void initActionButton() {\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n goToDetailScreen(0);\n\n }\n });\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "void onCardViewTap(View view, int position);", "@Override\n public void onClick(View view) {\n Intent i = new Intent(HelpActivity.this, HomeActivity.class);\n startActivity(i);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //Show and hide navigation bar (Immersive mode)\n View showAndHideBars = findViewById(R.id.mylayout);\n showAndHideBars.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n //Show and hide navigation bar (Immersive mode)\n View showAndHideBars = findViewById(R.id.mylayout);\n showAndHideBars.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent homeIntent = new Intent();\n homeIntent.setAction(Intent.ACTION_MAIN);\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n homeIntent.addCategory(Intent.CATEGORY_HOME);\n getApplicationContext().startActivity(homeIntent);\n\n dialog.dismiss();\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "private void setupActionBar() {\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\t}", "@Override\n public void onClick(View view){\n startActivity(new Intent(homePage.this, MainActivity.class));\n finish();\n\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n Intent intent = new Intent(\n Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "public void backButtonPressed(View view) {\n onBackPressed();\n }", "@Override\n public void onClick() {\n showMonthViewWithBelowEvents();\n }", "@Override\n\tpublic void onClick(View arg0) {\n\t\tIntent intent2 = new Intent(getApplicationContext(), MainActivity.class);\n\t\tintent2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\tstartActivity(intent2);\n\t\tthis.finish();\n\t\tIntent intent = new Intent(Intent.ACTION_MAIN);\n\t\tintent.addCategory(Intent.CATEGORY_HOME);\n\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tstartActivity(intent);\n\t\t\n\t\t//Intent intent2 = new Intent(getApplicationContext(), MainActivity.class);\n\t\t//intent2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t//startActivity(intent2);t2);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id){\n case R.id.dates:\n getdatemenu();\n break;\n case R.id.keys:\n getkeymenu();\n break;\n case R.id.list:\n getlistmenu();\n case android.R.id.home:\n Intent goHome = new Intent(this,MainActivity.class);\n boolean foundHome = navigateUpTo(goHome);\n\n\n }\n\n\n\n return true;\n }", "@Override\r\n public void onClick(View arg0) {\n finish();\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Bundle bundle = this.getArguments();\n String mode = bundle.getString(ARG_MODE);\n\n\n if (mode != null && mode.equals(MODE_SINGLE_PANE)){\n\n // Inflate a \"Done/Discard\" custom action bar view.\n /*org.holoeverywhere.LayoutInflater*/ inflater = (/*org.holoeverywhere.*/LayoutInflater) getSherlockActivity().getSupportActionBar().getThemedContext()\n .getSystemService(getActivity().LAYOUT_INFLATER_SERVICE);\n Log.d(TAG, \"Antes de inflar el customActionBarView\");\n final View customActionBarView = inflater.inflate(\n R.layout.actionbar_custom_view_done_discard, null); // .actionbar_custom_view_done_discard\n Log.d(TAG, \"Antes del setOnClickListener\");\n customActionBarView.findViewById(R.id.actionbar_done).setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // \"Done\"\n // Posting ReminderSelectedEvent to EventBus for add_reminder fragment\n boolean newReminder = false;\n if (reminder == null){\n reminder = new Reminder();\n newReminder = true;\n }\n //\n reminder.setName(mName.getText().toString());\n reminder.setNotes(mNotes.getText().toString());\n //\n if (newReminder) {\n // Creacion de nuevo reminder\n EventBus.getDefault().post(new Events.ReminderCreateEvent(reminder));\n } else{\n // Actualizacion de reminder\n EventBus.getDefault().post(new Events.ReminderUpdateEvent(reminder));\n }\n\n getActivity().finish(); // TODO: don't just finish()!\n }\n });\n customActionBarView.findViewById(R.id.actionbar_discard).setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // \"Discard\"\n getActivity().finish(); // TODO: don't just finish()!\n\n }\n });\n\n\n // Show the custom action bar view and hide the normal Home icon and title.\n final ActionBar actionBar = getSherlockActivity().getSupportActionBar();\n actionBar.setDisplayOptions(\n ActionBar.DISPLAY_SHOW_CUSTOM,\n ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME\n | ActionBar.DISPLAY_SHOW_TITLE);\n actionBar.setCustomView(customActionBarView, new ActionBar.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n // Carga el spinner de tipos\n typesSpinner = (Spinner) customActionBarView.findViewById(R.id.types_spinner);\n\n MyCustomAdapter myCustomAdapter = new MyCustomAdapter(getActivity(), R.layout.row, ReminderTypes);\n if (myCustomAdapter != null) {\n typesSpinner.setAdapter(myCustomAdapter);\n }\n\n\n }\n\n rootView = inflater.inflate(R.layout.add_reminder, container, false);\n\n // Mapea los campos\n mName = (EditText) rootView.findViewById(R.id.name);\n mNotes = (EditText) rootView.findViewById(R.id.notes);\n\n // Carga los valores en pantalla.\n if (reminder != null){\n if (mName != null){\n mName.setText(reminder.getName());\n }\n\n if (mNotes != null){\n mNotes.setText(reminder.getNotes());\n }\n }\n //\n// Views.inject(this);\n\n //Spinner mySpinner = (Spinner) rootView.findViewById(R.id.spinner);\n\n\n return rootView;\n }", "@Override\n public void onClick(View view) {\n Intent intent = AlarmPagerActivity.newIntent(sApplicationContext, mAlarm.getId());\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevMonth();\n\t\t\t\tdisplayCalendar();\n\t\t\t}", "public void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n } else if (id == R.id.action_refresh) {\n Toast.makeText(this, \"Refreshing feed...\", Toast.LENGTH_SHORT).show();\n refreshFeed();\n } else if(id == R.id.action_logout) {\n AlertDialog dialog = new AlertDialog.Builder(this)\n .setTitle(\"Confirm Logout?\")\n .setMessage(\"Are you sure you want to log out from the BlueFletch Feed?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n sessionManager.terminateSession();\n\n dialog.dismiss();\n\n Intent i = new Intent();\n i.setClass(FeedActivity.this, MainActivity.class);\n startActivity(i);\n\n FeedActivity.this.finish();\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .create();\n dialog.show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n toolbar = view.findViewById(R.id.toolbarHome);\n ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n\n //find cardview today\n cardViewTT = view.findViewById(R.id.cardView_terverif_today);\n cardViewUT = view.findViewById(R.id.cardView_unverif_today);\n\n cardViewTT.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), LayoutTerverifToday.class);\n startActivity(intent);\n });\n\n cardViewUT.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), LayoutUnverifToday.class);\n startActivity(intent);\n });\n\n //find cardview monthly\n cardViewTM = view.findViewById(R.id.cardView_terverif_month);\n cardViewUM = view.findViewById(R.id.cardView_unverif_month);\n\n cardViewTM.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), LayoutTerverifMonth.class);\n startActivity(intent);\n });\n\n cardViewUM.setOnClickListener(v -> {\n Intent intent = new Intent(getActivity(), LayoutUnverifMonth.class);\n startActivity(intent);\n });\n\n\n // Inisialisasi SwipeRefreshLayout\n SwipeRefresh = view.findViewById(R.id.refreshHome);\n\n // Mengeset properti warna yang berputar pada SwipeRefreshLayout\n SwipeRefresh.setColorSchemeResources(R.color.primary);\n\n // Mengeset listener yang akan dijalankan saat layar di refresh/swipe\n SwipeRefresh.setOnRefreshListener(() -> {\n // Handler digunakan untuk menjalankan jeda selama 5 detik\n new Handler(Looper.getMainLooper()).postDelayed(() -> {\n // Berhenti berputar/refreshing\n SwipeRefresh.setRefreshing(false);\n },4000); //4000 millisecond = 4 detik\n });\n return view;\n }", "@Override\n public void onClick(View v) {\n switch(v.getId()) {\n // When we click the gps mini button...\n case R.id.fab:\n searchCity();\n break;\n // Click the okay button\n case R.id.okay:\n dontShowThisAgain();\n // If you started this act as normal\n // i.e startActivity then this will\n // return null. If the user runs this on\n // inital app launch this will return null\n if (getCallingActivity() == null) {\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n } else {\n setResult(RESULT_OK);\n finish();\n }\n\n break;\n default:\n break;\n }\n }", "public void myFriendsCardClicked(View view) {\n Intent myFriendsIntent = new Intent(this, FriendList.class);\n startActivity(myFriendsIntent);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\r\n intent.addCategory(Intent.CATEGORY_HOME);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n startActivity(intent);\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tKF5SDKConfig.INSTANCE.startFeedBackActivity(MainActivity.this);\n\n\t\t\t}", "@Override\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\n\t\tcase R.id.title_left:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void onDealsClick(View view){\n Intent intent = new Intent(user_history_activity.this, Deals_Display.class);\n startActivity(intent);\n }", "private void updateSubViewData(CardView viewCardToday_in, final WeatherInfo weatherInfo) {\n try {\n\n TextView viewTextDay;\n ImageView viewImageDayWeatherIcon;\n TextView viewTextDayTempCandF;\n viewImageDayWeatherIcon = viewCardToday_in.findViewById(R.id.viewImageDayWeatherIcon);\n viewTextDay = viewCardToday_in.findViewById(R.id.viewTextDay);\n viewTextDayTempCandF = viewCardToday_in.findViewById(R.id.viewTextDayTempCandF);\n viewTextDay.setText(getDayFromUTCTimeStamp(weatherInfo.getDt()));\n //set weather icon\n if (null != weatherInfo.getWeather().get(0).getIcon()) {\n Glide.with(this).load(AppHelper.URL_GET_WEATHER_ICON.toString().concat(weatherInfo.getWeather().get(0).getIcon()).concat(\".png\"))\n .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.ALL).dontAnimate().dontTransform())\n .into(viewImageDayWeatherIcon);\n }\n viewTextDayTempCandF.setText(\"\" + weatherInfo.getTemp().getDay() + \" K\");\n //more detail on click of card view\n viewCardToday_in.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n try {\n showToastOfTodayWeatherDetails(weatherInfo);\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }\n });\n } catch (Exception e) {\n AppDataLog.TPostExep(e);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowActionSheet();\n\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory( Intent.CATEGORY_HOME );\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n }", "@Override\r\n\tpublic void onClick(View arg0) {\n\t\t\r\n\t}", "@Override\r\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\r\n intent.addCategory(Intent.CATEGORY_DEFAULT);\r\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK /*| Intent.FLAG_ACTIVITY_CLEAR_TASK*/\r\n /* | Intent.FLAG_ACTIVITY_TASK_ON_HOME*/);\r\n intent.setDataAndType(Uri.parse(\"content://com.android.calendar/\"), \"time/epoch\");\r\n mContext.startActivity(intent);\r\n// if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){\r\n// mContext.startActivity(new Intent(AlarmClock.ACTION_SHOW_ALARMS));\r\n// }else {\r\n// mContext.startActivity(new Intent(AlarmClock.ACTION_SET_ALARM));\r\n// }\r\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.Linear_above_toHome:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppManager.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}", "@Override\n public void onClick(View arg0) {\n finish();\n }", "@Override\n public boolean onDown(MotionEvent e) {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n// Toast.makeText(MainActivity.this, \"down event\", Toast.LENGTH_SHORT).show();\n// AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n// builder.setTitle(\"event down\");\n// builder.setMessage(\"this is neat\");\n// AlertDialog dialog = builder.create();\n// dialog.show();\n return true;\n }", "public void goHome(View view) {\n String toastString = \"go home...\";\n Toast.makeText(FriendsList.this,toastString, Toast.LENGTH_SHORT).show();\n\n //TODO\n // go to list screen....\n Intent goToNextScreen = new Intent (this, AccountAccess.class);\n final int result = 1;\n startActivity(goToNextScreen);\n }", "@Override\n public void onClick(View v) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.forecast_io_url)));\n startActivity(browserIntent);\n }", "public void OnGotoMyRecipes(View View)\n {\n \t\t Intent intent = new Intent(View.getContext(), MyRecipes.class);\n \t\t intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n \t\t EditRecipeActivity.this.finish();\n }", "public void clickBack(View view){\r\n onBackPressed();\r\n }" ]
[ "0.6200353", "0.61908317", "0.58494467", "0.57580346", "0.57100093", "0.5696565", "0.56666684", "0.56243455", "0.5622325", "0.56024843", "0.55957276", "0.5591739", "0.55913", "0.5577213", "0.55574745", "0.5552722", "0.5544637", "0.554078", "0.55290186", "0.5508094", "0.55002934", "0.54962033", "0.54856056", "0.5454495", "0.5450925", "0.5440377", "0.5440334", "0.5440334", "0.5440334", "0.5440334", "0.5436052", "0.5423911", "0.5423809", "0.5422543", "0.5422322", "0.54171", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54132175", "0.54122597", "0.540332", "0.54012215", "0.5389412", "0.5387988", "0.5382546", "0.5380201", "0.5377615", "0.53698945", "0.53698945", "0.5367685", "0.5366014", "0.5360489", "0.535975", "0.53578866", "0.53543854", "0.53543854", "0.53391516", "0.53390455", "0.5337297", "0.5324171", "0.5317141", "0.53092265", "0.5307009", "0.53059417", "0.5301929", "0.529526", "0.5293362", "0.52876556", "0.5286834", "0.5285289", "0.52846974", "0.52842516", "0.5282357", "0.5279038", "0.5278711", "0.52775615", "0.52749103", "0.52725", "0.52723235", "0.5269534", "0.5266248", "0.5265403", "0.5259052", "0.52562386", "0.5251543", "0.5250566", "0.52488506", "0.52478784", "0.5247793", "0.52470005", "0.5245437", "0.52422065", "0.5238511" ]
0.0
-1
/ access modifiers changed from: packageprivate
@Binds @IntoMap @ActivityKey(BaseActivity.class) public abstract AndroidInjector.Factory<? extends Activity> bindAndroidInjectorFactory(BaseActivitySubcomponent.Builder builder);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
System.out.println ( "TrackerWidget::dragAborted" ) ;
@Override public void dragAborted () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onDragEnded();", "static void dragonLost() {\n\n\t\tSystem.exit(0); // This code ends the program\n\t}", "@Override\n\tpublic void dragDropped() {\n\n\t}", "@Override\n\tpublic void onDragEnd(boolean success) {\n\t\t\n\t}", "@Override\n public void onDragEnd() {\n // Do nothing.\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "public boolean onDragStarted();", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "void onDragged();", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n public void drag(int x, int y)\n {\n }", "public void mouseDragged(MouseEvent e) \n {\n recordLabel(e.getPoint()); \n }", "@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseDragged (MouseEvent e) { if(task!=null) task.mouseDragged(e); }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "public void onFrameDrop() {}", "public void aborted() {\n System.out.println(\"Aborted\");\n }", "@Test(timeout=300000)\n public void test00() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n // Undeclared exception!\n try { \n controllerTransferListener0.dragDropEnd((DragSourceDropEvent) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.console.gui.dnd.listeners.AbstractGuiDropListener\", e);\n }\n }", "@Test(timeout=300000)\n public void test16() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n // Undeclared exception!\n try { \n backendTransferListener0.dragGestureRecognized((DragGestureEvent) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.console.gui.dnd.listeners.AbstractGuiDropListener\", e);\n }\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "public void mouseDragged(MouseEvent e) {\n }", "private synchronized void endDrag() {\n this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n beingDragged = false;\n }", "@Override\n\tvoid drowing() {\n\t\tSystem.out.println(\"test--drawing\");\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent e){}", "void onDragEnd(View view);", "@Override\n public void mouseDrop()\n {\n }", "@Override\n public void onDragStarted(int position) {\n }", "public void mouseDrag(MouseEvent e, int x, int y) {\n // Do nothing.. \n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "public void mouseDragged(MouseEvent e)\n {}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {}", "public void dragDropEnd(boolean success);", "static void setNotDraging(){isDraging=false;}", "@Override\n \tpublic void roiDragged(ROIEvent evt) {\n \t\t\n \t}", "protected abstract boolean dragged();", "void onDropped();", "@Test(timeout=300000)\n public void test13() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.dragExit((DragSourceEvent) null);\n }", "public void mouseDragged(MouseEvent event) { }", "@DISPID(-2147412077)\n @PropGet\n java.lang.Object ondragstart();", "public void mouseDragged(MouseEvent evt) {\r\n xDragged = evt.getX(); // store the x coordinate of the mouse\r\n yDragged = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse dragged at coordinate (\"\r\n + xDragged + \", \" + yDragged + \").\");\r\n System.out.println(\"calling method mouseDragged() of PaintTool.\");\r\n ge.mouseDragged(xDragged, yDragged, gra, getBackground());\r\n // call method mouseDragged() of class PaintTool\r\n System.out.println(\"method mouseDragged() of class PaintTool executed.\");\r\n }", "@Override\n\tpublic void nativeMouseDragged(NativeMouseEvent e) {\n\t\t\n\t}", "@Override\n public void onMarkerDrag(Marker arg0) {\n Log.i(\"System out\", \"onMarkerDrag...\");\n }", "@Override\n public void mouseReleased(MouseEvent evt) {\n }", "@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}", "public void mouseReleased(MouseEvent e)\n { }", "@Test(timeout=300000)\n public void test02() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.mouseDragged((MouseEvent) null);\n }", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"solto ermano\");\n\t\t\t}", "@Test(timeout=300000)\n public void test09() throws Throwable {\n ControllerTransferListener controllerTransferListener0 = new ControllerTransferListener((CjdbcGui) null);\n controllerTransferListener0.dragOver((DragSourceDragEvent) null);\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "public void mouseDragged(MouseEvent mouseEvent)\r\n { \r\n // Do nothing for this\r\n }", "@Override\r\n\t\t public void mouseReleased(MouseEvent arg0) {\n\t\t }", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\r\n\t\t\t}", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "public void mouseReleased(MouseEvent me) {\n endDrag();\n }", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\r\npublic void mouseReleased(MouseEvent arg0) {\n\t\r\n}", "protected void userErrorOccurred()\n {\n traceOK = false;\n }", "@Override\n public void onMarkerDrag(Marker arg0) {\n Log.i(\"System out\", \"onMarkerDrag...\");\n }", "@DISPID(204)\r\n public boolean beginDrag() {\r\n throw new UnsupportedOperationException();\r\n }" ]
[ "0.6886485", "0.67602897", "0.6717501", "0.66274375", "0.64950836", "0.63908505", "0.63212234", "0.6314835", "0.63042516", "0.63022894", "0.62975705", "0.62693965", "0.62693965", "0.62693965", "0.62693965", "0.62693965", "0.62693965", "0.62693965", "0.62675714", "0.62641984", "0.6257643", "0.6257643", "0.6257643", "0.6257643", "0.6257643", "0.62557274", "0.62557274", "0.6245056", "0.6242977", "0.6242977", "0.62217176", "0.62196416", "0.6192383", "0.6192383", "0.6188882", "0.6188882", "0.61686426", "0.61645156", "0.61515754", "0.615014", "0.61266506", "0.6125162", "0.6125162", "0.6125162", "0.6117538", "0.61133295", "0.610299", "0.60988826", "0.60799104", "0.6052635", "0.60407156", "0.60354555", "0.6022624", "0.6016219", "0.601302", "0.6011345", "0.59939736", "0.5988454", "0.59769535", "0.59764725", "0.5974959", "0.5972137", "0.5971951", "0.5962709", "0.5950332", "0.5950332", "0.59438926", "0.594292", "0.5934452", "0.591341", "0.5910287", "0.5896654", "0.58621323", "0.58567107", "0.58438677", "0.5843351", "0.5839654", "0.5836421", "0.58338416", "0.58320224", "0.5827565", "0.58238256", "0.58154744", "0.5809136", "0.58053005", "0.58043075", "0.58041346", "0.58038574", "0.5795509", "0.5795509", "0.5795509", "0.5794873", "0.5793154", "0.5789077", "0.5789077", "0.5789077", "0.5786696", "0.5784813", "0.5782306", "0.57799715" ]
0.8192071
0
System.out.println ( "TrackerWidget::receiveDrop:" + dropString ) ;
@Override public void receiveDrop ( String dropString ) { addAttribute ( WidgetAttribute.valueOf ( dropString ) ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void dragDropped() {\n\n\t}", "void onDropped();", "@Override\n public void mouseDrop()\n {\n }", "public void onDropped(StringBuilder sb, char[] buf, int len) {\n }", "public void onFrameDrop() {}", "@Override\n\tpublic void handleDrop(Player player, Task task, Game game) {\n\t\t\n\t}", "public void dropActionChanged(DragSourceDragEvent evt) {\n }", "void onItemDropped(EntityId droppedItem);", "public void dropActionChanged(DropTargetDragEvent dtde){}", "public void dragDropEnd(DragSourceDropEvent evt) {\n }", "public String dropItem(String item){\n if(hasGrabbedItem(item)){\n grabbedItems.remove(item);\n return \"You have dropped: \" + item;\n }else{\n return \"You don't have one to drop.\";\n }\n }", "public ItemStack onTake(Player debug1, ItemStack debug2) {\n/* 65 */ setChanged();\n/* 66 */ return debug2;\n/* */ }", "static void drop(Player player, String what) {\n if (player.drop(what)) {\n System.out.println(\"You dropped \" + what);\n }\n else {\n System.out.println(\"You aren't carrying \" + what);\n }\n }", "@Override\n\tprotected void on_object_drop(GfxObject bonus) {\n\n\t}", "public boolean isDropped();", "void onDrop(int from, int to);", "public void logDrop(int id, int amount, int x, int y, boolean drop) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.DROP_LOG, true));\n\n\t\t\ttry {\n\n\t\t\t\tif (drop) {\n\t\t\t\t\tlog.write(df.format(d) + \", \" + c.getDisplayName() + \" dropped \" + amount + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(id) + \" at (\" + x + \", \" + y + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tlog.write(df.format(d) + \", \" + c.getDisplayName() + \" picked up \" + amount + \"x \"\n\t\t\t\t\t\t\t+ c.getItems().getItemName(id) + \" at (\" + x + \", \" + y + \")\");\n\t\t\t\t}\n\n\t\t\t} finally {\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.close();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public void onDrag(int dragSource, int dropTarget) {\n\t}", "static String drop(Player player, String what) {\n if (player.drop(what)) {\n return \"-Charlie Bot: You have dropped the \" + what;\n } else {\n return \"-Charlie Bot: You aren't carrying \" + what + \", 525.\\n\" +\n \"Has the cryostasis affected your sense of weight?\";\n }\n }", "public void dropActionChanged(DropTargetDragEvent dtde) {\n // empty\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "@Override\r\n public void drop(DropTargetDropEvent dtde) {\r\n onDropFile(dtde);\r\n }", "public String getDropKey() {\n return this.dropKey;\n }", "@Override\r\n\t\tpublic void dropActionChanged(DropTargetDragEvent dtde) {\n\t\t\t\r\n\t\t}", "@Override\n public boolean onDrag(View viewDroppedUpon , DragEvent de){\n\n\n log(\"adapter pos\"+this.viewHolder.getAdapterPosition());\n switch (de.getAction()){\n\n case DragEvent.ACTION_DRAG_STARTED:\n //log(\"StartingDrag\"+DragEvent.ACTION_DRAG_STARTED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENDED:\n //log(\"Ending Drag\"+DragEvent.ACTION_DRAG_ENDED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENTERED:\n //log(\"Drag entered \"+DragEvent.ACTION_DRAG_ENTERED);\n return true;\n\n case DragEvent.ACTION_DRAG_EXITED:\n //log(\"Drag ended \"+DragEvent.ACTION_DRAG_ENDED);\n\n return true;\n\n case DragEvent.ACTION_DRAG_LOCATION:\n //log(\"Drag location \"+DragEvent.ACTION_DRAG_LOCATION);\n return true;\n\n case DragEvent.ACTION_DROP:\n //log(\"droppable is \"+this.droppable);\n\n log(\"Action dropped \" + DragEvent.ACTION_DROP);\n\n View dropped=(View)de.getLocalState();\n\n\n log(\"viewDroppedUpon tag \"+viewDroppedUpon.getTag());\n log(\"dropped tag \"+dropped.getTag());\n int pos=this.viewHolder.getAdapterPosition();\n\n\n\n mPairMaker.makePairs(dropped,viewDroppedUpon,pos,LongPressListener.getPosition());\n\n\n\n\n\n return true;\n }\n\n\n\n return false;\n }", "public void drop(DropTargetDropEvent dtde){\n if(draggedFile!=null){\n log.info(\"MotionViewer.drop(): opening file \"+draggedFile);\n try{\n recentFiles.addFile(draggedFile);\n getPlayer().startPlayback(draggedFile);\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }\n }\n }", "@Override\n public void drop(DropTargetDropEvent e) {\n try {\n\n Transferable t = e.getTransferable();\n DataFlavor dataFlavor = t.getTransferDataFlavors()[1];\n DataObject dataObject = (DataObject) t.getTransferData(dataFlavor);\n\n DataSet dataSet = dataObject.getLookup().lookup(DataSet.class);//get the object from lookup listener\n NeuralNetwork nnet = dataObject.getLookup().lookup(NeuralNetwork.class);//get the object from lookup listener\n\n if (dataSet != null) {\n trainingSet = dataSet;\n\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n if (radioDataSet.isSelected()) {\n IOSettingsDialog dataSetSettings = IOSettingsDialog.getInstance();\n dataSetSettings.initializeInformation(trainingSet, jmeVisualization);\n dataSetSettings.setVisible(true);\n }\n\n }\n\n if (nnet != null) {\n neuralNetwork = nnet;\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n }\n\n if (neuralNetwork != null && trainingSet != null) {\n trainSignal = true;\n removeContent();\n trainingPreprocessing();\n addContent();\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n initializeConsumerProducer(1000);\n }\n\n e.dropComplete(true);\n } catch (UnsupportedFlavorException | IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }", "@EventHandler\n public void onBlockDropEvent(BlockBreakEvent event) {\n if (!plugin.config.enabled) {\n //plugin is not enabled.. do nothing\n return;\n }\n\n Player player = event.getPlayer();\n //message for debug\n String debugMSG = \"\";\n //test if player is in creative\n if (player.getGameMode().equals(GameMode.CREATIVE)){\n //don't drop anything\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.RESET;\n plugin.console.log(debugMSG + \"Player in Creative Mode. Not Dropping Items.\");\n }\n return;\n }\n\n Block block = event.getBlock();\n\n\n String blockLocation = \"\";\n if (plugin.config.debug) {\n debugMSG = ChatColor.DARK_GREEN + \"[DEBUG]\"\n + ChatColor.YELLOW + \"[\" + player.getDisplayName() + \"]\"\n + ChatColor.BLUE + \"[\" + block.getType().name() + \"]\"\n + ChatColor.RESET;\n blockLocation = ChatColor.DARK_AQUA + \" X:\" + ChatColor.GRAY + block.getLocation().getBlockX()\n + ChatColor.DARK_AQUA + \" Y:\" + ChatColor.GRAY + block.getLocation().getBlockY()\n + ChatColor.DARK_AQUA + \" Z:\" + ChatColor.GRAY + block.getLocation().getBlockZ();\n }\n\n //test to see if this block was placed\n List<MetadataValue> blockD = block.getMetadata(placeBlock);\n if (blockD.size() != 0) {\n //block was placed\n // don't drop anything\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block Was Placed. No Drops Allowed. \"\n + blockLocation\n );\n }\n return;\n }\n\n Material brokenBlock = block.getType();//gets the material that was just broken\n\n\n //test if we need to check out list of Ores,\n // OR... are we doing it for ALL Blocks\n Ore tempOre = new Ore();//set up tempOre for good measure\n\n if (plugin.config.allBlocks) {\n //we are looking at all blocks\n // make tempOre equal to the block that we broke\n tempOre.setBlock(brokenBlock);\n tempOre.setExp(plugin.config.allBlocks_exp);\n tempOre.setMultiplier(plugin.config.allBlocks_multiplier);\n tempOre.setChance(plugin.config.allBlocks_chance);\n } else {\n //find a Material in our list that matches\n tempOre = plugin.ores.stream().filter((ore) -> brokenBlock.name().contains(ore.getName())).findFirst().orElse(null);\n }\n\n\n if (tempOre == null) {\n //ore was not in our list.\n //stop method\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Block was not Registered in config. No Drops Allowed. \"\n );\n }\n\n return;\n }\n\n //find out if we hit the right chance and go from there\n int chance = plugin.rnd.nextInt(100);//get a percentage\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Chance Needed: \" + tempOre.getChance()\n + \" Chance Received: \" + chance + \" \"\n + blockLocation\n );\n }\n\n if (chance <= tempOre.getChance()) {\n //success on the chance\\\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drops Allowed. \"\n + blockLocation\n );\n }\n\n Collection<ItemStack> droppedItems = event.getBlock().getDrops();//get what ever was dropped\n int initialDrop = 0;//variable to hold how many items were dropped to begin with\n //drop an extra item per drop\n for (ItemStack i : droppedItems) {\n initialDrop = i.getAmount();\n i.setAmount(i.getAmount()*tempOre.getMultiplier() - 1);//set amount to drop\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop: \" + i.getType().name()\n + \" Amount: \" + initialDrop\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Extra Given: \" + (i.getAmount())\n + blockLocation\n );\n }\n\n event.getBlock().getWorld().dropItemNaturally(\n event.getBlock().getLocation(), i\n );\n }\n\n //find out if we need to give experience\n if (tempOre.isExp()) {\n\n //debug\n if (plugin.config.debug) {\n plugin.console.log(debugMSG\n + \" Drop includes XP\"\n + \" Amount: \" + event.getExpToDrop()\n + \" Multiplier: \" + tempOre.getMultiplier()\n + \" Total Given: \" + (event.getExpToDrop() * tempOre.getMultiplier())\n + blockLocation\n );\n }\n\n event.setExpToDrop(event.getExpToDrop() * tempOre.getMultiplier());\n }\n\n\n }\n\n\n }", "@Override\n\tpublic void handleDroppedCFComponent(CFComponent component) {\n\n\t}", "DropHandler(FileUploaderApplet container) {\n\t\tthis.container = container;\n\t}", "@Override\r\n public void dropActionChanged(DropTargetDragEvent dtde) {}", "public void mouseDragged(MouseEvent e) \n {\n recordLabel(e.getPoint()); \n }", "public long getDropTime() {\n\t\treturn dropTime;\n\t}", "@Override\r\n\t/**\r\n\t * Each enemy has a unique drop\r\n\t */\r\n\tpublic String enemyDrop() {\n\t\treturn null;\r\n\t}", "public void dropActionChanged(DropTargetDragEvent dtde) {\n\t\t\n\t}", "public void onDrag(int dragSource, int dropTarget) {\n\t\t}", "public DropType getDropType() {\n return _dropType;\n }", "public void fruitDrop()\n {\n fruit.slowMoveVertical(60);\n }", "public void mouseDragged(MouseEvent evt) {\r\n xDragged = evt.getX(); // store the x coordinate of the mouse\r\n yDragged = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse dragged at coordinate (\"\r\n + xDragged + \", \" + yDragged + \").\");\r\n System.out.println(\"calling method mouseDragged() of PaintTool.\");\r\n ge.mouseDragged(xDragged, yDragged, gra, getBackground());\r\n // call method mouseDragged() of class PaintTool\r\n System.out.println(\"method mouseDragged() of class PaintTool executed.\");\r\n }", "public void setDropType(DropType dropType) {\n _dropType = dropType;\n }", "public void setDropped(boolean dropped);", "private void btnDropActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDropActionPerformed\n String message = \"Failed to edit data...\";\n int flag = JOptionPane.showConfirmDialog(this, \"Tenane?\", \"APA KOE YAKIN MEH NGEHAPUS?\", \n JOptionPane.YES_NO_OPTION);\n if (flag == 0){\n if (cutiController.drop(txtCutiID.getText())){\n message = \"Success to drop data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Notification\", \n JOptionPane.QUESTION_MESSAGE);\n }\n bindingTable();\n reset();\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Test(timeout=300000)\n public void test14() throws Throwable {\n BackendTransferListener backendTransferListener0 = new BackendTransferListener((CjdbcGui) null);\n backendTransferListener0.dropActionChanged((DragSourceDragEvent) null);\n }", "public void dropItem(final String pStringItem){this.aItemsList.dropItem(pStringItem);}", "@Override\r\n\t\t\tpublic void debug(String arg) {\n\t\t\t\t\r\n\t\t\t}", "private void debug(String str) {\n }", "public void trade(Drop myDrop, User receiver) {\n getInventory().removeDrop(myDrop);\n receiver.getInventory().addDrop(myDrop);\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void dropAccept(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void drop( DropTargetDropEvent evt )\r\n {\r\n log(out, \"FileDropIn.drop(): drop event.\");\r\n try\r\n { // Get whatever was dropped\r\n Transferable tr = evt.getTransferable();\r\n\r\n // Is it a file list?\r\n if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor))\r\n {\r\n // Say we'll take it.\r\n //evt.acceptDrop ( java.awt.dnd.DnDConstants.ACTION_COPY_OR_MOVE );\r\n evt.acceptDrop(DnDConstants.ACTION_COPY);\r\n log(out, \"FileDropIn.drop(): file list accepted.\");\r\n\r\n // Get a useful list\r\n java.util.List fileList = (java.util.List) tr.getTransferData(DataFlavor.javaFileListFlavor);\r\n //java.util.Iterator iterator = fileList.iterator();\r\n\r\n // Convert list to array\r\n File[] filesTemp = new File[fileList.size()];\r\n fileList.toArray(filesTemp);\r\n final File[] files = filesTemp;\r\n\r\n // Alert listener to drop.\r\n if (listener != null)\r\n listener.filesDropped(files);\r\n\r\n // Mark that drop is completed.\r\n evt.getDropTargetContext().dropComplete(true);\r\n log(out, \"FileDropIn.drop(): drop complete.\");\r\n } // end if: file list\r\n else\r\n {\r\n log(out, \"FileDropIn.drop(): not a file list - abort.\");\r\n evt.rejectDrop();\r\n } // end else: not a file list\r\n } // end try\r\n catch (IOException io)\r\n {\r\n log(out, \"FileDrop.drop(): IOException - abort:\");\r\n io.printStackTrace(out);\r\n evt.rejectDrop();\r\n } // end catch IOException\r\n catch (UnsupportedFlavorException ufe)\r\n {\r\n log(out, \"FileDrop.drop(): UnsupportedFlavorException - abort:\");\r\n ufe.printStackTrace(out);\r\n evt.rejectDrop();\r\n } // end catch: UnsupportedFlavorException\r\n finally\r\n {\r\n // If it's a Swing component, reset its border\r\n if (comp instanceof javax.swing.JComponent)\r\n {\r\n JComponent jc = (JComponent) comp;\r\n jc.setBorder(normalBorder);\r\n log(out, \"FileDropIn.drop(): normal border restored.\");\r\n } // end if: JComponent\r\n } // end finally\r\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void dropAccept(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void drop(DropTargetDropEvent event) {\n\n\t\t// Accept copy drops\n\t\tevent.acceptDrop(DnDConstants.ACTION_COPY);\n\n\t\t// Get the transfer which can provide the dropped item data\n\t\tTransferable transferable = event.getTransferable();\n\n\t\t// Get the data formats of the dropped item\n\t\tDataFlavor[] flavors = transferable.getTransferDataFlavors();\n\n\t\t// Loop through the flavors\n\t\tfor (DataFlavor flavor : flavors) {\n\t\t\ttry {\n\t\t\t\t// If the drop items are files\n\t\t\t\tif (flavor.isFlavorJavaFileListType()) {\n\n\t\t\t\t\t// Get all of the dropped files\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tList<File> files = (List<File>) transferable.getTransferData(flavor);\n\n\t\t\t\t\t// Loop them through\n\t\t\t\t\tfor (File file : files) {\n\t\t\t\t\t\tString path = file.getPath();\n\t\t\t\t\t\tif (path.toLowerCase().endsWith(\".png\") || path.toLowerCase().endsWith(\".jpg\") || path.toLowerCase().endsWith(\".jpeg\") || path.toLowerCase().endsWith(\".bmp\")) {\n\t\t\t\t\t\t\t// Print out the file path\n\t\t\t\t\t\t\tpath = file.getPath();\n\t\t\t\t\t\t\tSystem.out.println(\"File path is '\" + path + \"'.\");\n\t\t\t\t\t\t\tif (getQuestEditation() != null) {\n\t\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setImage(path, false);\n\t\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().repaint();\n\t\t\t\t\t\t\t\tgetQuestEditation().setPictureIsFromFolder(false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setImage(path, false);\n\t\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().repaint();\n\t\t\t\t\t\t\t\tgetAddAnswer().setPictureIsFromFolder(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (flavor.match(DataFlavor.imageFlavor)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tImage image = (Image) transferable.getTransferData(DataFlavor.imageFlavor);\n\t\t\t\t\t\tif (getQuestEditation() != null) {\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setImage((BufferedImage) image);\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setPath(\"none\");\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().repaint();\n\t\t\t\t\t\t\tgetQuestEditation().setPictureIsFromFolder(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setImage((BufferedImage) image);\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setPath(\"none\");\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().repaint();\n\t\t\t\t\t\t\tgetAddAnswer().setPictureIsFromFolder(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (InvalidDnDOperationException ex) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"word 2010 error\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Inform that the drop is complete\n\t\tevent.dropComplete(true);\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "public double getDropAmount() {\n return dropAmount;\n }", "@Override\n\t\t\tpublic void dragFinished (DragSourceEvent event) {\n\t\t\t\tif (event.detail == DND.DROP_MOVE) {\n\t\t\t\t\tdragLabel.setText (\"\");\n\t\t\t\t}\n\t\t\t}", "public void setDropAmount(double dropAmount) {\n this.dropAmount = dropAmount;\n }", "protected void onSwapCraft(int debug1) {}", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@ForgeSubscribe(priority = EventPriority.HIGHEST)\n public void onPlayerDrops(PlayerDropsEvent event) {\n if (_PlayerHeads.debug);\n else if (_PlayerHeads.pvp && !event.recentlyHit || _PlayerHeads.dropRates[3] <= 0.0 || _PlayerHeads.random.nextDouble() - 0.005 * (double)event.lootingLevel >= _PlayerHeads.dropRates[3])\n return;\n ItemStack head = new ItemStack(Item.skull, 1, 3);\n head.setTagInfo(\"SkullOwner\", new NBTTagString(\"\", event.entityPlayer.username));\n EntityItem drop = new EntityItem(event.entityPlayer.worldObj, event.entityPlayer.posX, event.entityPlayer.posY, event.entityPlayer.posZ, head);\n drop.delayBeforeCanPickup = 10;\n event.drops.add(drop);\n }", "private void logDroppedSample()\n {\n droppedSamplesSinceLastLog.incrementAndGet();\n if (droppedSamplesStatement.warn(new Object[] {droppedSamplesSinceLastLog.get()}))\n {\n droppedSamplesSinceLastLog.set(0);\n }\n }", "public boolean getDropStop () {\r\n return dropStop;\r\n }", "public Drop() {\n }", "@Override\n\tpublic void drop(DropTargetDropEvent e) {\n\t\tgetContainerDelegate().removeFromPlaceHolderVisibleRequesters(getTargetComponent());\n\t\tgetTargetComponent().setFocused(false);\n\t\ttry {\n\t\t\tDataFlavor chosen = chooseDropFlavor(e);\n\t\t\tif (chosen == null) {\n\t\t\t\te.rejectDrop();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// the actions that the source has specified with\n\t\t\t// DragGestureRecognizer\n\t\t\tint sa = e.getSourceActions();\n\n\t\t\tif ((sa & acceptableActions) == 0) {\n\t\t\t\te.rejectDrop();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tObject data = null;\n\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * the source listener receives this action in dragDropEnd. if\n\t\t\t\t * the action is DnDConstants.ACTION_COPY_OR_MOVE then the\n\t\t\t\t * source receives MOVE!\n\t\t\t\t */\n\n\t\t\t\tdata = e.getTransferable().getTransferData(chosen);\n\t\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\t\tlogger.fine(\"data is a \" + data.getClass().getName());\n\t\t\t\t}\n\t\t\t\tif (data == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (Throwable t) {\n\t\t\t\tif (logger.isLoggable(Level.WARNING)) {\n\t\t\t\t\tlogger.warning(\"Couldn't get transfer data: \" + t.getMessage());\n\t\t\t\t}\n\t\t\t\tt.printStackTrace();\n\t\t\t\te.dropComplete(false);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (data instanceof FIBDraggable) {\n\n\t\t\t\ttry {\n\t\t\t\t\tFIBDraggable element = (FIBDraggable) data;\n\t\t\t\t\tif (element == null) {\n\t\t\t\t\t\te.rejectDrop();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tObject source = e.getSource();\n\n\t\t\t\t\t// OK, let's got for the drop\n\t\t\t\t\tif (source instanceof FIBDropTarget && element.acceptDragging((FIBDropTarget) source)) {\n\t\t\t\t\t\tPoint pt = e.getLocation();\n\t\t\t\t\t\tif (element.elementDragged((FIBDropTarget) source, pt)) {\n\t\t\t\t\t\t\te.acceptDrop(acceptableActions);\n\t\t\t\t\t\t\te.dropComplete(true);\n\t\t\t\t\t\t\tlogger.info(\"Drop succeeded\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\te.rejectDrop();\n\t\t\t\t\te.dropComplete(false);\n\t\t\t\t\treturn;\n\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\te.rejectDrop();\n\t\t\t\t\te.dropComplete(false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\te.rejectDrop();\n\t\t\te.dropComplete(false);\n\t\t\treturn;\n\t\t}\n\n\t\tfinally {\n\t\t\t// getController().getDrawingView().resetCapturedNode();\n\t\t}\n\t}", "public void dragDropEnd(boolean success);", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "protected void onQuickCraft(ItemStack debug1, int debug2) {}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DropInfoOrBuilder getDropOrBuilder() {\n if ((stepInfoCase_ == 15) && (dropBuilder_ != null)) {\n return dropBuilder_.getMessageOrBuilder();\n } else {\n if (stepInfoCase_ == 15) {\n return (com.google.cloud.networkmanagement.v1beta1.DropInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DropInfo.getDefaultInstance();\n }\n }", "public abstract void drop();", "void drop();", "void drop();", "public interface DropListener {\n\t\n\t/**\n\t * Called when an item is to be dropped.\n\t * @param from - index item started at.\n\t * @param to - index to place item at.\n\t */\n\tvoid onDrop(int from, int to);\n}", "public void dragOver( DropTargetDragEvent evt )\r\n { // This is called continually as long as the mouse is\r\n // over the drag target.\r\n }", "void onDragged();", "public void setDropTime(long dropTime) {\n\t\tthis.dropTime = dropTime;\n\t}", "@Override\n public void onTakeTeaBagRaised() {\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public String dragAnddrop(String object, String data) {\n\n\t\ttry {\n\n\t\t\tString[] dragdrop = object.split(Constants.Object_SPLIT);\n\t\t\tString src = dragdrop[0];\n\t\t\tString trgt = dragdrop[1];\n\t\t\tWebElement source = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(src))));\n\t\t\tWebElement target = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(trgt))));\n\n\t\t\tnew Actions(driver).dragAndDrop(source, target).build().perform();\n\t\t\treturn Constants.KEYWORD_PASS + \"--Element Dropped sucessfully\";\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \"Cannot Drag and Drop element\";\n\t\t}\n\n\t\t\n\n\t}", "public void goldDropPoint()\r\n {\r\n System.out.println(\"goldDropPoint\");\r\n setManual(false);\r\n if (isCollectionPlane)\r\n {\r\n savePreviousPosition();\r\n setIsCollectionPlane(false);\r\n }\r\n if (motorJ1.getCurrentPosition() > GOLD_DROP_J1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < GOLD_DROP_J1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > GOLD_DROP_J2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < GOLD_DROP_J2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > GOLD_DROP_J3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < GOLD_DROP_J3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, GOLD_DROP_J1, GOLD_DROP_J2, GOLD_DROP_J3);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.DropInfo getDrop() {\n if (dropBuilder_ == null) {\n if (stepInfoCase_ == 15) {\n return (com.google.cloud.networkmanagement.v1beta1.DropInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.DropInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 15) {\n return dropBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.DropInfo.getDefaultInstance();\n }\n }", "private void fireNotification(Drop drop) {\n String message = drop.getWhat();\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, BucketDropsApplication.CHANNEL_ID)\n .setSmallIcon(R.drawable.ic_mail_outline)\n .setContentTitle(message)\n .setContentText(getString(R.string.notif_message))\n .setAutoCancel(true)\n .setPriority(NotificationCompat.PRIORITY_DEFAULT);\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(this);\n notificationManagerCompat.notify(100+(++i), builder.build());\n Log.d(\"utsab\",\"Notification \"+i);\n }" ]
[ "0.65326405", "0.65281886", "0.620278", "0.61587703", "0.6047931", "0.6035673", "0.5883506", "0.5877134", "0.58767647", "0.58068216", "0.577779", "0.57619894", "0.56647897", "0.5657766", "0.5632405", "0.56165034", "0.56090355", "0.55841154", "0.55755275", "0.55445886", "0.55442786", "0.554273", "0.55308855", "0.5521312", "0.54840416", "0.54779077", "0.5463744", "0.54472643", "0.5428673", "0.5419847", "0.5417378", "0.541539", "0.5403945", "0.5383781", "0.5366644", "0.5354451", "0.5336355", "0.5321525", "0.53105974", "0.5307364", "0.5298416", "0.52953863", "0.528747", "0.52796435", "0.52677226", "0.5260957", "0.52604103", "0.5251893", "0.52426475", "0.52426475", "0.52397484", "0.52397484", "0.52397484", "0.52397484", "0.52397484", "0.52397484", "0.52397484", "0.5233964", "0.5232268", "0.5232044", "0.5231045", "0.52243525", "0.52227473", "0.5216888", "0.5210123", "0.5199573", "0.5193352", "0.5180875", "0.517584", "0.5173124", "0.5168426", "0.5157424", "0.51541615", "0.51509273", "0.51493543", "0.5144889", "0.5137607", "0.51353437", "0.51353437", "0.5133394", "0.5130657", "0.51218456", "0.5109401", "0.5109401", "0.510921", "0.5108242", "0.50944555", "0.5089977", "0.50850546", "0.5084042", "0.5084042", "0.5084042", "0.5084042", "0.5084042", "0.5082056", "0.5073476", "0.50726813", "0.5071665", "0.50696576", "0.50629854" ]
0.6924149
0
TODO : find which widget is about to be dragged
@Override public boolean isDropOk () { return isAllowed ( selectedAttribute ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean dragged();", "public boolean dragFromSubComponents();", "void onDragged();", "public void mouseDragged(MouseEvent mEvent) \n {\n /* don't do anything while game is running */\n if(GAME_RUNNING)\n return;\n\n /* TODO: remove debug msg */\n statusMsg = new String(\"mouseDragged @ \" + mEvent.getX() + \", \" + mEvent.getY() + \" on \" + mEvent.getComponent().getClass().getName());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouse dragging on gamecanvas while game is not running */\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n case SELECTED:\n /* mouse is being dragged but we aren't in drag mode, did this drag start on an unlocked widget? */\n Widget startWidget = timWorld.grabWidget(pressX,pressY); //TODO: add a flag/check so we don't have to continually try to grab in case of failure\n if(startWidget != null && startWidget.isLocked() == false)\n {\n /* mouse dragging started over an unlocked widget, pick it up and begin dragging */\n selectedWidget = startWidget;\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.PRESS;\n \n clickOffsetX = selectedWidget.getPosition().getX() - pressX;\n clickOffsetY = selectedWidget.getPosition().getY() - pressY;\n \n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n case ADDING:\n /* update mouseX and mouseY for bounding box drawing of the widget being dragged or added */\n mouseX = mEvent.getX();\n mouseY = mEvent.getY();\n canvas.repaint();\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* dragging on widget scroller */\n\n /* make sure we aren't already in adding or dragging mode */\n if(SELECT_MODE != SelectMode.ADDING)\n {\n String pressedWidget = ws.getWidgetAt(pressX, pressY);\n if(pressedWidget != null)\n {\n /* pressed on an actual widget, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = pressedWidget;\n selectedWidget = WidgetFactory.createWidget(pressedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.PRESS;\n\n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n\n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n\n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + pressedWidget + \" from widgetscroller\");\n }\n }\n else\n {\n mouseX = mEvent.getX();\n mouseY = mEvent.getY() + 465;\n canvas.repaint();\n }\n }\n\t}", "@Override\n public void drag(int x, int y)\n {\n }", "@Override\n public void onDragStarted(int position) {\n }", "@Override\n\tpublic void dragDropped() {\n\n\t}", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "public boolean onDragStarted();", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void dropped(DNDEvent e) {\n\t\tif (dockable.getTitle() == e.getDragSource()) {\r\n\t\t\tDockableTitleBar titleBar = (DockableTitleBar)dockable.getTitle().getParent();\r\n\t\t\tDNDEvent event = new DNDEvent(\r\n\t\t\t\t\te.getDragSource(), \r\n\t\t\t\t\te.getDropTarget(), \r\n\t\t\t\t\ttitleBar.getLocationOnScreen().x + e.getX() - e.getOriginX(), \r\n\t\t\t\t\ttitleBar.getLocationOnScreen().y + e.getY() + e.getOriginY(), \r\n\t\t\t\t\te.getOriginX(), e.getOriginY(), \r\n\t\t\t\t\tDNDEvent.RESULT_FAILURE);\r\n\t\t\ttitleBar.dropped(event);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: quick but really dirty...\r\n\t\t//Dockable sourceDockable = (Dockable)e.getDragSource().getParent().getParent().getParent().getParent();\r\n\t\t// TODO: less dirty...\r\n\t\tDockable sourceDockable = (Dockable)((DockableTitleBar)e.getDragSource().getParent()).getDockable();\r\n\t\tDockable targetDockable = dockable;\r\n\t\t\r\n\t\tDockingCanvas sourceCanvas = sourceDockable.getDockingRoot().getDockingCanvas();\r\n\t\tDockingCanvas targetCanvas = targetDockable.getDockingRoot().getDockingCanvas();\r\n\t\t\r\n\t\t\r\n\t\t// remove drag source\r\n\t\tsourceDockable.getDockingRoot().remove();\r\n\t\tif (sourceCanvas.isDisposable() && sourceCanvas.getComponentCount() == 0) {\r\n\t\t\tsourceCanvas.getOwner().dispose();\r\n\t\t}\r\n\t\t\r\n\t\t// add to drop target\r\n\t\ttargetDockable.getDockingRoot().add(sourceDockable, direction);\r\n\t\t\r\n\t\t\r\n\t\t// re-validate and repaint target canvas\r\n\t\ttargetCanvas.revalidate();\r\n\t\ttargetCanvas.repaint();\r\n\t\t\r\n\t\t// re-validate and repaint source canvas if different to target canvas\r\n\t\tif (targetCanvas != sourceCanvas) {\r\n\t\t\tsourceCanvas.revalidate();\r\n\t\t\tsourceCanvas.repaint();\r\n\t\t}\r\n\t\t\r\n\t\tmouseOver = false;\r\n\t\t\r\n\t\t//dockable.getDockingRoot().findRoot().printTree(\"\");\r\n\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "void onDragStart(View view);", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "void onStartDrag(RecyclerView.ViewHolder viewHolder);", "void onStartDrag(RecyclerView.ViewHolder viewHolder);", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged (MouseEvent e) {}", "abstract boolean getIsDragging();", "private void drag() {\n Point mousePosition = calculateMouseLocation();\n getArea().x = mousePosition.getX() - (mouseX - prevX);\n getArea().y = mousePosition.getY() - (mouseY - prevY);\n // Ensure that weird resizing stuff doesn't happen while moving the\n // window. Idfk why this works, but it does.\n resize();\n getLayout().resize(this, getChildren());\n getLayout().layout(this, getChildren());\n }", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "public void mouseDragged(MouseEvent e) {}", "@Override\r\n\tpublic void drag(EditorInterface i, MouseEvent e) {\r\n\t\t\r\n\t\tthis.x = e.getX();\r\n\t\tthis.y = e.getY();\r\n\t}", "static void setNotDraging(){isDraging=false;}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "public JsStatement widget()\n\t{\n\t\treturn new JsQuery(getComponent()).$().chain(\"draggable\", \"'widget'\");\n\t}", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\n\tpublic void drag(EditorInterface i, MouseEvent e) {\n\t\tfor(Clip elem :i.getSelection().getContents()) {\n\t\t\tCommandMove mv=new CommandMove( i,elem,e.getX()-pressed_x, e.getY()-pressed_y);\n\t\t\tlist.add(mv);\n\t\t\tmv.execute();\n\t\t}\n\t\tpressed_x = e.getX();\n\t\tpressed_y = e.getY();\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent me) {\r\n\t\tdrag(me.getX(), me.getY());\r\n\t}", "public boolean isDragging()\n\t{\n\t\treturn dragged != null;\n\t}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tif ((arg0.isAltDown() && SwingUtilities.isLeftMouseButton(arg0)) || (arg0.isAltDown() && SwingUtilities.isRightMouseButton(arg0)) ) {\n\t\t\t//updatePlayerMousePos(arg0);\n\t\t\ttranslateBoard(arg0);\n\t\t\tboardTranslation = true;\n\t\t} else {\n\t\t\tif (player != null) {\n\t\t\t\tupdatePlayerMousePos(arg0);\n\t\t\t\tif (!player.visitor) {\n\t\t\t\t\tObjectFunctions.getOwnedStack(gameInstance, player, ial);\n\t\t\t\t\tStringBuilder strB = new StringBuilder();\n\t\t\t\t\tStringUtils.toString(ial, ' ', strB).append(' ');\n\t\t\t\t\toutText = strB.toString();\n\t\t\t\t\tif (!isSelectStarted) {\n\t\t\t\t\t\tObjectFunctions.getSelectedObjects(gameInstance, player, ial);\n\t\t\t\t\t\tMoveFunctions.dragObjects(this, gameInstance, player, arg0, ial, objOrigPosX, objOrigPosY, mousePressedGamePos, mouseBoardPos, mouseWheelValue);\n\t\t\t\t\t\t/*Handle all drags of Token Objects*/\n\t\t\t\t\t\tif (this.privateArea.containsScreenCoordinates(mouseScreenX, mouseScreenY)) {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = this.privateArea.getInsertPosition(mouseScreenX, mouseScreenY);\n\t\t\t\t\t\t\toutText = \"Position:\" + this.privateArea.currentDragPosition;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (hoveredObject == null && !SwingUtilities.isMiddleMouseButton(arg0) && !(SwingUtilities.isLeftMouseButton(arg0) && arg0.isShiftDown()) && !mouseInPrivateArea) {\n\t\t\t\t\t\t\tselectWidth = mouseScreenX - beginSelectPosScreenX;\n\t\t\t\t\t\t\tselectHeight = mouseScreenY - beginSelectPosScreenY;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trepaint();\n\t}", "@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}", "@DISPID(-2147412077)\n @PropGet\n java.lang.Object ondragstart();", "public void mouseDragged (MouseEvent e) { if(task!=null) task.mouseDragged(e); }", "public void onDragEnded();", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT_LS){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t}", "private void updateDragVars (MouseEvent me) { updateDragVars(me,false); }", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\n }", "public void mouseDragged(MouseEvent event) { }", "public void mouseDragged(MouseEvent e) {\n }", "@Override\n public void handleMouseDragged(int x, int y)\n {\n windowManager.mouseDragged(deskXToAbst(x), deskYToAbst(y));\n }", "public void onDrag(int dragSource, int dropTarget) {\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged(java.awt.event.MouseEvent evt) {\n tmp.setLocation(cuadroSeleccionado.getLocation().x + evt.getX() - 18, cuadroSeleccionado.getLocation().y + evt.getY() - 28);\n }", "@Override\r\n\tpublic void onMouseUp(Widget who, int x, int y) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "@Override\r\n\tpublic void onMouseDown(Widget who, int x, int y) {\n\r\n\t}", "@Override\n\tpublic void touchDragged(int screenX, int screenY, int pointer) {\n\t\t\n\t}", "@Override\n public void mouseDrop()\n {\n }", "private void set_dnd() {\n \t\tcardDragController = new PickupDragController(RootPanel.get(), false);\n \t\tcardDragController.addDragHandler(new CardHandler());\n \t\tcardDropPanel = new VerticalPanelDropController(getView().getCards_panel());\n \n \t\t// TODO v�rifier si il y a des lag en utilisant l'application sur le\n \t\t// serveur\n \t\t// mettre en commentaire ces deux lignes\n \n \t\t// VerticalPanelDropController dropController = new\n \t\t// VerticalPanelDropController(getView().getDrop_cards_panel());\n \t\t// cardDragController.registerDropController(dropController);\n \n \t\t// dragController.makeDraggable(getView().getDndImage());\n \n \t\t// AbsolutePositionDropController sp = new\n \t\t// AbsolutePositionDropController(\n \t\t// getView().getDropPanel());\n \t\t// IndexedDropController dropController = new\n \t\t// IndexedDropController(getView().getDropPanel());\n \n \t\t// dragController.registerDropController(sp);\n \t\t// dragController.makeDraggable(getView().getMainLabel());\n \t\t// dragController.makeDraggable(getView().getHtml_panel());\n \t\t// for (CardPresenter c : allCards)\n \t\t// dragController.makeDraggable(c.getView().getWholePanel());\n \n \t}", "@Override\n public boolean onDrag(View viewDroppedUpon , DragEvent de){\n\n\n log(\"adapter pos\"+this.viewHolder.getAdapterPosition());\n switch (de.getAction()){\n\n case DragEvent.ACTION_DRAG_STARTED:\n //log(\"StartingDrag\"+DragEvent.ACTION_DRAG_STARTED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENDED:\n //log(\"Ending Drag\"+DragEvent.ACTION_DRAG_ENDED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENTERED:\n //log(\"Drag entered \"+DragEvent.ACTION_DRAG_ENTERED);\n return true;\n\n case DragEvent.ACTION_DRAG_EXITED:\n //log(\"Drag ended \"+DragEvent.ACTION_DRAG_ENDED);\n\n return true;\n\n case DragEvent.ACTION_DRAG_LOCATION:\n //log(\"Drag location \"+DragEvent.ACTION_DRAG_LOCATION);\n return true;\n\n case DragEvent.ACTION_DROP:\n //log(\"droppable is \"+this.droppable);\n\n log(\"Action dropped \" + DragEvent.ACTION_DROP);\n\n View dropped=(View)de.getLocalState();\n\n\n log(\"viewDroppedUpon tag \"+viewDroppedUpon.getTag());\n log(\"dropped tag \"+dropped.getTag());\n int pos=this.viewHolder.getAdapterPosition();\n\n\n\n mPairMaker.makePairs(dropped,viewDroppedUpon,pos,LongPressListener.getPosition());\n\n\n\n\n\n return true;\n }\n\n\n\n return false;\n }", "@FXML\n private void mouseDown(MouseEvent event) {\n preDragX = event.getX();\n preDragY = event.getY();\n }", "public void mouseDragged( MouseEvent event ){}", "@Override\n public void mouseDragged(java.awt.event.MouseEvent e) {\n }", "@DISPID(204)\r\n public boolean beginDrag() {\r\n throw new UnsupportedOperationException();\r\n }", "public void drag(MouseEvent mouseEvent) \r\n\t{\t\r\n\t\t\r\n\t\t// Get the mouse position and the component of the mouse event. \r\n\t\tComponent mouseComponent = (Component)mouseEvent.getSource();\r\n\r\n\t\t// Are we dragging a tab?\r\n\t\tif (tabDragged(mouseEvent) >= 0)\r\n\t\t{\r\n\t\t\t// Clear previous paintings.\r\n\t\t\tclearPainting();\r\n\t\t\t\r\n\t\t\t// Set the cursor.\r\n\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanDockCursor());\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Get the mouse location in screen coordinates.\r\n\t\tcomputeScreenLocation(mouseEvent);\r\n\r\n\t\t// Get the destination dock for this position for the dockable that we are dragging.\r\n\t\tDock[] destinationDocks = dockRetriever.retrieveHighestPriorityDock(screenLocation, draggedDockable);\r\n\t\tif (destinationDocks == null)\r\n\t\t{\r\n\t\t\t// We have no destination dock any more. \r\n\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, null, null, screenLocation);\r\n\r\n\t\t\t// Set the 'cannot dock' cursor.\r\n\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanNotDockCursor());\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tDock destinationDock = destinationDocks[0];\r\n\r\n\t\t// Do we have a destination dock?\r\n\t\tif (destinationDock != null)\r\n\t\t{\r\n\t\t\tif ((!destinationDock.equals(originDock)) || (!isFloating()))\r\n\t\t\t{\r\n\t\t\t\t// Does the destination dock inherit from java.awt.Component or is it the float dock?\r\n\t\t\t\tif (destinationDock instanceof Component)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the docking rectangle from the destination dock.\r\n\t\t\t\t\tlocationInDestinationDock.setLocation(screenLocation.x, screenLocation.y);\r\n\t\t\t\t\tSwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component)destinationDock);\r\n\t\t\t\t\tdestinationDock.retrieveDockingRectangle(draggedDockable, locationInDestinationDock,dockableOffset, dockableDragRectangle);\r\n\t\r\n\t\t\t\t\t// Paint the new rectangle.\r\n\t\t\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, destinationDock, dockableDragRectangle, locationInDestinationDock);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t// Set the 'can dock' cursor.\r\n\t\t\t\t\tcursorManager.setCursor((Component)destinationDock, retrieveCanDockCursor());\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse if (destinationDock instanceof FloatDock)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Are we in the special situation that we will move a child dock of the float dock?\r\n\t\t\t\t\tboolean move = false;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Get the root dock and the dock under the root.\r\n\t\t\t\t\tDock rootDock = originDock;\r\n\t\t\t\t\tDock dockUnderRoot = null;\r\n\t\t\t\t\twhile (rootDock.getParentDock() != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdockUnderRoot = rootDock;\r\n\t\t\t\t\t\trootDock = rootDock.getParentDock();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Is the root dock the float dock?\r\n\t\t\t\t\tif (rootDock instanceof FloatDock)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Is the dockable already in this dock and are there no others?\r\n\t\t\t\t\t\tList childrenOfDockable = new ArrayList();\r\n\t\t\t\t\t\tList childrenOfDock = new ArrayList();\r\n\t\t\t\t\t\tDockingUtil.retrieveDockables(draggedDockable, childrenOfDockable);\r\n\t\t\t\t\t\tDockingUtil.retrieveDockables(dockUnderRoot, childrenOfDock);\r\n\t\t\t\t\t\tif (sameElements(childrenOfDockable, childrenOfDock))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n//\t\t\t\t\t// We cannot paint on the screen, but maybe we can paint in the pane of the origin dock.\r\n//\t\t\t\t\tif (move)\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tlocationInDestinationDock.setLocation(screenLocation.x - dockableOffset.x, screenLocation.y - dockableOffset.y);\r\n//\t\t\t\t\t\tSwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component) originDock);\r\n//\t\t\t\t\t\tdockableDragRectangle.setLocation(locationInDestinationDock);\r\n//\t\t\t\t\t\tWindow window = SwingUtilities.getWindowAncestor((Component) dockUnderRoot);\r\n//\t\t\t\t\t\tdockableDragRectangle.setSize(window.getSize());\r\n//\t\t\t\t\t\tlocationInDestinationDock.setLocation(locationInDestinationDock.x + dockableOffset.x, locationInDestinationDock.y + dockableOffset.y);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\t// Get the docking rectangle for the destination float dock.\r\n//\t\t\t\t\t\tdestinationDock.retrieveDockingRectangle(draggedDockable, screenLocation, dockableOffset, dockableDragRectangle);\r\n//\t\r\n//\t\t\t\t\t\t// Convert this rectangle to the origindock.\r\n//\t\t\t\t\t\tlocationInDestinationDock.setLocation(dockableDragRectangle.x, dockableDragRectangle.y);\r\n//\t\t\t\t\t\tSwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component) originDock);\r\n//\t\t\t\t\t\tdockableDragRectangle.setLocation(locationInDestinationDock);\r\n//\t\t\t\t\t\tlocationInDestinationDock.setLocation(locationInDestinationDock.x + dockableOffset.x, locationInDestinationDock.y + dockableOffset.y);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\t\r\n//\t\t\t\t\t// Paint the new rectangle.\r\n//\t\t\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, originDock, dockableDragRectangle, locationInDestinationDock);\r\n\t\r\n\t\t\t\t\t// We cannot paint on the screen, but maybe we can paint in the owner of the screen dock.\r\n\t\t\t\t\tif (move)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlocationInDestinationDock.setLocation(screenLocation.x - dockableOffset.x, screenLocation.y - dockableOffset.y);\r\n\t\t\t\t\t\t//SwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component) originDock);\r\n\t\t\t\t\t\tdockableDragRectangle.setLocation(locationInDestinationDock);\r\n\t\t\t\t\t\tWindow window = SwingUtilities.getWindowAncestor((Component) dockUnderRoot);\r\n\t\t\t\t\t\tdockableDragRectangle.setSize(window.getSize());\r\n\t\t\t\t\t\t//locationInDestinationDock.setLocation(locationInDestinationDock.x + dockableOffset.x, locationInDestinationDock.y + dockableOffset.y);\r\n\t\t\t\t\t\tlocationInDestinationDock.setLocation(locationInDestinationDock.x + dockableOffset.x, locationInDestinationDock.y + dockableOffset.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Get the docking rectangle for the destination float dock.\r\n\t\t\t\t\t\tdestinationDock.retrieveDockingRectangle(draggedDockable, screenLocation, dockableOffset, dockableDragRectangle);\r\n\t\r\n\t\t\t\t\t\t// Convert this rectangle to the origindock.\r\n\t\t\t\t\t\tlocationInDestinationDock.setLocation(dockableDragRectangle.x, dockableDragRectangle.y);\r\n\t\t\t\t\t\t//SwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component) originDock);\r\n\t\t\t\t\t\tdockableDragRectangle.setLocation(locationInDestinationDock);\r\n\t\t\t\t\t\tlocationInDestinationDock.setLocation(locationInDestinationDock.x + dockableOffset.x, locationInDestinationDock.y + dockableOffset.y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Paint the new rectangle.\r\n\t\t\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, destinationDock, dockableDragRectangle, locationInDestinationDock);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Set the 'can dock' cursor.\r\n\t\t\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanDockCursor());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// Currently this should not happen. All docks, except the float dock inherit from java.awt.Component.\r\n\t\t\t\t\t// We have a dock where we cannot paint. \r\n\t\t\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, destinationDock, null, screenLocation);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Set the 'can dock' cursor.\r\n\t\t\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanDockCursor());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// The destination dock is the current dock and we are floating.\r\n\t\t\t\tdestinationDock = currentRootDock;\r\n\t\t\t\tlocationInDestinationDock.setLocation(screenLocation.x - dockableOffset.x, screenLocation.y - dockableOffset.y);\r\n\t\t\t\tSwingUtilities.convertPointFromScreen(locationInDestinationDock, (Component) originDock);\r\n\t\t\t\tdockableDragRectangle.setLocation(locationInDestinationDock);\r\n\t\t\t\tWindow window = SwingUtilities.getWindowAncestor((Component) currentChildOfRootDock);\r\n\t\t\t\tdockableDragRectangle.setSize(window.getSize());\r\n\t\t\t\t\r\n\t\t\t\t// Paint the new rectangle.\r\n\t\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, originDock, dockableDragRectangle, locationInDestinationDock);\r\n\t\t\t\r\n\t\t\t\t// Set the 'can dock' cursor.\r\n\t\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanDockCursor());\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// We have no destination dock any more. \r\n\t\t\tdockableDragPainter.paintDockableDrag(draggedDockable, null, null, screenLocation);\r\n\r\n\t\t\t// Set the 'cannot dock' cursor.\r\n\t\t\tcursorManager.setCursor(mouseComponent, retrieveCanNotDockCursor());\r\n\t\t}\r\n\t\t\r\n\t}", "public interface DragSource\n{\n\t/*********************************************************************************************************************\n <b>Description</b>: Gets the components to register drag events on.\n\n <br><b>Notes</b>:<br>\n\t - The vector must only contain java.awt.Component objects\n\t - This method is called only once when the drag source is added via DragAndDropSupport\n\n <br>\n @return Vector of java.awt.Component objects to register as sources\n\t*********************************************************************************************************************/\n public Vector getSourceComponents();\n\n\t/*********************************************************************************************************************\n <b>Description</b>: Determines if the sub-components of the source components (java.awt.Container objects only)\n returned from the getSourceComponents() method should be registered for drag events. This is\n a convenience method to allow returning a single java.awt.Container object that contains all of\n the java.awt.Component objects that should receive drag events.\n\n <br><b>Notes</b>:<br>\n\t - This method is called only once when the drag source is added via DragAndDropSupport\n\n <br>\n @return True if the sub-components of the source components should be registered for drag events, false if not\n\t*********************************************************************************************************************/\n public boolean dragFromSubComponents();\n\n\t/*********************************************************************************************************************\n <b>Description</b>: Retrieves the data object to be dragged. This method should return the actual instance of the\n data object to be drop on a drop target, or a custom java.awt.datatransfer.Transferable object.\n\n <br><b>Notes</b>:<br>\n\t - This method is called once at the begining of each drag operation\n\t - The data flavor is determined directly from the returned data object (if not a Transferable)\n\t - The data object returned DOES NOT have to be, but usually is, the same class type between drags\n\t - If a Transferable object is returned, this object is used (along with its defined data flavors)\n\t instead of constructing a ObjectTransferable object\n\n <br>\n @param componentAt Component the drag operation is on\n @param location Current location of the mouse pointer\n @return Data object instance to be dragged, or a java.awt.datatransfer.Transferable object\n\t*********************************************************************************************************************/\n public Object getData(Component componentAt, Point location);\n \n\t/*********************************************************************************************************************\n <b>Description</b>: Called when the drag and drop operation has ended.\n\n <br>\n @param success True if the drag and drop operation completed successfully, false if not\n\t*********************************************************************************************************************/\n public void dragDropEnd(boolean success);\n\n// \tpublic void dragDropEnd(DragSourceDropEvent e)\n// \tpublic void dragEnter(DragSourceDragEvent e) ???\n// \tpublic void dragOver(DragSourceDragEvent e)\n// \tpublic void dragExit(DragSourceEvent e)\n// \tpublic void dropActionChanged (DragSourceDragEvent e) ???\n\n// public void showAsActive(boolean active);\n\n// public Cursor getDragCursor() ???\n\n /* Eliminates right mouse clicks as valid actions - useful especially\n * if you implement a JPopupMenu for the JTree\n */\n// dgr.setSourceActions(dgr.getSourceActions() & ~InputEvent.BUTTON3_MASK); ???\n}", "@Override\n public void mouseDragged(MouseEvent e) {\n Point tabPt = e.getPoint(); // e.getDragOrigin();\n if (startPt != null\n && Math.sqrt(Math.pow(tabPt.x - startPt.x, 2)\n + Math.pow(tabPt.y - startPt.y, 2)) > gestureMotionThreshold) {\n DnDTabbedPane src = (DnDTabbedPane) e.getSource();\n TransferHandler th = src.getTransferHandler();\n dragTabIndex = src.indexAtLocation(tabPt.x, tabPt.y);\n th.exportAsDrag(src, e, TransferHandler.MOVE);\n lineRect.setRect(0, 0, 0, 0);\n src.getRootPane().getGlassPane().setVisible(true);\n src.setDropLocation(new DropLocation(tabPt, -1));\n startPt = null;\n }\n }", "public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }", "public void mouseReleased(MouseEvent mEvent) \n {\n /* take no action while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse released on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n /* handle mouseReleased events on GameCanvas \n -> this implies click or dragging started on gamecanvas too */\n switch(SELECT_MODE)\n {\n case NONE:\n //nothing\n break;\n case SELECTED:\n //nothing\n break;\n //===================\n case DRAGGING:\n //mouse released on gamecanvas during dragging = move widget to new loc, or if move was far enough south = re-add to scroller\n /* don't continue if this is a click type drag, wait for the click handler to deal with it */\n if(DRAG_TYPE == DragType.CLICK)\n break;\n\n if(mEvent.getY() >= 465)\n {\n /* put widget back in scroller */\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller.\");\n \n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n\n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n canvas.repaint();\n }\n else\n {\n /* test if position is within canvas boundary + try to move */\n \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY()+clickOffsetY >= 0 &&\n \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t {\n // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n \t else\n \t {\n // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t\t }\n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n \n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n \t }\n }\n break;\n //===================\n case ADDING:\n //shouldn't be able to get here, can't release mouse on gamecanvas while adding from scroller\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* handle mouseReleased events on widget scroller \n -> implies click or drag started on widgetscroller which should mean a widget is being PRESS DRAGGED out*/\n if(SELECT_MODE == SelectMode.ADDING && DRAG_TYPE == DragType.PRESS)\n {\n Point canvasPos = canvas.getMousePosition();\n\n if(canvasPos != null)\n {\n /* mouse was released on gamecanvas, try to place the widget */\n if(timWorld.moveWidget(selectedWidget,(float)canvasPos.getX(),(float)canvasPos.getY()))\n {\n /* placement successful */\n SELECT_MODE = SelectMode.SELECTED;\n canvas.setCursor(Cursor.getDefaultCursor());\n ws.decreaseWidget(addedWidget);\n canvas.repaint();\n }\n else\n {\n /* placement unsuccessful, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n else\n {\n /* mouse was released outside of the gamecanvas, cancel adding */\n SELECT_MODE = SelectMode.NONE;\n canvas.setCursor(Cursor.getDefaultCursor());\n selectedWidget = null;\n canvas.repaint();\n }\n }\n }\n }", "private void drag(int x, int y) {\n\t\tWindowManager.LayoutParams layoutParams = (WindowManager.LayoutParams)mDragView.getLayoutParams();\n\t\tlayoutParams.x = 0; //x; -- because it's a list; never want it to move left or right\n\t\tlayoutParams.y = y - mDragPointOffset;\n\n WindowManager mWindowManager = (WindowManager)getContext().getSystemService(Context.WINDOW_SERVICE);\n mWindowManager.updateViewLayout(mDragView, layoutParams);\n\n // This attempts to draw an arrow at the insertion point\n // it doesn't work because it draws the arrow instead of the dragWindow\n// // highlight the list separator view in the space where it will be dropped\n// int endPosition = pointToPosition(x, y);\n// WindowManager.LayoutParams dropParams = (WindowManager.LayoutParams)dropPointView.getLayoutParams();\n// dropParams.x = 0;\n// dropParams.y = 0;\n// View v = getChildAt(endPosition);\n// if (v != null) {\n// dropParams.y = v.getTop();\n// }\n// mWindowManager.updateViewLayout(dropPointView, dropParams);\n\n\n // Something like this attempts to re-order the list each time we drag\n // however, the listview needs the original 'to' to change but it can't change it's adapter\n// int position = listView.pointToPosition(x, y);\n// if (position != ListView.INVALID_POSITION) {\n// if (from == ListView.INVALID_POSITION) {\n// from = position;\n// } else {\n// position = listView.pointToPosition(x, y - listView.getChildAt(position).getHeight()/2);\n// if (position != ListView.INVALID_POSITION) {\n// to = position;\n// runOnUiThread(new Runnable() {\n// public void run() {\n// players.add(to, players.remove(from));\n// ((BaseAdapter) getListAdapter()).notifyDataSetChanged();\n// from = to;\n// }\n// });\n// }\n// }\n// }\n\n\n if (mDragListener != null) {\n mDragListener.onDrag(x, y, this);\n }\n }", "public void mouseDragged(MouseEvent e) {\n\t \t\t\n\t \t}", "public void mouseDragged(MouseEvent e)\n {}", "public void mouseDragged(MouseEvent e) {\n if(jtf[mmlp1][mmlp2].getBackground()==Color.yellow || isRightClick)\n setNotDraging();// agar khane zard rang bashad wa ya rast klik shawad-\n else //-nemitan bar ruye an draging kard.\n setDraging();\n }", "public void mouseDragged( MouseEvent e ) {\n }", "@Override\n public void mouseDragged(MouseEvent e){\n newerlabel.setLocation(e.getXOnScreen() - x_pressed, e.getYOnScreen() - y_pressed);\n \n }", "@DISPID(-2147412077)\n @PropPut\n void ondragstart(\n java.lang.Object rhs);" ]
[ "0.72589356", "0.69377744", "0.68525153", "0.6780831", "0.6697662", "0.65506923", "0.6529236", "0.65026647", "0.6487153", "0.6468608", "0.6468608", "0.6468608", "0.6460904", "0.64532584", "0.64302987", "0.64302987", "0.64130735", "0.6410894", "0.64079833", "0.6407464", "0.6407464", "0.6407464", "0.6407464", "0.6407464", "0.6406985", "0.63868934", "0.6386196", "0.6386196", "0.63850754", "0.63842463", "0.6378718", "0.636951", "0.636951", "0.6365552", "0.63502955", "0.63502955", "0.63502955", "0.63502955", "0.63502955", "0.63502955", "0.63502955", "0.6343147", "0.6343147", "0.63329935", "0.63322616", "0.63322616", "0.63217336", "0.6317686", "0.63111234", "0.6306726", "0.63062155", "0.62941027", "0.6292527", "0.62797034", "0.6279018", "0.6259522", "0.62560225", "0.625072", "0.62260735", "0.6205693", "0.62055695", "0.618486", "0.61809057", "0.6180729", "0.61804694", "0.6175148", "0.6158941", "0.61325663", "0.6128342", "0.6128342", "0.61182517", "0.60992235", "0.6095823", "0.6089532", "0.608384", "0.60813856", "0.6077148", "0.60689104", "0.6067723", "0.6062557", "0.60543483", "0.604139", "0.60413224", "0.60379684", "0.6034326", "0.6032447", "0.60216254", "0.6017282", "0.6014819", "0.60127133", "0.6009356", "0.60022587", "0.59954536", "0.5990234", "0.59802943", "0.5968404", "0.59579855", "0.59550214", "0.5941508", "0.5940182", "0.593407" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_summary_stock, container, false); /* sets xml layout control to java controls */ stockCategorySpinner = rootView.findViewById(R.id.stockCategorySpinner); etSearchStock = rootView.findViewById(R.id.etSearchStock); stockItemsHolder = rootView.findViewById(R.id.stockItemsHolder); stockCategorySpinner = rootView.findViewById(R.id.stockCategorySpinner); productArrayList = new ArrayList<>(); stockProductAdapter = new StockProductAdapter(productArrayList); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getContext(), R.array.stock_search_category, android.R.layout.simple_spinner_item); // Specify the layout to use when the list of choices appears adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // Apply the adapter to the spinner stockCategorySpinner.setAdapter(adapter); stockCategorySpinner.setOnItemSelectedListener(this); loadStock(); StockProductCardHolder.setListener(this); etSearchStock.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { } @Override public void afterTextChanged(Editable editable) { if(etSearchStock.getText().length() < 1){ loadStock(); }else if(selectedCat.equalsIgnoreCase("product")) { searchStockProduct(etSearchStock.getText().toString().toLowerCase().trim()); }else if(selectedCat.equalsIgnoreCase("category")) { searchProductByCategory(etSearchStock.getText().toString().toLowerCase().trim()); } } }); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
todo barry handle error
@Override public void onCancelled(DatabaseError databaseError) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "protected abstract void error(String err);", "public void inquiryError() {\n\t\t\n\t}", "public void error();", "abstract void error(String error);", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "private static void checkError(String result) {\n String err = Neo4jUtils.extractErrorData(result);\n if (err == null) {\n return;\n }\n throw new RuntimeException(err);\n }", "@Override\n public void onError() {\n\n }", "@Override\n\t\tpublic void loadError() {\n\t\t}", "void handleError(Exception ex);", "@Override\r\n\tpublic void onError(String err) {\n\t\t\r\n\t}", "@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void processError() {\n\t\tsuper.processError();\r\n\t\tshowToast(error_generico_process);\r\n\t}", "@Override\n public void errorOnUpdate(String buxError) {\n }", "protected void handleError(String error, boolean fromSysErr) {}", "private void throwsError() throws OBException {\n }", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void setWrongError() {\n\t\t\n\t}", "@Override\n public void visitErrorNode(ErrorNode node) {\n\n }", "public void handleError(int code);", "void notSupported(String errorcode);", "@Override\n public void onError(Status status) {\n }", "public void correctErrors();", "private void error(String string) {\n\t\r\n}", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "public void error(Exception e);", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "private void sendOldError(Exception e) {\n }", "@Override\n\tpublic void error(Message msg) {\n\n\t}", "void errorResponse( String error );", "void setError();", "@Override\r\n\t\t\tpublic void onError(int error) {\n\t\t\t\t\r\n\t\t\t}", "protected void checkError(Response res) {\n if (res.getStatus() < 300) {\n return;\n }\n\n if (res.getStatus() == 404) {\n throw new NotFoundException(\"No results found.\");\n }\n\n // TODO custom exceptions here\n // final String responseBody = res.readEntity(String.class);\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }", "@Override\n\t\t\tpublic void onError(int arg0, String arg1) {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "@Override\n\tpublic void error(Object message) {\n\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void onError(Status status) {\n }", "@Override\n public void onError(int code, String msg) {\n }", "@Override\n\tpublic void adjustToError() {\n\t\t\n\t}", "@Override\n public void onResponceError(final ErrorCode errorCode) {\n }", "@Override\r\n\t\t\tpublic void onError(Object error) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void error(String message, Object p0) {\n\n\t}", "public void mo3251a(VolleyError volleyError) {\n }", "public abstract void OnError(int code);", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onError(Exception e) {\n }", "@Override\n public void onError(Status status) {\n }", "@Override\n public void onError(Status status) {\n }", "@Override\r\n\t\t\tpublic void onErrorResponse(String errorMessage) {\n\r\n\t\t\t}", "private void errorProcess(CallbackContext callbackContext, Exception ex) {\n // Convierte el payLoad a JSON.\n Gson gson = new Gson();\n Map<String, String> exc_map = new HashMap<String, String>();\n exc_map.put(\"message\", ex.toString());\n exc_map.put(\"stacktrace\", getStackTrace(ex));\n // Convierte el payLoad a JSON.\n String jsonError = new Gson().toJson(exc_map);\n\n sendResultError(callbackContext, jsonError);\n ex.printStackTrace();\n if (callbackContext != null) {\n callbackContext.error(jsonError);\n }\n }", "public void failure(RetrofitError arg0) {\n\t\t\t\t\n\t\t\t}", "public void failure(RetrofitError arg0) {\n\t\t\t\t\n\t\t\t}", "private JsonNode processErrorResponse(final JsonNode resp) {\n String errorMessage = resp.get(\"error\").asText();\n if (resp.has(\"stack\")) {\n errorMessage += \"\\n\" + resp.get(\"stack\").asText();\n }\n\n throw new JsiiException(errorMessage);\n }", "@Override\r\n\tpublic void onError(String error) {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void onError(int error) {\n\r\n\t\t\t}", "@Override\n\tpublic void calculateError() {\n\t\t\n\t}", "@Override\n public void onError(Throwable e) {\n }", "@Override\n\t\t\t\t\t\tpublic void onErrorResponse(String errorResponse) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onError(Object error) {\n\n\t\t\t}", "public String error();", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "@Override\n public void onFailure(Call<ModelBase> call, Throwable e) {\n Log.e(\"onError\", \"yes \");\n e.printStackTrace();\n }", "private void obtieneError(int error) throws Excepciones{\n String[] err = {\n \"ERROR DE SYNTAXIS\",\n \"PARENTESIS NO BALANCEADOS\",\n \"NO EXISTE EXPRESION\",\n \"DIVISION POR CERO\"\n };\n throw new Excepciones(err[error]);\n}", "@Override\n public void onFailure() {\n }", "@Override\n boolean isFailed() {\n return false;\n }", "void onCreateCaseError(ErrorResponse error);", "public void handleErrors() {\n // hook method\n }", "public void sendeFehlerHelo();", "@Override\n\tpublic void onError(Exception ex) {\n\n\t}", "abstract void error(String error, Exception[] exceptions);", "@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}", "@Override\n public void sendError(int arg0) throws IOException {\n\n }", "public void Error(){\n }", "@Override\n public void onError(Throwable e) {\n\n }", "protodef.b_error.info getError();", "protodef.b_error.info getError();", "abstract void errorLogError(String error);", "@Override\n public void OnFailed(String error)\n {\n\n }", "public void error(String string) {\n\t\t\n\t}", "@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}", "@Override\n public void onFailure(Exception error) {\n }", "@Override\n\tpublic void fail(Handle msg) {\n\t\t\n\t}", "@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}", "private void zzScanError(int errorCode) {\n\t\tString message;\n\t\ttry {\n\t\t\tmessage = ZZ_ERROR_MSG[errorCode];\n\t\t}\n\t\tcatch (ArrayIndexOutOfBoundsException e) {\n\t\t\tmessage = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];\n\t\t}\n\n\t\tthrow new Error(message);\n\t}", "@Override\n\tpublic void error(String message, Object... params) {\n\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "public static void error()\r\n {\r\n valid=false;\r\n\r\n }", "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "java.lang.String getErr();", "@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}", "@Override\n protected void adicionarLetrasErradas() {\n }" ]
[ "0.6999458", "0.69370854", "0.67742306", "0.6726768", "0.66588837", "0.6601652", "0.64539975", "0.64175516", "0.63516134", "0.6326169", "0.63217276", "0.6312326", "0.6308666", "0.630725", "0.6306992", "0.62956595", "0.627297", "0.6209389", "0.61843336", "0.61485404", "0.61316115", "0.612535", "0.611394", "0.6105244", "0.60963523", "0.609069", "0.608004", "0.6073827", "0.6068507", "0.6068507", "0.6059556", "0.60579526", "0.60424626", "0.60367936", "0.6030271", "0.60289603", "0.6028555", "0.6028555", "0.6028555", "0.602117", "0.60090053", "0.5998827", "0.5985329", "0.5982841", "0.5976292", "0.59755266", "0.5961423", "0.5959967", "0.5957995", "0.59552777", "0.59530413", "0.5951331", "0.59455305", "0.59384286", "0.5911669", "0.5911669", "0.5902391", "0.5895755", "0.5895322", "0.5895322", "0.5893587", "0.5891283", "0.5888809", "0.58858794", "0.58852893", "0.58778477", "0.58672523", "0.58626187", "0.5857", "0.5848232", "0.5846413", "0.58401734", "0.583878", "0.5838745", "0.58321804", "0.58290255", "0.58224815", "0.5819796", "0.5811279", "0.580809", "0.58071786", "0.5803014", "0.580279", "0.580279", "0.5797152", "0.5795755", "0.5794371", "0.579345", "0.5788173", "0.5782171", "0.5781671", "0.5774778", "0.5774314", "0.577247", "0.577247", "0.57714784", "0.5771149", "0.5767743", "0.5766865", "0.57667273", "0.57639754" ]
0.0
-1
delete product from firebase database
@Override public void onClick(View view) { productsRef.child(selectedProduct.getProductId()).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { alertDialog.dismiss(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean deleteProduct(String code, String name , String brand , String price , String quantity) {\n DatabaseReference dR = FirebaseDatabase.getInstance().getReference().child(code);\n\n //removing artist\n Information information = new Information(code, name ,brand ,price ,quantity);\n dR.removeValue((DatabaseReference.CompletionListener) information);\n\n //getting the tracks reference for the specified artist\n //DatabaseReference drTracks = FirebaseDatabase.getInstance().getReference(\"tracks\").child(id);\n\n //removing all tracks\n //drTracks.removeValue();\n Toast.makeText(getApplicationContext(), \"product Deleted\", Toast.LENGTH_LONG).show();\n\n return true;\n }", "void deleteProduct(Integer productId);", "public void deleteProduct(Product product) throws BackendException;", "void deleteProduct(Long id);", "@Override\r\n\tpublic int deleteProduct(Product product) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteProduct(int product_id) {\n\n\t}", "@Writer\n int deleteByPrimaryKey(Integer productId);", "void deleteProduct(int productId) throws ProductException;", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "void delete(Product product) throws IllegalArgumentException;", "public void deleteProduct(Product product_1) {\n\r\n\t}", "@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}", "@Override\n public void onWhatEverClick(int position) {\n Upload selectedItem = patientsList.get(position);\n String userId = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void unused) {\n\n databaseReference.child(userId).removeValue();\n Toast.makeText(PatientsListActivity.this, \"Patient deleted\", Toast.LENGTH_SHORT).show();\n\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(PatientsListActivity.this, \"Error: \"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "void deleteProduct(Product product) throws ServiceException;", "@Override\n public void onDeletePlantClick(int position) {\n Plants selectedItem = mPlants.get(position);\n String selectedKey = selectedItem.getKey();\n\n StorageReference imageRef = mStorage.getReferenceFromUrl(selectedItem.getImageUrl());\n imageRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n mDatabaseRef.child(selectedKey).removeValue();\n Toast.makeText(GalleryActivity.this, \"Item successfully deleted\", Toast.LENGTH_SHORT).show();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(GalleryActivity.this, \"Failed to delete selected item\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void Deleteproduct(Product objproduct) {\n\t\t\n\t}", "@Override\n public void delete(int position) {\n Upload selectItem=uploadList.get(position);\n\n //get for selected item key\n final String key=selectItem.getKey();\n\n StorageReference storageReference=firebaseStorage.getReferenceFromUrl(selectItem.getImageUri());\n storageReference.delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n databaseReference.child(key).removeValue();\n }\n });\n }", "public void deleteProduct(Product product)\n {\n SQLiteDatabase db = this.database.getWritableDatabase();\n\n // Sets up the WHERE condition of the SQL statement\n String condition = String.format(\" %s = ?\", ShoppingListTable.KEY_TPNB);\n\n // Stores the values of the WHERE condition\n String[] conditionArgs = { String.valueOf(product.getTPNB()) };\n\n db.delete(ShoppingListTable.TABLE_NAME, condition, conditionArgs);\n }", "public void eliminar(Producto producto) throws IWDaoException;", "private void deleteProduct() {\n // Only perform the delete if this is an existing product.\n if (currentProductUri != null) {\n // Call the ContentResolver to delete the product at the given content URI.\n // Pass in null for the selection and selection args because the currentProductUri\n // content URI already identifies the product that we want.\n int rowsDeleted = getContentResolver().delete(currentProductUri, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.no_deleted_products),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }", "int deleteByPrimaryKey(Integer productAttributesId);", "private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "public synchronized void deleteItem(Product product){\n carrito.set(product.getId(), null);\n }", "public void DeleteProductById(String pid) {\r\n String query = \"delete from Trungnxhe141261_Product\\n\"\r\n + \"where id=?\";\r\n\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, pid);\r\n ps.executeUpdate();\r\n } catch (Exception e) {\r\n }\r\n\r\n }", "public void deleteButtonClicked(View view) {\n String inputText = johnsInput.getText().toString();\n dbHandler.deleteProduct(inputText);\n printDatabase();\n }", "void removeProduct(Product product);", "public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }", "public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}", "int deleteByPrimaryKey(String goodsId);", "public int productDelete(Product product){\n int rowsAffected = 0;\n connect();\n String sql = \"DELETE FROM productos WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(1, Integer.parseInt(product.getProductId()));\n rowsAffected = ps.executeUpdate();\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return rowsAffected;\n }", "@Override\n\tpublic int deleteProduct(String productNo) {\n\t\treturn 0;\n\t}", "public void deleteProduct(Product product){\n\t\tdao.deleteProduct(product);\n\t}", "@Override\r\n\tpublic boolean deleteProduct(ProductDAO product) {\n\t\treturn false;\r\n\t}", "@Override\n public void onSuccess(Void aVoid) {\n Query fquery = FirebaseDatabase.getInstance().getReference(\"Posts\").orderByChild(\"pId\").equalTo(postId);\n fquery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n\n ds.getRef().removeValue(); // remove value from firebase where pId matched\n\n }\n Toast.makeText(PostDetailActivity.this, \"Post Deleted !\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n }", "@Override\n\tpublic int delete(ProductDTO dto) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void delete(Product product) {\n\t\t\n\t\tTransaction txTransaction = session.beginTransaction();\n\t\tsession.delete(product);\n\t\ttxTransaction.commit();\n\t\tSystem.out.println(\"Product Deleted\");\n\t}", "public abstract void delete(Context context);", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "private void deleteCategory(String key) {\n Query foodInCategory = table_food.orderByChild(\"menuId\").equalTo(key);\n foodInCategory.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n for(DataSnapshot item:dataSnapshot.getChildren())\n item.getRef().removeValue();\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n table_category.child(key).removeValue();\n Toast.makeText(this, \"Category is deleted ! \", Toast.LENGTH_SHORT).show();\n }", "int deleteByPrimaryKey(String shoppingCartId);", "private void deleteHelper() {\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n db.collection(\"posts\")\n .whereEqualTo(\"authorId\", MainActivity.currentUser.getUid())\n .whereEqualTo(\"published\", this.published)\n .get()\n .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {\n @Override\n public void onSuccess(QuerySnapshot queryDocumentSnapshots) {\n for (QueryDocumentSnapshot q : queryDocumentSnapshots) {\n q.getReference().delete();\n }\n }\n });\n }", "public void delete(SgfensPedidoProductoPk pk) throws SgfensPedidoProductoDaoException;", "public void deleteProductDetails(long id) {\n entityManager.createQuery(\"DELETE FROM ProductDetails pd WHERE pd.product.id=:id\")\n .setParameter(\"id\", id)\n .executeUpdate();\n }", "@Override\n public void onClick(View v) {\n String path = UploadImages.images.get(position);\n\n // Have to also delete from firebase storage\n ProgressDialog progressDialog = new ProgressDialog(context);\n progressDialog.setTitle(\"Deleting...Please wait\");\n progressDialog.show();\n\n storageReference.child(path)\n .delete()\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n progressDialog.dismiss();\n Toast.makeText(context, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });\n UploadImages.images.remove(position);\n notifyItemRemoved(position);\n notifyItemRangeChanged(position, UploadImages.images.size());\n }", "private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}", "@FXML\n\tpublic void deleteProduct(ActionEvent event) {\n\t\tif (!txtDeleteProductName.getText().equals(\"\")) {\n\t\t\ttry {\n\n\t\t\t\tList<Product> productToDelete = restaurant.findSameProduct(txtDeleteProductName.getText());\n\t\t\t\tboolean delete = restaurant.deleteProduct(txtDeleteProductName.getText());\n\t\t\t\tif (delete == true) {\n\t\t\t\t\tfor (int i = 0; i < productOptions.size(); i++) {\n\t\t\t\t\t\tfor (int j = 0; j < productToDelete.size(); j++) {\n\t\t\t\t\t\t\tif (productOptions.get(i) != null && productOptions.get(i)\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(productToDelete.get(j).getReferenceId())) {\n\t\t\t\t\t\t\t\tproductOptions.remove(productToDelete.get(j).getReferenceId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ttxtDeleteProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Override\n\tpublic int deleteProductPhoto(String productNo) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void deleteOne(String id) {\n\t\tsqlSession.delete(\"product.deleteOne\", id);//상품 삭제\n\t\tsqlSession.delete(\"product.deleteAll\", id);//상품 시작일 모두 삭제\n\t}", "public Boolean deleteProductbygraphql(int id)\n\t{\n\t\tif(productrepo.existsById(id))\n\t\t{\n\t\t\tproductrepo.deleteById(id);\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t}", "int deleteByPrimaryKey(StorageKey key);", "@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(delete(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .httpStatus(HttpStatus.OK)\n .build());\n }", "public boolean delete_item(final DatabaseReference RefItem) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"هل أنت متاكد من حذف المنتج؟\")\n .setPositiveButton(\"نعم\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //make sensor available\n RefItem.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n if (dataSnapshot.hasChild(\"Sensor\")) {\n String Sensor= dataSnapshot.child(\"Sensor\").getValue().toString();\n\n RefItem.getParent().getParent().child(\"Sensors\").child(Sensor).removeValue();\n }\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n //delete item\n RefItem.removeValue();\n delete_item = true;\n\n }//if click yes end\n })\n .setNegativeButton(\"لا\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n delete_item=false;\n }\n });\n // Create the AlertDialog object and return it\n AlertDialog deletemass= builder.create();\n deletemass.show();\n return delete_item;\n\n\n }", "@Override\n\tpublic void deleteProduct(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\tQuery theQuery = currentSession.createQuery(\"delete from Products where id=:productId\");\n\t\t\n\t\ttheQuery.setParameter(\"productId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\n\t\t\n\t}", "public void deletesingleCart(ProductDetail productDetail) {\n SQLiteDatabase db = helper.getWritableDatabase();\n db.delete(DatabaseConstant.TABLE_NAME_CART, DatabaseConstant.TABLE_CART_ID + \" = ?\",\n new String[]{String.valueOf(productDetail.getId())});\n db.close();\n }", "@Override\n\tpublic void deleteProduct(Long[] ids) {\n\t\tproductDao.deleteProduct(ids);\n\t\t\n\t}", "int deleteByPrimaryKey(String ponumberGoodsId);", "public static boolean FireBaseDeleteWord(String userId, final String key){\n\r\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\r\n final DatabaseReference root = firebaseDatabase.getReference(\"words\").child(userId); // Firebase database table path.\r\n\r\n root.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if(dataSnapshot.hasChild(key)){\r\n root.child(key).removeValue().addOnCompleteListener(new OnCompleteListener<Void>() {\r\n @Override\r\n public void onComplete(@NonNull Task<Void> task) { // Check whether the database has a key and delete word\r\n if(task.isSuccessful()){\r\n setDeleteWordIsSuccessful(true);\r\n }else {\r\n setDeleteWordIsSuccessful(false);\r\n }\r\n }\r\n });\r\n }else {\r\n deleteWordIsSuccessful = false;\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n\r\n return deleteWordIsSuccessful;\r\n }", "void delete(ShoppingBasket shoppingBasket);", "@Override\n\tpublic void deleteProductImage(String id) {\n\t\tthis.productGaleryRepository.deleteById(Long.parseLong(id));\n\t}", "public void delete(Product product) {\n\t\t\tproductDao.delete(product);\n\t\t}", "void removeProduct(int position) throws ProductNotFoundException;", "boolean deleteProduct(ProductDTO productDTO, Authentication authentication);", "public static void deleteCoupon(final Context context, String id)\n {\n Query reff;\n reff= FirebaseDatabase.getInstance().getReference().child(\"coupon\").orderByChild(\"seri\").equalTo(id);\n reff.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot snapshot: dataSnapshot.getChildren())\n {\n Coupon coupon=snapshot.getValue(Coupon.class);\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child(\"coupon\").child(coupon.getIdcoupon());\n ref.removeValue();\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "void deleteCategoryProducts(long id);", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n Preferences preferences = new Preferences(TelaPet.this);\r\n String identificadorUsuarioLogado = preferences.getIdentificador();\r\n\r\n //EXCLUIR CONVERSAS\r\n DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference();\r\n databaseReference = databaseReference.child(\"PETs\")\r\n .child(identificadorUsuarioLogado)\r\n .child(idPet); //Pegando id do pet\r\n\r\n startActivity(new Intent(TelaPet.this, ListarPets.class));\r\n Toast.makeText(getApplicationContext(), \"Pet excluido com sucesso!!\", Toast.LENGTH_SHORT).show();\r\n databaseReference.removeValue();\r\n finish();\r\n\r\n\r\n }", "public static int delete(Product p) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"DELETE FROM product \"\n + \"WHERE productCode = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, p.getProductCode());\n\n return ps.executeUpdate();\n } catch (SQLException e) {\n System.out.println(e);\n return 0;\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "public static void RecipeTipsFirebaseDeleteSingle() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n String number = snapshot.child(FIELD_RECIPE_TIPS_NUMBER).getValue(String.class);\n\n assert number != null;\n if (number.equals(sCurrentRecipeTipNumber)) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }", "@Override\r\n\tpublic int deleteProductById(String productId) {\n\t\treturn dao.deleteProductById(productId);\r\n\t}", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Projectproduct : {}\", id);\n projectproductRepository.delete(UUID.fromString(id));\n }", "@DeleteMapping(\"/product/{productid}\") \nprivate void deleteProduct(@PathVariable(\"productid\") int productid) \n{ \nproductsService.delete(productid); \n}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Product : {}\", id);\n productRepository.delete(id);\n }", "private void deleteNoteOnFirebaseManager(Note note){\n firebase.deleteNoteOnDB(note, unused -> {\n Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show();\n finish();\n }, e -> {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n });\n }", "public void deleteProduct(Product product) {\n allProducts.remove(product);\n }", "@Override\r\n\tpublic int deleteOne(int id) {\n\t\treturn productRawDao.deleteByPrimaryKey(id);\r\n\t}", "@Override\n @Transactional\n public void delete(long id) {\n productoDao.deleteById(id);\n }", "@Override\n public int deleteProduct(Product product) throws Exception\n {\n if(product == null)\n return 0;\n\n if(getProductById(product.getId(), true) == null)\n return 0;\n\n int rowsAffected = 0;\n DBProductData dbProductData = new DBProductData();\n rowsAffected += dbProductData.deleteProductData(product.getId());\n\n PreparedStatement query = _da.getCon().prepareStatement(\"DELETE FROM Products WHERE productId = ?\");\n query.setLong(1, product.getId());\n _da.setSqlCommandText(query);\n rowsAffected += _da.callCommand();\n\n return rowsAffected;\n }", "@Delete\n Single<Integer> delete(Collection<Plant> plant);", "public void onClick(DialogInterface dialog, int id) {\n getRef(position).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n if (dataSnapshot.hasChild(\"Sensor\")) {\n try {\n\n\n String Sensor = dataSnapshot.child(\"Sensor\").getValue().toString();\n getRef(position).getParent().getParent().child(\"Sensors\").child(Sensor).removeValue();\n }catch (Exception e){\n\n }\n }\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n //delete item\n getRef(position).removeValue();\n //refresh page\n Intent refresh = new Intent(MainActivity.this, MainActivity.class);\n startActivity(refresh);\n MainActivity.this.finish();\n\n }", "private void deleteLeftOversFromDB(String uid, String message){\n Toast.makeText(RegistrationActivity.this, message, Toast.LENGTH_LONG).show();\n database.getReference(\"ids\").child(uid).removeValue(); //remove the id from ids if user wasn't created eventually\n mAuth.getCurrentUser().delete(); // remove the user from the authentication db if user not created\n }", "@Override\r\n\tpublic boolean deleteProduct(int productId) {\n\t\treturn dao.deleteProduct(productId);\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Solicitud para obtener borrar ProductPurchase : {}\", id);\n productPurchaseRepository.deleteById(id);\n }", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "@Override\n public void removeFromDb() {\n }", "public void handleDeleteProducts()\n {\n Product productToDelete = getProductToModify();\n\n if (productToDelete != null)\n {\n // Ask user for confirmation to remove the product from product table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this product?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n // User cannot delete products with associated parts\n if (productToDelete.getAllAssociatedParts().size() > 0)\n {\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\n alert2.setTitle(\"Action is Forbidden!\");\n alert2.setHeaderText(\"Action is Forbidden!\");\n alert2.setContentText(\"Products with associated parts cannot be deleted!\\n \" +\n \"Please remove associated parts from product and try again!\");\n alert2.show();\n }\n else\n {\n // delete the product\n inventory.deleteProduct(productToDelete);\n updateProducts();\n productTable.getSelectionModel().clearSelection();\n }\n }\n });\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to delete from the part table!\");\n alert.show();\n }\n this.productTable.getSelectionModel().clearSelection();\n }", "@FXML\n\t private void deleteProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.deleteProdWithId(prodIdText.getText());\n\t resultArea.setText(\"Product deleted! Product id: \" + prodIdText.getText() + \"\\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while deleting product \" + e);\n\t throw e;\n\t }\n\t }", "int deleteByPrimaryKey(Integer fitemid);", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n\tpublic int deleteproduct(Integer id) {\n\t\tConnection conn=null;\n\t\tPreparedStatement pst=null;\n\t\ttry {\n\t\t\tconn=DBUtils.getConnection();\n\t\t\tpst=conn.prepareStatement(\"delete from product where id=?\");\n\t\t\tpst.setInt(1,id);\n\t\t\t\n\t\t\treturn pst.executeUpdate();\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tDBUtils.Close(conn, pst);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn 0;\n\t}", "Cart deleteFromCart(String code, Long quantity, String userId);", "public void deleteProduct(int tpnb)\n {\n SQLiteDatabase db = this.database.getWritableDatabase();\n\n // Sets up the WHERE condition of the SQL statement\n String condition = String.format(\" %s = ?\", ShoppingListTable.KEY_TPNB);\n\n // Stores the values of the WHERE condition\n String[] conditionArgs = { String.valueOf(tpnb) };\n\n db.delete(ShoppingListTable.TABLE_NAME, condition, conditionArgs);\n }", "@Override\n\t@Transactional\n\tpublic void deleteProduct(int productId) {\n\t\tproductDAO.deleteById(productId);\n\n\t}", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "@DeleteMapping(\"/product/{id}\")\n\t@ApiOperation(value = \"\", authorizations = { @Authorization(value=\"JWT\") })\n\tString deleteProduct(@PathVariable Long id) {\n\t\tproductRepo.deleteById(id);\n\t\treturn \"deleted successfully\";\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "int deleteByPrimaryKey(Long uid);", "public void deletedb()\n {\n this.appContext.deleteDatabase(DB_NAME);\n Log.d(\"testdeletedb\",\"done\");\n }", "public static boolean deleteProduct(Product product) {\r\n\t\tdbConnect();\r\n\t\tPreparedStatement stmt = null;\r\n\t\tboolean saveStatus = true;\r\n\t\tfinal String DELETE_PRODUCT = \"DELETE FROM product WHERE product_code=\" + product.getProductCode();\r\n\t\ttry {\r\n\t\t\tstmt = conn.prepareStatement(DELETE_PRODUCT);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t\tstmt.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsaveStatus = false;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn saveStatus;\r\n\t}", "int deleteByPrimaryKey(Long articleTagId);", "@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}" ]
[ "0.7762249", "0.7486926", "0.7416997", "0.7385279", "0.7113792", "0.70981145", "0.70291865", "0.69992644", "0.690548", "0.6901912", "0.6897898", "0.68831205", "0.68722886", "0.684547", "0.68241966", "0.6801685", "0.67343354", "0.6713817", "0.6677251", "0.6674501", "0.6660329", "0.66215533", "0.6616136", "0.6611699", "0.65954906", "0.65649265", "0.65408814", "0.6520617", "0.6507048", "0.64943504", "0.64916456", "0.642886", "0.64185303", "0.6409598", "0.64011025", "0.6366963", "0.63642514", "0.6352056", "0.6350601", "0.6334567", "0.63324136", "0.63229376", "0.6315884", "0.62748224", "0.62641966", "0.6263145", "0.6248628", "0.6242999", "0.6235383", "0.6227512", "0.6221936", "0.6218488", "0.62094456", "0.6203764", "0.61923194", "0.6173146", "0.6169973", "0.6153128", "0.61519015", "0.6141256", "0.6138068", "0.6137341", "0.61343265", "0.6127869", "0.6126658", "0.61198187", "0.6117805", "0.6114844", "0.61055815", "0.61050564", "0.6104667", "0.61002314", "0.6096026", "0.6091057", "0.60901344", "0.6078555", "0.6065808", "0.6061488", "0.60606885", "0.60501707", "0.6049271", "0.60445356", "0.6039804", "0.6039299", "0.6037826", "0.6031062", "0.6030916", "0.6030057", "0.6028026", "0.60265905", "0.60159975", "0.6012914", "0.60091984", "0.6007423", "0.60056376", "0.60018384", "0.59979004", "0.5994649", "0.5985721", "0.59852976" ]
0.7522292
1
Adds a boolean value to the container.
public void add(Boolean value) { if(size < capacity) { values.add(value); size++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TupleDesc addBoolean(String name) {\n columns.add(new TupleDescItem(Type.BOOLEAN, name));\n return this;\n }", "public boolean add(boolean a, boolean b){\n\t\tSystem.out.println(\"i am from method where return type is boolean\");\n\t return true;\n\t}", "public void putBoolean(String key, boolean value) {\n String valueAsString = value ? TRUE_AS_STRING : FALSE_AS_STRING;\n\n put(key, valueAsString);\n }", "public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}", "public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}", "public void putBoolean(String key, boolean value, boolean commit) {\r\n\t\tputBoolean(Global.getContext(), key, value, commit);\r\n\t}", "void writeBool(boolean value);", "public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }", "void setBoolean(boolean value);", "public void putBooleanData(String key, Boolean value) {\n editor.putBoolean(key, value);\n editor.apply();\n }", "public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }", "public void putBoolean(ResourceLocation name, boolean value) {\n data.putBoolean(name.toString(), value);\n }", "public void addParameter(final String name, final boolean booleanValue) {\r\n\t\tthis.addParameter(name, Boolean.toString(booleanValue));\r\n\t}", "void setBoolean(String key, boolean val);", "public void append(boolean bool)\n\t{\n\t\t// determine the byte to append\n\t\tbyte b = (bool ? TRUE : FALSE);\n\t\t\n\t\t// append the byte\n\t\tappend(b);\n\t}", "void set(boolean value);", "boolean getBoolValue();", "boolean getBoolValue();", "public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}", "public static void addBooleanData(OWLIndividual owlIndi, boolean value, String property, OWLOntology onto, OWLDataFactory factory, OWLOntologyManager manager){\n\t\tOWLDataProperty p = factory.getOWLDataProperty(IRI.create(Settings.uri+property));\n\t\tOWLLiteral owlc = factory.getOWLLiteral(Boolean.toString(value), factory.getOWLDatatype(xsdBoolean));\n\t manager.applyChange(new AddAxiom(onto, factory.getOWLDataPropertyAssertionAxiom(p, owlIndi, owlc)));\n\t}", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "public void setBool(String name, Boolean value) {\n parameters.get(name).setValue(value);\n }", "public boolean getBoolValue() {\n return boolValue_;\n }", "public boolean getBoolValue() {\n return boolValue_;\n }", "public BooleanStateValue( boolean value, long duration) {\n\t\tsuper( duration);\n\t\t_storage = value;\n\t}", "BoolOperation createBoolOperation();", "public static boolean addTrue(BoolVar BOOLVAR) {\n Solver solver = BOOLVAR.getSolver();\n PropSat sat = solver.getMinisat().getPropSat();\n int lit = sat.Literal(BOOLVAR);\n sat.addClause(lit);\n return true;\n }", "void visitBooleanValue(BooleanValue value);", "public void setValue(boolean value) {\n this.value = value;\n }", "public ByteBuf writeBoolean(boolean value)\r\n/* 527: */ {\r\n/* 528:538 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 529:539 */ return super.writeBoolean(value);\r\n/* 530: */ }", "public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putBoolean(key,value);\n editor.apply();\n }", "public int addValue(boolean b) {\n return foldIn(b ? 0 : 1);\n }", "public BooleanStateValue( boolean value) {\n\t\tthis( value, false);\n\t}", "public void putBoolean(String key, boolean value){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n\n editor.putBoolean(key, value);\n\n editor.apply();\n }", "public void put(String key, boolean value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "@Specialization(guards = \"isBooleanOrIllegal(frame)\")\n protected boolean writeBoolean(VirtualFrame frame, boolean value) {\n it.getSlot().setKind(FrameSlotKind.Boolean);\n\n frame.setBoolean(it.getSlot(), value);\n return value;\n }", "void writeBoolean(boolean v) throws IOException;", "public static VariableValue createValueObject(boolean value) {\n\t\treturn new BooleanValue(value);\n\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "public Builder setBoolValue(boolean value) {\n bitField0_ |= 0x00000040;\n boolValue_ = value;\n onChanged();\n return this;\n }", "boolean boolField(String name, boolean isDefined, boolean value)\n throws NullField, InvalidFieldValue;", "public void setAugment(boolean aValue);", "boolean hasBoolValue();", "public Builder setBoolValue(boolean value) {\n typeCase_ = 2;\n type_ = value;\n onChanged();\n return this;\n }", "public synchronized boolean storeBoolean(String key, boolean value) {\n mEditor = mSharedPreferences.edit();\n mEditor.putBoolean(key, value);\n\n return mEditor.commit();\n }", "private native void Df1_Write_Boolean(String plcAddress,boolean value) throws Df1LibraryNativeException;", "public void setTallied(java.lang.Boolean value);", "public boolean getBoolean();", "public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }", "void setBoolean(int index, boolean value) throws SQLException;", "public void setBoolean(int index, boolean value) throws ArrayIndexOutOfBoundsException\n\t{\n\t\tbytes[index] = (byte) (value ? 1 : 0);\n\t}", "protected void writeBooleanValue(boolean v) throws IOException {\n _generator.writeBoolean(v);\n }", "public Boolean getBooleanValue() {\n return this.booleanValue;\n }", "boolean getBoolean();", "boolean getBoolean();", "@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }", "public void writeBoolean(boolean bool) throws IOException {\n DebugLog.stdoutPrintln(\"\tmarshalling bool\" + bool, DebugLog.BSF_LOG_L3);\n fDataOutputStream.writeBoolean(bool);\n\t}", "public DBBoolean(Boolean bool) {\n\t\tsuper(bool);\n\t}", "public BooleanType(final boolean val) {\n\t\tthis.b = new Boolean(val);\n\t}", "public ByteBuf setBoolean(int index, boolean value)\r\n/* 265: */ {\r\n/* 266:280 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 267:281 */ return super.setBoolean(index, value);\r\n/* 268: */ }", "public BooleanMetadata(String key, Object value) {\n\n this(key, value, false);\n }", "public void setIsExist(boolean value) {\n this.isExist = value;\n }", "void put(String key, boolean value) throws StorageException, ValidationException, KeyValueStoreException;", "public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}", "public BooleanStateValue( boolean value, boolean isImmortal) {\n\t\tsuper( isImmortal);\n\t\t_storage = value;\n\t}", "public final void fromBoolean(boolean booleanValue) {\n\t\tif (booleanValue) {\n\t\t\tpush(1.0f);\n\t\t} else {\n\t\t\tpush(0.0f);\n\t\t}\n\t}", "boolean add(T value);", "public void setBoolean(String key, boolean value) {\n\t\tif (getDefault(key) != null && (Boolean) getDefault(key) != value) {\n\t\t\tinternal.setProperty(key, value ? \"true\" : \"false\");\n\t\t} else {\n\t\t\tinternal.remove(key);\n\t\t}\n\t}", "default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }", "@Override\n public void put(String name, boolean value) {\n emulatedFields.put(name, value);\n }", "public final void ruleBoolean() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:266:2: ( ( 'Boolean' ) )\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n {\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n // InternalMyDsl.g:268:3: 'Boolean'\n {\n before(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n match(input,14,FOLLOW_2); \n after(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Boolean() {\n\t\tsuper(false);\n\t}", "public BooleanType(final Boolean val) {\n\t\tthis.b = val;\n\t}", "public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }", "public void setBool(String parName, boolean parVal) throws HibException;", "@Override\n public void setBoolean(boolean value) throws SQLException {\n if (possibleCharLength > 4) {\n setString(value ? LONG_TRUE : LONG_FALSE);\n } else if (possibleCharLength >= 1) {\n setString(value ? SHORT_TRUE : SHORT_FALSE);\n }\n }", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "abstract public boolean getAsBoolean();", "public VfeLkBooleanAdp(Byte booleanId) { this.booleanId = booleanId; }", "@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }", "private BooleanValueProvider() {\n this.state = true;\n }", "public static void setBool(String aKey, boolean aValue) {\n getSharedPreferences().edit().putBoolean(aKey, aValue).apply();\n }", "BooleanType(String name, String value,boolean mutable) {\n\t\tsuper(name,Constants.BOOLEAN, mutable);\n\t\tif(value != null)\n\t\t\tthis.value = parseValue(value);\n\t\t\n\t}", "public static PropertyDescriptionBuilder<Boolean> booleanProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Boolean.class, Parsers::parseBoolean);\n }", "private void serializeBoolean(final Boolean value, final StringBuffer buffer)\n {\n buffer.append(\"b:\");\n buffer.append(value.booleanValue() ? 1 : 0);\n buffer.append(';');\n }", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "protected BooleanValue(Boolean bv) {\n boolValue = bv;\n }", "protected void addInternetFacing_java_lang_Boolean_PropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_internetFacing_java_lang_Boolean__feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_internetFacing_java_lang_Boolean__feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__INTERNET_FACING_JAVA_LANG_BOOLEAN_,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}", "public static boolean toPrimitiveBoolean(Boolean value) {\n if (value == null) {\n return false;\n }\n return value;\n }", "public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }", "public Boolean getValue() {\n return value;\n }", "public void setIsModifier(java.lang.Boolean value);", "com.google.protobuf.BoolValue getPersistent();", "public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }", "public final Bindings booleanProperty(String name, boolean array) {\n addProp(name, array, \"true\");\n return this;\n }", "void add(boolean e) {\n Node toAdd = new Node(e, header);\n header = toAdd;\n }", "public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}" ]
[ "0.70114577", "0.6934167", "0.6857561", "0.6726388", "0.6726388", "0.6640023", "0.6636249", "0.6623174", "0.6583466", "0.6555936", "0.6511255", "0.6508762", "0.648714", "0.6438279", "0.6434825", "0.6365698", "0.6347954", "0.6347954", "0.6345523", "0.63363886", "0.629888", "0.629888", "0.629888", "0.629888", "0.61764544", "0.6137558", "0.61215466", "0.6117443", "0.6114488", "0.61045134", "0.6097261", "0.6085736", "0.6083458", "0.6083066", "0.606063", "0.6046817", "0.60452175", "0.60448307", "0.60445416", "0.6022935", "0.60186946", "0.5989752", "0.5959706", "0.5952484", "0.5946443", "0.59376156", "0.5921038", "0.5912628", "0.5909393", "0.5897405", "0.5891063", "0.58706474", "0.5867634", "0.58470815", "0.58425903", "0.58370596", "0.58243597", "0.58243597", "0.5820732", "0.5817534", "0.58090234", "0.5801745", "0.5797573", "0.57975215", "0.57972825", "0.57801825", "0.57751197", "0.5765712", "0.5760568", "0.57603747", "0.5752449", "0.574961", "0.5730682", "0.57289076", "0.57252485", "0.5709979", "0.5708002", "0.569677", "0.56879324", "0.568118", "0.56805354", "0.5680419", "0.5664973", "0.56572914", "0.56417924", "0.5636929", "0.56199336", "0.5618511", "0.561707", "0.5607668", "0.5605966", "0.5604213", "0.5600455", "0.5597554", "0.5593801", "0.5585814", "0.5575962", "0.5573382", "0.5569728", "0.5569023" ]
0.76620364
0
Return the collected boolean values.
public List<Boolean> getValues() { return values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean[] getBooleanList();", "public boolean[] asSetOfBool() {\n boolean[] rslt = new boolean[this.value.length];\n for (int i=0; i<this.value.length; i++) rslt[i] = this.value[i];\n return rslt;\n }", "public Iterable<Boolean> getBooleans(String key);", "public boolean[] getBooleans(){\n\t\tboolean[] b = new boolean[10];\n\t\tb[0] = isBoolean(answer0);\n\t\tb[1] = isBoolean(answer1);\n\t\tb[2] = isBoolean(answer2);\n\t\tb[3] = isBoolean(answer3);\n\t\tb[4] = isBoolean(answer4);\n\t\tb[5] = isBoolean(answer5);\n\t\tb[6] = isBoolean(answer6);\n\t\tb[7] = isBoolean(answer7);\n\t\tb[8] = isBoolean(answer8);\n\t\tb[9] = isBoolean(answer9);\n\t\treturn b;\n\t}", "@Parameters\n\tpublic static Iterable<Object> data() {\n\t\treturn Arrays.asList(true, false);\n\t}", "public List<BooleanVariable> getBooleanVariables() {\n return booleanVariables;\n }", "public boolean isAllValues() { return this.isAll; }", "org.apache.xmlbeans.XmlBoolean xgetProbables();", "org.apache.xmlbeans.XmlBoolean xgetMultiple();", "boolean getBoolValue();", "boolean getBoolValue();", "public boolean getValue();", "io.dstore.values.BooleanValue getPredefinedValues();", "public List<Boolean> getGivenAnswers()\n {\n return givenAnswers;\n }", "@Parameters\n\tpublic static List<Object[]> data() {\n\t\tfinal Object[][] data = new Object[][] {\n\t\t\t\t{ true, new Operator[] { TRUE } },\n\t\t\t\t{ true, new Operator[] { FALSE } },\n\t\t\t\t{ true, new Operator[] { FALSE, TRUE } },\n\t\t\t\t{ false, new Operator[] { TRUE, FALSE, TRUE } },\n\t\t\t\t{ false, new Operator[] { TRUE, TRUE, FALSE } },\n\t\t};\n\t\treturn Arrays.asList(data);\n\t}", "private boolean isAllTrue(HashMap<Integer, Boolean> messages)\r\n {\r\n // Iterate through each value for each key in the map.\r\n for(boolean value : messages.values())\r\n {\r\n // If a value is false, then return false.\r\n if(!value)\r\n {\r\n return false;\r\n }\r\n }\r\n // If all values are true, then return true.\r\n return true;\r\n }", "boolean getProbables();", "public boolean isSetBool_vals() {\n return this.bool_vals != null;\n }", "public final ArrayList<Boolean> getItensityValues() {\r\n return this.passIntensityThreshold;\r\n }", "boolean getValue();", "io.dstore.values.BooleanValue getOnlyProceduresInAnyValues();", "boolean hasAll();", "boolean hasAll();", "public boolean isReturnVals() {\n return mReturnVals;\n }", "public String toString() { return this.booleanValue; }", "public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }", "public Boolean getCanSelectValues() {\r\n return getAttributeAsBoolean(\"canSelectValues\");\r\n }", "public boolean getBoolean();", "private ArrayList<Boolean> createBoolArrayList(String notificationPreferences){\n String[] genres = getResources().getStringArray(R.array.genre);\n ArrayList<Boolean> isCheckedArray = new ArrayList<>();\n String[] arrayNotificationPref = notificationPreferences.split(\",\");\n\n for (int i = 0; i < genres.length; i++){\n isCheckedArray.add(false);\n for (String curNotification: arrayNotificationPref) {\n if (genres[i].equals(curNotification)){\n isCheckedArray.set(i,true);\n }\n }\n }\n\n return isCheckedArray;\n }", "protected Boolean geBoolValue() {\n return boolValue;\n }", "io.dstore.values.BooleanValueOrBuilder getPredefinedValuesOrBuilder();", "abstract public boolean getAsBoolean();", "public boolean getBoolValue() {\n return boolValue_;\n }", "public static boolean[] getSensorStates() {\n\t\tboolean[] retVal = new boolean[mSensors.size()];\n\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tretVal[x] = mSensors.get(x).mEnabled;\n\t\t}\n\n\t\treturn retVal;\n\t}", "@Test\n public void allTrue() {\n assertTrue(getPredicateInstance(true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n assertTrue(getPredicateInstance(true, true, true).evaluate(getTestValue()),\n \"multiple true predicates evaluated to false\");\n }", "boolean hasPredefinedValues();", "public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }", "boolean isSetProbables();", "public boolean getBoolValue() {\n return boolValue_;\n }", "public abstract boolean[] calculate();", "public Boolean getValue() {\n return value;\n }", "public java.lang.Boolean value() {\n return value;\n }", "public io.dstore.values.BooleanValue getPredefinedValues() {\n return predefinedValues_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : predefinedValues_;\n }", "static boolean[] arrBooleano(){\n\t\tint k=9;\n\t\tboolean[]a=new boolean[k];\n\t\t//agregar 1,4,7\n\t\ta[1]=true;\n\t\ta[4]=true;\n\t\ta[7]=true;\n\t\t//borrar\n\t\ta[4]=false;\n\t\t//buscar 7 acceso\n\t\t\n\t\tif(a[7]){\n\t\t\t//System.out.println(\"accedi en orden 1\");\n\t\t}\n\t\telse{\n\t\t\t//System.out.println(\"soy false\");\n\t\t}\n\t\timprimir(a);\n\t\treturn a;\n\t\t//imprimir(a);\n\t}", "public Boolean value() {\n return this.value;\n }", "public Boolean value() {\n return this.value;\n }", "public Boolean value() {\n return this.value;\n }", "public boolean[] getDias(){\n return dias;\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.Value> getGroundTruthsList() {\n return groundTruths_;\n }", "public boolean[] getBooleanArray(final String key) {\n return (boolean[]) getArray(Boolean.TYPE, key);\n }", "public List<Boolean> getBooleanList(final String key) {\n return getBooleanList(key, new ArrayList<>());\n }", "public static ArrayList<Vkladi> trueScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == true) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "public GeoBoolean getResult() {\n\t\treturn outputBoolean;\n\t}", "public DBField[] getFieldsWithBoolean(String key, boolean value)\n {\n java.util.List<DBField> af = new Vector<DBField>();\n for (Iterator<DBField> i = this.fieldMap.valueIterator(); i.hasNext();) {\n DBField fld = i.next();\n if (fld.getBooleanAttribute(key,false) == value) {\n af.add(fld);\n }\n }\n return af.toArray(new DBField[af.size()]);\n }", "public Boolean getValue() {\n\t\treturn b;\n\t}", "public Boolean getBooleanAttribute();", "boolean getMultiple();", "public Boolean getBooleanValue() {\n return this.booleanValue;\n }", "private static Stream<Boolean> randomBooleans() {\n Random random = new Random();\n return Stream.generate(random::nextBoolean).limit(MAX);\n}", "public io.dstore.values.BooleanValue getPredefinedValues() {\n if (predefinedValuesBuilder_ == null) {\n return predefinedValues_ == null ? io.dstore.values.BooleanValue.getDefaultInstance() : predefinedValues_;\n } else {\n return predefinedValuesBuilder_.getMessage();\n }\n }", "boolean getBoolean();", "boolean getBoolean();", "public java.util.List<com.google.protobuf.Value> getGroundTruthsList() {\n if (groundTruthsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(groundTruths_);\n } else {\n return groundTruthsBuilder_.getMessageList();\n }\n }", "boolean isSetMultiple();", "io.dstore.values.BooleanValueOrBuilder getOnlyProceduresInAnyValuesOrBuilder();", "@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "boolean booleanOf();", "public Boolean asBoolean();", "public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }", "public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }", "public TBooleanElements getTBooleanAccess() {\n\t\treturn unknownRuleTBoolean;\n\t}", "public Boolean getValue() {\n return this.value;\n }", "public Boolean getValue() {\n return this.value;\n }", "public Boolean getValue() {\n return this.value;\n }", "public Map<String, Boolean> getFilteringResults() {\n return filteringResults;\n }", "public boolean isGettersOfBoolean() {\n final boolean result = cbBoolean.getModel().isSelected();\n paramBoolean = result;\n return result;\n }", "public io.dstore.values.BooleanValueOrBuilder getPredefinedValuesOrBuilder() {\n return getPredefinedValues();\n }", "boolean getIsChecked();", "public boolean[][] supBooleana()\r\n\t{\r\n\t\tboolean [][]supBooleana = new boolean[this.casillas.getFila()][this.casillas.getCol()];\r\n\t\t\r\n\t\tfor(int i=0; i<this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j=0; j<this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\tif(this.checkCasillaVacia(new Casilla(i,j)))\r\n\t\t\t\t\tsupBooleana[i][j] = false;\r\n\t\t\t\telse\r\n\t\t\t\t\tsupBooleana[i][j] = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn supBooleana;\r\n\t}", "public static final\n List<String> ccListAllBooleanFieldName(Class<?> pxClass){\n return ccListAllFieldName(pxClass, boolean.class);\n }", "@java.lang.Override\n public com.google.protobuf.Value getGroundTruths(int index) {\n return groundTruths_.get(index);\n }", "boolean hasBoolValue();", "private boolean[] getCheckBoxes() {\n\t\tHBox n4 = (HBox) uicontrols.getChildren().get(4);\n\t\tCheckBox b1 = (CheckBox) n4.getChildren().get(0);\n\t\tCheckBox b2 = (CheckBox) n4.getChildren().get(1);\n\t\tCheckBox b3 = (CheckBox) n4.getChildren().get(2);\n\t\tCheckBox b4 = (CheckBox) n4.getChildren().get(3);\n\t\tboolean[] boxes = { b1.isSelected(),b2.isSelected(),b3.isSelected(),b4.isSelected()};\n\t\treturn boxes;\n\t}", "public Set<String> getIsSet() {\n return isSet;\n }", "public Set<String> getIsSet() {\n return isSet;\n }", "boolean arrCompleted(Boolean[] boolarray) {\n for (int i=0; i < boolarray.length; i++) {\n if (boolarray[i] == false) {\n return false;\n }\n }\n return true;\n }", "public boolean[] getOutputMissingValues(){\r\n\t\treturn missingValues[1];\r\n\t}", "public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "boolean[] bitwiseChangeList();", "public static Value makeAnyBool() {\n return theBoolAny;\n }", "String getBooleanTrueExpression();", "public int[] getConditions() { return conditional; }", "org.apache.xmlbeans.XmlBoolean xgetParlay();", "public boolean getValue() {\n\t\treturn _checked;\n\t}", "Boolean filterEnabled();", "public boolean[] getOutput() {\n // PROGRAM 1: Student must complete this method\n // return value is a placeholder, student should replace with correct return\n boolean[] outputCopy = new boolean[output.length]; //array to hold copy of output.\n for (int i = 0; i < outputCopy.length; i++) {\n outputCopy[i] = output[i]; //place output data into outputCopy\n }\n return outputCopy; //return copy of output\n }", "public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}", "public static boolean anyDirty ()\n {\n for (Boolean b : _dirty.values()) {\n if (Boolean.TRUE.equals(b)) {\n return true;\n }\n }\n return false;\n }", "public Boolean getResult() {\n return result;\n }" ]
[ "0.75727224", "0.757016", "0.7238794", "0.71645737", "0.71396834", "0.68570024", "0.6730713", "0.6706602", "0.64633894", "0.6448579", "0.6448579", "0.6421081", "0.6420421", "0.6381892", "0.6312107", "0.62941617", "0.6229141", "0.6209439", "0.61748666", "0.61681247", "0.6148823", "0.61162794", "0.61162794", "0.6074834", "0.60518867", "0.6046898", "0.6039949", "0.6018065", "0.60176486", "0.6014752", "0.59973186", "0.59927636", "0.5982987", "0.5959884", "0.5957642", "0.5956611", "0.59481204", "0.5939051", "0.5934928", "0.59327155", "0.5926083", "0.59175503", "0.59097266", "0.59027123", "0.59021187", "0.59021187", "0.59021187", "0.58983266", "0.58965373", "0.5895239", "0.58898276", "0.58649987", "0.5862188", "0.5860074", "0.5855136", "0.5845957", "0.5842885", "0.58340144", "0.5826122", "0.58147454", "0.5811995", "0.5811995", "0.5800399", "0.5795393", "0.57876426", "0.5771013", "0.57645327", "0.5756581", "0.5732777", "0.5729779", "0.57297033", "0.57255197", "0.57255197", "0.57255197", "0.57159173", "0.5709262", "0.56940293", "0.5690972", "0.5686904", "0.56838244", "0.56775916", "0.5671278", "0.5657694", "0.5633348", "0.5633348", "0.5620696", "0.56052154", "0.5603213", "0.5589037", "0.5580633", "0.55689186", "0.5567579", "0.5566511", "0.556627", "0.55574", "0.5556111", "0.55448014", "0.5535833", "0.55347735", "0.55347717" ]
0.74344975
2
TODO Autogenerated method stub
public static void main(String[] args) { String color="blue"; String shirt="shirt"; switch(color) { case "blue": shirt="blue"+shirt; break; case "red": shirt="red"+shirt; break; default : shirt ="white"+shirt; } System.out.println("shirt type:"+shirt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
provide program arguments: path_to_file column_separator e.g.: Users/username/data/user_data.csv ;
public static void main(String[] args) { new Menu(args[0], args[1]).run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String[]> readCsv(String inputFilePath, char separator)throws IOException;", "List<String[]> readCsv(String inputFilePath,int skipLine,char separator)throws IOException;", "public static void main(String[] args) {\n\t\tSystem.out.println(readCSVFile(System.getProperty(\"user.dir\") + \"/CoffeeShops.csv\"));\n\t}", "public static void main(String args[]) throws IOException\n {\n String path = \"user.csv\";\n Reader reader = Files.newBufferedReader(Paths.get(path));\n CSVReader csvReader = new CSVReader(reader);\n //Reading all records one by one\n String[] nextRecords;\n while ((nextRecords = csvReader.readNext()) != null) {\n System.out.println(\"Name:\" + nextRecords[0]);\n System.out.println(\"Email:\" + nextRecords[1]);\n System.out.println(\"Phone no:\" + nextRecords[2]);\n System.out.println(\"Country:\" + nextRecords[3]);\n System.out.println(\"=======================\");\n }\n //Reading all records at once\n List<String[]> records = csvReader.readAll();\n for (String[] record : records) {\n System.out.println(\"Name:\" + record[0]);\n System.out.println(\"Email:\" + record[1]);\n System.out.println(\"Phone No:\" + record[2]);\n System.out.println(\"Country:\" + record[3]);\n System.out.println(\"========================\");\n }\n }", "public static void main(String[] args){\n String importPath = \"import.CSV\";\n String exportQuery = \"SELECT * FROM PAIS\";\n SQLUtils t = new SQLUtilsImpl();\n File export = t.importCSV(exportQuery);\n //t.runFile(file);\n //t.importCSV(importF);\n //System.out.println(t.executeQuery(\"SELECT * FROM CIDADE WHERE ID = 3000\")); \n \n System.out.println(\"termino\");\n }", "public static void main(String[] args) {\n\t\tFileUTL fUtl = new FileUTL();\n\t\tString fileAddres = \"C:\\\\Users\\\\lenovo\\\\Desktop\\\\医嘱和对应路径信息\\\\\";\n\t\tString filename = fileAddres+\"12个病人的医嘱信息-utf8.csv\";\n\t\tString splitSign = \",\";\n\t\tString dateSign = \"/\";\n\t\tfUtl.readFile(filename, splitSign, dateSign);\n\t}", "public static void main(String[] args) throws IOException {\n\t\tint id_telefone = 4;\n\t\t\n\t\tFileInputStream fis = new FileInputStream(SAMPLE_CSV_FILE_PATH);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tCSVReader reader = new CSVReader(isr, ';' , '\"' , 0);\n \tString[] nextLine;\n \t\n// \tWriter writer = Files.newBufferedWriter(Paths.get(\"saida.csv\"));\n// \tCSVWriter csvWriter = new CSVWriter(writer,\n// CSVWriter.DEFAULT_SEPARATOR,\n// CSVWriter.NO_QUOTE_CHARACTER,\n// CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n// CSVWriter.DEFAULT_LINE_END);\n \t\n \tFile file = new File(\"Clientes.sql\");\n \n BufferedWriter fr = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),\"UTF-8\"));\n \t\n \twhile ((nextLine = reader.readNext()) != null) {\n \t\t\n if (nextLine != null) {\n \t\n// \tSystem.out.println(nextLine.length);\n \t\n \tString id = nextLine[0];\n \tif(!id.isEmpty()) {\n \t\n \t\tid = id.substring(5);\n \t\tid = id.replace(\".\", \"\");\n \t\t\n \t\tboolean temCEP = false;\n \t\t\n \t\tif(nextLine.length > 12) temCEP = true;\n \t\t\n \t\tString CEP = \"\";\n \t\tif(temCEP) {\n \t\t CEP = nextLine[12];\n CEP = CEP.replace(\".\", \"\");\n CEP = CEP.replaceAll(\"-\",\"\");\n CEP = CEP.replaceAll(\" \",\"\");\n \t\t};\n \n \t\n \n \tfr.write(\"INSERT INTO hmprojetos.cliente values (\" \n + id \n + \",'\" + nextLine[1]\n \t\t+ \"','\" + nextLine[2]\n \t\t\t\t+ \"','\" + nextLine[3]\n \t\t\t\t\t\t+ \"','\" + nextLine[4]\n \t\t\t\t\t\t\t\t+ \"','\" + nextLine[5]\n \t\t\t\t\t\t\t\t\t\t+ \"','\" + CEP\n \t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[10]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[11]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[6]\n + \"');\\n\");\n \t\n \t//Criação dos INSERTS dos telefones\n \tif(!nextLine[7].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[7]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[8].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[8]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[9].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[9]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \t\n \t}\n }\n \t}\n \t\n \tfr.close();\n \tSystem.out.println(\"Done\");\n\t}", "public static void main(String[] args) {\n new FileIOService().csvTest();\n }", "public static void main(String[] args) {\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"E:\\\\java nots\\\\demo.csv\"));\n\t\t\tsc.useDelimiter(\",\"); // sets the delimiter pattern\n\t\t\twhile (sc.hasNext()) // returns a boolean value\n\t\t\t{\n\t\t\t\tSystem.out.print(sc.next() + \"\\t\"); // find and returns the next complete token from this scanner\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsc.close(); // closes the scanner\n\t\t}\n\n\t}", "private File getFileFromArgs(String args) throws ParseException {\n ArgumentMultimap argMultimap =\n ArgumentTokenizer.tokenize(args, PREFIX_FILE_LOCATION);\n if (!argMultimap.getValue(PREFIX_FILE_LOCATION).isPresent()) {\n throw new ParseException(String.format(MESSAGE_INVALID_COMMAND_FORMAT, ImportCommand.MESSAGE_USAGE));\n }\n Path fileLocation = ParserUtil.parseCsv(argMultimap.getValue(PREFIX_FILE_LOCATION).get());\n return fileLocation.toFile();\n }", "public static void main(String[] args) throws FileNotFoundException {\n\t\tscanner = new Scanner(new File(\"digit_data/test.csv\"));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n // Transforms the values on the csv from strings to ints\n\t\tnew drawnum().go();\n\t}", "CSV createCSV();", "List<String[]> readCsv(String inputFilePath,int skipLine)throws IOException;", "public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException {\n Properties prop = new Properties();\n prop.load(new FileInputStream(PROPERTIES));\n String server = prop.getProperty(\"server\");\n String schema = prop.getProperty(\"database\");\n String username = prop.getProperty(\"user\");\n String password = prop.getProperty(\"password\");\n\n // TODOd: connect to the database\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n String url = \"jdbc:mysql://\" + server + \":3306/\" + schema ;\n conn = DriverManager.getConnection(url,username, password);\n\n // Only for testing purposes\n // jdbcInit();\n\n // TODOd: complete the data load\n splitCsv(System.getProperty(\"user.dir\") + \"/\", DATASET);\n }", "void createCsv(String location);", "private String getSeparator(List<String> file)\n {\n String line = file.get(0);\n \n if (line.contains(\" \") || line.contains(\" ,\")) {\n /* for these delimeters the \"data\" and \"quantidade\" column are not\n * separated correctly, so we need to add one space to support them.\n */\n for (int i = 0; i < file.size(); i++) {\n String l = file.get(i);\n String a = l.substring(0, 16);\n String b = l.substring(16, l.length() - 1);\n file.set(i, a + \" \" + b);\n }\n }\n\n return FileUtil.SEPARATOR(line);\n }", "public DataFrame(String file_input_path, boolean header, String sep, String comment_char) throws IOException {\r\n\t\tif(System.getProperty(\"os.name\").contains(\"indows\")) {\r\n\t\t\t// do nothing, hopefully\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tfile_input_path = file_input_path.replace(\"\\\\\", \"/\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.columnMapping = new HashMap<String, Integer>();\r\n\t\tthis.df = new ArrayList<String[]>();\r\n\t\tthis.delimiter = sep;\r\n\t\tthis.comment_char = comment_char;\r\n\t\tthis.FILE_PATH = file_input_path;\r\n\t\tthis.header = header;\r\n\t\tthis.parseFile();\r\n\t}", "public static void main(String[] args) throws FileNotFoundException {\n\t\tScanner sc = new Scanner(new File(\"F:\\\\CSVDemo.csv\")); \n\t\tsc.useDelimiter(\",\"); //sets the delimiter pattern \n\t\twhile (sc.hasNext()) //returns a boolean value \n\t\t{ \n\t\tSystem.out.print(sc.next()); //find and returns the next complete token from this scanner \n\t\t} \n\t\tsc.close(); //closes the scanner \n\t\tCSVCompare();\n\t}", "@ParameterizedTest\n @CsvFileSource(files = \"src/test/resources/params/shoppinglist3.csv\",\n numLinesToSkip = 1, delimiterString = \"___\") // Delimiter string in this case.\n public void csvFileSource_StringDoubleIntStringString3(String name,\n double price, int qty, String uom,\n String provider){\n System.out.println(\"name = \" + name + \", price = \" + price + \", qty = \" + qty\n + \", uom = \" + uom + \", provider = \" + provider);\n }", "private void setFileSeparator() {\n\t\tthis.fileSeparator = System.getProperty(\"file.separator\");\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n \r\n Directory d = new Directory();\r\n \r\n if (args.length != 1) {\r\n System.out.println(\"Usage: java CSVReaderTest <filename>\");\r\n }\r\n else {\r\n FileReader fr = new FileReader(args[0]);\r\n BufferedReader c = new BufferedReader(fr);\r\n\r\n int lineNum = 0;\r\n boolean eof = false;\r\n \r\n while (!eof) {\r\n String line = c.readLine();\r\n \r\n if (line == null) {\r\n eof = true;\r\n }\r\n else{\r\n // Allocate an array of the necessary size to return the strings\r\n String[] values = new String[4];\r\n // Start beginIndex at the beginning of the String, position 0\r\n int beginIndex = 0;\r\n\r\n for (int i = 0; i < 3; i++) {\r\n int endIndex;\r\n endIndex = line.indexOf(',', beginIndex);\r\n\r\n // if the argument begins and ends with quotes, remove them\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(endIndex - 1) == '\"') {\r\n values[i] = line.substring(beginIndex + 1, endIndex - 1);\r\n\r\n } else {\r\n values[i] = line.substring(beginIndex, endIndex);\r\n }\r\n\r\n beginIndex = endIndex + 1;\r\n }\r\n\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(line.length() - 1) == '\"') {\r\n values[3] = line.substring(beginIndex + 1, line.length() - 1);\r\n } else {\r\n values[3] = line.substring(beginIndex, line.length());\r\n }\r\n \r\n if (lineNum > 1) {\r\n lineNum = lineNum + 1;\r\n Student s = new Student(values[0]);\r\n s.setFirstName(values[1]);\r\n s.setLastName(values[2]);\r\n s.setPhoneNumber(values[3]);\r\n d.addStudent(s);\r\n System.out.println(s);\r\n }\r\n\r\n }\r\n }\r\n c.close();\r\n }\r\n \r\n Student c = new Student(\"mengl1\");\r\n c.setFirstName(\"Meng\");\r\n c.setLastName(\"Li\");\r\n c.setPhoneNumber(\"412-807-0153\");\r\n \r\n Student a = new Student(\"mengl2\");\r\n a.setFirstName(\"Mengl\");\r\n a.setLastName(\"Li\");\r\n a.setPhoneNumber(\"412-807-0154\");\r\n \r\n Student b = new Student(\"terryhong\");\r\n b.setFirstName(\"terry\");\r\n b.setLastName(\"hong\");\r\n b.setPhoneNumber(\"412-464-475\");\r\n\r\n d.addStudent(c);\r\n d.addStudent(a);\r\n d.addStudent(b);\r\n \r\n //System.out.println(d.searchByAndrewId(\"mengl2\"));\r\n //d.deleteStudent(\"terryhong\");\r\n System.out.println(d.size());\r\n // System.out.println(d.searchByLastName(\"Li\"));\r\n\r\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\n\tif(args.length ==3)\n\t{\n\t\t//System.out.println(\"3 arguments!\");\n\t\tif (args[0].equals(\"-p\"))\n\t\t{\n\t\t\t//System.out.println(\"args[0] passed\");\n\t\t\t//System.out.println(\"1/2P MTR M-SAT 7:30-19:30\".getBytes() +\",\"+\"length =\"+\"1/2P MTR M-SAT 7:30-19:30\".length());\n\t\t\t//System.out.println(\"08/11/2017 02:19:50 PM\".getBytes() +\",\"+\"length =\"+\"08/11/2017 02:19:50 PM\".length());\n\t\t\tfilepath= args[2];\n\t\t\tpagesize= Integer.parseInt(args[1]);\n\t String line = \"\";\n\t String cvsSplitBy = \"\\\\s*,\";\n\t //---------------------start actual operation-----------------------------------------\n\t\t\tlong startTime = System.nanoTime( );\n\t int recordCount=0;//how many records in total\n\t int pageCount=0; // how many pages have been written\n\t int sizeCount=0; // how much data has been written in bytes\n\t String recordDelim = \"|\";//to identify each record.\n\t String varDelim =\",\"; //to identify a variable length data. e.g. 1345,swanston st,1234. will try to read comma first.\n\t byte[] recordDelimByte = recordDelim.getBytes();\n\t byte[] varDelimByte = varDelim.getBytes();\n\t //System.out.println(\"length for |: \"+recordDelimByte.length);\n\t //-----list of records size. even though some of the sizes are not fixed like int type, it is necessary to give out an approx of the maximum record size.\n\t // the details for these number please see below variables declaration.\n\t int recordSize=4+22+22+22+10+8+26+17+30+30+30+1+1;\n\t //Before read, the program need to see if the record size is less than the page size or not.\n\t //For safety, an equal size is not allowed.\n\t if (pagesize<=recordSize) {\n\t \tSystem.err.println(\"The page size provided is too small! please use a greater size\");\n\t \tSystem.exit(0);\n\t }\n\t //Start reading csv file and assign all variables.\n\t DataOutputStream outStream = new DataOutputStream(new FileOutputStream(\"heap.\" + pagesize));\n\t try (BufferedReader br = new BufferedReader(new FileReader(filepath))) {\n\t \tString[] data = line.split(cvsSplitBy);//ignore titles\n\t \tline = br.readLine();//ignore titles\n\t \twhile ((line = br.readLine()) != null) {\n\t \tint Rsize =0;//size for each record\n\t \tdata = line.split(cvsSplitBy);\n\t \tint deviceId = Integer.parseInt(data[0]);// 4 bytes.\n\t \tString arrival_time = data[1];// same as departure time, 22.\n\t \tString departure_time = data[2];// length of 22 will be ok\n\t \tString duration_second = data[3];// 10 bytes. in general it will be less than that, however there are some very large time there, and sign is negative. not sure why\n\t \tString stMarker = data[4];// ~8 bytes?\n\t \tString sign = data[5]; //26\n\t \tString area = data[6]; //17\n\t \tint streetId = Integer.parseInt(data[7]); // 4 bytes integer\n\t \tString stName = data[8];// 30 bytes\n\t \tString betweenSt1 = data[9];// 30 bytes\n\t \tString betweenSt2 = data[10];//30 bytes.\n\t \tshort side = Short.parseShort(data[11]);//very short number, 2 bytes\n\t \tString inViolation = data[12].substring(0,1);//True(T) or False(F), 2 bytes\n\t \t//---------convert all data into byte arrays-----------\n\t \t//ByteBuffer.allocate(4).putInt(deviceId).array()\n\t \tbyte[] dIDB =intToByteArray(deviceId);\n\t \tbyte[] a_timeB = arrival_time.getBytes();\n\t \tbyte[] DA_NAME = new byte [dIDB.length+a_timeB.length];\n\t \t//then put dIDB and a_timeB together forms a DA_NAME field.\n\t \tSystem.arraycopy(dIDB, 0, DA_NAME, 0, dIDB.length);\n\t \tSystem.arraycopy(a_timeB, 0, DA_NAME, dIDB.length, a_timeB.length);\n\t \t//System.out.println(byteArrayToInt(dIDB));\n\t \t//byte[] a_time = Arrays.copyOfRange(DA_NAME,4, DA_NAME.length);\n\t \t//System.out.println(new String(a_time));\n\t \tbyte[] d_timeB = departure_time.getBytes();\n\t \tbyte[] d_secB = duration_second.getBytes();\n\t \tbyte[] stMarkerB = stMarker.getBytes();\n\t \tbyte[] signB = sign.getBytes();\n\t \tbyte[] areaB = area.getBytes();\n\t \tbyte[] stIDB = intToByteArray(streetId);\n\t \tbyte[] stNameB = stName.getBytes();\n\t \tbyte[] btNameB1 = betweenSt1.getBytes();\n\t \tbyte[] btNameB2 =betweenSt2.getBytes();\n\t \tbyte[] sideB = intToByteArray(side);\n\t \tbyte[] inVioB = inViolation.getBytes();\n\t \t//System.out.println(new String(inVioB)+\" \"+inVioB.length);\n\t \t//output the file.\n\t \t\n\t \toutStream.write(DA_NAME);\n\t \toutStream.write(d_timeB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(d_secB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(stMarkerB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(signB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(areaB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(stIDB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(stNameB);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(btNameB1);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(btNameB2);\n\t \toutStream.write(varDelimByte);\n\t \toutStream.write(sideB);\n\t \toutStream.write(inVioB);\n\t \toutStream.write(recordDelimByte);\n\t \t\n\t \tsizeCount = sizeCount+recordDelimByte.length+dIDB.length+a_timeB.length\n +d_timeB.length+d_secB.length+stMarkerB.length+signB.length\n +areaB.length+stIDB.length+stNameB.length+btNameB1.length+btNameB2.length\n +sideB.length+inVioB.length;\n\t \trecordCount++;\n\t \t//System.out.println(\"current record:\"+recordCount);\n\t \t//if there is no much space for a record, fill zeros onto it until the page size is achieved.\n\t \twhile(pagesize<recordSize+sizeCount) {\n\t \t\t//System.out.println(sizeCount);\n\t \t\toutStream.write(0);\n\t \t\tsizeCount++;\n\t \t\tif(sizeCount==pagesize) {\n\t \t\t\t//System.out.println(\"current size:\"+sizeCount);\n\t \t\t\t//System.out.println(\"this page has: \"+recordCount+\" records\");\n\t \t\t\tsizeCount=0;\n\t \t\t\trecordCount=0;\n\t \t\t\tpageCount++;\n\t \t\t\tbreak;\n\t \t\t}\n\t \t}\n\t \t}\n\t }\n\t finally{\n\t \tpageCount++;\n\t \t//System.out.println(\"the final page has: \"+recordCount+\" records\");\n\t \toutStream.write(\"&&&\".getBytes());//indicates the end of the file.\n\t \toutStream.close();\n\t \t//System.out.println(\"job done\");\n\t \tSystem.out.println(pageCount+\" pages written\");\n\t \t//-------Time measurement!---------\n\t \t\tlong endTime = System.nanoTime( );\n\t \t\tdouble estimatedTime = ((double)(endTime-startTime))/Math.pow(10,9);\n\t \t\tSystem.out.println( \" time taken = \" + estimatedTime + \" sec \" ) ;\n\t \t\tSystem.out.println(\"All job completed!\");\n\t }\n\t\t}\n\t\t\n\t\telse\n\t\t\tSystem.err.println(\"incorrect args[0]\");\n\t\t\n\t}\n\telse\n\t{\n\t\tSystem.err.println(\"needs 3 arguments!\");\n\t}\n\t\n\t}", "List<String[]> readCsv(String inputFilePath)throws IOException;", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"./first_and_last_names.csv\"));\n\t\tPrintWriter writer = new PrintWriter(\"./first_and_last_names_fix.csv\", \"UTF-8\");\n\t\tString line = br.readLine();\n\t\twriter.println(line);\n\t\tline = br.readLine();\n\t\t\n\t\twhile (line!=null)\n\t\t{\n\t\t\tif (line.length()>0)\n\t\t\t{\n\t\t\t\tif (Character.isDigit(line.charAt(0)))\n\t\t\t\t{\t\n\t\t\t\t\tif (line.endsWith(\"\\\"\"))\n\t\t\t\t\twriter.println(line);\n\t\t\t\t\telse\n\t\t\t\t\twriter.print(line);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(line.endsWith(\"\\\"\"))\n\t\t\t\t\t{\t\n\t\t\t\t\t\twriter.print(\"\\\"\");\n\t\t\t\t\t\tline = line.substring(line.indexOf(\",\"), line.length());\n\t\t\t\t\t\twriter.println(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tline = br.readLine();\n\t\t\tactualLine++;\n\t\t\tif(actualLine%1000==0)\n\t\t\t\tSystem.out.println(actualLine);\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t\tbr.close();\n\t\twriter.close();\n\t}", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFileManager csv=new FileManager();\n\t\t\n\t\tcsv.readListOfFiles();\n\t\tcsv.readFile();\n\t\t\n\t\t//csv.tk.displayTokens();\n\t\t//csv.it.displayHashMap();\n\t\tcsv.writeTokensToFile(csv.tk.tokensMap);\n\t\tcsv.matcher.longestSequence(csv.it);\t//csv.it.intTokenList was supposed to be passed but since I need csv.it object in caller so im passing it\n\t\tcsv.matcher.displaySubsequences(csv.it);\n\t\tcsv.writeMatchesToFile(csv.matcher.resultMap,csv.it);\n\t System.out.println(\"\\nProgram Ends \");\n\t \t \n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tString[] fields = {\"First column\",\"Second Col\",\"Third Col\"};\r\n\t\tString[] fields2 = {\"112222222222.11 \",\"23232323.20\",\"2.222\"};\r\n\t\t\r\n\t\tSystem.out.println(addSpacing(fields));\r\n\t\tSystem.out.println(addSpacing(fields2));\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n List<String> rowKeyList = HBaseUtils.getRowKeyList4File(args[0]);\n String tableName = args[1];\n String propertiesName = args[2];\n String columnName = args[3];\n String outFilePath = args[4];\n\n try {\n Map<String, Map<String, String>> getDataMap = HBaseUtils.queryTableTestBatch(tableName, rowKeyList);\n /*for (Map.Entry<String,Map<String,String>> getDataEntry:getDataMap.entrySet()){\n String outStr=getDataEntry.getKey()+\",\"+HbaseUtils.map2String(\"table-info.properties\",\"sm_out\",getDataEntry.getValue());\n HbaseUtils.addData2File(\"/home/hadoop/data/get/sm_out\",outStr);\n }*/\n HBaseUtils.addDataList2File(HBaseUtils.getData4RowKey(rowKeyList, \"table-info.properties\", columnName, getDataMap), outFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@ParameterizedTest\n @CsvFileSource(files = {\"src/test/resources/params/shoppinglist.csv\",\n \"src/test/resources/params/shoppinglist2.csv\"},\n numLinesToSkip = 1) // The first line in .csv is a header, this is to skip that line\n public void csvFileSource_StringDoubleIntStringString2(String name,\n double price, int qty, String uom,\n String provider){\n System.out.println(\"name = \" + name + \", price = \" + price + \", qty = \" + qty\n + \", uom = \" + uom + \", provider = \" + provider);\n }", "public static void main(String[] args) {\n\n String inputPath = args[0];\n String outputPath = args[1];\n\n new Test2().addESVColumn(inputPath, outputPath);\n }", "public static void main(String[] args) {\n if (args.length < 1) \n fail(\"Missing db name, table name, table description, & data file\", 1);\n if (args.length < 2) \n fail(\"Missing table name, table description, & data file\", 1);\n if (args.length < 3) \n fail(\"Missing table description, & data file\", 1);\n if (args.length < 4) \n fail(\"Missing data file\", 1);\n\n String user = null, pass = null, host = null;\n if (args.length > 4) user = args[4];\n if (args.length > 5) pass = args[5];\n if (args.length > 6) host = args[6];\n\n MySQLIngestTable ingester = new MySQLIngestTable(args[0], args[1],\n user, pass, host);\n File coldesc = new File(args[2]);\n if (! coldesc.exists()) \n fail(\"File not found: \" + args[2], 2);\n File datacsv = new File(args[3]);\n if (! datacsv.exists()) \n fail(\"File not found: \" + args[3], 2);\n\n int exval = 0;\n try {\n /*\n KeywordFactory kwf = new XMLConfiguredKeywordFactory(coldesc);\n exval = ingester.createTable(kwf);\n */\n exval = ingester.initDb(coldesc, datacsv);\n }\n catch (IOException ex) {\n fail(ex.getMessage(), 3);\n }\n catch (Exception ex) {\n ex.printStackTrace();\n System.exit(4);\n }\n if (exval > 0) exval += 10;\n System.exit(exval);\n }", "void insertCSV(String file_path) {\n try {\n InputStream fileStream = new FileInputStream(file_path);\n Reader decoder = new InputStreamReader(fileStream, \"UTF-8\");\n BufferedReader buffered = new BufferedReader(decoder);\n\n for (String line = buffered.readLine(); line != null; line = buffered.readLine()) {\n // process line\n String[] tokens = line.trim().split(\"\\\\s+\"); // split line into different fields\n\n // valid table row should have 16 fields\n if (tokens.length == 16) {\n insertSingleRow(tokens);\n } else {\n continue;\n }\n }\n } catch (Exception e) {\n logger.log(Level.WARNING, \"insertGZip error \", e);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tFileWriter fw = new FileWriter(\"C:\\\\Users\\\\·ùÇÑ¿­\\\\Desktop\\\\Data.csv\");\n\t\tfor(int i = 11; i <16; i++) {\n\t\t\tString data = \"Linssse #\" + i + \"\\n\";\n\t\t\tfw.write(data);\n\t\t}\n\t\t}", "public void splitColsDataFiles() throws IOException, InterruptedException{\n String mkdir_command = \"mkdir models/temp\";\n Process mkdir_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", mkdir_command});\n mkdir_process.waitFor();\n \n String countColsCommand = \"head -n1 \" + dataPathTrain + \" | tr -cd \\\",\\\" | wc -c\";\n Process countCols_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", countColsCommand});\n countCols_process.waitFor();\n BufferedReader br = new BufferedReader(new InputStreamReader(countCols_process.getInputStream()));\n String numFeaturesS = br.readLine();\n int numFeatures = Integer.parseInt(numFeaturesS);\n \n for(int i=1;i<=numFeatures;i++){\n String cutColTr_command = \"cut -d',' -f\" + i + \" \" + dataPathTrain + \" > models/temp/tr_\" + i + \".csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + i + \" \" + dataPathTest + \" > models/temp/te_\" + i + \".csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }\n int targetsIndex = numFeatures + 1;\n String cutColTr_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTrain + \" > models/temp/tr_targets.csv\";\n Process cutColTr_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTr_command});\n cutColTr_process.waitFor();\n String cutColTe_command = \"cut -d',' -f\" + targetsIndex + \" \" + dataPathTest + \" > models/temp/te_targets.csv\";\n Process cutColTe_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", cutColTe_command});\n cutColTe_process.waitFor();\n }", "public static void main(String[] args) {\n\n\t\tFileRFC file = new FileRFC(\"D:\\\\file.csv\");\n\t\tSystem.out.println(file.lireRFCfile());\n\t}", "@ParameterizedTest\n @CsvFileSource(files = \"src/test/resources/params/shoppinglist.csv\",\n numLinesToSkip = 1) // The first line in .csv is a header, this is to skip that line\n public void csvFileSource_StringDoubleIntStringString(String name,\n double price, int qty, String uom,\n String provider){\n System.out.println(\"name = \" + name + \", price = \" + price + \", qty = \" + qty\n + \", uom = \" + uom + \", provider = \" + provider);\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"C:\\\\Users\\\\SHANDEMETZ\\\\Downloads\\\\Compressed\\\\gene_association.goa_human\\\\gene_association.goa_human\")));\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\")));;\n\t\tString line = \"\";\n\t\tString[] lineSplits;\n\t\tString[] lineSplits1;\n\t\tString annotName;\n\t\tString annotId;\n\t\tfor(int i = 0 ;i < 35;i++){\n\t\t\tbr.readLine();\n\t\t}\n\t\tMap<String,String> annotNameMap = new HashMap<String,String>();\n\t\tbr.readLine();\n\t\twhile(null != (line = br.readLine())){\n\t\t\tlineSplits = line.split(\"[\\t]\");\n\t\t\tlineSplits1 = lineSplits[4].split(\":\");\n\t\t\tannotId = lineSplits1[1];\n\t\t\tannotName = lineSplits[9];\n\t\t\tannotNameMap.put(annotId, annotName);\n\t\t}\n\t\tfor(Entry<String,String> entry:annotNameMap.entrySet()){\n\t\t\tbw = new BufferedWriter(new FileWriter(new File(\"outputs\\\\annotNameList.csv\"),true));\n\t\t\tSystem.out.println(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(entry.getKey()+\",\"+entry.getValue());\n\t\t\tbw.write(\"\\n\");\n\t\t\tbw.close();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n ArgParser argParser = new ArgParser(\"Table\");\n argParser.addOption(\"header\", Boolean.class);\n argParser.addOption(\"digits\", Integer.class);\n argParser.addOption(\"out-file\", String.class);\n args = argParser.parseArgs(args, 1, 1);\n\n // If the user asks us to round to a digit after the decimal place, we\n // multiply by a power of 10 so that rounding integers after scaling is the\n // same as rounding at the desired decimal place. (We scale back below.)\n int digits = argParser.hasOption(\"digits\") ?\n argParser.getIntegerOption(\"digits\") : 0;\n final double scale = Math.pow(10, digits);\n\n CsvParser csvParser = new CsvParser(args[0]);\n String[] header = null;\n if (argParser.hasOption(\"header\")) {\n assert csvParser.hasNext();\n header = csvParser.next();\n }\n\n // Read the table from the CSV.\n List<double[]> table = new ArrayList<double[]>();\n while (csvParser.hasNext()) {\n table.add(Arrays.asList(csvParser.next()).stream()\n .mapToDouble(s -> scale * Double.parseDouble(s)).toArray());\n if (table.size() > 2) {\n assert table.get(table.size()-2).length ==\n table.get(table.size()-1).length;\n }\n }\n\n roundTable(table);\n\n // Output the rounded tables.\n PrintStream output = !argParser.hasOption(\"out-file\") ? System.out :\n new PrintStream(new FileOutputStream(\n argParser.getStringOption(\"out-file\")));\n if (header != null)\n writeRow(output, header); // echo the header to the output\n for (double[] vals : table) {\n writeRow(output,\n DoubleStream.of(vals).map(v -> v / scale).toArray(), digits);\n }\n }", "public static void main(String[] args) {\n String path = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\FileHandling\\\\Data.xlsx\";\n //Xls_Reader xls = new Xls_Reader(path);\n\n // counting rows\n\n //counting cols\n\n //reading\n\n //writing\n\n }", "public static void main(String[] args) {\n\t\tString cwd = System.getProperty(\"user.dir\");\t\t\n\t\tString targetFile = cwd + File.pathSeparator + \"target\" + File.pathSeparator + \"testfile.txt\";\n\t\ttry(FileOutputStream fout = new FileOutputStream(targetFile)){\n\t\t\tfout.write(args[0].getBytes());\n\t\t\tfout.write(System.getProperty(\"line.separator\").getBytes());\n\t\t\t//Did we write it..for real??\n\t\t\tFileReaderDemo.readFile(targetFile);\n\t\t}catch(IOException e) {\n\t\t\t\n\t\t}\n\t}", "private static void generateCsvFileWithFinalData(File path) // String sFileName\n {\n String COMMA_DELIMITER = \",\";\n String NEW_LINE_SEPARATOR = \"\\n\";\n try\n {\n // String path to our created output data file\n String finalFilePath = String.valueOf(path.getParent()) + \"\\\\test.csv\";\n FileWriter writer = new FileWriter(finalFilePath);\n\n for (Player player : sortedFinalPlayerList) {\n writer.append(player.getLastName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getFirstName());\n writer.append(COMMA_DELIMITER);\n writer.append(player.getCountry());\n writer.append(COMMA_DELIMITER);\n writer.append(String.valueOf(player.getLongCommSubsCounter()));\n writer.append(NEW_LINE_SEPARATOR);\n }\n\n //generate whatever data you want\n writer.flush();\n writer.close();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\r\n\r\n\r\n\tCsvPipeDecoder csvdeco = new CsvPipeDecoder();\r\n\r\n//\tSystem.out.println(cvsde.getHasHeader());\r\n\r\n\tList<String> inputRecordLines = new ArrayList<String>();\r\n\r\n\tinputRecordLines.add(\"FIRST NAME|LAST NAME|STREET ADDRESS|CITY|STATE|ZIP\");\r\n\tinputRecordLines.add(\"Machi|Gulinski|5367 Eastway|Greendale|WI|53129\");\r\n\tinputRecordLines.add(\"Ola|Druzny|5467 Blue St.|Milwaukee|WI|53209\");\r\n\tinputRecordLines.add(\"Les|Klimek|919 St. Paul St.|Wauwatosa|WI|53217\");\r\n\r\n\tcsvdeco.setHasHeader(true);\r\n\r\n\tList< LinkedHashMap<String, String>> decodedData;\r\n\r\n\tdecodedData = csvdeco.decodeData(inputRecordLines);\r\n\r\n\r\n\tfor (LinkedHashMap r : decodedData) {\r\n\r\n\t Set<String> keys = r.keySet();\r\n\r\n\t for (String key : keys) {\r\n\r\n//\t String record = r.get(key).toString();\r\n\t\tSystem.out.println(key + \": \" + r.get(key).toString());\r\n\t }\r\n\r\n//\t System.out.println(r.keySet() + \": \" + r.entrySet());\r\n\t}\r\n\r\n }", "String [][] importData (String path);", "public static void main(String[] args) {\n try(Scanner scanner = new Scanner(Paths.get(\"data.txt\"))){\n \n // read the file until all lines have been read \n while(scanner.hasNextLine()){\n // read one line\n String row = scanner.nextLine();\n \n // print the line\n System.out.println(row);\n }\n }catch(Exception e){\n System.out.println(\"Error: \" + e.getMessage());\n }\n\n }", "private void openCsvDialog(){\n JFileChooser aFileChooser = new JFileChooser();\n aFileChooser.setFileFilter(new MyFileFilterCSV());\n if (lastUsedFileCSV != null){\n aFileChooser.setCurrentDirectory(lastUsedFileCSV.getParentFile());\n aFileChooser.setSelectedFile(lastUsedFileCSV);\n }else{\n File file = new File(aFileChooser.getCurrentDirectory(), dataset.getName()+\".csv\");\n aFileChooser.setSelectedFile(file);\n }\n int r = aFileChooser.showSaveDialog(this);\n if (r == JFileChooser.APPROVE_OPTION){\n setCursor(new Cursor(Cursor.WAIT_CURSOR));\n File file = aFileChooser.getSelectedFile();\n if(!MyUtilities.isCSVFile(file)){\n file = MyUtilities.getCSVFile(file);\n }\n lastUsedFileCSV = file;\n String sep = getCSVSeparator();\n PrintWriter writer = null;\n try{\n writer = new PrintWriter(new BufferedWriter (new OutputStreamWriter(new FileOutputStream(file), \"utf-8\")));\n // header\n String s = \"\";\n for(int j=0; j<dataset.getListDataHeader().length; j++){\n s += dataset.getListDataHeader()[j] == null? \"\" : dataset.getListDataHeader()[j].getValue();\n if(j <dataset.getListDataHeader().length -1)\n s+= sep;\n }\n writer.println(s);\n // data\n Data[][] data = dataset.getData();\n int nbR = dataset.getNbRows();\n int nbC = dataset.getNbCol();\n for(int i=0; i<nbR; i++){\n s = \"\";\n for(int j=0; j<nbC; j++){\n if(data[i][j] != null){\n if(data[i][j].isDoubleValue()){\n if(!Double.isNaN(data[i][j].getDoubleValue()))\n s += NumberFormat.getNumberInstance(getLocale()).format(data[i][j].getDoubleValue());\n }else{\n s += data[i][j].getValue();\n }\n }\n if(j <nbC -1)\n s+= sep;\n }\n writer.println(s);\n }\n //log\n\t\tdataProcessToolPanel.logExportCSV(dataset, file.getPath());\n }catch (IOException e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n finally{\n if (writer != null)\n try{\n writer.close();\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n }catch (Exception e){\n setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n displayError(new CopexReturn(getBundleString(\"MSG_ERROR_CSV\"), false), getBundleString(\"TITLE_DIALOG_ERROR\"));\n }\n }\n }\n }", "int getColumnPosition(String path);", "public void csv() throws IOException {\n\t\t\n\t\tSystem.out.println(); //spacing\\\n\t\tFileWriter f;\n\t\t\n\t\tif (bundle.getString(\"csvName\").endsWith(\".csv\")) {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\"));\n\t\t}\n\t\t\n\t\telse {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\") + \".csv\");\n\t\t}\n\t\t\n\t\tPrintWriter p = new PrintWriter(f);\n\t\tObject[][] input = {revisionsToo, flowOfTime};\n\t\tCSVWork(input, p, f);\n\t\t\n\t\tObject[][] nextInput = {revisions, ratings};\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = irrelevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = relevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[0] = intervals;\n\t\tnextInput[1] = commits;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tspecialCSV(existsHere, p);\n\t\t\n\t\tp.flush();\n\t\tp.close();\n\t\tf.close();\n\t}", "public static void main(String[] args) throws NumberFormatException, IlegalMuseoException {\n\t\tList<Museos> lista = new ArrayList<Museos>();\r\n\t\ttry (Scanner sc = new Scanner(new File(\"datosMuseos/datos.csv\"));) {\r\n\t\t\tString datos = sc.nextLine();\r\n\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\tdatos = sc.nextLine();\r\n\t\t\t\tSystem.out.println(datos);\r\n\t\t\t\tString[] campos = datos.split(\",\");\r\n\t\t\t\tlista.add(new Museos(Integer.parseInt(campos[0]), campos[1], campos[2], campos[3], campos[4]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"fichero no encontrado\");\r\n\t\t}\r\n\r\n\t}", "public static void importCSV(byte[] file, UserType userType) {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.IMPORT_CSV_FILE;\n\t\trp.userType = userType;\n\t\trp.parameters = new Object[] { file };\n\t\tsend(rp);\n\t}", "public CsvReader(String filename, String seperator) {\n\t\tthis.seperator = seperator;\n\t\treadFile(filename, true);\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tString path = \"/Users/jingjiang/Google Drive/CoatesHire/DataCrawler/Contacts\";\n\t\tFile folder = new File(path);\n\t\tFile outcome = new File(path+\"all_cust.csv\");\n\t\tFileWriter fw = new FileWriter(outcome);\n\t\tint countRows = 0;\n\t\tfor(File file : folder.listFiles())\n\t\t{\n\t\t\tSystem.out.println(file.getName());\n\t\t\t\n\t\t\tif (file.getName().equalsIgnoreCase(\"all_cust.csv\") == true || file.getName().indexOf(\".csv\") < 0)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(\"Hello\");\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString line = null;\n\t\t\twhile((line = br.readLine()) != null)\n\t\t\t{\n\t\t\t\tif (line.length() > 2)\n\t\t\t\t{\n\t\t\t\t\tcountRows++;\n\t\t\t\t\tfw.write(line + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\n\t\tfw.flush();\n\t\tfw.close();\n\t\tSystem.out.println(\"countRows=\" + countRows);\n\t}", "public static void main(String[] args){\n String path=\"C:/Users/SAMUEL/imag98908es.csv\";\n String linea=\" \";\n try{\n BufferedReader br= new BufferedReader(new FileReader(path));\n ArrayList<Integer> datos=new ArrayList<Integer>();\n while((linea=br.readLine())!=null){\n String[] valores=linea.split(\",\");\n List<String> list=Arrays.asList(valores);\n System.out.println(list);\n }\n } catch (FileNotFoundException e){\n e.printStackTrace();\n }catch(IOException e){\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\n if(args.length == 2) {\n readInputDataFromCSV(args[0]);\n winningNumber = args[1];\n File currentDirectoryOfCSVFile = new File(args[0]); // take the path, where .csv file with input data is\n findLongCommSubs();\n formResultLongCommSubs();\n multipleSortOfFinalPlayerList();\n generateCsvFileWithFinalData(currentDirectoryOfCSVFile);\n } else{\n System.out.println(\"Not valid enter! Enter two variables (path to .csv file and the winning number)!\");\n }\n }", "private void writeCsv(float[] vals, String stimulus, PrintWriter outfile) throws FileNotFoundException {\n for (int i = 0; i < vals.length; i++) {\n outfile.append(vals[i] + \",\");\n }\n outfile.append(stimulus);\n outfile.append(\"\\n\");\n\n }", "protected List<String[]> readCsvFile(byte[] bytes, String separator, String quote) {\n\t\ttry (CharSequenceReader seq = new CharSequenceReader(new String(bytes, Charset.forName(DynamoConstants.UTF_8)));\n\t\t CSVReader reader = new CSVReader(seq, separator.charAt(0), quote.charAt(0))) {\n\t\t\treturn reader.readAll();\n\t\t} catch (IOException ex) {\n\t\t\tthrow new OCSImportException(ex.getMessage(), ex);\n\t\t}\n\t}", "public void read_file(String filename ,int storage_level){\n input=sqlContext.read()\r\n .format(\"com.databricks.spark.csv\")\r\n .option(\"header\",\"true\")\r\n .option(\"inferSchema\",\"true\")\r\n .load(filename);\r\n\r\n input.saveAsTable(\"crimeData\");\r\n cache_data(storage_level);\r\n }", "void write(String... columns) throws IOException;", "public static void main(String[] args) throws CsvReader.CatastrophicException, IOException, CsvReader.FinalizedException {\n readCsvFile(\"/home/RESALES-ONLINE/baon/Documents/Bao_/CSV_V4.csv\");\n }", "public CSVFileReader(String fileName, BufferedReader br, char sep)\n {\n super(sep);\n this.fileName = fileName;\n in = br;\n }", "public static void main(String args[]) throws NumberFormatException, ParseException, IOException{\n\t\tFile in = new File(\"c:/users/yabetaka/Desktop/dataforExp.csv\");\n\t\tgetSPs2(in,500,300);\n\t}", "public void createCSV() {\n\t\t// Need to integrate CSV calling logic\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\t\tdata = null;\t\t //clear the memory\r\n\t\t\t\tread(\"core_dataset.csv\");\t\t//read back the data\r\n\t\t\t\twrite(\"young_employee.csv\"); //write the data to another file\r\n\t\t\t}", "private void writeCSVToFile(List<String[]> dataRows, String filepath) {\n try {\n FileWriter output = new FileWriter(filepath);\n CSVWriter csvWriter = new CSVWriter(output);\n\n csvWriter.writeAll(dataRows);\n\n csvWriter.close();\n\n System.out.println(\"Your order has been succesfully sent to Foodora\");\n\n } catch (IOException e) {\n System.out.println(\"Could not write to Foodora output file\");\n }\n\n }", "public static void main(String[] args) {\n\t\tPyramidCSVDAO pDAO = new PyramidCSVDAO() ;\n\t\t\n\t\tArrayList<Pyramid> pyramids = pDAO.readPyramidsFromCSV(\"pyramids.csv\") ;\n\t\t\n\t\tint i = 0 ;\n\t\tfor(Pyramid p:pyramids) {\n\t\t\tSystem.out.println(p) ;\n\t\t}\n\t\t\n\t}", "@Override\n protected String getFileSeparator() { return \"/\"; }", "public void writecsv(String path, String username, String ccyCode, String usernameData, String ccyCodeData) {\r\n\t\tString csv = path;\r\n\t\tCSVWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new CSVWriter(new FileWriter(csv));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\r\n\t\tList<String[]> data = new ArrayList<String[]>();\r\n\t\tdata.add(new String[] {username,ccyCode});\r\n\t\tdata.add(new String[] {usernameData,ccyCodeData});\r\n\r\n\t\twriter.writeAll(data);\r\n\t\ttry {\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void configuration(String csv) {\n\n\t}", "public void setDefaultExtractLineSeparator (String linesep);", "public void insertData(String folder, String file, String filewithoutExtension, String header) {\n\t\tRuntime r = Runtime.getRuntime();\n\t\tString command = \"mongoimport --host 127.0.0.1 --port 27017 --db Train --collection \"+filewithoutExtension+\" -f \"+header+\" --type csv --file \\\"Data/\"+file+\"\\\"\";\n\t\ttry {\n\t\t\tr.exec(command); \n\t\t}\tcatch (Exception e){ \n\t\t\tSystem.out.println(\"Error executing \" + command + e.toString());\n\t\t}\n\t}", "@Test\n public void testFileMetadataColumnSelection() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n // Simulate SELECT a, fqn, filEPath, filename, suffix ...\n\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(\"a\",\n ScanTestUtils.FULLY_QUALIFIED_NAME_COL,\n \"filEPath\", // Sic, to test case sensitivity\n ScanTestUtils.FILE_NAME_COL,\n ScanTestUtils.SUFFIX_COL),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n assertFalse(scanProj.projectAll());\n assertEquals(5, scanProj.requestedCols().size());\n\n assertEquals(5, scanProj.columns().size());\n\n assertEquals(\"a\", scanProj.columns().get(0).name());\n assertEquals(ScanTestUtils.FULLY_QUALIFIED_NAME_COL, scanProj.columns().get(1).name());\n assertEquals(\"filEPath\", scanProj.columns().get(2).name());\n assertEquals(ScanTestUtils.FILE_NAME_COL, scanProj.columns().get(3).name());\n assertEquals(ScanTestUtils.SUFFIX_COL, scanProj.columns().get(4).name());\n\n // Verify column type\n\n assertTrue(scanProj.columns().get(0) instanceof UnresolvedColumn);\n assertTrue(scanProj.columns().get(1) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(2) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(3) instanceof FileMetadataColumn);\n assertTrue(scanProj.columns().get(4) instanceof FileMetadataColumn);\n\n assertTrue(implictColManager.hasImplicitCols());\n }", "public csvFile(File f) throws FileNotFoundException{\n Scanner s;\n try {\n s = new Scanner(f); // Create scanner (reason for the try).\n headers = s.nextLine().split(\",\"); // Get column headers.\n int size = (getSize(f) - 1); // Determine number of lines (rows) in the file.\n data = new String[size][]; // Appropriately size the data array based on number of rows.\n for ( int i = 0; i < size; i++) { // Load rows from file.\n data[i] = s.nextLine().split(\",\");\n }\n s.close();\n } catch(Exception e) {\n throw new FileNotFoundException();\n }\n }", "public void specialCSV(int[][] arrayIn, PrintWriter p) throws IOException {\n\t\t\n\t\tint i, j;\n\t\tp.print(\",\");\n\t\t\n\t\tfor (j = 0; j < args.length; j++){\n\t\t\tp.print(args[j].substring(args[j].lastIndexOf('/') + 1) + \",\");\n\t\t}\n\t\t\n\t\tp.print(\"Time elapsed since the last significant revision:,\");\n\t\tp.print(\"Comments:,\");\n\t\tp.println();\n\t\t\n\t\tfor (i = arrayIn.length - 1; i >= 0; i--){\n\t\t\t\n\t\t\tp.print(revisions[i] + \",\");\n\t\t\t\n\t\t\tfor (j = 0; j < arrayIn[i].length; j++) {\n\t\t\t\t\n\t\t\t\tif (arrayIn[i][j] == 1) {\n\t\t\t\t\tp.print(\"1,\"); //indicates that the file was affected here\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tp.print(\",\"); //blank instead of 0 to remove clutter and focus attention on releent areas\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (i < arrayIn.length - 1) {\n\t\t\t\tp.print(flowOfTime[i] + \",\");\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tp.print(\"N/A,\");\n\t\t\t}\n\t\t\t\n\t\t\tp.print(commenting.get(i));\n\t\t\tp.println();\n\t\t}\n\t\t\n\t\tp.println();\n\t}", "public static void main(String[] args) throws IOException {\n\t\tScanner fileLine = new Scanner(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\"));\n\n\t\t// Length of the array\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\")));\n\t\tlnr.skip(Long.MAX_VALUE);\n\t\tint total_entries = lnr.getLineNumber()+1;\n\n\t\tfileLine.useDelimiter(\"\\\\n|:\");\n\t\tint col_num = 4;\n\n\n\t\t//Read data from text file\n\t\tString[][] inputArr = new String[total_entries][col_num];\t\n\t\tint j = 0;\n\t\tint l = 0;\n\t\twhile (l< total_entries ) {//fileLine.hasNext()) {\n\n\t\t\tfor (int k=0 ; k<col_num ; k++) {\n\t\t\t\tinputArr[j][k] = (fileLine.next());\n\t\t\t}\n\t\t\tl++;\n\t\t\tj++;\n\t\t}\n\t\tfileLine.close();\n\t\tlnr.close();\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tint searchedField =-1;\n\t\tSystem.out.println(\"Choose a field to execute the search (1) Person’s name. (2) Email address. (3) Organization \");\n\t\tScanner field = new Scanner(System.in);\n\t\twhile (searchedField<1 || searchedField>3) {\t\n\t\t\tfield = new Scanner(System.in);\n\t\t\ttry {\n\t\t\t\tsearchedField = Integer.parseInt(field.nextLine());\n\t\t\t\tif (searchedField<1 || searchedField>3) {\n\t\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t}\n\t\t}\n\n\t\t\n\n\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tSystem.out.println(\"Give a string you would like to search: \");\n\t\tScanner item = new Scanner(System.in);\n\t\tString searchedItem = item.nextLine();\n\t\t\n\t\t\n\t\tfield.close();\n\t\titem.close();\n\n\t\t\n\t\t\n\t\t// Create output array\n\t\tint outputIndex = 0;\n\t\tint outputItems = 0;\n\t\tString[] output = new String[total_entries]; //Change to dynamic \n\t\tfor (int i = 0 ; i< output.length ; i++) {\n\t\t\tif (bma(searchedItem,inputArr[i][searchedField-1])) {\n\t\t\t\toutput[outputIndex]= inputArr[i][0] + \" - \" + inputArr[i][1] + \" - \" +inputArr[i][2] + \" - \" + inputArr[i][3];\n\t\t\t\toutputIndex = outputIndex +1;\n\t\t\t\toutputItems = outputItems +1;\n\t\t\t}\n\t\t}\n\n\n\t\t// Print output array\n\t\tfor (int i=0 ; i < outputItems ; i++) {\n\t\t\tSystem.out.println(output[i]);\n\t\t}\n\t\tif (outputItems==0) {\n\t\t\tSystem.out.println(\"No items found\");\n\t\t}\n\n\n\n\t}", "public static void main(String[] args) {\n try {\n convert(\"d:\\\\MLDATA\\\\adult.data\", \"d:\\\\MLDATA\\\\adult_standard.csv\", \"[ \\t]*,[ \\t]*\");\n convert(\"d:\\\\MLDATA\\\\adult.test\", \"d:\\\\MLDATA\\\\adult_standard_test.csv\", \"[ \\t]*,[ \\t]*\");\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public LoadCSV(String file_position){\r\n this.file_position = file_position;\r\n }", "void writeLine(Object... columns) throws IOException;", "public void setExtractLineSeparator (String linesep);", "public void loadCSVData() throws IOException, SQLException {\r\n //SQL statement to load csv information into data table\r\n String insertvaluesSQL = \"INSERT INTO data\"\r\n + \"(InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country)\"\r\n + \" VALUES (?,?,?,?,?,?,?,?);\";\r\n\r\n //code to read csv file taken from W03 practical\r\n BufferedReader br = new BufferedReader(new FileReader(filePath));\r\n String line = br.readLine();\r\n String[] informationArray;\r\n while (line != null) {\r\n informationArray = line.split(\",\");\r\n PreparedStatement preparedStatement = connection.prepareStatement(insertvaluesSQL);\r\n //the first '?' corresponds to the 0th term in the information array\r\n //the second '?' corresponds to the 1st term in the information array\r\n for (int i = 1; i < 9; i++) {\r\n preparedStatement.setString(i, informationArray[i - 1]);\r\n }\r\n preparedStatement.executeUpdate();\r\n line = br.readLine();\r\n }\r\n Statement statement = connection.createStatement();\r\n statement.executeUpdate(\"DELETE FROM data WHERE InvoiceNo = 'InvoiceNo';\");\r\n statement.close();\r\n }", "public static void main(/*final*/ String[] args) throws Exception {\n\n args = new String[] {\n //\"third.csv\",\n //\"first.html\",\n// \"union.csv2\",\n// \"union2.csv2\",\n// \"union3.csv2\",\n// \"union4.csv2\",\n// \"programmatic1.csv\",\n// \"programmatic2.csv\"\n \"first-ext.htmls\",\n \"second-ext.csv\"\n };\n\n if (args.length == 0) {\n System.err.println(\"Usage: java RecordMerger file1 [ file2 [...] ]\");\n System.exit(1);\n }\n\n\n\n// final Table t1 = new DataTable(\"ID\",\"A\",\"B\",\"C\");\n// final Table t2 = new DataTable(\"ID\",\"d\",\"e\",\"f\");\n// IntStream.rangeClosed(0,9999).forEach(v-> {\n// t1.insert(v,\"a\"+v, \"b\"+v, \"c\"+v);\n// t2.insert(9999-v,\"d\"+v, \"e\"+v, \"f\"+v);\n// });\n//\n//\n// Tables.save(t1,\"data/massive1.csv\");\n// Tables.save(t2,\"data/massive2.csv\");\n//\n//\n// System.exit(0);\n\n\n\n // your code starts here.\n try {\n\n if (!System.getProperties().containsKey(DEBUG))\n System.out.println(\"TableMerger: Run with -Ddebug to print table & rows\\n\");\n\n List<Optional<? extends Table>> tables =\n Arrays.stream(args).map(file -> DATA_DIR + file).map(Tables::newTable).collect(Collectors.toList());\n\n if (tables.size() == 0) {\n System.err.println(\"No table read\");\n }\n\n //skip over possibly empty tables...\n int index = 0;\n while (!tables.get(index).isPresent()) {\n index++;\n if (index==tables.size())\n throw new Exception(\"No supported tables found.\");\n }\n\n Table combined = tables.get(index).get();\n if (System.getProperties().containsKey(DEBUG))\n System.out.println(combined);\n\n for (int i = index; i < args.length; i++) {\n if (tables.get(i).isPresent()) {\n combined = combined.merge(tables.get(i).get());\n if (System.getProperties().containsKey(DEBUG))\n System.out.println(tables.get(i).get());\n }\n }\n\n if (System.getProperties().containsKey(DEBUG))\n System.out.println(combined);\n\n Tables.save(combined, DATA_DIR + FILENAME_COMBINED);\n } catch (Exception e) {\n System.out.print(\"Error while merging\" + e.getMessage());\n }\n }", "private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tInputStream fileInput = System.in;\n\t\tReader inputReader = new InputStreamReader(fileInput);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputReader);\n\n//\t\tOutputStream outputStream = new FileOutputStream(\"text-example-test.txt\");\n\t\tOutputStream outputStream = System.out;\n\t\tWriter writer = new OutputStreamWriter(outputStream);\n\t\tBufferedWriter bufferedWriter = new BufferedWriter(writer);\n\n\t\tString row = bufferedReader.readLine();\n\n\t\twhile (row != null && !row.isEmpty()) {\n\t\t\tbufferedWriter.write(row);\n\t\t\tbufferedWriter.newLine();\n\t\t\tbufferedWriter.flush();\n\t\t\trow = bufferedReader.readLine();\n\t\t}\n\n\t\tbufferedReader.close();\n\t\tbufferedWriter.close();\n\t}", "public List<Lender> readCSVFile(String path){\r\n\r\n List<Lender> inputList = new ArrayList<>();\r\n try{\r\n File inputF = new File(path);\r\n InputStream inputFS = new FileInputStream(inputF);\r\n BufferedReader br = new BufferedReader(new InputStreamReader(inputFS));\r\n // skip the header of the csv\r\n inputList = br.lines().skip(1).map(mapToItem).collect(Collectors.toList());\r\n br.close();\r\n } catch (IOException e) {\r\n throw new QuoteException(\"Error reading the csv file\", e);\r\n }\r\n\r\n return inputList ;\r\n }", "public static void main(String[] args) throws MultipleHeadersFoundInInputDatabaseException, Exception {\n\t\tjava.util.Hashtable<String, String> readParameters = readParameters(args);\n\t\tif(!readParameters.containsKey(\"filename\")) {\n\t\t\tSystem.err.println(\"filename missing\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tif(!readParameters.containsKey(\"probtype\")) {\n\t\t\tSystem.err.println(\"probtype missing\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString filename = readParameters.get(\"filename\");\n\n\t\tInteger probabilityType = Integer.parseInt(readParameters.get(\"probtype\"));\n\t\tString output = null;\n\t\tInteger occurThresh = null;\n\t\tString csv = \"\";\n\t\tString fingerprinttype = \"\";\n\t\tString includeNonExplainedString = \"\";\n\t\tif(readParameters.containsKey(\"output\")) output = readParameters.get(\"output\");\n\t\tif(readParameters.containsKey(\"occurThresh\")) occurThresh = Integer.parseInt(readParameters.get(\"occurThresh\"));\n\t\tif(readParameters.containsKey(\"csv\")) csv = (String)readParameters.get(\"csv\");\n\t\tif(readParameters.containsKey(\"fingerprinttype\")) fingerprinttype = (String)readParameters.get(\"fingerprinttype\");\n\t\tif(readParameters.containsKey(\"includeNonExplained\")) includeNonExplainedString = (String)readParameters.get(\"includeNonExplained\");\n\t\t\n\t\tArrayList<Double> peakMassesSorted = new ArrayList<Double>();\n\t\tArrayList<String> fingerprintsSorted = new ArrayList<String>();\n\t\t\n\t\tStringBuilder nonExplainedPeaksString = new StringBuilder();\n\t\tArrayList<Double> nonExplainedPeaks = new ArrayList<Double>();\n\t\tArrayList<Integer> peakMassCounts = new ArrayList<Integer>();\n\t\t\n\t\tboolean includeNonExplained = true;\n\t\tif(includeNonExplainedString.equals(\"F\") || includeNonExplainedString.equals(\"f\")\n\t\t\t\t|| includeNonExplainedString.equals(\"False\") || includeNonExplainedString.equals(\"false\")\n\t\t\t\t|| includeNonExplainedString.equals(\"FALSE\"))\n\t\t\tincludeNonExplained = false;\n\t\t\n\t\tSettings settings = new Settings();\n\t\tsettings.set(VariableNames.LOCAL_DATABASE_PATH_NAME, filename);\n\t\tIDatabase db = null;\n\t\tif(csv == \"1\") db = new LocalCSVDatabase(settings);\n\t\telse if (csv.equals(\"auto\")) {\n\t\t\tif(filename.endsWith(\"psv\")) db = new LocalPSVDatabase(settings);\n\t\t\telse db = new LocalCSVDatabase(settings);\n\t\t}\n\t\telse db = new LocalPSVDatabase(settings);\n\t\tjava.util.ArrayList<String> ids = db.getCandidateIdentifiers();\n\t\tCandidateList candidateList = db.getCandidateByIdentifier(ids);\n\t\t//SmilesOfExplPeaks\n\t\tfor(int i = 0; i < candidateList.getNumberElements(); i++) {\n\t\t\tICandidate candidate = candidateList.getElement(i);\n\t\t\tString fingerprintsOfExplPeaks = (String)candidate.getProperty(\"FragmentFingerprintOfExplPeaks\" + fingerprinttype);\n\t\t\tif(fingerprintsOfExplPeaks.equals(\"NA\") || fingerprintsOfExplPeaks.length() == 0) continue;\n\t\t\tfingerprintsOfExplPeaks = fingerprintsOfExplPeaks.trim();\n\t\t\t\n\t\t\tString[] fingerprintPairs = fingerprintsOfExplPeaks.split(\";\");\n\t\t\t\n\t\t\tfor(int k = 0; k < fingerprintPairs.length; k++) {\n\t\t\t\tString[] tmp1 = fingerprintPairs[k].split(\":\");\n\t\t\t\tDouble peak1 = Double.parseDouble(tmp1[0]);\n\t\t\t\tString fingerprint = null;\n\t\t\t\ttry {\n\t\t\t\t\tfingerprint = tmp1[1];\n\t\t\t\t\taddSortedFeature(peak1, fingerprint, peakMassesSorted, fingerprintsSorted);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString nonExplMasses = (String)candidate.getProperty(\"NonExplainedPeaks\");\n\t\t\tif(!nonExplMasses.equals(\"NA\")) {\n\t\t\t\tString[] tmp = nonExplMasses.split(\";\");\n\t\t\t\tfor(int k = 0; k < tmp.length; k++) {\n\t\t\t\t\tdouble mass = Double.parseDouble(tmp[k]);\n\t\t\t\t\tif(mass > 2) {\n\t\t\t\t\t\taddMassSorted(mass, peakMassCounts, nonExplainedPeaks);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif(nonExplainedPeaks.size() == 0 || !includeNonExplained) nonExplainedPeaksString.append(\"NA\");\n\t\telse {\n\t\t\tnonExplainedPeaksString.append(nonExplainedPeaks.get(0));\n\t\t\tif(peakMassCounts.get(0) > 1) {\n\t\t\t\tnonExplainedPeaksString.append(\":\");\n\t\t\t\tnonExplainedPeaksString.append(peakMassCounts.get(0));\n\t\t\t}\n\t\t\tfor(int i = 1; i < nonExplainedPeaks.size(); i++) {\n\t\t\t\tnonExplainedPeaksString.append(\";\");\n\t\t\t\tnonExplainedPeaksString.append(nonExplainedPeaks.get(i));\n\t\t\t\tif(peakMassCounts.get(i) > 1) {\n\t\t\t\t\tnonExplainedPeaksString.append(\":\");\n\t\t\t\t\tnonExplainedPeaksString.append(peakMassCounts.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tMassToFingerprintGroupListCollection peakToFingerprintGroupListCollection = new MassToFingerprintGroupListCollection();\n\t\t//print(peakMassesSorted, fingerprintsSorted);\n\t\tSystem.out.println(peakMassesSorted.size() + \" peak fingerprint pairs\");\n\n\t\tInteger id = 0;\n\t\tHashtable<Integer, ArrayList<Double>> grouplistid_to_masses = new Hashtable<Integer, ArrayList<Double>>();\n\t\tfor(int i = 0; i < peakMassesSorted.size(); i++) {\n\t\t\tDouble currentPeak = peakMassesSorted.get(i);\n\t\t\t//MassToFingerprintGroupList peakToFingerprintGroupList = peakToFingerprintGroupListCollection.getElementByPeakInterval(currentPeak, mzppm, mzabs);\n\t\t\tMassToFingerprintGroupList peakToFingerprintGroupList = peakToFingerprintGroupListCollection.getElementByPeak(currentPeak);\n\t\t\tif(peakToFingerprintGroupList == null) {\n\t\t\t\tpeakToFingerprintGroupList = new MassToFingerprintGroupList(currentPeak);\n\t\t\t\tpeakToFingerprintGroupList.setId(id);\n\t\t\t\tFingerprintGroup obj = new FingerprintGroup(0.0, null, null, null);\n\t\t\t\tobj.setFingerprint(fingerprintsSorted.get(i));\n\t\t\t\tobj.incrementNumberObserved();\n\t\t\t\tpeakToFingerprintGroupList.addElement(obj);\n\t\t\t\tpeakToFingerprintGroupListCollection.addElementSorted(peakToFingerprintGroupList);\n\t\t\t\taddMass(grouplistid_to_masses, id, currentPeak);\n\t\t\t\tid++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tInteger current_id = peakToFingerprintGroupList.getId();\n\t\t\t\taddMass(grouplistid_to_masses, current_id, currentPeak);\n\t\t\t\tFingerprintGroup fingerprintGroup = peakToFingerprintGroupList.getElementByFingerprint(new FastBitArray(fingerprintsSorted.get(i)));\n\t\t\t\tif(fingerprintGroup != null) {\n\t\t\t\t\tfingerprintGroup.incrementNumberObserved();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfingerprintGroup = new FingerprintGroup(0.0, null, null, null);\n\t\t\t\t\tfingerprintGroup.setFingerprint(fingerprintsSorted.get(i));\n\t\t\t\t\tfingerprintGroup.incrementNumberObserved();\n\t\t\t\t\tpeakToFingerprintGroupList.addElement(fingerprintGroup);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"before filtering \" + peakToFingerprintGroupListCollection.getNumberElements());\n\t\t\n\t\t//peakToFingerprintGroupListCollection.updatePeakMass(mzppm, mzabs);\n\t\tpeakToFingerprintGroupListCollection.updatePeakMass(grouplistid_to_masses);\n\t\n\t\t// test filtering\n\t\tif(occurThresh != null) peakToFingerprintGroupListCollection.filterByOccurence(occurThresh);\n\t\t\n\t\tpeakToFingerprintGroupListCollection.annotateIds();\n\t\t//get absolute numbers of single substructure occurences\n\t\t//N^(s)\n\t\tint[] substrOccurences = peakToFingerprintGroupListCollection.calculateSubstructureAbsoluteProbabilities();\n\t\tint[] peakOccurences = peakToFingerprintGroupListCollection.calculatePeakAbsoluteProbabilities();\n\n\t\t//counts\n\t\tif(probabilityType == 0) {\n\t\t\t// calculate P ( s | p ) \n\t\t\tpeakToFingerprintGroupListCollection.updateConditionalProbabilities();\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToNumberObserved();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t}\n\t\t//P ( s | p ) \n\t\tif(probabilityType == 1) {\n\t\t\t// calculate P ( s | p ) \n\t\t\tpeakToFingerprintGroupListCollection.updateConditionalProbabilities();\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_sp();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t}\n\t\t//P ( p | s ) \n\t\tif(probabilityType == 2) {\n\t\t\tSystem.out.println(\"annotating IDs\");\n\t\t\t// calculate P ( p | s ) \n\t\t\tpeakToFingerprintGroupListCollection.updateProbabilities(substrOccurences);\n\t\t\t\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_ps();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t}\n\t\t\n\t\t//P ( p , s )_s \n\t\tif(probabilityType == 3) {\n\t\t\tSystem.out.println(\"annotating IDs\");\n\t\t\t// calculate P ( p , s ) \n\t\t\tpeakToFingerprintGroupListCollection.updateJointProbabilitiesWithSubstructures(substrOccurences);\n\t\t\t\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToJointProbability();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t}\n\n\t\t//P ( p , s )_p\n\t\tif(probabilityType == 4) {\n\t\t\tSystem.out.println(\"annotating IDs\");\n\t\t\t// calculate P ( p , s ) \n\t\t\tpeakToFingerprintGroupListCollection.updateJointProbabilitiesWithPeaks(peakOccurences);\n\t\t\t\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToJointProbability();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t}\n\t\t\n\t\t//P ( s | p ) P ( p | s ) P( s, p )_s\n\t\t//SUMMARY \"number of different pairs (f,m) matched\" \"sum of all occurrences of all (f,m)\" \"number of different pairs (_,m)\" \"number of all different pairs (f,m)\"\n\t\tif(probabilityType == 5) {\n\t\t\tSystem.out.println(\"annotating IDs\");\n\t\t\tpeakToFingerprintGroupListCollection.updateConditionalProbabilities();\n\t\t\tpeakToFingerprintGroupListCollection.updateProbabilities(substrOccurences);\n\t\t\tpeakToFingerprintGroupListCollection.updateJointProbabilitiesWithSubstructures(substrOccurences);\n\t\t\t\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_sp();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t\tif(output == null) peakToFingerprintGroupListCollection.print();\n\t\t\telse {\n\t\t\t\tBufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + \"_1\")));\n\t\t\t\tbwriter.write(nonExplainedPeaksString.toString());\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.write(peakToFingerprintGroupListCollection.toString());\n\t\t\t\tbwriter.write(\"SUMMARY \" + getNumberMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberOccurences(peakToFingerprintGroupListCollection) + \" \" + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberElements(peakToFingerprintGroupListCollection));\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.close();\n\t\t\t}\n\t\t\t\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToConditionalProbability_ps();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t\tif(output == null) peakToFingerprintGroupListCollection.print();\n\t\t\telse {\n\t\t\t\tBufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + \"_2\")));\n\t\t\t\tbwriter.write(nonExplainedPeaksString.toString());\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.write(peakToFingerprintGroupListCollection.toString());\n\t\t\t\tbwriter.write(\"SUMMARY \" + getNumberMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberOccurences(peakToFingerprintGroupListCollection) + \" \" + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberElements(peakToFingerprintGroupListCollection));\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.close();\n\t\t\t}\n\n\t\t\tpeakToFingerprintGroupListCollection.setProbabilityToJointProbability();\n\t\t\tpeakToFingerprintGroupListCollection.sortElementsByProbability();\n\t\t\tif(output == null) peakToFingerprintGroupListCollection.print();\n\t\t\telse {\n\t\t\t\tBufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output + \"_3\")));\n\t\t\t\tbwriter.write(nonExplainedPeaksString.toString());\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.write(peakToFingerprintGroupListCollection.toString());\n\t\t\t\tbwriter.write(\"SUMMARY \" + getNumberMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberOccurences(peakToFingerprintGroupListCollection) + \" \" + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberElements(peakToFingerprintGroupListCollection));\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.close();\n\t\t\t}\n\t\t}\n\n\t\tif(probabilityType != 5) {\n\t\t\tif(output == null) peakToFingerprintGroupListCollection.print();\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"writing to output\");\n\t\t\t\tBufferedWriter bwriter = new BufferedWriter(new FileWriter(new File(output)));\n\t\t\t\tbwriter.write(nonExplainedPeaksString.toString());\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.write(peakToFingerprintGroupListCollection.toString());\n\t\t\t\tbwriter.write(\"SUMMARY \" + getNumberMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberOccurences(peakToFingerprintGroupListCollection) + \" \" + getNumberNonMatchedElements(peakToFingerprintGroupListCollection) + \" \" + getNumberElements(peakToFingerprintGroupListCollection));\n\t\t\t\tbwriter.newLine();\n\t\t\t\tbwriter.close();\n\t\t\t}\n\t\t}\n\t}", "private static List<String> readData(String path) throws IOException{\n ArrayList<String> data = new ArrayList<>();\n try (\n Reader reader = Files.newBufferedReader(Paths.get(path), StandardCharsets.UTF_8);\n CSVReader csvReader = new CSVReader(reader)\n ){\n String[] nextRecord;\n while ((nextRecord = csvReader.readNext()) != null) {\n if (nextRecord[0].contains(\"name\")){\n System.out.println(\"Skipping column headers...\");\n }else {\n data.add(nextRecord[0]);\n// System.out.println(nextRecord[0]);\n }\n }\n }\n return data;\n }", "public static ArrayList<ArrayList<String>> getAllDataFromFile(String csvInputPath, char sep) {\n ArrayList<ArrayList<String>> allData = new ArrayList<>();\r\n try (CSVReader reader = new CSVReader(new InputStreamReader(new FileInputStream(csvInputPath)), sep, '\"', '|');) {\r\n String[] nextLine;\r\n int numRow = 0;\r\n while ((nextLine = reader.readNext()) != null && numRow < MAX_ROW_NUMBER) {\r\n ArrayList<String> allRow = new ArrayList<>();\r\n allRow.addAll(Arrays.asList(nextLine));\r\n allData.add(allRow);\r\n numRow += 1;\r\n }\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(ManageExcel.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n\r\n } catch (IOException ex) {\r\n Logger.getLogger(ManageExcel.class\r\n .getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return allData;\r\n }", "@Test\n public void testCSVHandlerForEmployees() throws IOException, URISyntaxException {\n val csvHandler = TestInjector.create(CSVHandler.class);\n // todo clean this up but also keep it working on windows\n val input = Paths.get(getClass().getResource(\"PrototypeEmployees.csv\").toURI()).toString();\n val output = \"build/Employees.csv\";\n csvHandler.importEmployees(input);\n csvHandler.exportEmployees(output);\n val inputLines = Files.readAllLines(Paths.get(input));\n val outputLines = Files.readAllLines(Paths.get(output));\n assertEquals(inputLines.size(), outputLines.size());\n assertEquals(inputLines.get(0), outputLines.get(0)); // make sure header lines are the same\n assertTrue(outputLines.containsAll(inputLines));\n assertTrue(inputLines.containsAll(outputLines));\n }", "public static void main(String[] args) {\n\t\tString filename = \"/home/niran/eclipse-workspace/DataMining/AggregateDiscretizeAndSample/src/Input.csv\";\n\t\tString outFilename = \"/home/niran/eclipse-workspace/DataMining/AggregateDiscretizeAndSample/Output.csv\";\n\t\tString delimiter = \",\";\n\t\tCSV csv = new CSV(filename, delimiter);\n\t\tcsv.readCSV();\n\t\tcsv.printCSV();\n\t\tAggregate a = new Aggregate(csv);\n\t\tcsv = a.doAggregate(1);\n\t\tcsv.printCSV();\n\t\tDiscretize d = new Discretize(csv);\n\t\tcsv = d.doDiscretize(1);\n\t\tcsv.printCSV();\n\t\tStratifiedSampling ss = new StratifiedSampling(csv);\n\t\tcsv = ss.doSample();\n\t\tcsv.printCSV();\n\t\tcsv.writeCSV(outFilename);\n\t}", "public static void main(String[] args) throws IOException {\n\t\tCsv2kml csv2kml = new Csv2kml();\n//\t\tcsv2kml.convertCSVToKML(\"/Users/shilo/Desktop/testkmlconvert.csv\", \"/Users/shilo/Desktop/\", \"kmltest1\");\t\t\n\t\tSystem.out.println(csv2kml.multiCSV(\"/Users/shilo/Downloads/Ex2/Ex2/data\"));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void writeCSVFile(File file, String data) throws Exception{\n BufferedWriter bufferWritter = new BufferedWriter(new FileWriter(file));\n bufferWritter.write(data);\n bufferWritter.close();\n }", "private static void createCSV(String filename, ArrayList<Long> sizes, ArrayList<Long> times){\n File csv = new File(\"\"+filename);\n try {\n if(csv.createNewFile()) {\n PrintWriter file = new PrintWriter(new FileWriter(csv));\n file.print(\"Size (n)\");\n for (Long size : sizes)\n file.print(\",\" + size);\n file.print(\"\\nTimes (ms)\");\n for(Long time:times)\n file.print(\",\"+time);\n file.println();\n file.close();\n\n } else {\n Scanner fileReader = new Scanner(csv);\n String currentSizes = fileReader.nextLine();\n int size=currentSizes.split(\",\").length-1;\n if(size<sizes.size()){\n for(int i=size;i<sizes.size();i++)\n currentSizes+=\",\"+sizes.get(i);\n currentSizes+=\"\\n\";\n while(fileReader.hasNextLine())\n currentSizes+=fileReader.nextLine()+\"\\n\";\n FileWriter writer = new FileWriter(csv);\n writer.write(currentSizes);\n writer.close();\n }\n\n PrintWriter file = new PrintWriter(new FileWriter(csv,true));\n file.print(\"Times (ms)\");\n for(Long time:times)\n file.print(\",\"+time);\n file.println();\n file.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void outputToCSV() throws FileNotFoundException, UnsupportedEncodingException {\n PrintWriter writer = new PrintWriter(\"test_data.csv\", \"UTF-8\");\n\n //For every object in array list, print surname, initials and extension, separated by commmas\n for (int i=0; i<toArrayList().size(); i++) {\n writer.println(toArrayList().get(i).getSurname() + \",\" + toArrayList().get(i).getInitials() + \",\" +\n toArrayList().get(i).getExtension());\n }\n writer.close();\n }", "@Test(timeout=100)\r\n\tpublic void testSetDelimiter() {\r\n\t\tString [] r1 = {\"NAME\", \"ADDRESS\",\"EMAIL\"};\r\n\t\t// should not remove space inside of quotes\r\n\t\tString [] r2 = {\"Santa Claus\",\"North Pole\",\"[email protected]\"};\r\n\t\tString [] r3 = {\"Obama\",\"1 Pennsylvania Ave\",\"[email protected]\"};\r\n\t\t// default delimiter\r\n\t\twriteArrayToLine(r1);\r\n\t\t// change delimiter\r\n\t\tdelim = ':';\r\n\t\twriteArrayToLine(r2);\r\n\t\twriteArrayToLine(r3);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertArrayEquals( r1, csv.next() );\r\n\t\tcsv.setDelimiter(delim);\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t\tassertArrayEquals( r3, csv.next() );\r\n\t}", "@Override\n public String readFile(BufferedReader reader)\n {\n try\n {\n StringBuffer strLine = new StringBuffer();\n String line;\n\n while ((line = reader.readLine()) != null)\n {\n if (!line.startsWith(\"--\", 0))\n {\n strLine.append(line);\n\n // use ; as the command delimiter and execute the query on the database.\n if (line.endsWith(\";\"))\n {\n super.exeQuery(strLine.toString());\n strLine = new StringBuffer();\n }\n }\n }\n\n return strLine.toString();\n }\n catch (IOException ioex)\n {\n logger.error(\"Error reading contents from file.\");\n return null;\n }\n }", "public static void main (String[] args)\n throws Exception\n {\n final SqlScanner scanner\n = new SqlScanner(new FileInputStream(args[0]));\n\n final List tokens = new ArrayList();\n\n for (;;)\n {\n final Token t = scanner.nextToken();\n System.err.println(scanner.getLine() + \": \"\n + scanner.getColumn() + \" = \" + t);\n tokens.add(t);\n if (t.getType() == TokenType.EOF)\n {\n break;\n }\n }\n\n for (final Iterator iterator = tokens.iterator(); iterator.hasNext();)\n {\n final Token t = (Token) iterator.next();\n System.out.print(t.getValue());\n }\n System.out.flush();\n }", "public static void main(String[] args) {\n\t\tString[] fileNames = {\r\n\t\t\t\t\"transByZipMonthYear\", \"transCountAndValByType\", \"transCountAndValByState\",\r\n\t\t\t\t\"customerBySsn\", \"updatedCustomer\", \"monthInvoice\",\"monthInvoiceTransactions\",\"custTransBetweenDates\"\r\n\t\t\t\t};\r\n\t\tString[] columnNames = {\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"type, val, count\",\r\n\t\t\t\t\"state, val, count\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"fName, mName,lName,ssn,ccn,aptN,streetN,custCity,custState,custCountry,custZip,custPhone,custEmail\",\r\n\t\t\t\t\"balance, fName, lName, id\",\r\n\t\t\t\t\"t_id,d,m,y,ccn,branch,transaction_type,transaction_value,c_ssn\",\r\n\t\t\t\t\"fName, mName, lName,t_id,d,m,y,ccn,branch,transaction_type,transaction_value\"\r\n\t\t\t\t\r\n\t\t};\r\n\t\tfor(int i = 0;i<fileNames.length;i++) {\r\n\t\t\tWriteToFile.overWrite(fileNames[i]);\r\n\t\t\tWriteToFile.writeToLoc(fileNames[i], columnNames[i]);\r\n\t\t}\r\n\t\t//might be easier to just non-append-write the files here to blank them out\r\n\t\t\t//narrator: it was.\t\r\n\t\tScanner scanner = new Scanner (System.in);\r\n\t\tselect(scanner);\r\n\t\tscanner.close();\r\n\t\treturn;\t\r\n\t}", "public CSVDataDriver(String dataFolder, String tableName) {\n this.dataFolder = dataFolder;\n this.tableName = tableName;\n }", "@Test(timeout=100)\r\n\tpublic void testConstructorWithFilename() throws IOException {\r\n\t\tString [] r1 = {\"NAME\", \"ADDRESS\",\"EMAIL\"};\r\n\t\t// should not remove space inside of quotes\r\n\t\tString [] r2 = {\"Santa Claus\",\"North Pole\",\"[email protected]\"};\r\n\t\twriteArrayToLine(r1);\r\n\t\twriteArrayToLine(r2);\r\n\t\tout.close();\r\n\t\t\r\n\t\tString filename = file.getAbsolutePath();\r\n\t\t//System.out.println(\"test: new CSVReader(\"+filename+\")\");\r\n\t\tCSVReader csv = new CSVReader(filename);\r\n\t\tassertTrue(\"Open with filename \"+filename, csv.hasNext());\r\n\t\tassertArrayEquals( r1, csv.next() );\r\n\t\tassertTrue(csv.hasNext());\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t\tassertFalse(csv.hasNext());\r\n\t}", "@Test\r\n\tpublic void readCsvTest() throws IOException {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t}", "public static void main(String[] args) throws IOException {\n\n\t\tString in = \"/home/jromeroaj/Escritorio/Programas/HUPAdatos/PRUEBAS/\"; // donde se carga el CSV\n\t\t/// /home/shadoop/Desktop/pruebasCSVJOse/\n\t\t// resources/*.csv\n\t\tString out = \"/home/jromeroaj/Escritorio/Programas/HUPAdatos/\"; // donde se generan los arff\n\t\t// String conf = \"output/conf/Configuracion2.txt\"; // fichero configuración\n\t\tejemploKmeans d = new ejemploKmeans();\n\t\td.kMeansSPark(in, out);\n\t}", "public void addFile() \n {\n try {\n //JFileChooser jf=new JFileChooser();\n //jf.showOpenDialog(null);\n // String fp=jf.getSelectedFile().getAbsolutePath();\n File file2=new File(\"trial.txt\");\n BufferedReader br=new BufferedReader(new FileReader (file2));\n Object[] tableLines=br.lines().toArray();\n for (Object tableLine : tableLines) {\n String line = tableLine.toString().trim();\n String[] dataRow=line.split(\",\");\n jtModel.addRow(dataRow);\n jtModel.setValueAt(Integer.valueOf(dataRow[2]), jtModel.getRowCount()-1, 2);\n }\n br.close();\n }\n catch(Exception ex) {\n JOptionPane.showMessageDialog(rootPane,\"Nothing was selected\");\n }\n }", "public static void main(String[] args) {\r\n\t\tConvertTSVToSQLiteOperation conversion = extractArguments(args);\r\n\t\tif (conversion == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// first, parse the input TSV file into an SQL commands file\r\n\t\tBufferedReader reader = null;\r\n\t\tPrintWriter writer = null;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(conversion.tsvFile));\r\n\t\t\twriter = new PrintWriter(conversion.sqlCommandsFile);\r\n\t\t\t// read the header line to extract the column names\r\n\t\t\tint chunk = 0;\r\n\t\t\tString line = reader.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"File [%s] does not contain a valid header line.\",\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\tString[] columns = line.split(\"\\\\t\");\r\n\t\t\tif (columns == null || columns.length < 1)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"Header line [%s] from file [%s] could not be parsed \" +\r\n\t\t\t\t\t\"to properly extract the file's column names.\", line,\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\t// read the first row to to determine column types from the values\r\n\t\t\tline = reader.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"File [%s] contains no valid data rows.\",\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath()));\r\n\t\t\tString[] values = line.split(\"\\\\t\");\r\n\t\t\tif (values == null || values.length != columns.length)\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\"First data row [%s] from file [%s] could not be parsed \" +\r\n\t\t\t\t\t\"into a valid array of values, whose length matches that \" +\r\n\t\t\t\t\t\"of the parsed header line (%d).\", line,\r\n\t\t\t\t\tconversion.tsvFile.getAbsolutePath(), columns.length));\r\n\t\t\t// start with static table creation statement\r\n\t\t\tStringBuffer tableCreation =\r\n\t\t\t\tnew StringBuffer(\"CREATE TABLE Result\\n(\");\r\n\t\t\t// add columns found in the header line\r\n\t\t\tfor (int i=0; i<columns.length; i++)\r\n\t\t\t\ttableCreation.append(String.format(\"%s %s,\\n\",\r\n\t\t\t\t\tcleanColumnName(columns[i]), getColumnType(values[i])));\r\n\t\t\t// chomp trailing comma and newline\r\n\t\t\tif (tableCreation.toString().endsWith(\",\\n\"))\r\n\t\t\t\ttableCreation.setLength(tableCreation.length() - 2);\r\n\t\t\t// close the table creation statement\r\n\t\t\ttableCreation.append(\");\");\r\n\t\t\twriter.println(tableCreation.toString());\r\n\t\t\t// write static insert statement before the first chunk of rows\r\n\t\t\twriter.println(\"INSERT INTO Result SELECT\");\r\n\t\t\t// write the first row\r\n\t\t\twriter.print(getRowInsertion(values));\r\n\t\t\tchunk++;\r\n\t\t\t// write the rest of the rows\r\n\t\t\tint row = 2;\r\n\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t// parse the row into values\r\n\t\t\t\tvalues = line.split(\"\\\\t\");\r\n\t\t\t\tif (values == null || values.length != columns.length)\r\n\t\t\t\t\tthrow new IllegalArgumentException(String.format(\r\n\t\t\t\t\t\t\"Data row %d [%s] from file [%s] could not be \" +\r\n\t\t\t\t\t\t\"parsed into a valid array of values, whose length \" +\r\n\t\t\t\t\t\t\"matches that of the parsed header line (%d).\",\r\n\t\t\t\t\t\trow, line, conversion.tsvFile.getAbsolutePath(),\r\n\t\t\t\t\t\tcolumns.length));\r\n\t\t\t\t// SQLite will only tolerate insert statements with a\r\n\t\t\t\t// maximum of 500 rows each, so if we've reached the\r\n\t\t\t\t// end of this chunk, close it out and start a new one\r\n\t\t\t\tif (chunk >= 500) {\r\n\t\t\t\t\twriter.println(\";\");\r\n\t\t\t\t\twriter.println(\"INSERT INTO Result SELECT\");\r\n\t\t\t\t\tchunk = 0;\r\n\t\t\t\t} else writer.println(\" UNION ALL SELECT\");\r\n\t\t\t\t// write this row\r\n\t\t\t\twriter.print(getRowInsertion(values));\r\n\t\t\t\trow++;\r\n\t\t\t\tchunk++;\r\n\t\t\t}\r\n\t\t\t// close the full insert statement\r\n\t\t\twriter.println(\";\");\r\n\t\t} catch (Throwable error) {\r\n\t\t\tdie(\"Could not write parsed TSV file to \" +\r\n\t\t\t\t\"SQL database creation commands file.\", error);\r\n\t\t} finally {\r\n\t\t\ttry { reader.close(); } catch (Throwable error) {}\r\n\t\t\ttry { writer.close(); } catch (Throwable error) {}\r\n\t\t}\r\n\t\t// then, create the SQLite database and\r\n\t\t// populate it with the SQL commands file\r\n\t\tProcess process = null;\r\n\t\tInteger exitValue = null;\r\n\t\tString output = null;\r\n\t\ttry {\r\n\t\t\tProcessBuilder builder = new ProcessBuilder();\r\n\t\t\tbuilder.command(\r\n\t\t\t\t\"sqlite3\", \"-batch\", \"-init\",\r\n\t\t\t\tconversion.sqlCommandsFile.getAbsolutePath(),\r\n\t\t\t\tconversion.sqliteDBFile.getAbsolutePath(), \".exit\"\r\n\t\t\t);\r\n\t\t\tbuilder.redirectErrorStream(true);\r\n\t\t\tprocess = builder.start();\r\n\t\t\texitValue = process.waitFor();\r\n\t\t\toutput = getConsoleOutput(process);\r\n\t\t} catch (Throwable error) {\r\n\t\t\tdie(\"Could not run SQL database creation commands \" +\r\n\t\t\t\t\"file to generate SQLite result database.\", error);\r\n\t\t} finally {\r\n\t\t\ttry { process.getInputStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.getOutputStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.getErrorStream().close(); } catch (Throwable error) {}\r\n\t\t\ttry { process.destroy(); } catch (Throwable error) {}\r\n\t\t}\r\n\t\t// verify that the SQLite database was successfully created\r\n\t\tif (conversion.sqliteDBFile.canRead() &&\r\n\t\t\tdatabaseCreationSucceeded(exitValue, output) == false)\r\n\t\t\tdie(String.format(\"Failed to generate SQLite result database [%s].\",\r\n\t\t\t\tconversion.sqliteDBFile.getAbsolutePath()));\r\n\t}", "@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }" ]
[ "0.6278416", "0.6207726", "0.59483933", "0.5915408", "0.5737727", "0.5704203", "0.5649168", "0.56346554", "0.5579813", "0.5578855", "0.5544813", "0.5542707", "0.54861397", "0.54824936", "0.5472126", "0.54650277", "0.54526263", "0.54358685", "0.54046667", "0.5399698", "0.53855115", "0.5384334", "0.53778654", "0.53638554", "0.5352155", "0.5295257", "0.5225311", "0.5213005", "0.5191192", "0.5172837", "0.5171724", "0.5170748", "0.5166447", "0.515354", "0.51429236", "0.513649", "0.51016176", "0.5090579", "0.5049308", "0.5039494", "0.5032351", "0.5022975", "0.5008533", "0.49975815", "0.4990846", "0.49904495", "0.49874088", "0.49858436", "0.4968196", "0.49561185", "0.4955523", "0.49406707", "0.49319705", "0.49307564", "0.4929239", "0.49248445", "0.4924333", "0.49173704", "0.49127057", "0.49077547", "0.49028575", "0.48915088", "0.4885115", "0.4871877", "0.48660475", "0.48415118", "0.4819685", "0.48180377", "0.48134774", "0.48073772", "0.48011553", "0.48008308", "0.4795758", "0.47831178", "0.47823313", "0.47820622", "0.47776246", "0.47742873", "0.47680202", "0.47655693", "0.47598046", "0.47553363", "0.47526047", "0.47479796", "0.47476202", "0.4744685", "0.4727716", "0.47200114", "0.47142693", "0.47130638", "0.47111267", "0.47106087", "0.4707388", "0.47050956", "0.470288", "0.47011513", "0.46908972", "0.46872282", "0.4685572", "0.4678131", "0.46770173" ]
0.0
-1
Creates an immutable list based on a comma seperated json string
static List<String> getSafeStringArray(String name, JSONObject json) { try { if (json.has(name)) { JSONArray array = json.getJSONArray(name); List<String> ret = new ArrayList<String>(); for (int x = 0; x < array.length(); x++) ret.add(array.getString(x)); return Collections.unmodifiableList(ret); } } catch (Exception e) { } return new ArrayList<String>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList parseStringToList(String data){\n ArrayList<String> result = new ArrayList<String>();\n String[] splitResult = data.split(\",\");\n for(String substring : splitResult){\n result.add(substring);\n }\n return result;\n }", "public static <T> List<T> jsonToList(String json, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(List.class, new Class[]{elementType});\n\t\t\n\t\treturn gson.fromJson(json, type);\n\t}", "public static List<String> deserialize( String value )\n {\n return deserialize( value, DEFAULT_DELIMITER );\n }", "private ArrayList<DT> jsonToDtList(String jsonString) { // TEMPORARILY PUBLIC\n Gson gsonObj = new Gson();\n ArrayList<DT> dtList = gsonObj.fromJson(jsonString, dtListType);\n\n return dtList;\n }", "public static String[] parseCommaSeparatedList(String line) {\n \tArrayList myList = new ArrayList();\n \t\n \tString myLine = new String(line);\n \t\n \twhile(myLine.contains(\",\")) {\n \t\tString item = myLine.substring(0, myLine.indexOf(\",\"));\n \t\titem = StringUtilities.removeEdgeWhitespace(item);\n \t\tmyList.add(item);\n \t\tmyLine = myLine.substring((myLine.indexOf(\",\") + 1));\n \t}\n \tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \tif(myLine.compareTo(\"\") != 0) myList.add(myLine);\n\n \tString[] list = new String[myList.size()];\n \tfor(int i = 0; i < myList.size(); i++) {\n \t\tlist[i] = new String((String)myList.get(i));\n \t}\n \t\n \treturn list;\n }", "public TreeNode deserialize(String data){\n String[] arr = data.split(\",\");\n List<String> list = new ArrayList<String>(Arrays.asList(arr));\n return desHelper(list);\n }", "public static List<EntityRef> readJsonToItems(String json){\r\n\t\tif(json == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn EntityFactory.readFromJSONArrayString(json, EntityRef.class);\r\n\t\t} catch (JSONObjectAdapterException e) {\r\n\t\t\tthrow new IllegalArgumentException(e);\r\n\t\t}\r\n\t}", "List<Gist> deserializeGistsFromJson(String json);", "@Override\n protected void processLine(String line) {\n String[] lines = line.split(\",\");\n for (String l : lines) {\n data.add(l);\n }\n }", "public static <T> List<T> convertToList(final String jsonString, final Class<T> clazz) {\n if (Strings.isNullOrEmpty(jsonString)) {\n return new ArrayList<>();\n }\n try {\n return OBJ_MAPPER.readValue(jsonString, OBJ_MAPPER.getTypeFactory().constructType(List.class, clazz));\n } catch (IOException e) {\n throw new RuntimeException(\"parse to object error\", e);\n }\n }", "public static <T> List<T> json2list(String jsonArrayStr, Class<T> clazz)\n throws Exception {\n List<Map<String, Object>> list = objectMapper.readValue(jsonArrayStr,\n new TypeReference<List<T>>() {\n });\n List<T> result = new ArrayList<T>();\n for (Map<String, Object> map : list) {\n result.add(map2pojo(map, clazz));\n }\n return result;\n }", "protected List<String> convertToList(final String data) {\n\t\tif (data == null || data.length() == 0) {\n\t\t\treturn new ArrayList<String>();\n\t\t}\n\t\tString[] result = data.split(\",\");\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (String val : result) {\n\t\t\tlist.add(val.trim());\n\t\t}\n\t\treturn list;\n\t}", "private ArrayList parseList(String localData){\n int localPointer = 0;\n ArrayList temp = new ArrayList();\n char c = localData.charAt(localPointer++);\n while (c != ']'){\n String item = \"\";\n Object itemObj = null;\n item_loop :\n while (c != ']'){\n switch (c){\n case ',' :\n c = localData.charAt(localPointer++);\n break item_loop;\n case '{' :\n String tempItem = this.getFull(localData.substring(localPointer),0);\n localPointer += tempItem.length();\n item += tempItem;\n break ;\n case '[' :\n String tempItem2 = this.getFull(localData.substring(localPointer),1);\n localPointer += tempItem2.length();\n item += tempItem2;\n break ;\n default :\n item += c;\n break ;\n }\n c = localData.charAt(localPointer++);\n }\n item = item.trim();\n switch (this.getDataType(item.trim())){\n case String:\n itemObj = item.trim().replace(\"\\\"\",\"\");\n break ;\n case Integer:\n itemObj = Long.parseLong(item.trim());\n break ;\n case Float:\n itemObj = Float.parseFloat(item.trim());\n break ;\n case Boolean:\n itemObj = Boolean.parseBoolean(item.trim());\n break ;\n case Map:\n itemObj = this.parseMap(item.trim());\n break ;\n case List:\n itemObj = this.parseList(item.trim());\n }\n temp.add(itemObj);\n }\n return temp;\n }", "private static List<String> convertCommaDelimitedStringToList(String delimitedString) {\n\n\t\tList<String> result = new ArrayList<String>();\n\n\t\tif (!StringUtils.isEmpty(delimitedString)) {\n\t\t\tresult = Arrays.asList(StringUtils.delimitedListToStringArray(delimitedString, \",\"));\n\t\t}\n\t\treturn result;\n\n\t}", "static <T extends JSONSerializable> ArrayList<T> arrayListDeserialize(String json, Class<T> type) throws Exception {\n JSONArray serializableArrayList = new JSONArray(json);\n ArrayList<T> resultArrayList = new ArrayList<>();\n\n for(int idx = 0; idx < serializableArrayList.length(); idx++) {\n T result = type.newInstance();\n result.jsonDeserialize(serializableArrayList.getString(idx));\n resultArrayList.add(result);\n }\n\n return resultArrayList;\n }", "public static List<String> parseStringToList(String str) {\n List<String> list = new LinkedList<>();\n if (StringUtils.isEmpty(str)){\n return list;\n }\n String[] tokens = str.trim().split(\"\\\\s*,\\\\s*\");\n if(tokens != null && tokens.length > 0) {\n for (String column : tokens) {\n list.add(column);\n }\n }\n return list;\n }", "public static List<List<Response>> stringListToJSONList(List<String> jsonStrings){\n List<List<Response>> jsonObjects = new ArrayList<>();\n\n for(int i = 0; i < jsonStrings.size(); i ++){\n Example ex = stringToJSON(jsonStrings.get(i));\n List<Response> resp = ex.getResponse();\n jsonObjects.add(resp);\n\n }\n\n return jsonObjects;\n }", "public List<Judgment> createJudgment(String jsons){\n Gson gson = new Gson();\n Type jsonListType = new TypeToken<List<Judgment>>(){}.getType();\n return gson.fromJson(jsons, jsonListType);\n }", "ArrayList<String> createList(String finalInput);", "private String[] commaDelimited(String str) {\n StringTokenizer st = new StringTokenizer(str,\",\");\n String strs[] = new String[st.countTokens()];\n for (int i=0;i<strs.length;i++) strs[i] = Utils.decFmURL(st.nextToken());\n return strs;\n }", "public TreeNode deserialize(String data) {\n String[] strs = data.split(\",\");\n LinkedList<String> list = new LinkedList<>();\n for(String s:strs){\n list.add(s);\n }\n return deserialize(list);\n }", "@Test\n public void testListOfStrings() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(4, jtc.stringArray.size());\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"abc\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"def\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"123\\\"\"));\n assertThat(jsonString, Matchers.containsString(\"\\\"456\\\"\"));\n }", "private ArrayList<ListItems> getListDataFromJson(String listJsonStr)\n throws JSONException {\n\n String name;\n String email;\n String body;\n\n JSONArray jsonArray = new JSONArray(listJsonStr);\n for (int i = 0; i < jsonArray.length(); i++) {\n\n\n JSONObject listItems = jsonArray.getJSONObject(i);\n name = listItems.getString(Constants.NAME);\n email = listItems.getString(Constants.EMAIL);\n body = listItems.getString(Constants.BODY);\n\n\n ListItems items = new ListItems();\n items.setName(name);\n items.setEmail(email);\n items.setBody(body);\n listItemArray.add(items);\n }\n return listItemArray;\n\n\n }", "public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }", "@Override\n public List<T> deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {\n JsonElement postJsonArray = json.getAsJsonArray();\n return new Gson().fromJson(postJsonArray,typeOfT);\n }", "public static JsonArray convertStringList(Collection<String> strings)\r\n \t{\r\n \t\tJsonArray ret = new JsonArray();\r\n \t\tfor (String string : strings)\r\n \t\t{\r\n \t\t\tret.add(new JsonPrimitive(string));\r\n \t\t}\r\n \t\treturn ret;\r\n \t}", "public List<String> getList(String attributeStr) {\n List<String> attributeValuesList = new ArrayList<>();\n if (!attributeStr.equals(\"\")) {\n String[] attributeValues = attributeStr.replaceAll(\", \", \",\").split(\",\");\n for (String attributeValue : attributeValues)\n attributeValuesList.add(attributeValue);\n }\n return attributeValuesList;\n }", "public static <T> List<T> jsonToList(Reader readerFile, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t\n\t\tType type = new MyParamType(List.class, new Class[]{elementType});\n\t\t\n\t\treturn gson.fromJson(readerFile, type);\n\t}", "public JSONArray(JSONTokener x) throws JSONException {\n\t\tthis();\n\t\tif (x.nextClean() != '[') {\n\t\t\tthrow x.syntaxError(\"A JSONArray text must start with '['\");\n\t\t}\n\t\tif (x.nextClean() != ']') {\n\t\t\tx.back();\n\t\t\tfor (;;) {\n\t\t\t\tif (x.nextClean() == ',') {\n\t\t\t\t\tx.back();\n\t\t\t\t\tthis.rawArrayList.add(JSONNull.NULL);\n\t\t\t\t} else {\n\t\t\t\t\tx.back();\n\t\t\t\t\tthis.rawArrayList.add(x.nextValue());\n\t\t\t\t}\n\t\t\t\tswitch (x.nextClean()) {\n\t\t\t\t\tcase ',':\n\t\t\t\t\t\tif (x.nextClean() == ']') {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx.back();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ']':\n\t\t\t\t\t\treturn;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow x.syntaxError(\"Expected a ',' or ']'\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static String[] commaDelimitedListToStringArray(String str) {\n\t\treturn delimitedListToStringArray(str, \",\");\n\t}", "public static <T> List<Map<String, T>> jsonToQt(String str, Class<T> elementType) {\n\t\tif(gson == null) {\n\t\t\tgson = new Gson();\n\t\t}\n\t\t//nei - wai\n\t\tType typeMap = new MyParamType(Map.class, new Class[]{String.class, elementType});\n\t\t\n\t\tType typeList = new MyParamType(List.class, new Type[]{typeMap});\n\t\t\n\t\treturn gson.fromJson(str, typeList);\n\t}", "List<CountryEntity> parseLines(List<String> line);", "public static List<String> m19461a(JSONObject jSONObject, String str) throws JSONException {\n JSONArray optJSONArray = jSONObject.optJSONArray(str);\n if (optJSONArray == null) {\n return null;\n }\n List arrayList = new ArrayList(optJSONArray.length());\n for (int i = 0; i < optJSONArray.length(); i++) {\n arrayList.add(optJSONArray.getString(i));\n }\n return Collections.unmodifiableList(arrayList);\n }", "public Iterable<String> call(String line) throws Exception {\n\t\t\t\treturn Arrays.asList(line.split(\",\"));\n\t\t\t}", "protected String[] arrayParser(String item){\n return item.replaceAll(\"\\\\{|\\\\}|\\\\[|\\\\]|(\\\\d+\\\":)|\\\"|\\\\\\\\\", \"\").split(\",\");\n }", "private SimpleConfigList parseArray() {\n ConfigOrigin arrayOrigin = lineOrigin();\n List<AbstractConfigValue> values = new ArrayList<AbstractConfigValue>();\n\n consolidateValueTokens();\n\n TokenWithComments t = nextTokenIgnoringNewline();\n\n // special-case the first element\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin,\n Collections.<AbstractConfigValue> emptyList());\n } else if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else {\n throw parseError(addKeyName(\"List should have ] or a first element after the open [, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n\n // now remaining elements\n while (true) {\n // just after a value\n if (checkElementSeparator()) {\n // comma (or newline equivalent) consumed\n } else {\n t = nextTokenIgnoringNewline();\n if (t.token == Tokens.CLOSE_SQUARE) {\n return new SimpleConfigList(arrayOrigin, values);\n } else {\n throw parseError(addKeyName(\"List should have ended with ] or had a comma, instead had token: \"\n + t\n + \" (if you want \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n\n // now just after a comma\n consolidateValueTokens();\n\n t = nextTokenIgnoringNewline();\n if (Tokens.isValue(t.token) || t.token == Tokens.OPEN_CURLY\n || t.token == Tokens.OPEN_SQUARE) {\n values.add(parseValue(t));\n } else if (flavor != ConfigSyntax.JSON && t.token == Tokens.CLOSE_SQUARE) {\n // we allow one trailing comma\n putBack(t);\n } else {\n throw parseError(addKeyName(\"List should have had new element after a comma, instead had token: \"\n + t\n + \" (if you want the comma or \"\n + t\n + \" to be part of a string value, then double-quote it)\"));\n }\n }\n }", "public static List<String> listFromCommaSeparatedStringList(List<String> listOfCommaSeparatedValues) {\n if (listOfCommaSeparatedValues == null) {\n return null;\n }\n List<String> outList = new ArrayList<String>();\n for (String commaSeparatedValues : listOfCommaSeparatedValues) {\n if (commaSeparatedValues != null) {\n List<String> values = Arrays.asList(\n commaSeparatedValues.split(\"\\\\s*,\\\\s*\")\n );\n outList.addAll(values);\n }\n }\n if (outList.size() == 0) {\n return null;\n }\n return outList;\n }", "ListValue createListValue();", "public TreeNode deserialize(String data) {\n //LinkedList doesnot have the constructor form array\n LinkedList<String> l = new LinkedList<>();\n //LinkedList.addAll doesnot support array, need to use Arrays.asList\n //String.split(String regex, int limit) when limit<0, return the most part of splits as possibile, delete the empty items\n l.addAll(Arrays.asList(data.split(\",\",-1)));\n TreeNode root = build(l);\n return root;\n }", "public TreeNode deserialize(String data) {\n String[] strings = data.split(\",\");\n LinkedList<String> stack = new LinkedList<>();\n for (String s : strings) {\n stack.add(s);\n }\n return deserialize(stack);\n }", "public TreeNode deserialize(String data) {\n// String[] nodes = data.split(\",\");\n Deque<String> nodes = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return build(nodes);\n }", "public static <T> List<T> convertJsonStringToCollection(final String strJson, final Class<T> klass) {\n final JsonArray array = JsonParser.parseString(strJson).getAsJsonArray();\n final Gson g = new Gson();\n final List<T> lst = new ArrayList<>();\n for (final JsonElement json : array) {\n final T entity = g.fromJson(json, klass);\n lst.add(entity);\n }\n return lst;\n }", "public List<String> convertCsvToJava() {\n List<String> bookList = new ArrayList<String>();\n try {\n String csvFileToRead = STRING1;\n BufferedReader br = null;\n String line = \"\";\n String splitBy = \",\";\n \n try {\n\n br = new BufferedReader(new FileReader(csvFileToRead));\n while ((line = br.readLine()) != null) {\n\n // split on comma(',')\n String[] books = line.split(splitBy);\n String stringBook = \"\";\n for(int i=0;i<12;i++){\n if (i<11){\n stringBook=stringBook.concat(books[i]+\",\"); \n }else{\n stringBook=stringBook.concat(books[i]);\n }\n }\n bookList.add(stringBook);\n }\n } catch (FileNotFoundException e) {\n LOGGER.info(e);\n\n } catch (IOException e) {\n LOGGER.info(e);\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n LOGGER.info(e);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.info(e);\n }\n return bookList;\n\n }", "private static List<City> getCitiesFromString(String line, SocialNetwork r) {\n List<City> cities = new LinkedList<City>();\n String[] splitString = line.split(\",\");\n for (int i = 2; i < splitString.length; i++) {\n City city = r.getListOfCities().getCityByName(splitString[i]);\n cities.add(city);\n }\n return cities;\n }", "public static ArrayList<Song> convertToSongs(ArrayList<String> songsStrings) {\r\n ArrayList<Song> songs = new ArrayList<>();\r\n songsStrings.remove(0);\r\n for(String songString : songsStrings) {\r\n String[] parts = songString.split(\",\");\r\n int ranks = Integer.valueOf(parts[0]);\r\n String songN = parts[1];\r\n String artist = parts[2];\r\n int views = Integer.valueOf(parts[3]);\r\n songs.add(new Song(ranks, songN, artist, views));\r\n }\r\n\r\n//Sorting Song names\r\n\r\n Collections.sort(songs, new Comparator<Song>() {\r\n @Override\r\n public int compare(Song o1, Song o2) {\r\n return o1.compareTo(o2);\r\n } \r\n });\r\n return songs;\r\n}", "public List<String> splitCommaSepareatedValues(String commaSepareatedValues) {\n\t\treturn Arrays.asList(commaSepareatedValues.split(\",\"));\n\t}", "ListString createListString();", "public TreeNode deserialize(String data) {\n\t\tString[] nodes = data.split(\",\");\n\t\tQueue<String> queue = new LinkedList<>();\n\t\tqueue.addAll(Arrays.asList(nodes));\n\t\treturn treeDeserialize(queue);\n\t}", "private Set<String> parseStringToSet(final String data) {\n String[] splits;\n\n if (data != null && data.length() > 0) {\n splits = data.split(\",\");\n } else {\n splits = new String[] {};\n }\n\n Set<String> set = new HashSet<String>();\n if (splits.length > 0) {\n for (String split : splits) {\n set.add(split.trim());\n }\n }\n\n return set;\n }", "private static void parse_todo(String string){\n String[] split_string = string.split(\",\");\n String task = split_string[0];\n\n Todo todo = new Todo(task);\n\n int count = 0;\n for (int i = 0; i < todos.size(); i++){\n if(todo.todo.equals(todos.get(i).todo)){\n count ++;\n }\n }\n if(count == 0){\n todos.add(todo);\n }\n }", "private List<PTypes> dissectListTypes(String cellString){\n return Arrays.stream(cellString.split(\",\\\\s+\"))\n .map(PTypes::valueOf)\n .collect(Collectors.toList());\n }", "private static void writeJSONString(Iterable<?> list, Appendable out) throws IOException {\n @Var boolean first = true;\n\n out.append('[');\n for (Object value : list) {\n if (first) {\n first = false;\n } else {\n out.append(',');\n }\n\n JSON.writeJSONString(value, out);\n }\n out.append(']');\n }", "private static String[] parseInstance(String line) {\n line = line.trim();\n String[] instance = line.split(\",\");\n return instance;\n }", "public TreeNode deserialize(String data) {\n String[] arr = data.split(\",\");\n Queue<String> queue = new LinkedList<>(Arrays.asList(arr));\n return deserialize(queue);\n }", "public static Set<String> commaDelimitedStringToSet(String s) {\n Set<String> set = new HashSet<String>();\n String[] split = s.split(\",\");\n for (String aSplit : split) {\n String trimmed = aSplit.trim();\n if (trimmed.length() > 0)\n set.add(trimmed);\n }\n return set;\n }", "public void testTagList() throws Exception\n {\n ObjectMapper m = new ObjectMapper();\n TagList list = new TagList();\n list.add(Tag.A);\n list.add(Tag.B);\n String json = m.writeValueAsString(list);\n\n TagList result = m.readValue(json, TagList.class);\n assertEquals(2, result.size());\n assertSame(Tag.A, result.get(0));\n assertSame(Tag.B, result.get(1));\n }", "List<GistComment> deserializeCommentsFromJson(String json);", "private static <T> TypeToken<List<T>> getListTypeToken() {\n return new TypeToken<List<T>>() {\n };\n }", "public Object[] fromStringRepresentation(String... value);", "java.util.List<java.lang.String> getValuesList();", "List<String> mo5877c(String str);", "public Object @NonNull [] parse(String text) throws JsonProcessingException {\n JsonNode jsonNode = mapper.readTree(text);\n return jsonNodeToTuple(jsonNode);\n }", "public static <T> List<T> convertToListByTypeReference(final String jsonString, final TypeReference<List<T>> typeReference) {\n if (Strings.isNullOrEmpty(jsonString)) {\n return new ArrayList<>();\n }\n try {\n return OBJ_MAPPER.readValue(jsonString, typeReference);\n } catch (IOException e) {\n throw new RuntimeException(\"parse to object error\", e);\n }\n }", "public TreeNode deserialize(String data) {\n String[] dchar = data.split(\",\");\n return deserialize(dchar, new Index(0));\n }", "public int processingContract(String json,List<Object[]> list);", "public static ArrayList<String> CSVtoArrayList(String Line) {\n\t\tArrayList<String> Result = new ArrayList<String>();\n\t\t\n\t\tif (Line != null) \n {\n\t\t\tString[] splitData = Line.split(\"\\\\s*,\\\\s*\");\n\t\t\tfor (int i = 0; i < splitData.length; i++) \n {\n\t\t\t\tif (!(splitData[i] == null) || !(splitData[i].length() == 0)) {\n\t\t\t\t\tResult.add(splitData[i].trim());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Result;\n\t}", "public static List<Integer> stringToIntList(String string) {\n List<Integer> listInt = new LinkedList<>();\n String charBuffer = \"\";\n char[] charArray = string.toCharArray();\n for ( char c : charArray ) {\n if ( c == ',' ) {\n listInt.add(Integer.parseInt(charBuffer));\n charBuffer = \"\";\n } else if ( InputControl.testInt(c) ) {\n charBuffer += c;\n\n }\n }\n listInt.add(Integer.parseInt(charBuffer));\n return listInt;\n }", "public TreeNode deserialize(String data) {\n LinkedList<String> linkedList = new LinkedList<>(Arrays.asList(data.split(\",\")));\n return buildTree(linkedList);\n }", "public static TreeNode deserialize(String data) {\n String[] dataArray = data.split(\",\");\n Queue<String> dataQueue = new LinkedList<>(Arrays.asList(dataArray));\n return deserializeHelper(dataQueue);\n }", "public static void loadValidDataJson(JsonObject json,ArrayList<ParseString> rowList) {\n\r\n JsonArray custarr = new JsonArray();\r\n\r\n for (int n = 0; n < rowList.size(); n++) {\r\n\r\n JsonObject cust = new JsonObject();\r\n cust.put(\"color\",rowList.get(n).color);\r\n cust.put(\"firstname\",rowList.get(n).firstname);\r\n cust.put(\"lastname\",rowList.get(n).lastname);\r\n cust.put(\"phonenumber\",rowList.get(n).phonenumber);\r\n cust.put(\"zipcode\",rowList.get(n).zipcode);\r\n custarr.add(cust);\r\n cust.remove(n);\r\n }\r\n json.put(\"entries\",custarr);\r\n }", "public static List toListOfStringsDelimitedByCommaOrSemicolon(String s) {\n if (s == null) {\n return Collections.EMPTY_LIST;\n }\n\n List results = new ArrayList();\n // include empty last one, cft. http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#split%28java.lang.String,%20int%29\n String[] terms = s.split(SEPARATOR,-1);\n\n for (int i = 0; i < terms.length; i++) {\n //this has empty string if nothing is found\n String term = terms[i].trim();\n results.add(term);\n }\n\n return results;\n }", "public TreeNode deserialize(String data) {\n String[] arr = data.split(\",\");\n int[] index = new int[1];\n return helper(arr, index);\n }", "ListType createListType();", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "List <JAVATYPE> convertList(List<JAVATYPE> oldList, final METATYPE meta);", "@Override\n\tprotected Object csvRecordToObject(String cvsRecord) {\n\t\t \n String[] arrOfStr = cvsRecord.split(\",\");\n\t\t Item item =new Item();\n\t\t item.setItemno(Integer.parseInt(arrOfStr[0]));\n\t\t item.setItemName(arrOfStr[1]);\n\t\t item.setUnitPrice(arrOfStr[2]);\n\t\t return item;\n\t\t\n\t}", "public static List<Response> getElementListById(List<String> toAdd, List<Response> newJson){\n List<Response> jsonToAdd = new ArrayList<>();\n for(int i = 0; i < newJson.size(); i++){\n String rId = newJson.get(i).id;\n if(toAdd.contains(rId)){\n jsonToAdd.add(newJson.get(i));\n }\n\n }\n return jsonToAdd;\n }", "protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }", "private List<String> ListTransform(Object value) {\n\n if (value.toString().contains(lineDelimiter))\n return Arrays.asList(value.toString().split(lineDelimiter));\n\n List<String> lines = new ArrayList<>();\n if (!value.toString().equals(\"\"))\n lines.add(value.toString());\n\n return lines;\n }", "@SuppressWarnings( { \"rawtypes\", \"unchecked\" } )\n\tprotected static List fromJSONArray( JSONArray array )\n\t{\n\t\tList l = new ArrayList( );\n\t\tfor ( int i = 0; i < array.length( ); i++ )\n\t\t{\n\t\t\tl.add( array.get( i ) );\n\t\t}\n\t\treturn l;\n\t}", "private ArrayList<String> initList(String[] vastitems){\n return new ArrayList<>(Arrays.asList(vastitems));\n }", "public List<PairOfInts> convertInputToPairsOfNumbers(String input) {\n\t\tList<PairOfInts> pairsOfIntsList = new ArrayList<PairOfInts>();\n\t\tif(input != null) {\n\t\t\tList<String> list = Stream.of(input\n\t\t\t\t\t.split(\"]\"))\n\t\t\t\t\t.map(line -> line.replace(\"{\", \"\"))\n\t\t\t\t\t.map(line -> line.replace(\"[\", \"\"))\n\t\t\t\t\t.map(line -> line.replace(\"]\", \"\"))\n\t\t\t\t\t.map(line -> line.replace(\"}\", \"\"))\n\t\t\t\t\t.map(line -> line.replace(\", \", \"\"))\n\t\t\t\t\t.map(line -> line.trim())\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t\n\t\t\tfor(String s : list) {\n\t\t\t\tString[] numberPair = s.split(\",\");\n\t\t\t\tif((numberPair != null) && (!numberPair[0].equals(\"\"))) {\n\t\t\t\t\tPairOfInts pairOfInts = new PairOfInts();\n\t\t\t\t\tpairOfInts.setNumber1(Integer.parseInt(numberPair[0]));\n\t\t\t\t\tpairOfInts.setNumber2(Integer.parseInt(numberPair[1]));\n\t\t\t\t\tpairsOfIntsList.add(pairOfInts);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn pairsOfIntsList;\n\t}", "public static String[] parseJSON(String line) {\n\t\tString temp = line.replaceFirst(\"\\\\{\\\"time\\\":[0-9]+,\\\"states\\\":\\\\[\\\\[\", \"\");\n\t\tString[] states = temp.split(\"\\\\],\\\\[\");\n\t\tstates[states.length-1].replaceAll(\"\\\\]\\\\]\\\\}\", \"\");\n\t\treturn states;\n\t}", "void mo54419a(List<String> list);", "public a a(String str, List<POI> list) {\n if (list != null && !list.isEmpty()) {\n JSONArray jSONArray = new JSONArray();\n for (POI poi : list) {\n if (bnx.a(poi)) {\n jSONArray.put(bnx.b(poi));\n }\n }\n if (jSONArray.length() > 0) {\n try {\n put(str, jSONArray);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n return this;\n }", "public static List<Integer> convertStrToList(String str, String sepator) {\n\t\tif (StringUtils.isEmpty(str)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (StringUtils.isEmpty(sepator)) {\n\t\t\tsepator = \",\";\n\t\t}\n\n\t\tString[] split = str.split(sepator);\n\t\tList<Integer> list = null;\n\t\tif (split != null && split.length > 0) {\n\t\t\tlist = new ArrayList<Integer>();\n\n\t\t\tfor (String s : split) {\n\t\t\t\tlist.add(Integer.parseInt(s));\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}", "protected static ParameterDef createListParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.LIST);\n }", "private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }", "public static List<Ship> extractShipsFromJson(String jsonString) {\n List<Ship> ships = new ArrayList<>();\n\n try {\n JSONArray shipsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < shipsArray.length(); i++){\n JSONObject currentShip = shipsArray.getJSONObject(i);\n\n\n int id = currentShip.getInt(\"id\");\n String name = currentShip.getString(\"name\");\n int speed = currentShip.getInt(\"speed\");\n String type = currentShip.getString(\"type\");\n int maxCargoWeight = currentShip.getInt(\"maxCargoWeight\");\n\n Ship ship = new Ship(id, name, speed, type, maxCargoWeight);\n ships.add(ship);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return ships;\n }", "String getStringList();", "public static ArrayList<LatLng> convertCoordinatesStringToArrayLatLng(String stringCoords){\n List<String> arrayStringCoords = Arrays.asList(stringCoords.split(\",\"));\n ArrayList<LatLng> coords = new ArrayList<LatLng>();\n LatLng current;\n double lat, lon;\n for(int i=0; i < arrayStringCoords.size(); i += 2){\n lat = Double.parseDouble(arrayStringCoords.get(i));\n lon = Double.parseDouble(arrayStringCoords.get(i+1));\n current = new LatLng(lat, lon);\n coords.add(current);\n }\n return coords;\n }", "public static void main(String[] str) {\n String str1 = \"[{\\\"随机欢迎语\\\":[\\\"aaa\\\",\\\"bbbbb\\\",\\\"ccccc\\\"],\\\"no\\\":\\\"1\\\"},{\\\"商品标题\\\":\\\"商品标题\\\",\\\"no\\\":\\\"2\\\"},{\\\"商品卖点\\\":\\\"商品卖点\\\",\\\"no\\\":\\\"3\\\"},{\\\"商品描述\\\":\\\"商品描述\\\",\\\"no\\\":\\\"2\\\"},{\\\"包装清单\\\":\\\"包装清单\\\",\\\"no\\\":\\\"2\\\"},{\\\"随机结束语\\\":[\\\"1111\\\",\\\"2222\\\",\\\"33333\\\"],\\\"no\\\":\\\"2\\\"}]\";\n //System.out.println(JSONObject.);\n JSONArray objects = JSONObject.parseArray(str1);\n List<JSONObject> jsonObjects = JSONObject.parseArray(str1, JSONObject.class);\n for (JSONObject object : jsonObjects) {\n for (Map.Entry<String, Object> en : object.entrySet()) {\n System.out.println(en.getValue());\n }\n }\n\n }", "public TreeNode deserialize(String data) {\n if (data == null || data.isEmpty()) {\n return null;\n }\n\n String[] values = data.split(\",\");\n List<Integer> preorder = Arrays.stream(values)\n .map(Integer::parseInt)\n .collect(Collectors.toList());\n\n return preOrderDeserialize(preorder);\n }", "public TreeNode deserialize(String data) {\n String[] nums = data.split(\",\");\n List<String> dataNums = new ArrayList<>(Arrays.asList(nums));\n return deserializeCore(dataNums);\n }", "public TreeNode deserialize(String data) {\n String[] vals = data.split(\"\\\\,\");\n Queue<String> queue = new LinkedList<>();\n queue.addAll(Arrays.asList(vals));\n return deserialize(queue);\n }", "private static ArrayList<String> convertToStringList(JSONArray arr)\n throws JSONException {\n ArrayList<String> list = new ArrayList<String>();\n if (arr != null) {\n for (int i = 0; i < arr.length(); i++) {\n list.add(arr.getString(i));\n }\n }\n return list;\n }", "public static ArrayList<Chart> convertToCharts(ArrayList<String> chartsStrings) {\r\n ArrayList<Chart> charts = new ArrayList<>();\r\n chartsStrings.remove(0);\r\n for(String chartString : chartsStrings) {\r\n String[] parts = chartString.split(\",\");\r\n int ranks = Integer.valueOf(parts[0]);\r\n String songN = parts[1];\r\n String artist = parts[2];\r\n int views = Integer.valueOf(parts[3]);\r\n charts.add(new Chart(ranks, songN, artist, views));\r\n }\r\n\r\n//Sorting the Artist names\r\n\r\n Collections.sort(charts, new Comparator<Chart>() {\r\n @Override\r\n public int compare(Chart o1, Chart o2) {\r\n return o1.compareTo(o2);\r\n } \r\n });\r\n return charts;\r\n}", "public void parseProductFromJson(String jsonData) { \r\n\t\t \r\n Type typeList = new TypeToken<ArrayList<Product>>(){}.getType(); \r\n Gson gson = new Gson(); \r\n ArrayList<Product> products = gson.fromJson(jsonData, typeList); \r\n for(Product product:products) { \r\n System.out.println(\"name---------->\" + product.getpName()); \r\n System.out.println(\"price---------->\" + product.getpPrice()); \r\n } \r\n }", "private void parseJSON(String jsonString) {\n mChatList.clear();\n try {\n JSONObject chats = new JSONObject(jsonString);\n JSONArray items = chats.getJSONArray(\"messages\");\n for (int i = 0; i < items.length(); i++) {\n JSONObject chat = items.getJSONObject(i);\n String client = chat.getString(\"client\");\n String date = chat.getString(\"date\");\n int likes = chat.getInt(\"likes\");\n int dislikes = chat.getInt(\"dislikes\");\n String message = chat.getString(\"message\");\n String _id = chat.getString(\"_id\");\n Chat current = new Chat();\n current.setUser(client);\n current.setDate(date);\n current.setmLikes(likes);\n current.setmDislikes(dislikes);\n current.setmContent(message);\n current.set_id(_id);\n //adds new chat to the list\n mChatList.add(current);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "java.util.List<java.lang.String>\n getStrValuesList();", "protected static String createJsonArray(List<String> originalList) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n for (int i = 0; i < originalList.size(); i++) {\n sb.append(originalList.get(i));\n if (i < (originalList.size() - 1)) {\n sb.append(\", \");\n }\n }\n sb.append(\"]\");\n return sb.toString();\n }" ]
[ "0.6155943", "0.61545753", "0.586841", "0.57546985", "0.57135123", "0.5665864", "0.5655819", "0.5587524", "0.55647284", "0.5536249", "0.55158985", "0.5490712", "0.5465965", "0.5447732", "0.5441996", "0.54329586", "0.54249126", "0.5419968", "0.54087245", "0.5402065", "0.53950965", "0.5381712", "0.5370002", "0.53401923", "0.53264", "0.5293812", "0.52311575", "0.5166883", "0.5137729", "0.51125526", "0.51046646", "0.5087428", "0.50858814", "0.50537276", "0.50443476", "0.50295323", "0.5017328", "0.5014404", "0.5003623", "0.4999818", "0.49937466", "0.49801752", "0.49503505", "0.49465752", "0.49457097", "0.49428603", "0.49335814", "0.492618", "0.49193382", "0.4908298", "0.4894652", "0.488874", "0.48881346", "0.48860955", "0.48857456", "0.48722032", "0.48671034", "0.48637202", "0.48602027", "0.48486143", "0.48371655", "0.48354393", "0.483126", "0.482305", "0.48225716", "0.48119906", "0.4807421", "0.48054785", "0.4802598", "0.4798218", "0.47981513", "0.4796326", "0.47822866", "0.4776439", "0.47724125", "0.47718018", "0.47689402", "0.47624898", "0.4759946", "0.47543827", "0.47521096", "0.47520745", "0.47506133", "0.47502124", "0.47468734", "0.47281823", "0.47279146", "0.4725716", "0.47212946", "0.47108218", "0.4704573", "0.47040582", "0.46976978", "0.469511", "0.46950835", "0.4695001", "0.46861723", "0.46860653", "0.46819186", "0.46808493", "0.46793905" ]
0.0
-1
your code goes here
public static void main (String[] args) throws java.lang.Exception { Scanner sc=new Scanner(System.in); int arr[][]=new int[5][5]; for(int i=0;i<5;i++) { for(int j=0;j<5;j++) { arr[i][j]=sc.nextInt(); } } int x=0; for(int i=0;i<5;i++) { for(int j=0;j<5;j++) { if(arr[i][j]==1) x=Math.abs(i-2) +Math.abs(j-2); } } System.out.println(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void process() {\n getTelemetry().addData(\" start move\", \"BaseColor %s relic side %s\", baseColor.name(), (relicSide)?\"true\" :\"false\" );\n getTelemetry().update();\n if (JewelSensorAutoArmProcessor.JewelColor.RED.equals(baseColor)){\n if (relicSide) {\n RedRelicCorner();\n } else{\n RedNonRelicCorner();\n }\n }else{\n if (relicSide) {\n BlueRelicCorner();\n } else{\n BlueNonRelicCorner();\n }\n }\n releaseGlyph();\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n public void run() {\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void act() \n {\n setImage(new GreenfootImage(\"== Total Pembayaran ==\",50,Color.yellow,Color.black));\n }", "protected void additionalProcessing() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n protected void processLogic() {\n mBitmap = Bitmap.createBitmap(SystemUtils.getScreenWidth(), SystemUtils.getScreenHeight(), Config.ARGB_8888);\n mCanvas = new Canvas(mBitmap);\n mCanvas.drawColor(Color.WHITE);\n ivGraffit.setImageBitmap(mBitmap);\n mPaint = new Paint();\n mPaint.setColor(Color.GREEN);\n // 设置线宽\n mPaint.setStrokeWidth(15);\n mPaint.setAntiAlias(true);\n\n }", "public void logic(){\r\n\r\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void foundationGrab(){\n\n }", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "protected void execute() {\n\n\n \n }", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "public void perder() {\n // TODO implement here\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif(isRecognition) {\n\t\t\t\t\t\t\talpha *= 0.95f;\n//\t\t\t\t\t\t\tsetBackgroundColor((int) (255 * (1 - label) * alpha));\n\t\t\t\t\t\t\ttxtHandParts.setTextColor(Color.argb((int) (alpha * 255), 255,\n\t\t\t\t\t\t\t\t\t255, 255));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(alpha > 0.1f) {\n\t\t\t\t\t\t\t\tLog.d(LOGTAG, (int) (255 * (1 - label) * alpha)+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "@Override\n public void execute() {\n \n \n }", "private void performOCR(){\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "public void run() {\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "protected void display() {\n\r\n\t}", "public void run() {\n barcodeInfo.setText( // Update the TextView\n barcodes.valueAt(0).displayValue\n );\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n private void prepare(){\n mPaint = new Paint();\n mMatrix = new Matrix();\n //Only Android.LOLLIPOP and upper level device can use this builder\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n mAnchorInfoBuilder = new CursorAnchorInfo.Builder();\n }\n mPaint.setAntiAlias(true);\n setTextSize(DEFAULT_TEXT_SIZE);\n mColors = new ColorScheme(this);\n mEventHandler = new EventHandler(this);\n mBasicDetector = new GestureDetector(getContext(), mEventHandler);\n mBasicDetector.setOnDoubleTapListener(mEventHandler);\n mScaleDetector = new ScaleGestureDetector(getContext(), mEventHandler);\n mViewRect = new Rect(0, 0, 0, 0);\n mRect = new RectF();\n mInsertHandle = new RectF();\n mLeftHandle = new RectF();\n mRightHandle = new RectF();\n mVerticalScrollBar = new RectF();\n mHorizontalScrollBar = new RectF();\n mDividerMargin = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 2, Resources.getSystem().getDisplayMetrics());\n mDividerWidth = mDividerMargin;\n mUnderlineWidth = mDividerMargin;\n mInsertSelWidth = mDividerWidth / 2;\n mDpUnit = mInsertSelWidth;\n mLineNumberAlign = Paint.Align.RIGHT;\n mTypefaceLineNumber = Typeface.MONOSPACE;\n mTypefaceText = Typeface.DEFAULT;\n mChars = new char[256];\n mEditable = true;\n mScale = true;\n mDrag = false;\n mWait = false;\n mPaintLabel = true;\n mDisplayLnPanel = true;\n mBlockLineWidth = 2;\n mInputMethodManager = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n mClipboardManager = Clipboard.getClipboard(getContext());\n setUndoEnabled(true);\n mTabWidth = 4;\n mAutoIndent = true;\n mCursorPosition = -1;\n mHighlightCurrentBlock = true;\n setFocusable(true);\n setFocusableInTouchMode(true);\n mConnection = new RoseEditorInputConnection(this);\n mACPanel = new AutoCompletePanel(this);\n mTextActionPanel = new TextComposePanel(this);\n mTextActionPanel.setHeight((int)(mDpUnit * 60));\n mTextActionPanel.setWidth((int)(mDpUnit * 230));\n setEditorLanguage(null);\n setText(null);\n }", "public void run() {\n\t\t\t\t\t\t}", "@Override\n public void run(){\n }", "public void working()\n {\n \n \n }", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\n public void update() {\n \n }", "@Override\n\tpublic void render () {\n\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t}", "@Override\n\tpublic void postRun() {\n\t}", "void dynamicRendering();", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }", "public void run() {\n scroolViewScanner.setBackgroundColor(Color.TRANSPARENT);\n scroolViewDefect.setBackgroundColor(Color.TRANSPARENT);\n linLayOverView.setBackgroundColor(Color.TRANSPARENT);\n }", "@Override\r\n\tpublic void carDashboar() {\n\t\t\r\n\t}", "Lab refresh();", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void run() {\n\r\n\t\t\t\t}", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "public void run() {\n \t\t\t\t\tCaesarJContentOutlinePage.updateAll(projectProperties);\n \t\t\t\t\tCaesarHierarchyView.updateAll(projectProperties);\n \t\t\t\t}", "public void applyHorn() {\n\t\t\r\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\t\t\t\t\t\n\t}" ]
[ "0.57286084", "0.5721873", "0.5685595", "0.5611692", "0.5611692", "0.5596448", "0.5573983", "0.555654", "0.55509007", "0.5543824", "0.551758", "0.55170584", "0.54959154", "0.5489394", "0.54819673", "0.54768246", "0.5474171", "0.5460018", "0.5460018", "0.5429363", "0.5428646", "0.54283154", "0.54283154", "0.541461", "0.5411783", "0.5410482", "0.53918415", "0.5379273", "0.5363022", "0.53501576", "0.53462136", "0.53427184", "0.53330284", "0.532736", "0.5319406", "0.5315432", "0.5315216", "0.53146106", "0.5302243", "0.52791643", "0.5279044", "0.5279044", "0.52767205", "0.52767205", "0.527336", "0.52679497", "0.52531403", "0.52529657", "0.52431345", "0.52414435", "0.5220158", "0.5218579", "0.52170736", "0.52160937", "0.5210547", "0.5204687", "0.52023476", "0.5198065", "0.5194577", "0.5189807", "0.5187555", "0.51874787", "0.5185333", "0.51851445", "0.5184791", "0.51797056", "0.51786095", "0.5177583", "0.51767206", "0.51735455", "0.5169091", "0.5153236", "0.51520395", "0.51506615", "0.515015", "0.515015", "0.515015", "0.515015", "0.515015", "0.515015", "0.515015", "0.515015", "0.515015", "0.5147369", "0.51396936", "0.5135886", "0.5135886", "0.5135491", "0.5135359", "0.5130127", "0.51216716", "0.5116662", "0.5116662", "0.5115811", "0.5113488", "0.51078635", "0.51032346", "0.51016355", "0.5100951", "0.5100951", "0.50996083" ]
0.0
-1
Perform this operation on the given arguments.
void accept(A a, B b, C c);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Value apply(List<Value> args, Node location);", "public Object call(Object[] args) {\r\n return invoke(args);\r\n }", "protected abstract Value execute(final State state, final HashMap<ParameterDef, Value> args) throws SetlException;", "T call( @Nonnull final Object... args );", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "protected void doExecute(String[] arguments, ContextStatus contextStatus) {\n // no action to do\n }", "@Override\n public void execute(String[] args) {\n\n }", "private static void process(String... args) throws Exception {\n Deque<String> params = new LinkedList<>(Arrays.asList(args));\n String command = params.pop().toUpperCase(Locale.ROOT);\n valueOf(command).run(params);\n }", "public static void handleArguments(String[] args, EquationManipulator manipulator) {\n \n // Grab the arguments\n Fraction firstFraction = manipulator.getFraction(args[0]);\n String operator = args[1];\n Fraction secondFraction = manipulator.getFraction(args[2]);\n \n // Perform the operation and get the results\n Fraction result = manipulator.performOperation(firstFraction, secondFraction, operator);\n \n // Report the result to the user\n printResult(result);\n }", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "void exec(Env e, AST[] args) { throw H2O.unimpl(\"No exec method for `\" + this.opStr() + \"` during `apply` call\"); }", "public void execute (T target);", "public abstract String run(String args);", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "@Override\n\tpublic void execute(String[] params) {\n\n\t}", "public boolean execute(String[] args);", "public static void main(String[] args) {\n if (args[0].equals(\"-\")) {\n transform();\n }\n else if (args[0].equals(\"+\")) {\n inverseTransform();\n }\n }", "abstract public void execute(Parameters p);", "public static void main(String[] args) {\n if (args[0].equals(\"-\")) transform();\n else if (args[0].equals(\"+\")) inverseTransform();\n else throw new IllegalArgumentException(\"Illegal Argument!\");\n }", "@Override public void run(ApplicationArguments args) {\n }", "public Object invoke( Object[] args )\n {\n return invokeFromBytecode(args);\n }", "public Object apply(List<Object> args) {\n Integer s = (Integer)args.get(1);\n Integer e = (Integer)args.get(2);\n int start = s.intValue();\n int end = e.intValue(); \n Engine.Sequence<?> arg1 = ((Engine.Sequence<?>)args.get(0));\n Engine.Sequence<Item> result = new Engine.Sequence<Item>();\n\n for( int i = start - 1; i < end; i++ ){\n result.add((Item)arg1.get(i) );\n }\n return result;\n }", "public static void main(String[] args)\r\n {\r\n \t\r\n \tif (args[0].equals(\"-\"))\r\n \t\ttransform();\r\n \tif (args[0].equals(\"+\"))\r\n \t\tinverseTransform();\r\n\r\n\r\n }", "public static InvocationExpression invoke(Expression expression, Iterable<Expression> arguments) { throw Extensions.todo(); }", "public Object invoke(String name, Object... args) throws Exception;", "@Override\n\tpublic int execute(String args) {\n\t\treturn 0;\n\t}", "protected void execute() {}", "public Object call(Context cx, Scriptable scope, Scriptable thisObj,\n Object[] args);", "static ProcessRunner execute(String... arguments) {\n return ProcessRunnerImpl.execute(null, arguments);\n }", "public static void main(String[] args) {\r\n \tif (args.length > 0) {\r\n \t\tString operator = args[0];\r\n \t\tif (operator.equals(\"-\")) {\r\n \t\t\ttransform();\r\n \t\t} else if (operator.equals(\"+\")) {\r\n \t\t\tinverseTransform();\r\n \t\t} else {\r\n \t\t\tthrow new IllegalArgumentException();\r\n \t\t}\r\n \t}\r\n }", "String execute(String... parameters);", "@Override\n public void run(ApplicationArguments args) {\n }", "public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}", "@Override\n public void execute(final OperationParams params) throws Exception {\n if (parameters.size() != 2) {\n throw new ParameterException(\"Requires arguments: <input store name> <output store name>\");\n }\n computeResults(params);\n }", "@Override\n public void run(final ApplicationArguments args) throws Exception {\n }", "@Override\n\tpublic void execute(TridentTuple arg0, TridentCollector arg1) {\n\n\t}", "public static void main(String[] args) {\n if (args[0].equals(\"-\")) transform();\n else if (args[0].equals(\"+\")) inverseTransform();\n else throw new IllegalArgumentException(\"Illegal command line argument\");\n }", "protected abstract void execute(INPUT input);", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "public void apply();", "public void apply();", "public void apply();", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "void execute(Integer num1, Integer num2);", "public static void main(String[] args) {\r\n\t\tcalculateSum(3.4, 1.8);\r\n\t\tcalculation(2, 3);\r\n\t\tcalculation(2, 3, 4);\r\n\t\tcalculation(5, \"7\");\r\n\t\t\r\n\t\t// If you change the number of parameters, or the data type of parameters\r\n\t}", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\n public void process(Object[] args) throws HiveException {\n \n }", "@Override\r\n\tpublic void process(ResultItems arg0, Task arg1) {\n\t\t\r\n\t}", "protected abstract void execute();", "public Object proceed(Object[] args) throws Throwable;", "public static void main(String[] args) {\n\t\tLogger root=Logger.getRootLogger();\r\n\t\troot.setLevel(Level.DEBUG);\r\n\t//\tSystem.out.println(root);\r\n\t\tlog.info(\"Main Started\");\r\n\t\tlog.debug(\"No Values as CommandLineArgument :\"+args.length);\r\n\t\tfor(int i=0;i<2;i++){\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(5000);\r\n\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(args.length==0){\r\n\t\t\tlog.warn(\"No CommmandLineArgument Specified Please Specify valid value\");\r\n\t\t}\r\n\t\t\r\n\t\tlog.debug(\"1st CLA value in Main :\"+args[0]);\r\n\t\t\r\n\t\tlog.debug(\"2nd CLA value in Main :\"+args[1]);\r\n\t\t\r\n\t\tlog.info(\"Creating SunnyOperator \");\r\n\t\t\r\n\t\tSunnyOperator op=new SunnyOperator();\r\n\t\tlog.info(\"SunnyOperator object is Created\");\r\n\t\t\r\n\t\tint remd=op.getRemainder(args[0], args[1]);\r\n\t\tSystem.out.println(\"Remainder in main method() :\"+remd);\r\n\t\t\r\n\t\tlog.info(\"Main Completed\");\r\n\t}", "protected void execute() {\r\n }", "public PrimObject perform(PrimObject arg1, String selector) {\n return perform0(selector, arg1);\n }", "public abstract void execute(CommandSender sender, String[] args);", "public abstract Object execute(Class clazz, Object[] args) throws IOException;", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n\n\t}", "protected void execute() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tdoOperation(\"Ramya\", \"Add\");\r\n\t\tdoOperation(\"Ramya\", \"Replace\");\r\n\t\tdoOperation(\"Ramya\", \"Remove\");\r\n\t\tdoOperation(\"ramya\", \"Change\");\r\n\r\n\t}", "public static void main(String[] args) {\n\n\n Operation operationAdd = OperationFactory.createOperation(\"+\");\n operationAdd.setValue1(10);\n operationAdd.setValue2(5);\n System.out.println(operationAdd.getResult());\n }", "public static void main(String[] args) {\n ExecuteParams executeParams1 = new ExecuteParams();\n ExecuteParams executeParams2 = new ExecuteParams();\n ExecuteParams executeParams30 = new ExecuteParams();\n ExecuteParams executeParams31 = new ExecuteParams();\n ExecuteParams executeParams32 = new ExecuteParams();\n ExecuteParams executeParams33 = new ExecuteParams();\n ExecuteParams executeParams34 = new ExecuteParams();\n ExecuteParams executeParams41 = new ExecuteParams();\n\n //*** PARAMS\n executeParams1.DeviationPredictor_CosineMetric();\n executeParams2.DeviationPredictor_PearsonMetric();\n executeParams30.DeviationPredictor_PearsonSignifianceWeightMetric(1);\n executeParams31.DeviationPredictor_PearsonSignifianceWeightMetric(5);\n executeParams32.DeviationPredictor_PearsonSignifianceWeightMetric(50);\n executeParams33.DeviationPredictor_PearsonSignifianceWeightMetric(100);\n executeParams34.DeviationPredictor_PearsonSignifianceWeightMetric(200);\n executeParams41.DeviationPredictor_JaccardMetric();\n //***\n\n computeOne(executeParams1);\n computeOne(executeParams2);\n computeOne(executeParams30,\"N = 1\");\n computeOne(executeParams31,\"N = 5\");\n computeOne(executeParams32,\"N = 50\");\n computeOne(executeParams33,\"N = 100\");\n computeOne(executeParams34,\"N = 200\");\n computeOne(executeParams41);\n }", "@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}", "public void run(Object options);", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "protected void execute()\n {\n }", "public void run(String[] args) throws Exception\n {\n ArgParser parser = new ArgParser(args);\n determineEvalMethod(parser);\n }", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, String selector) {\n return perform0s(selector, arg1, arg2, arg3);\n }", "@Override\n\t\tpublic int run(String[] arg0) throws Exception {\n\t\t\treturn 0;\n\t\t}", "public void execute() {\r\n\t\r\n\t}", "public HDInsightSparkActivity setArguments(List<Object> arguments) {\n this.arguments = arguments;\n return this;\n }", "public PluginResult performAction(Map<String, String> args) {\n\t\tFile file = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"FilePath : \"+args.get(AttPluginConstants.ARG_FILEPATH));\n\t\t\tfile = AttPluginUtils.getFile(args.get(AttPluginConstants.ARG_FILEPATH));\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new PluginResult(PluginResult.Status.ERROR, AttPluginUtils.prepareMessage(AttPluginConstants.ERR_FILE_NA_CODE, AttPluginConstants.ERR_FILE_NA_MSG));\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn new PluginResult(PluginResult.Status.ERROR, AttPluginUtils.prepareMessage(AttPluginConstants.ERR_PROCESS_AUDIO_CODE, AttPluginConstants.ERR_PROCESS_AUDIO_MSG));\n\t\t}\n\n\t\t// Http Processing\n\t\tDefaultHttpClient httpclient = new DefaultHttpClient();\n\n\t\tboolean isChunked=false;\n\t\tString transferEncoding=args.get(AttPluginConstants.ARG_HEADER_TRANSFER_ENCODING);\n\t\tif(transferEncoding!=null && transferEncoding.equalsIgnoreCase(AttPluginConstants.VAL_TRANSFER_ENCODING_CHUNKED))\n\t\t{\n\t\t\tisChunked=true;\n\t\t}\n\t\t\n\t\tHttpPost httppost = AttPluginUtils.prepareRequest(file, args.get(AttPluginConstants.ARG_URL),isChunked);\n\n\t\thttppost.addHeader(\"Authorization\", args.get(AttPluginConstants.ARG_TOKEN));\n\t\thttppost.addHeader(\"Accept\", args.get(AttPluginConstants.ARG_HEADER_ACCEPT));\n\n\t\tif (args.containsKey(AttPluginConstants.ARG_HEADER_CONTENT_TYPE)) {\n\t\t\thttppost.addHeader(\"Content-Type\", args.get(AttPluginConstants.ARG_HEADER_CONTENT_TYPE));\n\t\t}\n\n\t\tif (args.containsKey(AttPluginConstants.ARG_HEADER_XSPEECH_CONTEXT)) {\n\t\t\thttppost.addHeader(\"X-SpeechContext\", args.get(AttPluginConstants.ARG_HEADER_XSPEECH_CONTEXT));\n\t\t}\n\t\t\n\t\tif(args.get(AttPluginConstants.ARG_HEADER_XSPEECH_CONTEXT).equalsIgnoreCase(\"Generic\")){\n\t\t\tif (args.containsKey(AttPluginConstants.ARG_CONTENT_LANGUAGE)) {\n\t\t\t\thttppost.addHeader(\"Content-Language\", args.get(AttPluginConstants.ARG_CONTENT_LANGUAGE));\n\t\t\t}\n\t\t}else{\n\t\t\tif(args.containsKey(AttPluginConstants.ARG_XARG)){\n\t\t\t\thttppost.addHeader(\"X-Arg\", args.get(AttPluginConstants.ARG_XARG));\n\t\t\t}\n\t\t}\n\n\t\tif (args.containsKey(AttPluginConstants.ARG_HEADER_CONTENT_LENGTH)) {\n\t\t\thttppost.addHeader(\"Content-Length\", args.get(AttPluginConstants.ARG_HEADER_CONTENT_LENGTH));\n\t\t}\n\n\t\tif (args.containsKey(AttPluginConstants.ARG_HEADER_TRANSFER_ENCODING)) {\n\t\t\thttppost.addHeader(\"Transfer-Encoding\", args.get(AttPluginConstants.ARG_HEADER_TRANSFER_ENCODING));\n\t\t}\n\t\t\n\t\tString result = null;\n\t\ttry {\n\t\t\tresult = AttPluginUtils.processResponse(httpclient.execute(httppost));\n\t\t\tSystem.out.println(\"result : \"+result);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tString message = null;\n\t\t\tString code = null;\n\t\t\tif (e.equals(AttPluginConstants.ERR_INV_STATUS_MSG)) {\n\t\t\t\tcode = AttPluginConstants.ERR_INV_STATUS_CODE;\n\t\t\t\tmessage = AttPluginConstants.ERR_INV_STATUS_MSG;\n\t\t\t} else {\n\t\t\t\tcode = AttPluginConstants.ERR_PROCESS_REQ_CODE;\n\t\t\t\tmessage = AttPluginConstants.ERR_PROCESS_REQ_MSG;\n\t\t\t}\n\t\t\treturn new PluginResult(PluginResult.Status.ERROR, AttPluginUtils.prepareMessage(code, message));\n\t\t} finally {\n\t\t\targs.clear();\n\t\t\targs = null;\n\t\t}\n\n\t\treturn new PluginResult(PluginResult.Status.OK, result);\n\t}", "public static InvocationExpression invoke(Expression expression, Expression arguments[]) { throw Extensions.todo(); }", "public Object invokeArrayArgs(String name, Object[] argsArray) throws Exception;", "abstract protected Object invoke0 (Object obj, Object[] args);", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "public void run(String... args) throws Exception {\n\t\t\t\t\n\t}", "public Object call(Context cx, Scriptable xxx, Scriptable thisObj, Object[] args) {\n\t\t\t Object newValue = args[0];\n\t\t\t valueStorage = newValue;\n\t\t\t finalTarget.put(finalTargetProp, scope, newValue);\n\t\t\t return null;\n\t\t\t}", "void execute();", "void execute();", "void execute();", "void execute();" ]
[ "0.62746876", "0.6247584", "0.6173091", "0.60734004", "0.6060834", "0.6060053", "0.6051122", "0.5947386", "0.5888166", "0.5868837", "0.58635515", "0.5843392", "0.58252144", "0.5817564", "0.5810864", "0.57756054", "0.57631814", "0.5754605", "0.5752026", "0.574921", "0.57487464", "0.57188475", "0.5714376", "0.57091546", "0.5688049", "0.5682287", "0.56807953", "0.5664415", "0.5625825", "0.5613156", "0.5601857", "0.5597316", "0.5577163", "0.5574327", "0.5556776", "0.55404377", "0.5539797", "0.5522473", "0.55211943", "0.55211943", "0.55211943", "0.55211943", "0.55209357", "0.55209357", "0.55209357", "0.55196756", "0.55196756", "0.5508667", "0.55062944", "0.5505364", "0.55032223", "0.5492825", "0.5492445", "0.5491232", "0.5484447", "0.54669213", "0.54606056", "0.5459", "0.544661", "0.5439195", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437715", "0.5437265", "0.5435837", "0.54311764", "0.54183376", "0.5417909", "0.53993386", "0.53956956", "0.5389199", "0.5389199", "0.53888416", "0.53868306", "0.53793085", "0.53793085", "0.53793085", "0.53660285", "0.5366", "0.53593075", "0.53588843", "0.5358509", "0.53570557", "0.5353986", "0.5349075", "0.5348331", "0.53454226", "0.53440493", "0.5335011", "0.5335011", "0.5335011", "0.5335011" ]
0.0
-1
TODO Autogenerated method stub
@Override public Product SelectById(int id) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { File file = new File("testeArquivo.txt"); file.createNewFile(); FileWriter writer = new FileWriter(file); writer.write("Arquivo criado"); writer.flush(); writer.close(); FileReader fr = new FileReader(file); char [] a = new char[50]; fr.read(a); for(char c : a){ System.out.println(c); } fr.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
generates a random ChartData object with just one DataSet
private BarData generateDataBar() { ArrayList<BarEntry> entries = new ArrayList<>(); for (int i = 0; i < 12; i++) { entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30)); } BarDataSet d = new BarDataSet(entries, "New DataSet 1"); // 设置相邻的柱状图之间的距离 d.setColors(ColorTemplate.VORDIPLOM_COLORS); // 设置高亮的透明度 d.setHighLightAlpha(255); BarData cd = new BarData(d); cd.setBarWidth(0.9f); return cd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "public DataSetMember<t> getRandomMember()\n\t{\n\t\tRandom R = new Random();\n\t\tint i = R.nextInt(_data.size());\n\t\treturn _data.get(i);\n\t}", "private DefaultPieDataset getChartDataset() {\n if (this.pieDataset == null) {\n pieDataset = new DefaultPieDataset();\n List<String> model = this.handler.getSchema();\n model.stream().forEach((key) -> {\n pieDataset.setValue(key, 0d);\n });\n }\n return pieDataset;\n }", "private DataSet normalDataSet(){\n //create normal distribution with mean .05 and sd .05/3 so that 99.7% of events are < .1\n NormalDistribution normalDistribution = new NormalDistribution(TARGET_MEAN, TARGET_MEAN/3D);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, normalDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "private PieData generateDataPie(int cnt) {\n\n ArrayList<PieEntry> entries = new ArrayList<PieEntry>();\n\n for (int i = 0; i < 4; i++) {\n entries.add(new PieEntry((float) ((Math.random() * 70) + 30), \"Quarter \" + (i+1)));\n }\n\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n PieData cd = new PieData(d);\n return cd;\n }", "private DataSet caucyDataSet(){\n CauchyDistribution cauchyDistribution = new CauchyDistribution(TARGET_MEAN, TARGET_MEAN/10);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, cauchyDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "private XYMultipleSeriesDataset getdemodataset() {\n\t\t\tdataset1 = new XYMultipleSeriesDataset();// xy轴数据源\n\t\t\tseries = new XYSeries(\"温度 \");// 这个事是显示多条用的,显不显示在上面render设置\n\t\t\t// 这里相当于初始化,初始化中无需添加数据,因为如果这里添加第一个数据的话,\n\t\t\t// 很容易使第一个数据和定时器中更新的第二个数据的时间间隔不为两秒,所以下面语句屏蔽\n\t\t\t// 这里可以一次更新五个数据,这样的话相当于开始的时候就把五个数据全部加进去了,但是数据的时间是不准确或者间隔不为二的\n\t\t\t// for(int i=0;i<5;i++)\n\t\t\t// series.add(1, Math.random()*10);//横坐标date数据类型,纵坐标随即数等待更新\n\n\t\t\tdataset1.addSeries(series);\n\t\t\treturn dataset1;\n\t\t}", "ArrayList<JFreeChart> generateAll();", "private LineData generateDataLine(int cnt) {\n\n ArrayList<Entry> e1 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e1.add(new Entry(i, (int) (Math.random() * 65) + 40));\n }\n\n LineDataSet d1 = new LineDataSet(e1, \"New DataSet \" + cnt + \", (1)\");\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n d1.setHighLightColor(Color.rgb(244, 117, 117));\n d1.setDrawValues(false);\n\n ArrayList<Entry> e2 = new ArrayList<Entry>();\n\n for (int i = 0; i < 12; i++) {\n e2.add(new Entry(i, e1.get(i).getY() - 30));\n }\n\n LineDataSet d2 = new LineDataSet(e2, \"New DataSet \" + cnt + \", (2)\");\n d2.setLineWidth(2.5f);\n d2.setCircleRadius(4.5f);\n d2.setHighLightColor(Color.rgb(244, 117, 117));\n d2.setColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setCircleColor(ColorTemplate.VORDIPLOM_COLORS[0]);\n d2.setDrawValues(false);\n\n ArrayList<ILineDataSet> sets = new ArrayList<ILineDataSet>();\n sets.add(d1);\n sets.add(d2);\n\n LineData cd = new LineData(sets);\n return cd;\n }", "private BarData generateDataBar(int cnt) {\n\n ArrayList<BarEntry> entries = new ArrayList<BarEntry>();\n\n for (int i = 0; i < 12; i++) {\n entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30));\n }\n\n BarDataSet d = new BarDataSet(entries, \"New DataSet \" + cnt);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n return cd;\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private static XYDataset createDataset(Double[] x, Double[] y) {\n\t\tlogger.info(\"Creating Dataset\");\n\t\tXYSeries s1 = new XYSeries(Double.valueOf(1));\n\t\tif (x.length != y.length) {\n\t\t\tlogger.error(\"Error in createDataset of ScatterDialog. \" +\n\t\t\t\t\t\"Could not create a dataset for the scatter plot -- missing data\");\n\t\t\treturn null;\n\t\t}\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (y[i] != null) {\n\t\t\t\ts1.add(x[i], y[i]);\n\t\t\t}\n\t\t}\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\tdataset.addSeries(s1);\n\t\treturn dataset;\n\t}", "@DataProvider(name = \"getRandomData\")\r\n\r\n\tpublic Object[][] getData() {\r\n\r\n\t\tString workingdirectory = System.getProperty(\"user.dir\");\r\n\r\n\t\tLinkedHashMap<String, Integer> colNameToLocation = new LinkedHashMap<String, Integer>();\r\n\r\n\t\tString s[][] = utility.getDataFromCSV(workingdirectory + \"\\\\products.csv\", colNameToLocation);// from\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// utility\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// total\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// no\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// data\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// through\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// object\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// s\r\n\r\n\t\tString random[][] = null;\r\n\r\n\t\tif (isTotalCount) // this is the boolean value declared in the basetest\r\n\r\n\t\t\trandom = utility.getRandomNoFromCSV(s, s.length, colNameToLocation);\r\n\r\n\t\telse\r\n\r\n\t\t\trandom = utility.getRandomNoFromCSV(s, count, colNameToLocation);\r\n\r\n\t\treturn random;// here it stores the no of input from the testsuite file\r\n\t\t\t\t\t\t// i.e the user input\r\n\r\n\t}", "public void generateData()\n {\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "@Test\n public void test64() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CategoryDataset categoryDataset0 = categoryPlot0.getDataset(557);\n }", "private void setData(int count) {\n\n int goalValue = mSharedPreferences.getData(PREF_GOAL_VALUE);\n Log.e(TAG, \"setData: \" + goalValue);\n\n ArrayList<Entry> values = new ArrayList<>();\n values.add(new Entry(0, 0));\n for (int i = 1; i < count; i++) {\n\n float val = (float) (Math.random() * 10) + values.get(i-1).getY();\n Log.e(TAG, \"val 1: \" + val);\n\n if(val >= goalValue) val = goalValue;\n Log.e(TAG, \"val 2: \" + val);\n\n values.add(new Entry(i, val));\n }\n\n LineDataSet lineDataSet;\n\n if (mChart.getData() != null &&\n mChart.getData().getDataSetCount() > 0) {\n lineDataSet = (LineDataSet)mChart.getData().getDataSetByIndex(0);\n lineDataSet.setValues(values);\n mChart.getData().notifyDataChanged();\n mChart.notifyDataSetChanged();\n } else {\n // create a dataset and give it a type\n lineDataSet = new LineDataSet(values, \"\");\n\n lineDataSet.setColor(ContextCompat.getColor(getContext(), R.color.green));\n lineDataSet.setCircleColor(ContextCompat.getColor(getContext(), R.color.green));\n lineDataSet.setDrawIcons(false);\n lineDataSet.setLineWidth(2f);\n lineDataSet.setCircleRadius(1f);\n lineDataSet.setDrawCircleHole(false);\n lineDataSet.setDrawFilled(true);\n lineDataSet.disableDashedLine();\n\n mChart.setDescription(new Description()); // Hide the description\n mChart.getAxisLeft().setDrawGridLines(false);\n mChart.getAxisLeft().setDrawLabels(false);\n mChart.getAxisRight().setDrawGridLines(false);\n mChart.getAxisRight().setDrawLabels(false);\n mChart.getXAxis().setDrawGridLines(false);\n mChart.getXAxis().setDrawLabels(false);\n mChart.getLegend().setEnabled(false);\n\n lineDataSet.setDrawValues(false);\n\n if (Utils.getSDKInt() >= 18) {\n // fill drawable only supported on api level 18 and above\n final Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.ic_add_black_24dp);\n lineDataSet.setFillDrawable(drawable);\n }\n else {\n lineDataSet.setFillColor(Color.BLACK);\n }\n\n\n ArrayList<Entry> values2 = new ArrayList<>();\n values2.add(new Entry(values.get(20).getX(), values.get(20).getY()));\n for (int i = 29; i >= 20; i--) {\n\n float val = (float) (Math.random() * 10) + values.get(i).getY();\n\n Log.d(TAG, \"Golden Values : \" + val);\n values2.add(new Entry(values.get(20).getX() + i, val));\n }\n\n LineDataSet lineDataSet2;\n\n lineDataSet2 = new LineDataSet(values2, \"Predicted\");\n\n lineDataSet2.setColor(ContextCompat.getColor(getContext(), R.color.colorOppositePrimary));\n lineDataSet2.setCircleColor(ContextCompat.getColor(getContext(), R.color.colorOppositePrimary));\n lineDataSet2.setDrawIcons(false);\n lineDataSet2.setLineWidth(2f);\n lineDataSet2.setCircleRadius(1f);\n lineDataSet2.setDrawCircleHole(false);\n lineDataSet2.setDrawFilled(true);\n lineDataSet2.disableDashedLine();\n\n lineDataSet2.setDrawValues(false);\n\n if (Utils.getSDKInt() >= 18) {\n // fill drawable only supported on api level 18 and above\n final Drawable drawable = ContextCompat.getDrawable(getContext(), R.drawable.ic_add_black_24dp);\n lineDataSet2.setFillDrawable(drawable);\n }\n else {\n lineDataSet2.setFillColor(Color.BLACK);\n }\n\n final ArrayList<ILineDataSet> dataSets = new ArrayList<>();\n dataSets.add(lineDataSet); // add the datasets\n// dataSets.add(lineDataSet2);\n\n // create a data object with the datasets\n final LineData data = new LineData(lineDataSet/*, lineDataSet2*/);\n\n // set data\n mChart.setData(data);\n\n// final ArrayList<ILineDataSet> dataSets2 = new ArrayList<>();\n// dataSets.add(lineDataSet2); // add the datasets\n\n // create a data object with the datasets\n// final LineData data2 = new LineData(dataSets2);\n// mChart.setData(data2);\n }\n }", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "private PieData generateDataPie() {\n\n ArrayList<PieEntry> entries = new ArrayList<>();\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n TransactionBeans transactionBeans = transactionDB.getTransactionRecordsYear(month1,year);\n if(transactionBeans!=null) {\n float income = 0;\n float expense = 0;\n try{\n income = (float) (Double.parseDouble(transactionBeans.getIncome()));\n }catch(Exception e){\n income = 0;\n }\n try{\n expense = (float) (Double.parseDouble(transactionBeans.getExpense()));\n }catch(Exception e){\n expense = 0;\n }\n entries.add(new PieEntry(income, \"Income \"));\n entries.add(new PieEntry(expense, \"Expense \"));\n }\n PieDataSet d = new PieDataSet(entries, \"\");\n\n // space between slices\n d.setSliceSpace(2f);\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n\n return new PieData(d);\n }", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "private RandomData() {\n initFields();\n }", "private XYDataset createSampleDataset(GradientDescent gd) {\n XYSeries predictedY = new XYSeries(\"Predicted Y\");\n XYSeries actualY = new XYSeries(\"Actual Y\");\n List<BigDecimal> xValues = gd.getInitialXValues();\n List<BigDecimal> yPred = gd.getPredictedY(xValues);\n List<BigDecimal> yActual = gd.getInitialYValues();\n for (int cont = 0; cont < xValues.size(); cont++){\n \tpredictedY.add(xValues.get(cont), yPred.get(cont));\n \tSystem.out.println(\"pred: \" + xValues.get(cont) + \", \" + yPred.get(cont));\n \tactualY.add(xValues.get(cont), yActual.get(cont));\n \tSystem.out.println(\"actual: \" + xValues.get(cont) + \", \" + yActual.get(cont));\n\t\t}\n XYSeriesCollection dataset = new XYSeriesCollection();\n dataset.addSeries(predictedY);\n dataset.addSeries(actualY);\n return dataset;\n }", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "public void createOnce(){\n\n //Entry\n entries = new ArrayList<Entry>();\n\n //ArrayList of LineData\n lineDatas = new ArrayList<LineData>();\n\n //LineDataSet :\n dataSets = new ArrayList<LineDataSet>();\n\n\n for (int x=0; x<graphsData.size(); x++){\n\n dataSets.add(new LineDataSet(new ArrayList<Entry>(),\"Data in \" + graphsData.get(x).getMonth()));\n\n for(int i=0; i<graphsData.get(x).getMonthList().size(); i++){\n dataSets.get(x).addEntry(new Entry(i, graphsData.get(x).getMonthList().get(i).getAverage()));\n dataSets.get(x).getEntryForIndex(i).setIcon(ContextCompat.getDrawable(context,R.drawable.screen));\n }\n\n dataSets.get(x).setColor(Color.rgb(0,187,207));\n\n lineDatas.add(new LineData(dataSets.get(x)));\n\n chart.notifyDataSetChanged();\n chart.invalidate();\n\n }\n\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"[email protected]\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "public DataSet() {\r\n \r\n }", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "private static PieDataset createDataset(double total, double avild) {\n DefaultPieDataset dataset = new DefaultPieDataset();\n double favild = (int)(avild/total*100);\n double fused = (int)(100-favild);\n dataset.setValue(\"Used\", new Double(fused));\n dataset.setValue(\"Avail\", new Double(favild));\n return dataset; \n }", "private XYDataset createDataset(String WellID, String lang) {\n final TimeSeries eur = createEURTimeSeries(WellID, lang);\n final TimeSeriesCollection dataset = new TimeSeriesCollection();\n dataset.addSeries(eur);\n return dataset;\n }", "private XYChart.Series<Number, Number> getFortySeries() {\n //Create new series\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(\"Chemical Concentration\");\n Random rand = new Random();\n int c = 5; // Constant for x-axis scale\n for (int i = 0; i < 17; i++) {\n int y = rand.nextInt() % 5 + 10;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n series.getData().add(new XYChart.Data<>(17 * c, 17));\n series.getData().add(new XYChart.Data<>(18 * c, 21));\n series.getData().add(new XYChart.Data<>(19 * c, 40));\n series.getData().add(new XYChart.Data<>(20 * c, 39));\n series.getData().add(new XYChart.Data<>(21 * c, 36));\n series.getData().add(new XYChart.Data<>(22 * c, 21));\n\n for (int i = 23; i < 30; i++) {\n int y = rand.nextInt() % 5 + 10;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n return series;\n }", "private PieData setPieData(PieDataSet dataSet) {\n PieData pieData = new PieData(dataSet);\n pieData.setValueTextSize(10f);\n\n return pieData;\n }", "public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "DataPointType createDataPointType();", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "private XYSeries createSeries() {\r\n return createSeries(0);\r\n }", "public void generateRandomVaraibles() {\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (!var.getType().equals(\"LOCAL_DATA\") && !var.getType().equals(\"OUTPUT_DATA\")) {\r\n\t\t\t\tif (var.getType().equals(\"boolean\") || var.getType().equals(\"Boolean\")) {\r\n\t\t\t\t\tvar.setValue(String.valueOf(getRandomBoolean()));\r\n\r\n\t\t\t\t} else if (var.getType().equals(\"int\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(Integer.parseInt(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(0, 100)));\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (var.getType().equals(\"double\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(Double.parseDouble(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tDouble.parseDouble(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(0.0, 100.0)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void shuffle(ArrayList<Product> dataSet) {\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tint k = rand(0, i);\n\t\t\tProduct temp = dataSet.get(k);\n\t\t\tdataSet.set(k, dataSet.get(i));\n\t\t\tdataSet.set(i, temp);\n\t\t}\t\n\t}", "public void setLineData(ArrayList<Integer> allDay) {\r\n\r\n ArrayList<String> xVals = new ArrayList<String>();\r\n for (int i = 1; i <= 24; i++) {\r\n xVals.add((i) + \"\");\r\n }\r\n\r\n ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n\r\n for (int i = 1; i <= 24; i++) {\r\n vals1.add(new Entry(allDay.get(i-1), i));\r\n }\r\n Log.v(\"vals1\",vals1.toString());\r\n \t\r\n \t\r\n// \tint count = 45;\r\n// \tint range = 100; \r\n// \tArrayList<String> xVals = new ArrayList<String>();\r\n// for (int i = 0; i < count; i++) {\r\n// xVals.add((1990 +i) + \"\");\r\n// }\r\n//\r\n// ArrayList<Entry> vals1 = new ArrayList<Entry>();\r\n//\r\n// for (int i = 0; i < count; i++) {\r\n// float mult = (range + 1);\r\n// float val = (float) (Math.random() * mult) + 20;// + (float)\r\n// // ((mult *\r\n// // 0.1) / 10);\r\n// vals1.add(new Entry(val, i));\r\n// }\r\n// \r\n \t\r\n // create a dataset and give it a type\r\n LineDataSet set1 = new LineDataSet(vals1, \"DataSet 1\");\r\n set1.setDrawCubic(true);\r\n set1.setCubicIntensity(0.2f);\r\n set1.setDrawFilled(true);\r\n set1.setDrawCircles(false); \r\n set1.setLineWidth(2f);\r\n set1.setCircleSize(5f);\r\n set1.setHighLightColor(Color.rgb(244, 117, 117));\r\n set1.setColor(Color.rgb(104, 241, 175));\r\n\r\n ArrayList<LineDataSet> dataSets = new ArrayList<LineDataSet>();\r\n dataSets.add(set1);\r\n\r\n // create a data object with the datasets\r\n LineData data = new LineData(xVals, dataSets);\r\n\r\n // set data\r\n nChart.setData(data);\r\n }", "private static JFreeChart createChart(XYDataset dataset) {\n\n chart = ChartFactory.createTimeSeriesChart(\n \"Stromzählerübersicht\", // Titel\n \"Datum\", // x-Achse label\n \"kWh\", // y-Achse label\n dataset);\n\n chart.setBackgroundPaint(Color.WHITE);\n\n XYPlot plot = (XYPlot) chart.getPlot();\n plot.setBackgroundPaint(Color.LIGHT_GRAY);\n plot.setDomainGridlinePaint(Color.WHITE);\n plot.setRangeGridlinePaint(Color.WHITE);\n plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));\n plot.setDomainCrosshairVisible(true);\n plot.setRangeCrosshairVisible(true);\n\n XYItemRenderer r = plot.getRenderer();\n if (r instanceof XYLineAndShapeRenderer) {\n XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;\n renderer.setDefaultShapesVisible(false);\n renderer.setDefaultShapesFilled(false);\n renderer.setDrawSeriesLineAsPath(true);\n }\n\n DateAxis axis = (DateAxis) plot.getDomainAxis();\n axis.setDateFormatOverride(new SimpleDateFormat(\"dd-MM-yyyy\"));\n\n return chart;\n\n }", "public Dataset getEmptyDataset() {\r\n\t\treturn InitialData.emptyClone();\r\n\t}", "@Override\n public BaseDataProvider creatDataProvider() {\n return null;\n }", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "public ChartData() {\n this.labels = new ArrayList<>();\n this.labelsDataMap = new HashMap<>();\n this.legend = new ArrayList<>();\n }", "@GFlotExamplesSource\n @UiHandler( \"generate\" )\n void onClickGenerate( ClickEvent e )\n {\n plot.getModel().removeAllSeries();\n generateRandomData();\n plot.redraw();\n }", "private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }", "protected abstract D createData();", "@Override\n @Transactional\n public void getTheSpecial() {\n log.info(\"Running \\\"The Special\\\"...\");\n\n log.info(\"Creating plot...\");\n Chart plot = new Chart();\n plot.setName(\"My_Plot_\" + RandomUtils.nextInt());\n Map<String, Object> map = new HashMap<>();\n map.put(\"key1\", \"value1\");\n map.put(\"key2\", 2);\n plot.setOptions(map);\n plot.setTopic(topicDao.findOne(\"test\"));\n\n List<Map<String, Object>> mainPlotData = new ArrayList<Map<String, Object>>();\n\n for (Integer i = 0; i < 1; i++) {\n Map<String, Object> itemData = new HashMap<String, Object>();\n\n // Generate data set\n List<List<Double>> data = new ArrayList<>();\n for (Double j = 0D; j < 20; j++) {\n List<Double> bar = new ArrayList<>();\n bar.add(j);\n bar.add(Math.sin(j));\n data.add(bar);\n }\n\n itemData.put(\"data\", data);\n itemData.put(\"label\", \"Sin\");\n itemData.put(\"color\", \"#000000\");\n\n mainPlotData.add(itemData);\n }\n //plot.setData(mainPlotData);\n\n Map<String, Object> mainOptions = new HashMap<>();\n\n Map<String, Object> bars = new HashMap<>();\n bars.put(\"show\", true);\n bars.put(\"barWidth\", 0.5);\n bars.put(\"fill\", 0.9);\n mainOptions.put(\"bars\", bars);\n\n Map<String, Object> xaxis = new HashMap<>();\n bars.put(\"ticks\", new ArrayList<String>());\n bars.put(\"autoscaleMargin\", 0.02);\n mainOptions.put(\"xaxis\", xaxis);\n\n Map<String, Object> yaxis = new HashMap<>();\n bars.put(\"min\", -2);\n bars.put(\"max\", 2);\n mainOptions.put(\"yaxis\", yaxis);\n \n Map<String, Object> grid = new HashMap<>();\n List<Map<String, Object>> markings = new ArrayList<>();\n Map<String, Object> markingItem;\n Map<String, Object> axisItem;\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"to\", -1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 2);\n axisItem.put(\"to\", 2);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 8);\n axisItem.put(\"to\", 8);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n grid.put(\"markings\", markings);\n mainOptions.put(\"grid\", grid);\n\n plot.setOptions(mainOptions);\n\n try {\n plotService.save(plot);\n } catch (InvalidChartException e) {\n log.error(\"Couldn't create the plot.\");\n }\n\n List<Post> posts = datastoreService.findByTopicId(\"test\", Post.class);\n log.info(\"Posts count is <\" + posts.size() + \">\");\n\n log.info(\"That's it. Have fun!\");\n\n return;\n }", "public SimpleDataPointImpl(DataSet dataSet){\n\t\tvalues = new HashMap<String, Double>();\n\t\tmDataSet = dataSet;\n\t}", "public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public SimpleDataGenerator() {\n\n names.add(\"Anna\");\n names.add(\"Maria\");\n names.add(\"Angela\");\n names.add(\"Monika\");\n names.add(\"Agnieszka\");\n names.add(\"Agnieszka\");\n names.add(\"Natalia\");\n names.add(\"Andzrzej\");\n names.add(\"Ferdynand\");\n names.add(\"Mateusz\");\n names.add(\"Adam\");\n names.add(\"Wojciech\");\n names.add(\"Robert\");\n names.add(\"Jerzy\");\n names.add(\"Jakub\");\n names.add(\"Patryk\");\n names.add(\"Alekasnder\");\n names.add(\"Lech\");\n names.add(\"Antoni\");\n names.add(\"Marian\");\n\n surnames.add(\"Kowalski\");\n surnames.add(\"Nowak\");\n surnames.add(\"Brzozowski\");\n surnames.add(\"Kaczynski\");\n surnames.add(\"Ziobro\");\n surnames.add(\"Macierewicz\");\n surnames.add(\"Kopacz\");\n surnames.add(\"Tusk\");\n surnames.add(\"Szydlo\");\n surnames.add(\"Niesiolowski\");\n surnames.add(\"Grodzki\");\n surnames.add(\"Szpak\");\n surnames.add(\"Kiepski\");\n surnames.add(\"Aleksandrowicz\");\n surnames.add(\"Wyrostek\");\n surnames.add(\"Gibala\");\n surnames.add(\"Marcinkiewicz\");\n surnames.add(\"Mrozowicz\");\n surnames.add(\"Olechowski\");\n surnames.add(\"Duda\");\n surnames.add(\"Thrump\");\n\n products.add(\"Komputer\");\n products.add(\"Myszka\");\n products.add(\"Monitor\");\n products.add(\"Klawiatura\");\n products.add(\"Kawa\");\n products.add(\"Herbata\");\n }", "private void createTestData(OHLCSeriesCollection seriesCollection) {\n\t OHLCSeries series = seriesCollection.getSeries(0);\n\t for (int i = 0; i < 10; i++) {\n\t // Generate new bar time\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, i);\n\t FixedMillisecond fm = new FixedMillisecond(cal.getTime());\n\t // Add bar to the data. Let's repeat the same bar\n\t series.add(fm, 100, 110, 90, 105);\n\t }\n\t}", "private void addDataSet() {\n Log.d(TAG, \"addDataSet started\");\n ArrayList<PieEntry> yEntrys = new ArrayList<>();\n ArrayList<String> xEntrys = new ArrayList<>();\n\n for(int i = 0; i < yData.length; i++){\n yEntrys.add(new PieEntry(yData[i] , i));\n }\n\n for(int i = 1; i < xData.length; i++){\n xEntrys.add(xData[i]);\n }\n\n //Create the data set\n PieDataSet pieDataSet = new PieDataSet(yEntrys, \"Popularity stat\");\n pieDataSet.setSliceSpace(2);\n pieDataSet.setValueTextSize(12);\n pieDataSet.setValueTextColor(Color.WHITE);\n\n\n\n //Add colors to dataset\n ArrayList<Integer> colors = new ArrayList<>();\n colors.add(Color.BLUE);\n colors.add(Color.RED);\n colors.add(Color.GREEN);\n colors.add(Color.CYAN);\n colors.add(Color.YELLOW);\n colors.add(Color.MAGENTA);\n\n pieDataSet.setColors(colors);\n\n //Add legend to chart\n Legend legend = pieChart.getLegend();\n legend.setForm(Legend.LegendForm.DEFAULT);\n legend.setPosition(Legend.LegendPosition.ABOVE_CHART_CENTER);\n\n //Create pie data object\n PieData pieData = new PieData(pieDataSet);\n pieChart.setData(pieData);\n pieChart.invalidate();\n }", "DataElement createDataElement();", "@Test\n public void testSerialization() {\n DefaultPieDataset d1 = new DefaultPieDataset();\n d1.setValue(\"C1\", new Double(234.2));\n d1.setValue(\"C2\", null);\n d1.setValue(\"C3\", new Double(345.9));\n d1.setValue(\"C4\", new Double(452.7));\n\n DefaultPieDataset d2 = (DefaultPieDataset) TestUtils.serialised(d1);\n assertEquals(d1, d2);\n }", "private XYChart.Series<Number, Number> getTenSeries() {\n //Create new series\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(\"Chemical Concentration\");\n Random rand = new Random();\n int c = 5; // Constant for x-axis scale\n for (int i = 0; i < 17; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n series.getData().add(new XYChart.Data<>(17 * c, 4));\n series.getData().add(new XYChart.Data<>(18 * c, 5));\n series.getData().add(new XYChart.Data<>(19 * c-2,8));\n series.getData().add(new XYChart.Data<>(19 * c, 10));\n series.getData().add(new XYChart.Data<>(19 * c+2,8));\n series.getData().add(new XYChart.Data<>(20 * c, 6));\n series.getData().add(new XYChart.Data<>(21 * c, 4));\n\n for (int i = 22; i < 30; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n return series;\n }", "private static Data generateDataPoint(String raw, DataType type) {\n Data data = new Data<Boolean>(false);\n //There can be null data. Its marked as a question mark in the datasets.\n\n if(raw.equals(\"?\")) {\n return null;\n }\n\n switch (type) {\n case Boolean:\n if(raw.equals(\"y\")) {\n data = new Data<Boolean>(true);\n }\n else if(raw.equals(\"n\")) {\n data = new Data<Boolean>(false);\n }\n else {\n data = new Data<Boolean>(Boolean.parseBoolean(raw));\n }\n break;\n case Double:\n data = new Data<Double>(Double.parseDouble(raw));\n break;\n case Integer:\n data = new Data<Integer>(Integer.parseInt(raw));\n break;\n case String:\n data = new Data<String>(raw);\n break;\n }\n return data;\n }", "private String generateChart() {\r\n\t\tint passedTestCount = data.getNumberofTestPassed();\r\n\t\tint skippedTestCount = data.getNumberofTestSkipped();\r\n\t\tint failedTestCount = data.getNumberofTestFailed();\r\n\r\n\t\tString script = \"<script>var svg = d3.select('svg'),\"\r\n\t\t\t\t+ \"margin = {top: 30, right: 20, bottom: 20, left: 50},\"\r\n\t\t\t\t+ \"width = +svg.attr('width') - margin.left - margin.right,\"\r\n\t\t\t\t+ \"height = +svg.attr('height') - margin.top - margin.bottom;\"\r\n\t\t\t\t+ \"var x = d3.scaleBand().range([0, 450]),\"\r\n\t\t\t\t+ \"y = d3.scaleLinear().rangeRound([230, 0]);\"\r\n\t\t\t\t+ \"var g = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var data = [{'name':'Pass','value':\"\r\n\t\t\t\t+ passedTestCount\r\n\t\t\t\t+ \"},{'name':'FaiL','value':\"\r\n\t\t\t\t+ failedTestCount\r\n\t\t\t\t+ \"},{'name':'Skip','value':\"\r\n\t\t\t\t+ skippedTestCount\r\n\t\t\t\t+ \"}];\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var max = 0;\"\r\n\t\t\t\t+ \"var index = 0;\"\r\n\t\t\t\t+ \"for(index=0;index<data.length;index++) {\"\r\n\t\t\t\t+ \"if(max<data[index]['value']) {\"\r\n\t\t\t\t+ \"max = data[index]['value']; } }\"\r\n\t\t\t\t+ \"max = max%2 ==0? max : max +1;\"\r\n\t\t\t\t+ \"x.domain(data.map(function(d) { return d.name; }));\"\r\n\t\t\t\t+ \"y.domain([0, max]);\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--x')\"\r\n\t\t\t\t+ \".attr('transform', 'translate(0,' + height + ')')\"\r\n\t\t\t\t+ \".call(d3.axisBottom(x)).attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--y')\"\r\n\t\t\t\t+ \".call(d3.axisLeft(y).ticks(3)).attr('stroke', '#000000')\"\r\n\t\t\t\t+ \".append('text').attr('transform', 'rotate(-90)').attr('y', 6)\"\r\n\t\t\t\t+ \".attr('dy', '0.71em').attr('text-anchor', 'end');\"\r\n\t\t\t\t+ \"d3.selectAll('line').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"d3.selectAll('path').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"var temp=0;\"\r\n\t\t\t\t+ \"g.selectAll('.bar').data(data).enter().append('rect').attr('class', 'bar')\"\r\n\t\t\t\t+ \".attr('x', function(d) {return x(d.name)+50; })\"\r\n\t\t\t\t+ \".attr('y', function(d) { return y(d.value); })\"\r\n\t\t\t\t+ \".attr('width', 50)\"\r\n\t\t\t\t+ \".attr('height', function(d) { return height - y(d.value); }).attr('fill','#ff9900')\"\r\n\t\t\t\t+ \".attr('data-name',function(d){return d.name})\"\r\n\t\t\t\t+ \".attr('data-value',function(d){return d.value}).attr('height', 0).transition().duration(1000).delay(200).attr('height', function (d, i) {return height - y(d.value);});;</script>\";\r\n\t\treturn script;\r\n\t}", "private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}", "public String getDesc() {\r\n return \"Randomly generated values for the scatter chart\";\r\n }", "public JavaRandomSampleOperator(int sampleSize, DataSetType type) {\n super(sampleSize, type, Methods.RANDOM);\n rand = new Random();\n }", "public JavaRandomSampleOperator(int sampleSize, long datasetSize, DataSetType type) {\n super(sampleSize, datasetSize, type, Methods.RANDOM);\n rand = new Random();\n }", "public Chart initializeChart();", "public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }", "private static JFreeChart createChart(CategoryDataset dataset) {\n\t\t//the title of the chart depending of the attributes chosen by the user\n\t\tif (queryNumber==0) {domainLabel=\"Per day\";}\n\t\telse if (queryNumber==1) {domainLabel=\"Per hour\";}\n\t\telse if (queryNumber==2) {domainLabel=\"Per minute\";}\n\t\t\n\t\t// setting the title \n\t\tString rangeLabel=\"Average (ms)\";\n\t\t// create the chart...\n\t\tJFreeChart chart = ChartFactory.createBarChart(\n\t\t\t\t\"Static\", // chart title\n\t\t\t\tdomainLabel, // domain axis label\n\t\t\t\trangeLabel, // range axis label\n\t\t\t\tdataset, // data\n\t\t\t\tPlotOrientation.VERTICAL, // orientation\n\t\t\t\tfalse, // include legend\n\t\t\t\ttrue, // tooltips\n\t\t\t\tfalse // URLs\n\t\t\t\t);\n\t\t\n\t\t//setting the title preferences and format\n\t\tchart.getTitle().setFont(fontStatic);\n\t\tchart.getTitle().setPaint(Color.red);\n\t\tchart.setBackgroundPaint(Color.white);\n\t\tCategoryPlot plot = chart.getCategoryPlot();\n\t\tplot.setBackgroundPaint(Color.lightGray);\n\t\tplot.setDomainGridlinePaint(Color.white);\n\t\tplot.setDomainGridlinesVisible(true);\n\t\tplot.setRangeGridlinePaint(Color.white);\n\t\tfinal NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n\t\tchart.getCategoryPlot().getRangeAxis().setLabelPaint(Color.RED);\n\t\tchart.getCategoryPlot().getDomainAxis().setLabelPaint(Color.RED);\n\t\trangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n\t\tBarRenderer renderer = (BarRenderer) plot.getRenderer();\n\t\trenderer.setDrawBarOutline(false);\n\t\tfor (int i =0;i<25;i++) renderer.setSeriesPaint(i, Color.BLUE);\n\t\treturn chart;\n\t}", "public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }", "public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }", "public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}", "private LineDataSet createSet(){\n LineDataSet set = new LineDataSet(null, \"SPL Db\");\n set.setDrawCubic(true);\n set.setCubicIntensity(0.2f);\n set.setAxisDependency(YAxis.AxisDependency.LEFT);\n set.setColor(ColorTemplate.getHoloBlue());\n set.setLineWidth(2f);\n set.setCircleSize(4f);\n set.setFillAlpha(65);\n set.setFillColor(ColorTemplate.getHoloBlue());\n set.setHighLightColor(Color.rgb(244,117,177));\n set.setValueTextColor(Color.WHITE);\n set.setValueTextSize(10f);\n\n return set;\n }", "private void setData() {\n LineDataSet set1 = new LineDataSet(valuesTemperature, \"Temperature\");\n\n set1.setColor(Color.RED);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n LineData data = new LineData(set1);\n\n // set data\n chartTemperature.setData(data);\n\n // get the legend (only possible after setting data)\n Legend l = chartTemperature.getLegend();\n l.setEnabled(true);\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesPressure, \"Pressure\");\n\n set1.setColor(Color.GREEN);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartPressure.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartPressure.getLegend();\n l.setEnabled(true);\n\n\n\n // create a dataset and give it a type\n set1 = new LineDataSet(valuesAltitude, \"Altitude\");\n\n set1.setColor(Color.BLUE);\n set1.setLineWidth(1.0f);\n set1.setDrawValues(false);\n set1.setDrawCircles(false);\n set1.setMode(LineDataSet.Mode.LINEAR);\n set1.setDrawFilled(false);\n\n // create a data object with the data sets\n data = new LineData(set1);\n\n // set data\n chartAltitude.setData(data);\n\n // get the legend (only possible after setting data)\n l = chartAltitude.getLegend();\n l.setEnabled(true);\n }", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private static JFreeChart createChart(CategoryDataset dataset) {\n JFreeChart chart = ChartFactory.createLineChart(\n \"Line Chart\", null /* x-axis label*/, \n \"Range\" /* y-axis label */, dataset);\n chart.addSubtitle(new TextTitle(\" Its is generated to show patient History \" \n ));\n chart.setBackgroundPaint(Color.white);\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\n\tNumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n // Line renderer = (BarRenderer) plot.getRenderer();\n // renderer.setDrawBarOutline(false);\n // LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer(); \n//renderer.setItemMargin(3); \n//renderer.setItemLabelsVisible(true);\n chart.getLegend().setFrame(BlockBorder.NONE);\n return chart;\n }", "private Shirt getRandomShirt() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int shirtId = c.getInt((c.getColumnIndex(ShirtEntry._ID)));\n String shirtPath = c.getString(c.getColumnIndex(ShirtEntry.IMG_PATH));\n\n c.close();\n return new Shirt(shirtId, shirtPath);\n } else {\n return null;\n }\n }", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}", "@Test\n public void testCloning() throws CloneNotSupportedException {\n DefaultPieDataset d1 = new DefaultPieDataset();\n d1.setValue(\"V1\", new Integer(1));\n d1.setValue(\"V2\", null);\n d1.setValue(\"V3\", new Integer(3));\n DefaultPieDataset d2 = (DefaultPieDataset) d1.clone();\n\n assertTrue(d1 != d2);\n assertTrue(d1.getClass() == d2.getClass());\n assertTrue(d1.equals(d2));\n }", "private LineData generateDataLine(int cnt, String name, ArrayList<Double> mainEmotion) {\n\n ArrayList<Entry> values1 = new ArrayList<>();\n\n //int[] val = {(int) happinessr, (int) sadnessr, (int) surpriser, (int) fearr, (int) neutralr, (int) contemptr, (int) angerr, (int) disgustr};\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values1.add(new Entry(i, mainEmotion.get(i).intValue()));\n }\n\n LineDataSet d1 = new LineDataSet(values1, name);\n d1.setLineWidth(2.5f);\n d1.setCircleRadius(4.5f);\n //Toast.makeText(getContext().getApplicationContext(), name, Toast.LENGTH_LONG).show();\n\n switch (name) {\n case \"Happiness\":\n d1.setColor(Color.rgb(189, 237, 255));\n d1.setCircleColors(Color.rgb(189, 237, 255));\n break;\n case \"Sadness\":\n d1.setColor(Color.rgb(74, 88, 176));\n d1.setCircleColors(Color.rgb(74, 88, 176));\n break;\n case \"Contempt\":\n d1.setColor(Color.rgb(242, 5, 92));\n d1.setCircleColors(Color.rgb(242, 5, 92));\n break;\n case \"Disgust\":\n d1.setColor(Color.rgb(79, 139, 62));\n d1.setCircleColors(Color.rgb(79, 139, 62));\n break;\n case \"Fear\":\n d1.setColor(Color.rgb(89, 72, 122));\n d1.setCircleColors(Color.rgb(89, 72, 122));\n break;\n case \"Surprise\":\n d1.setColor(Color.rgb(205, 185, 39));\n d1.setCircleColors(Color.rgb(205, 185, 39));\n break;\n case \"Anger\":\n d1.setColor(Color.rgb(189, 73, 84));\n d1.setCircleColors(Color.rgb(189, 73, 84));\n break;\n case \"Neutral\":\n d1.setColor(Color.rgb(220, 235, 221));\n d1.setCircleColors(Color.rgb(220, 235, 221));\n break;\n default:\n break;\n\n }\n\n d1.setHighLightColor(Color.rgb(255, 0, 0));\n d1.setDrawValues(false);\n\n ArrayList<Entry> values2 = new ArrayList<>();\n\n for (int i = 0; i < mainEmotion.size(); i++) {\n values2.add(new Entry(i, values1.get(i).getY() - 30));\n }\n\n ArrayList<ILineDataSet> sets = new ArrayList<>();\n sets.add(d1);\n //sets.add(d2);\n\n return new LineData(sets);\n }", "public Object clone(){\r\n\t\tSampleData obj = new SampleData(letter,getWidth(),getHeight());\r\n\t\tfor ( int y=0;y<getHeight();y++ )\r\n\t\t\tfor ( int x=0;x<getWidth();x++ )\r\n\t\t\t\tobj.setData(x,y,getData(x,y));\r\n\t\treturn obj;\r\n\t}", "public void generateChart(int[] dataValues) {\n\t\t/*\n\t\t * The XYSeriesCollection object is a set XYSeries series (dataset) that\n\t\t * can be visualized in the same chart\n\t\t */\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\t/*\n\t\t * The XYSeries that are loaded in the dataset. There might be many\n\t\t * series in one dataset.\n\t\t */\n\t\tXYSeries data = new XYSeries(\"random values\");\n\n\t\t/*\n\t\t * Populating the XYSeries data object from the input Integer array\n\t\t * values.\n\t\t */\n\t\tfor (int i = 0; i < dataValues.length; i++) {\n\t\t\tdata.add(i, dataValues[i]);\n\t\t}\n\n\t\t// add the series to the dataset\n\t\tdataset.addSeries(data);\n\n\t\tboolean legend = false; // do not visualize a legend\n\t\tboolean tooltips = false; // do not visualize tooltips\n\t\tboolean urls = false; // do not visualize urls\n\n\t\t// Declare and initialize a createXYLineChart JFreeChart\n\t\tJFreeChart chart = ChartFactory.createXYLineChart(\"Grades Histogram\", \"Grades\", \"Frequency\", dataset,\n\t\t\t\tPlotOrientation.VERTICAL, legend, tooltips, urls);\n\n\t\t/*\n\t\t * Initialize a frame for visualizing the chart and attach the\n\t\t * previously created chart.\n\t\t */\n\t\tChartFrame frame = new ChartFrame(\"First\", chart);\n\t\tframe.pack();\n\t\t// makes the previously created frame visible\n\t\tframe.setVisible(true);\n\t}", "public static Dataset createDataset(RepositoryConnection connection)\n {\n DatasetGraph dsg = new JenaSesameDatasetGraph(connection) ;\n return DatasetFactory.wrap(dsg) ;\n }", "private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/tipo_identificacion.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}", "public void setupDryadCloudDataSets(){\n\t\ttry{\n\t\t\t\n\t\t\t// A Dryad \n\t\t\tDryadDataSet ds = new DryadDataSet(_DRYAD_D1_TREEBASE);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D1_TREEBASE_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D3_POPULAR);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D3_POPULAR_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D4_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D6_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D2_GENBANK);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F1);\t\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F2);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F3);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F4);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D5_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tSystem.out.println(\"ERROR: Exception \"+ex.getMessage());\n\t\t}\n\t}", "private Chart(){}" ]
[ "0.66695136", "0.6340032", "0.6333443", "0.63081926", "0.6284798", "0.61780196", "0.616738", "0.61278", "0.6105734", "0.60897595", "0.60818356", "0.6080277", "0.6055647", "0.60237837", "0.59734124", "0.59421015", "0.5863807", "0.5846843", "0.58450556", "0.5844055", "0.5839624", "0.5802735", "0.57177615", "0.57020974", "0.568741", "0.56826276", "0.567425", "0.5632203", "0.56317925", "0.5628087", "0.5607956", "0.5602777", "0.560015", "0.55913365", "0.55858314", "0.5583196", "0.5567468", "0.55228966", "0.5514847", "0.55058116", "0.5499927", "0.5469731", "0.5445129", "0.5424382", "0.5402995", "0.5357631", "0.5348705", "0.53476965", "0.5322693", "0.5319123", "0.53080666", "0.52948684", "0.5287865", "0.52833885", "0.5279997", "0.5273427", "0.5269434", "0.5269255", "0.5263241", "0.5249108", "0.5242948", "0.5242301", "0.5233268", "0.5231223", "0.5229638", "0.5217568", "0.52119976", "0.5211885", "0.5199483", "0.5198177", "0.51910996", "0.51720536", "0.51575524", "0.51502144", "0.5145729", "0.51395404", "0.51311976", "0.513086", "0.5128102", "0.5123516", "0.5113292", "0.50960505", "0.5091017", "0.5086698", "0.508296", "0.5076906", "0.50758916", "0.5074762", "0.50689363", "0.50652933", "0.5061273", "0.50570035", "0.50553554", "0.50550634", "0.5052093", "0.5046399", "0.502534", "0.5024437", "0.5020754", "0.50030637" ]
0.6240886
5
=================================================================================== Select Entity =============
public void test_selectEntity_Tx() throws Exception { // ## Arrange ## final Integer memberId = 3; // ## Act ## long before = currentDate().getTime(); final Member member = jdbcManager.from(Member.class).where("memberId = ?", memberId).getSingleResult(); long after = currentDate().getTime(); // ## Assert ## assertNotNull(member); log(member.toString()); assertEquals(memberId, member.memberId); log("cost: " + convertToPerformanceView(before, after)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract EntitySelect<T> getEntitySelect();", "abstract protected Entity selectNextEntity();", "AccessModelEntity selectByPrimaryKey(String id);", "public E getEntity();", "public T getSelectedEntity() {\n return selectedEntity;\n }", "EntityType getEntity();", "public void select(GenericEntity entity) throws GenericEntityException {\n SQLProcessor sqlP = new ReadOnlySQLProcessor(helperName);\n try {\n select(entity, sqlP.getConnection());\n } finally {\n closeSafely(entity, sqlP);\n }\n }", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(T entity) {\n Criteria criteria = this.getCurrentSession().createCriteria(entity.getClass());\n List<T> result = criteria.add(Example.create(entity)).list();\n return result;\n }", "@Override\n\tpublic Entity SelectFirstOrDefault() {\n\t\treturn null;\n\t}", "public o selectById(long id);", "ProEmployee selectByPrimaryKey(String id);", "public abstract T findEntityById(int id);", "StudentEntity selectByPrimaryKey(String studentId);", "public void selectEntity(int en) {\n // hmm, sometimes this gets called when there's no ready entities?\n if (clientgui.getClient().getGame().getEntity(en) == null) {\n disableButtons();\n setNextEnabled(true);\n System.err.println(\"DeploymentDisplay: \" //$NON-NLS-1$\n + \"tried to select non-existant entity: \" + en); //$NON-NLS-1$\n return;\n }\n \n if ((ce() != null) && ce().isWeapOrderChanged()) {\n clientgui.getClient().sendEntityWeaponOrderUpdate(ce());\n }\n\n // FIXME: Hack alert: remove C3 sprites from earlier here, or we might\n // crash when\n // trying to draw a c3 sprite belonging to the previously selected,\n // but not deployed entity. BoardView1 should take care of that itself.\n if (clientgui.bv instanceof BoardView1) {\n ((BoardView1) clientgui.bv).clearC3Networks();\n }\n cen = en;\n clientgui.setSelectedEntityNum(en);\n clientgui.getBoardView().select(null);\n clientgui.getBoardView().cursor(null);\n // RACE : if player clicks fast enough, ce() is null.\n if (null != ce()) {\n setTurnEnabled(true);\n butDone.setEnabled(false);\n clientgui.getBoardView().markDeploymentHexesFor(ce());\n // set facing according to starting position\n switch (ce().getStartingPos()) {\n case Board.START_W:\n ce().setFacing(1);\n ce().setSecondaryFacing(1);\n break;\n case Board.START_SW:\n ce().setFacing(1);\n ce().setSecondaryFacing(1);\n break;\n case Board.START_S:\n ce().setFacing(0);\n ce().setSecondaryFacing(0);\n break;\n case Board.START_SE:\n ce().setFacing(5);\n ce().setSecondaryFacing(5);\n break;\n case Board.START_E:\n ce().setFacing(5);\n ce().setSecondaryFacing(5);\n break;\n case Board.START_NE:\n ce().setFacing(4);\n ce().setSecondaryFacing(4);\n break;\n case Board.START_N:\n ce().setFacing(3);\n ce().setSecondaryFacing(3);\n break;\n case Board.START_NW:\n ce().setFacing(2);\n ce().setSecondaryFacing(2);\n break;\n case Board.START_ANY:\n ce().setFacing(0);\n ce().setSecondaryFacing(0);\n break;\n }\n setAssaultDropEnabled(ce().canAssaultDrop()\n && ce().getGame().getOptions()\n .booleanOption(\"assault_drop\"));\n if (!ce().canAssaultDrop()\n && ce().getGame().getOptions()\n .booleanOption(\"assault_drop\")) {\n buttons.get(DeployCommand.DEPLOY_ASSAULTDROP).setText(Messages\n .getString(\"DeploymentDisplay.AssaultDrop\")); //$NON-NLS-1$\n assaultDropPreference = false;\n }\n \n List<Entity> loadableUnits = getLoadableEntities();\n setLoadEnabled(loadableUnits.size() > 0);\n setUnloadEnabled(ce().getLoadedUnits().size() > 0);\n \n setNextEnabled(true);\n setRemoveEnabled(true);\n\n clientgui.mechD.displayEntity(ce());\n clientgui.mechD.showPanel(\"movement\"); //$NON-NLS-1$\n\n // Update the menu bar.\n clientgui.getMenuBar().setEntity(ce());\n } else {\n disableButtons();\n setNextEnabled(true);\n }\n }", "public Entity getEntity(int index){\n return entityList.get(index);\n }", "AppStandard selectById(String id);", "String getEntity();", "String getEntity();", "Dormitory selectByPrimaryKey(Integer id);", "FK findFrom(ENTITY entity);", "NjProductTaticsRelation selectByPrimaryKey(String id);", "Ltsprojectpo selectByPrimaryKey(Long id);", "public SeatEntity getById(int id);", "@Override\r\n\tpublic T findEntity(String hql, Object[] obj) throws Exception {\n\t\tList<T> list = this.find(hql, obj);\r\n\t\tif (list != null && list.size() > 0) {\r\n\t\t\treturn list.get(0);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "Disproduct selectByPrimaryKey(String samId);", "IceApp selectByPrimaryKey(Long id);", "@Override\n\tpublic Person select(PersonKey key) throws KeyNotFoundException {\n\t\t\n\t\ttry {\n\t\t\tPerson person = repo.findById(key).get();\n\t\t\treturn person;\n\t\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tthrow new KeyNotFoundException();\n\t\t}\n\t\t\n\t}", "public abstract Object get(String entityName, Serializable id);", "Sequipment selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "@Override\n\tpublic TestPoEntity selectById(Integer pk) {\n\t\treturn null;\n\t}", "List<TestEntity> selectByExample(TestEntityExample example);", "Employee selectByPrimaryKey(String id);", "public default E onFind(E entity) {\n\t\treturn entity;\n\t}", "Owner selectByPrimaryKey(String id);", "ItoProduct selectByPrimaryKey(Integer id);", "UserEntity selectByPrimaryKey(Integer id);", "public E getEntity() {\n return this.entity;\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "Clazz selectByPrimaryKey(Integer id);", "BasicEquipment selectByPrimaryKey(Integer id);", "Card selectByPrimaryKey(String card);", "public Entity getEntity(String name) {\r\n\r\n for (int i = 0; i < entities.size(); i++) {\r\n if (name.equals(entities.get(i).nume)) {\r\n\r\n return entities.get(i);\r\n }\r\n }\r\n return null;\r\n }", "SpecialCircumstance selectByPrimaryKey(Long id);", "Prueba selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic T findEntity(String hql, List<Object> params) throws Exception {\n\t\tList<T> list = this.find(hql, params);\r\n\t\tif (list != null && list.size() > 0) {\r\n\t\t\treturn list.get(0);\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "CommunityInform selectByPrimaryKey(String id);", "GirlInfo selectByPrimaryKey(Integer id);", "public <T extends BaseEntity> T findOne(T entity) {\n T resultEntity = null;\n List<T> results = select(entity);\n if (results != null && !results.isEmpty()) {\n resultEntity = results.get(0);\n }\n return resultEntity;\n }", "GoodsPo selectByPrimaryKey(Long id);", "public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}", "@Override\r\n\tprotected Entity getEntityByFields() throws SQLException {\n\t\t\r\n\t\tint id = rs.getInt(\"id\");\r\n\t\tint productId = rs.getInt(\"id_product\");\r\n\t\tString productName = super.getString(\"productName\");\t// From INNER JOIN\r\n\t\tString productUnit = super.getString(\"productUnit\");\t// From INNER JOIN\r\n\t\tfloat quantity = rs.getFloat(\"quantity\");\r\n\t\tfloat price = rs.getFloat(\"price\");\r\n\t\tfloat summa = rs.getFloat(\"summa\");\r\n\t\t\r\n\t\treturn new DocInvoiceItem(id, productId, productName, productUnit, quantity, price, summa);\r\n\t}", "public abstract V getEntity();", "TestEntity selectByPrimaryKey(Integer id);", "public LdPublisher delegateSelectEntityTx(LdPublisherCB cb) {\r\n assertConditionBeanNotNull(cb);\r\n return getMyDao().selectEntity(cb);\r\n }", "CmstTransfdevice selectByPrimaryKey(String objId);", "Dish selectByPrimaryKey(String id);", "private Entity getObjectByObject(final Entity entity){\n\t\tDBProperty dbProperty = entity.getDbProperty();\t\n\t\tEntity result = entity;\n\t\tAbstractDao<Entity> aDao = new AbstractDao<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Class getEntityClass() {\n\t\t\t\t\treturn entity.getClass();\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tresult = aDao.findById(entity.getId());\n\t\t\t} catch (DAOTechnicalException e) {\n\t\t\t\tLOG.debug(e.getMessage());\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "Abum selectByPrimaryKey(String id);", "YzStiveExplosion selectByPrimaryKey(Integer id);", "public abstract ResultSet select(Vector<AbstractOrmEntity> searchEntities)\r\n\t throws OrmException;", "@Override\n\tpublic Entity getEntity() {\n\t\treturn entity;\n\t}", "TestActivityEntity selectByPrimaryKey(Integer id);", "Article selectByPrimaryKey(String id);", "EnterprisePicture selectByPrimaryKey(Integer id);", "Organization selectByPrimaryKey(Integer id);", "public PlayerEntity getPlayerEntity(String name){\n Session session = HibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n PlayerEntity playerE = new PlayerEntity();\n session.load(playerE , name);\n session.getTransaction().commit();\n return playerE;\n }", "public Entity getEntity(int index)\n\t{\n\t\treturn this.entities.get(index);\n\t}", "Entity getEntityById(Long id);", "Product selectByPrimaryKey(Long id);", "protected E getEntityByQuerry(PreparedStatement statement) throws DAOException {\n\t\tE result = null;\n\n\t\ttry (ResultSet rs = statement.executeQuery()) {\n\n\t\t\tif (rs.next())\n\t\t\t\tresult = parseEntity(rs);\n\n\t\t} catch (SQLException cause) {\n\t\t\tthrow new DAOException(cause);\n\t\t}\n\t\treturn result;\n\t}", "List<TestActivityEntity> selectByExample(TestActivityEntityExample example);", "Thing selectByPrimaryKey(String thingid);", "public abstract String getEntityId();", "EhrPersonFile selectByPrimaryKey(Long id);", "protected abstract T getEntityById(Long id);", "TCpySpouse selectByPrimaryKey(Integer id);", "public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "BaseReturn selectByPrimaryKey(String guid);", "@Override\n\tpublic Subordination find(Subordination entity) throws DBOperationException {\n\t\tPreparedStatement statement = null;\n\t\tSubordination sub = null;\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(SUBORDINATION_BY_ID);\n\t\t\tstatement.setInt(1, entity.getId());\n\t\t\tResultSet rSet = statement.executeQuery();\n\t\t\tif (rSet.next()) {\n\t\t\t\tsub = new Subordination();\n\t\t\t\tinitSubordination(rSet, sub);\n\t\t\t}\n\t\t\tstatement.close();\n\t\t\trSet.close();\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DBOperationException(\"Subordination not found. DB error.\", e);\n\t\t} \n\t\treturn sub;\n\t}", "EtpBase selectByPrimaryKey(String id);", "public ObservableList<EmployeeEntity> select(){\n return EmployeeDB.getInstance().select();\n }", "com.google.cloud.videointelligence.v1p2beta1.Entity getEntity();", "AuthorDO selectByPrimaryKey(Long authorId);", "public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "ToolsOutIn selectByPrimaryKey(Integer id);", "ProductPricelistEntityWithBLOBs selectByPrimaryKey(Integer id);", "public Student getStudent(Student entity){\r\n return repo.findOne(entity.getID());\r\n }", "protected T getEntity() {\r\n\t\treturn entity;\r\n\t}", "Disease selectByPrimaryKey(Integer id);", "ProSchoolWare selectByPrimaryKey(String id);", "public Entity getEntityByName(String name) {\n return this.entity_list_.get(name);\n }", "Goods selectByPrimaryKey(String goodsId);", "List<EnterprisePicture> selectByExample(EnterprisePictureExample example);", "PrhFree selectByPrimaryKey(Integer id);", "@Override\n\tpublic Product selectById(int id) throws ProductRepositoryException {\n\t\ttry (Connection conn = DriverManager.getConnection(dbUrl, userName, password)) {\n\t\t\t// statement with the parameter\n\t\t\tPreparedStatement stmt = conn.prepareStatement(QUERY_SELECT_BY_ID_STATEMENT);\n\t\t\t// setting every value for the parameter (begins with 1)\n\t\t\tstmt.setInt(1, id);\n\t\t\t// executing\n\t\t\tResultSet result = stmt.executeQuery();\n\t\t\t// throwing exception, when there is no more data-sets\n\t\t\tif (!result.next()) {\n\t\t\t\tthrow new ProductRepositoryException(\"Product with ID\" + id + \" doesn't exist\");\n\t\t\t}\n\n\t\t\tProduct entity = readProduct(result);\n\t\t\treturn entity;\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error loading a Product-dataset\\n\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ProductRepositoryException(\"Error loading a product dataset\", e);\n\t\t}\n\t}", "SysOrganization selectByPrimaryKey(Long id);", "@Override\n\tpublic T getEntityById(String id) {\n\t\treturn null;\n\t}" ]
[ "0.73342264", "0.70077455", "0.6868837", "0.6603268", "0.6545665", "0.64842814", "0.6340777", "0.62895095", "0.6184373", "0.61817765", "0.6171023", "0.6170429", "0.61383605", "0.6083676", "0.6081053", "0.6067691", "0.6065316", "0.6065316", "0.60640836", "0.60638595", "0.60463244", "0.60393834", "0.60316086", "0.6028274", "0.6025324", "0.6023367", "0.60205793", "0.60135317", "0.5991392", "0.5991359", "0.5991272", "0.5979462", "0.5978106", "0.59760886", "0.5961425", "0.59593636", "0.59455013", "0.59444785", "0.5932817", "0.59179956", "0.5914872", "0.59137213", "0.5912306", "0.5910941", "0.5905179", "0.5905042", "0.58994573", "0.5897372", "0.58941555", "0.5888352", "0.5885178", "0.5884558", "0.5884129", "0.5883939", "0.58813053", "0.58700234", "0.58691347", "0.5866259", "0.5865113", "0.5860568", "0.58593994", "0.58547604", "0.58384854", "0.5838109", "0.58345985", "0.5830527", "0.58277696", "0.5827385", "0.5818667", "0.5811489", "0.5810478", "0.5807525", "0.5804204", "0.57918525", "0.5784755", "0.5776744", "0.5775107", "0.57701474", "0.5768718", "0.57633734", "0.5758367", "0.5752776", "0.5750208", "0.574645", "0.57407904", "0.57395715", "0.57344675", "0.5733322", "0.5730071", "0.57295424", "0.5727573", "0.5721422", "0.57201487", "0.5719937", "0.5719535", "0.571069", "0.57084715", "0.57050145", "0.57047516", "0.5698958", "0.569519" ]
0.0
-1
=================================================================================== Select List ===========
public void test_selectList_prefixSearch_Tx() throws Exception { // ## Arrange ## final String prefix = "S"; // ## Act ## final List<Member> memberList = jdbcManager.from(Member.class).where("memberName like ?", prefix + "%") .orderBy("birthdate desc, memberId asc").getResultList(); // Assert ## assertNotNull(memberList); assertNotSame(0, memberList.size()); for (Member member : memberList) { log(member.toString()); assertTrue(member.memberName.startsWith(prefix)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic List selectList() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Idol> selectList() {\n\t\treturn session.selectList(\"idols.selectList\");\n\t}", "@Override\n\tpublic void selectList(RestRequest request, RestResponse response) throws Exception {\n\t\t\n\t}", "List<String> getSelectedItems();", "List<Category> selectCategoryList();", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revision\", \"Revision\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Revocatoria\", \"Revocatoria\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Subsidiaria\", \"Subsidiaria\"));\n \n }", "@Override\n\tpublic List<Map<String, Object>> selectList(Map<String, Object> form, Boolean isPagination) throws Exception {\n\t\treturn null;\n\t}", "List<ToolsOutIn> selectAll();", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "@Override\n\tpublic List selectList2(Object map) {\n\t\treturn null;\n\t}", "Select createSelect();", "List<UmsMenu> selectAll();", "public StringList getSLCTableSelectables(Context context) {\n StringList slselectObjStmts = new StringList();\n try {\n slselectObjStmts.addElement(DomainConstants.SELECT_ID);\n slselectObjStmts.addElement(DomainConstants.SELECT_CURRENT);\n slselectObjStmts.addElement(DomainConstants.SELECT_NAME);\n slselectObjStmts.addElement(DomainConstants.SELECT_DESCRIPTION);\n slselectObjStmts.addElement(DomainConstants.SELECT_TYPE);\n slselectObjStmts.addElement(ChangeConstants.SELECT_ATTRIBUTE_REASON_FOR_CHANGE);\n slselectObjStmts.addElement(DomainConstants.SELECT_ORIGINATED);\n slselectObjStmts.addElement(DomainConstants.SELECT_OWNER);\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ACTUALIMPLEMENTATIONDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENTDEVTCOST + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENT_PC_L + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENT_PARTCOST + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENT_PROCESSRISK + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENT_PRODUCTRISK + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENTTOOLINGCOST_GAUGES + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_BPUPDATEDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRBILLABLE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRORIGINSUBTYPE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRORIGINTYPE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRTYPE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CAPEXCONTRIB_LAUNCHCOST + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + DomainConstants.ATTRIBUTE_ORIGINATOR + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CONTROLPLAN + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRCUSTOMERAGREEMENTDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRCUSTOMERCHANGENUMBER + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRCUSTOMERINVOLVEMENT + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DVP_PVP + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRDATEOFLASTTRANSFERTOCHANGEMANAGER + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DECISIONCASHPAYMENT + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DECISION_CUSTOMERSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DECISION_DATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DESIGNREVIEWDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_DESIGNREVIEWSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_FMEA_D_P_L + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_IMPACTONACTBP + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_IMPACTED_REGIONS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_INTERCHANGEABILITYPROPAGATIONSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_KCC_KPC + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PPAP_INTERN_OR_CUST_DATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PPAP_INTERN_OR_CUST_STATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PARALLELTRACK + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PARALLELTRACKCOMMENT + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PARTPRICE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PROJECT_PHASE_AT_CREATION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_PURPOSE_OF_RELEASE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRREASONFORCHANGE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRREQUESTEDASSESSMENTENDDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCCOMMENTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SALESSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SUPPLIER_TEAM_FEASIBILITY_COMMITMENT + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRTARGETCHANGEIMPLEMENTATIONCOMMENT + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRTARGETCHANGEIMPLEMENTATIONDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_CRTITLE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_TOOLINGKICKOFFDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_TOOLINGKICKOFFSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_TOOLINGREVIEWDATE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_TOOLINGREVIEWSTATUS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_TOOLINGPRICE + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_VALIDATION_MVP_R_R + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCCAPEXCONTRIBUTION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCDEVELOPMENTCONTRIBUTION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ACTIONCOMMENTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ASSESSMENT_RISK + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCBOPCOSTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCCAPEX + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCCAPEXCUSTOMERCASHCONTRIBUTION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCCONTRIBUTION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCDIRECTLABORCOST + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCDNDDPROTOSALES + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCFREIGHTOUTCOSTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCIMPACTONPPAPAIDBYCUSTOMERPERPART + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCLAUNCHCOSTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCLAUNCHCOSTSCUSTOMERPARTICIPATION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCPROTOCOSTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCSCRAP + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCSUBSIDIES + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCTOOLINGCOSTS + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCTOOLINGSALES + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_ISSUE_DESCRIPTION + \"]\");\n slselectObjStmts.addElement(\"attribute[\" + TigerConstants.ATTRIBUTE_PSS_SLCRMCOST + \"]\");\n\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_CHANGECOORDINATOR + \"].to.name\");\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_ISSUE + \"].to.description\");\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_ISSUE + \"].to.name\");\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA + \"].from.name\");\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_PSS_CONNECTEDPCMDATA + \"].from.description\");\n slselectObjStmts.addElement(\"relationship[\" + TigerConstants.RELATIONSHIP_PSS_IMPACTANALYSIS + \"].to.name\");\n\n } catch (Exception ex) {\n logger.error(\"Error in getSLCTableSelectables: \", ex);\n throw ex;\n }\n\n return slselectObjStmts;\n }", "String getSelect();", "String getSelect();", "@Override\n\tpublic List selectList3(Object map) {\n\t\treturn null;\n\t}", "void defSelect(Variable var){\r\n \t//if (isSelectAll()){\r\n \t\taddSelect(var);\r\n \t//}\r\n }", "@Override\n\tpublic List selectList(Object map) {\n\n\t\tList list = session.selectList(\"play.play_list\", map);\n\n\t\treturn list;\n\t}", "@Override\n protected void processSelect() {\n \n }", "SelectSubSet createSelectSubSet();", "public void selectlistname(String selectlist){\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Link should be selected in the dropdown\");\r\n\t\ttry{\r\n\r\n\t\t\twaitForElement(locator_split(\"dropdowncurrentlist\"));\r\n\t\t\tclick(locator_split(\"dropdowncurrentlist\"));\r\n\r\n\t\t\twaitforElementVisible(returnByValue(getValue(\"listselectname\")));\r\n\t\t\tclick(returnByValue(getValue(\"listselectname\")));\r\n\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- list is slected\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Favorities is not clicked \"+elementProperties.getProperty(\"dropdowncurrentlist\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dropdowncurrentlist\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\t\r\n\r\n\r\n\t}", "void selectList(ShoppingList _ShoppingList);", "@Override\n\tpublic List selectList2(Object map) {\n\t\t\n\t\tList list= session.selectList(\"party.party_show_list\",map);\n\t\t\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<PurchaseRequisition_itemInformation> selectPriList() {\n\t\treturn prim.selListPri();\r\n\t}", "@Override\n\tpublic List<ProductBean> selectListkey(SearchCriteria cri) {\n\t\treturn session.selectList(namespace + \".selectListkey\", cri);\n\t}", "public void select() {}", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "@Override\n\tpublic List<StudentVO> sellectAll() {\n\t\treturn null;\n\t}", "public java.lang.Object[] getSelectPresentationValueList();", "public void select();", "List<Model> selectAll();", "@Override\r\n\tpublic List<Slide> selects() {\n\t\treturn dao.selects();\r\n\t}", "public List<String> listSelectedSamithiById(Long id);", "@Override\n\tpublic List<Tmenu> selectAllList() {\n\t\treturn menuMapper.selectAllList();\n\t}", "public void selectAllAccessibleSelection() {\n // To be fully implemented in a future release\n }", "private List<Selection<?>> constructSelect(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree selects) {\n \t\tfinal List<Selection<?>> selections = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < selects.getChildCount(); i++) {\n \t\t\tfinal Tree selectDef = selects.getChild(i);\n \n \t\t\tfinal AbstractSelection<?> selection = this.constructSingleSelect(cb, q, selectDef.getChild(0));\n \n \t\t\tif (selectDef.getChildCount() == 2) {\n \t\t\t\tselection.alias(selectDef.getChild(1).getText());\n \t\t\t}\n \n \t\t\tselections.add(selection);\n \t\t}\n \n \t\tq.updateResultClass(selections);\n \n \t\treturn selections;\n \t}", "@Override\r\n\tpublic List<Produit> getProduitsSelect(List<Produit> lp) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<vip> selectAll() {\n\t\treturn this.vd.selectAll();\n\t}", "private void comboMultivalores(HTMLSelectElement combo, String tabla, String defecto, boolean dejarBlanco) {\n/* 393 */ SisMultiValoresDAO ob = new SisMultiValoresDAO();\n/* 394 */ Collection<SisMultiValoresDTO> arr = ob.cargarTabla(tabla);\n/* 395 */ ob.close();\n/* 396 */ if (dejarBlanco) {\n/* 397 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 398 */ op.setValue(\"\");\n/* 399 */ op.appendChild(this.pagHTML.createTextNode(\"\"));\n/* 400 */ combo.appendChild(op);\n/* */ } \n/* 402 */ Iterator<SisMultiValoresDTO> iterator = arr.iterator();\n/* 403 */ while (iterator.hasNext()) {\n/* 404 */ SisMultiValoresDTO reg = (SisMultiValoresDTO)iterator.next();\n/* 405 */ HTMLOptionElement op = (HTMLOptionElement)this.pagHTML.createElement(\"option\");\n/* 406 */ op.setValue(\"\" + reg.getCodigo());\n/* 407 */ op.appendChild(this.pagHTML.createTextNode(reg.getDescripcion()));\n/* 408 */ if (defecto.equals(reg.getCodigo())) {\n/* 409 */ Attr escogida = this.pagHTML.createAttribute(\"selected\");\n/* 410 */ escogida.setValue(\"on\");\n/* 411 */ op.setAttributeNode(escogida);\n/* */ } \n/* 413 */ combo.appendChild(op);\n/* */ } \n/* 415 */ arr.clear();\n/* */ }", "public void select ();", "private void setUpSelect(){\n\t\tEPFuncion fun = new EPFuncion();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tArrayList<EPExpresion> exps = new ArrayList<>();\n\t\t//seteamos la propiedad de la funcion.\n\t\tpro.setNombre(\"a1.p1\");\n\t\tpro.setPseudonombre(\"\");\n\t\t//metemos la propiedad en la funcion.\n\t\texps.add(pro);\n\t\tfun.setExpresiones(exps);\n\t\t//seteamos la funcion con el resto de valores.\n\t\tfun.setNombreFuncion(\"f1\");\n\t\tfun.setPseudonombre(\"fun1\");\n\t\t//metemos la funcion en la lista del select.\n\t\texpresionesSelect.add(fun);\n\t\t//seteamos el resto de propiedades.\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"pro2\");\n\t\texpresionesSelect.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"pro3\");\n\t\texpresionesSelect.add(pro);\n\t}", "public void selectAll() {\n\t\tProductMenu menu = new ProductMenu();\n\t\ttry {\n\t\t\tList<Stock> list = service.selectAll();\n\t\t\tmenu.displayList(list);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public List<String> getSelectClauseVarList() ;", "public String selectMultipleList(String object, String data) {\n\t\tlogger.debug(\"Selecting from list\");\n\t\ttry {\n\n\t\t\tboolean flag = false;\n\t\t\tWebElement select = wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object)))));\n\t\t\tList<WebElement> options = select.findElements(By.tagName(OR.getProperty(\"OPTION_TAG\")));\n\n\t\t\tString temp = data.trim();\n\t\t\tString allElements[] = temp.split(Constants.Object_SPLIT);\n\t\t\tfor (WebElement option : options) {\n\n\t\t\t\tlogger.debug(\"optionvalue \" + option.getText());\n\t\t\t\tfor (int i = 0; i < allElements.length; i++) {\n\t\t\t\t\tif (option.getText().equals(allElements[i].trim())) {\n\t\t\t\t\t\toption.click();\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag) {\n\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\t} else {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" - Could not select from list. \";\n\t\t\t}\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" - Could not select from list. \" + e.getMessage();\n\n\t\t}\n\t}", "private void fillSelectionListFromArrayList(JList aListComponent,ArrayList<String> theList) {\n int[] toBeSelectedIndices = new int[theList.size()];\n int aValueIndex = 0;\n if(theList.size()>0){\n for(String aValue : theList){\n for(int in = 0; in < aListComponent.getModel().getSize();in++){\n String aCorrType = (String)aListComponent.getModel().getElementAt(in);\n if(aValue.equals(aCorrType)){\n toBeSelectedIndices[aValueIndex] = in;\n }\n }\n aValueIndex++;\n }\n aListComponent.setSelectedIndices(toBeSelectedIndices);\n \n }else{\n aListComponent.clearSelection();\n }\n \n }", "public List<ErpBookInfo> selData();", "public void setSelectPresentationBackingList(java.util.Collection items, String valueProperty, String labelProperty);", "@Override\n\tpublic ArrayList<ProductDTO> selectList(ProductDTO dto) {\n\t\treturn null;\n\t}", "List<CaseLinkman> selectAll();", "@Override\r\n\tpublic ArrayList<theaterVO> selectList() {\n\t\treturn theaterRentalDaoImpl.selectList();\r\n\t}", "@Override\n\tabstract protected List<String> getOptionsList();", "public List<SelectItem> getListaMes()\r\n/* 163: */ {\r\n/* 164:209 */ ArrayList<SelectItem> lista = new ArrayList();\r\n/* 165:210 */ for (Mes mes : Mes.values()) {\r\n/* 166:211 */ lista.add(new SelectItem(mes, mes.getNombre()));\r\n/* 167: */ }\r\n/* 168:213 */ return lista;\r\n/* 169: */ }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (jcb.isSelected()) {\n\t\t\t\t\t\tselectList.add(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselectList.remove(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\r\n\tpublic List<Map<String, Object>> fileSelectList(int no) {\n\t\treturn sqlSession.selectList(namespace + \"fileSelectList\", no);\r\n\t}", "public java.lang.Object[] getSelectPresentationBackingList();", "List<MenuInfo> selectByExample(MenuInfoExample example);", "@Override\r\n\tprotected Object getSelectData() {\n\t\treturn null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<Subject> selectAll(){\n \tList<Subject> list = null;\n SqlSession session = sqlSessionFactory.openSession();\n \n try {\n list = session.selectList(\"Subject.selectAll\");\n } finally {\n session.close();\n }\n System.out.println(\"selectAll() --> \"+list);\n return list;\n\n }", "protected abstract void select();", "@Override\n\tpublic void select() {\n\t}", "@Override\n\tpublic List<FoodItem> loadToSelectOption() {\n\t\treturn foodItemRepository.findAll();\n\t}", "@Override\n\tpublic ArrayList<MemberVO> sellectAll() {\n\t\t\n\t\treturn dao.selectAll();\n\t}", "public List<o> selectAll();", "private static List<SelectItem> retrieveLookupList(String className, boolean insertBlank) {\r\n\t\tList<SelectItem> lookupList = new ArrayList<SelectItem>();\r\n\r\n\t\t// get ServiceLocator instance\r\n\t\tServiceLocator svcLocator = ServiceLocator.getInstance();\r\n\t\t// get instance of lookup facade from service locator\r\n\t\tLookupFacade lookupFacade = (LookupFacade) svcLocator.getBean(\"lookupFacade\");\r\n\t\t// retrieve result by calling lookupfacade\r\n\t\tLookupFacadeResult lookupResult = lookupFacade.getLookupList(className);\r\n\r\n\t\t// List<SelectItem> lookupList = new ArrayList<SelectItem>();\r\n\r\n\t\tif (insertBlank) {\r\n\t\t\t// insert blank select item first\r\n\t\t\tlookupList.add(new SelectItem(\"\", \"\"));\r\n\t\t}\r\n\r\n\t\t// iterate through result list and create collection of SelectItem\r\n\t\t// components\r\n\t\tfor (ILookupProfile element : lookupResult.getLookupList()) {\r\n\t\t\tlookupList.add(new SelectItem(element.getCode(), element.getDescription()));\r\n\t\t}\r\n\r\n\t\treturn lookupList;\r\n\t}", "List<FormSubmit> selectListByFilter( ResponseFilter filter, Plugin plugin );", "public java.util.List<Node> select(java.util.List<Node> tbs) {\n\t\tjava.util.List<Node> return_value = new ArrayList<Node>();\n\t\tfor(Node node : tbs) {\n\t\t\tif(!selected_nodes.contains(node)) {\n\t\t\t\tselected_nodes.add(node);\n\t\t\t\treturn_value.add(node);\n\t\t\t}\n\t\t}\n\t\treturn return_value;\n\t}", "private void setSelectList(char c) {\n\t\t_expectedOutputList.setSelectedItem(c);\n\n\t\tEnumeration<AbstractButton> e = _expectedOutputGroup.getElements();\n\t\twhile (e.hasMoreElements()) {\n\t\t\tAbstractButton btn = e.nextElement();\n\t\t\tif (c == btn.getText().charAt(0)) {\n\t\t\t\tbtn.setSelected(true);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}", "List<TbFreightTemplate> selectAll();", "public void setSelect(Vector<String> list) {\n\t\tjoinSelectColumn = list;\n\t\t\n\t}", "public String selectList(final String object, String data) {\n\t\tlogger.debug(\"Selecting from list\");\n\t\ttry {\n\t\t\t//System.out.println(\"inside selectList---\");\n\t\t\twaitForPageLoad(driver);\n\t\t\t\n\t\t\t\n\t\t\tWebElement select = wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object)))));\n\n\t\t\tList<WebElement> options = select.findElements(By.tagName(OR.getProperty(\"OPTION_TAG\").trim()));\n\t\t\tString expected = data.trim();\n\t\t\tlogger.debug(\"Expected is > \" + expected);\n\t\t\tfor (WebElement option : options) {\n\n\t\t\t\tString actual = option.getText().trim();\n\t\t\t\tlogger.debug(\"Actual > \" + actual);\n\t\t\t\tif (actual.equals(expected)) {\n\t\t\t\t\tlogger.debug(\"Selected...\" + data);\n\t\t\t\t\toption.click();\n\t\t\t\t\treturn Constants.KEYWORD_PASS + \"--\" + data + \" - selected\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" - Could not select from list. \" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_FAIL + \" - Could not select from list. \";\n\t}", "private static List<SelectItem> retrieveStandardFieldLookupList(String className, boolean insertBlank,\r\n\t\t\tboolean activeOnly, String[] selectedCodes) {\r\n\t\tList<SelectItem> lookupList = new ArrayList<SelectItem>(16);\r\n\r\n\t\t// get ServiceLocator instance\r\n\t\tServiceLocator svcLocator = ServiceLocator.getInstance();\r\n\t\t// get instance of lookup facade from service locator\r\n\t\tLookupFacade lookupFacade = (LookupFacade) svcLocator.getBean(\"lookupFacade\");\r\n\t\t// retrieve result by calling lookupfacade\r\n\t\tList<IStandardFieldLookupProfile> lookupResult = lookupFacade.getStandardFieldLookupList(className);\r\n\r\n\t\tif (insertBlank) {\r\n\t\t\t// insert blank select item first\r\n\t\t\tlookupList.add(new SelectItem(\"\", \"\"));\r\n\t\t}\r\n\r\n\t\t// loop through result list and create collection of SelectItem\r\n\t\t// components\r\n\t\tif (activeOnly) {\r\n\t\t\tfor (IStandardFieldLookupProfile lookup : lookupResult) {\r\n\t\t\t\tif (lookup.isActive())\r\n\t\t\t\t\tlookupList.add(new SelectItem(lookup.getCode(), lookup.getDescription()));\r\n\t\t\t\telse {\r\n\t\t\t\t\tfor (int i = 0; i < selectedCodes.length; i++) {\r\n\t\t\t\t\t\tif (lookup.getCode().equalsIgnoreCase(selectedCodes[i])) {\r\n\t\t\t\t\t\t\tlookupList.add(new SelectItem(lookup.getCode(), lookup.getDescription()));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (IStandardFieldLookupProfile lookup : lookupResult) {\r\n\r\n\t\t\t\tlookupList.add(new SelectItem(lookup.getCode(), lookup.getDescription()));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tCollections.sort(lookupList, selectItemListComparator);\r\n\r\n\t\treturn lookupList;\r\n\t}", "@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}", "List<Usertype> selectAll();", "List<OpeningRequirement> selectAll();", "public static List<Cancion> selectAll() {\n\t\treturn selectAll(\"\");\n\t}", "Select(){\n }", "List<Dormitory> selectAll();", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "public void searchFilter(){\n\t\t\n\t\tdriver.findElement(By.xpath(\"//div[@class='_3uDYxP']//select[@class='_2YxCDZ']\")).click();\n\t\tSystem.out.println(\"drop-downselected\");\n\t}", "public java.lang.Object[] getSelectPresentationLabelList();", "public List<FormMenuVO> selectSiteMenuFormList() {\n\t\treturn sqlSession.selectList(\"com.example.mapper.SiteMapper.selectSiteMenuFormList\");\n\t}", "@Override\r\n\tpublic List<Temi> selectAll() {\n\t\treturn temiMapper.selectAll();\r\n\t}", "@Override\n\tpublic List selectCartList() {\n\t\treturn null;\n\t}", "public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }", "public List<JianliBean> selectAll() {\n\t\treturn jianliDao.selectAll();\r\n\t}", "public abstract List<Usuario> seleccionarTodos();", "public void selectOption(WebElement element,String text) {\nSelect s=new Select(element);\n//List<WebElement> options = s.getOptions();\n//WebElement webElement = options.get(index);\n//String text = webElement.getText();\ns.selectByVisibleText(text);\n\n\n}", "void multiSelection(DynamicTable table, String element) {\n //String upElement = element.substring(0,1).toUpperCase() +\n // element.substring(1);\n //................MULTIPLE SELECTION--Add DROP-DOWN MENU ....................\n Select multiTypeSelect = new Select(\"pmultitype\");\n multiTypeSelect.addOption(new Option(\"Only 1 \"+element+\" required\",\"1\", false));\n multiTypeSelect.addOption(new Option(\"12 month \"+element+\"s\", \"2\", false));\n multiTypeSelect.addOption(new Option(\"4 seasonal \"+element+\"\", \"3\", false));\n multiTypeSelect.addOption(new Option(\"A \"+element+\" / month (yrs*12)\", \"4\", false));\n\n //................PLOT TYPE SELECTION input box....................\n table.addRow(ec.cr2ColRow(\n chFSize(\"Multi-\"+element+\" Selection: \",\"-1\"), multiTypeSelect));\n\n }", "@Override\n\tpublic List<ReplyDTO> select(int num) throws Exception {\n\t\treturn session.selectList(\"ReplyMapper.selectList\",num);\n\t}", "@Override\n public List<Beheerder> select() {\n ArrayList<Beheerder> beheerders = new ArrayList<>();\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"SELECT * FROM gebruiker ORDER BY id;\");\n ResultSet resultSet = preparedStatement.executeQuery();\n beheerders = fillListFromResultSet(resultSet, beheerders);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection(connection);\n return beheerders;\n }", "@Override\r\n\tpublic List<Client> selectclient() {\n\t\tList<Client> list=this.getSqlSessionTemplate().selectList(changToNameSpace(\"selectclient\"));\r\n\t\treturn list;\r\n\t}", "public static void selectFromList(WebElement select,\n\t\t\tString sValueToBeSelected) {\n\t\ttry {\n\t\t\tlogger.info(\"Inside getElementFromList method\");\n\t\t\tList<WebElement> options = select\n\t\t\t\t\t.findElements(By.tagName(\"option\"));\n\t\t\tlogger.info(\"Total elements having Option TAG :\" + options.size());\n\t\t\tfor (WebElement option : options) {\n\t\t\t\tlogger.info(option.getText());\n\t\t\t\tif (option.getText().trim()\n\t\t\t\t\t\t.equalsIgnoreCase(sValueToBeSelected.trim())) {\n\t\t\t\t\tlogger.info(\"Tag Name matched and will be clicked\");\n\t\t\t\t\toption.click();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error ocurred while selecting the element fron List\"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public List<Person> UserSelect() {\n\t\t System.out.println(\"UserSelect\");\n\t\t return personDAO.getPersons();\n\t}", "public TestMobileSelectMultiple(ItsNatHTMLDocument itsNatDoc,ItsNatServletRequest request)\r\n {\r\n super(itsNatDoc);\r\n\r\n initListMultiple();\r\n }", "@Override\r\n\tpublic String select() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(numPerPage*(pageIndex-1));\r\n\t\tparamList.add(numPerPage);\r\n\t\tthis.setResultMesg(adminDao.doCount(), adminDao.doSelect(paramList));\r\n\t\treturn SUCCESS;\r\n\t}", "public Select getSelect()\n {\n return select;\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public List<User> selectList(Parameter p) throws SQLException {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Map<String, Object>> selectTargetList(HttpServletRequest request) throws Exception {\n\r\n\t\tString host = request.getParameter(\"host\");\r\n\t\t\r\n\t\treturn dao.selectTargetList(host);\r\n\t}", "public List select(Object[] obj) {\n\t\treturn null;\n\t}" ]
[ "0.77337223", "0.734127", "0.7168742", "0.6852062", "0.66638297", "0.66206694", "0.65339845", "0.6516094", "0.65097666", "0.6505212", "0.6423907", "0.64190257", "0.6372574", "0.636237", "0.63489383", "0.63489383", "0.6332227", "0.6307849", "0.6307349", "0.6296078", "0.6257305", "0.6244257", "0.62424517", "0.62394726", "0.62272626", "0.62240225", "0.62183636", "0.61859477", "0.61790615", "0.6160355", "0.6159369", "0.6149826", "0.614615", "0.6140759", "0.61347604", "0.6126206", "0.6102947", "0.61001545", "0.6064277", "0.60618883", "0.6058443", "0.60241723", "0.60205674", "0.6008188", "0.60067993", "0.59829", "0.5979876", "0.5976408", "0.59741163", "0.5963722", "0.59613806", "0.59588194", "0.5956762", "0.59508693", "0.59493154", "0.5947072", "0.594368", "0.5927801", "0.59237045", "0.5921691", "0.59177023", "0.59103346", "0.59098357", "0.59000957", "0.58908194", "0.5869473", "0.58635485", "0.5862051", "0.58498776", "0.5847718", "0.5839626", "0.5822018", "0.5820556", "0.5818835", "0.58117783", "0.57952446", "0.5790358", "0.5785574", "0.5780952", "0.5773161", "0.5772026", "0.577071", "0.5767556", "0.5766289", "0.57643485", "0.5759885", "0.57543623", "0.5753304", "0.57519263", "0.57421136", "0.5741921", "0.5739922", "0.5736267", "0.5735222", "0.5730949", "0.57272017", "0.5726483", "0.5725361", "0.57251406", "0.57247984", "0.57247466" ]
0.0
-1
=================================================================================== Type Handling =============
public void test_Date_utilDateColumn_selects_sqlDate_Tx() throws Exception { // ## Arrange ## final Integer memberId = 1; // ## Act ## final Member member = jdbcManager.from(Member.class).where("memberId = ?", memberId).getSingleResult(); // ## Assert ## assertNotNull(member); log(member.toString()); assertEquals(memberId, member.memberId); assertEquals(java.sql.Date.class, member.birthdate.getClass()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "abstract public Type getType();", "protected abstract String getType();", "type getType();", "Coding getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "abstract public String getType();", "public abstract Type getType();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "abstract public Type type();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "@Override abstract public String type();", "public Type getType();", "public String type();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "public String getType();", "private String getType(){\r\n return type;\r\n }" ]
[ "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7595598", "0.7515235", "0.7422437", "0.72943014", "0.72818804", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.72719204", "0.7271729", "0.7263248", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7167898", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.7074646", "0.70604867", "0.70479643", "0.70479643", "0.70479643", "0.70479643", "0.70479643", "0.70479643", "0.70479643", "0.70479643", "0.69890374", "0.6950908", "0.6916103", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68237203", "0.68117493" ]
0.0
-1
=================================================================================== Performance Cost ================
public void test_performance_cost_Tx() throws Exception { // ## Arrange ## final String prefix = "S"; // ## Act & Assert ## { long before = System.currentTimeMillis(); List<Member> memberList = jdbcManager.from(Member.class).where("memberName like ?", prefix + "%").orderBy( "birthdate desc, memberId asc").getResultList(); long after = System.currentTimeMillis(); log("1-[Performance Cost]: " + convertToPerformanceView(before, after) + " size=" + memberList.size()); } { long before = System.currentTimeMillis(); List<Member> memberList = jdbcManager.from(Member.class).where("memberName like ?", prefix + "%").orderBy( "birthdate desc, memberId asc").getResultList(); long after = System.currentTimeMillis(); log("2-[Performance Cost]: " + convertToPerformanceView(before, after) + " size=" + memberList.size()); } { long before = System.currentTimeMillis(); List<Purchase> purchaseList = jdbcManager.from(Purchase.class).where("purchaseDatetime < ?", new Date()) .orderBy("purchaseId asc").getResultList(); long after = System.currentTimeMillis(); log("3-[Performance Cost]: " + convertToPerformanceView(before, after) + " size=" + purchaseList.size()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testPerformance() {\n \t}", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "@Override\r\n\tprotected void processCost() {\n\r\n\t}", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(UFTest.class.getResource(\"/\").getPath()+\"1.5/largeUF.txt\"));\n String str = bufferedReader.readLine();\n UFLJWQU uf = new UFLJWQU(Integer.parseInt(str));\n long beginTime =System.currentTimeMillis();\n while ((str = bufferedReader.readLine())!=null){\n String[] array = str.split(\" \");\n int p = Integer.parseInt(array[0]);\n int q = Integer.parseInt(array[1]);\n if(uf.connected(p,q)) continue;\n uf.union(p,q);\n// System.out.println(p+\" -- \"+q);\n }\n System.out.println(uf.count());\n System.out.println(\"cost time :\"+(System.currentTimeMillis() - beginTime));\n }", "@Override\n public long cost() {\n return 100;\n }", "@Override public short getComplexity() {\n return 0;\n }", "private void baseAlgorithm() {\n\t\tlong start = System.nanoTime();\n\t\tinitCentroids();\n\t\tint counter = 0;\n\t\twhile (counter < 1000\n\t\t\t\t&& (lastCentroids == null || !SeriesComparator.equalClustering(lastCentroids, centroids))) {\n\t\t\tresetClusters();\n\t\t\tassignPoints();\n\t\t\tlastCentroids = new ArrayList<Point2D>(centroids);\n\t\t\tcalculateNewMean();\n\t\t\tbasicIterations++;\n\t\t\tcounter++;\n\t\t}\n\t\tconvertToClustering();\n\t\tbasicRuntime = System.nanoTime() - start;\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}", "private static void doStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.stream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "private static int benchmarkedMethod() {\n return 3;\n }", "@Test\n public void timeAppendObject() {\n Object o =\n new Object() {\n @Override\n public String toString() {\n return \"constant\";\n }\n };\n BenchmarkState state = mPerfStatusReporter.getBenchmarkState();\n while (state.keepRunning()) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < mLength; ++j) {\n sb.append(o);\n }\n }\n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public abstract long mo9746k();", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}", "private CostHelper() {}", "public long problem2b(){\r\n LinkedList<String> linkList = new LinkedList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n linkList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start; \r\n }", "private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }", "public static void main (String []args) {\n\tlong first = System.currentTimeMillis();\n\tlong sum=0;\n\tfor (int i = 0; i < 100000; i++) {\n\t String[] str = strings();\n\t sum += str[0].charAt(0);\n\t}\n\tlong done = System.currentTimeMillis();\n\n\tSystem.out.println ((done - first)*1000);\n\tSystem.out.println (sum);\n }", "public static void main(String[] args) {\n float[] fb=new float[9];\n fb[0]=(int)12;\n fb[1]=(byte)13;\n fb[2]=(short)8;\n fb[3]=12.021f;\n // fb[4]=23443.43d;\n// fb[4]='a';\n// for(int i=0;i<=4;i++) {\n// \t System.out.println(fb[i]);\n// }\n List<Integer> lis1=new ArrayList<>();\n List<Integer> lis2=new ArrayList<>();\n lis1.add(2);\n lis1.add(4);\n lis1.add(16);\n lis1.add(32);\n lis1.add(96);\n lis1.add(123);\n lis1.add(435);\n lis1.add(234);\n lis1.add(100);\n lis1.add(122);\n lis1.add(240);\n lis1.add(350);\n java.util.Iterator<Integer> itr= lis1.iterator();\n //while(itr.hasNext()) {\n // itr.remove();\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(lis1);\n // \n// long startTime = System.currentTimeMillis();\n// getTotalX(lis1,lis2);\n// System.out.println(\"Time taken by 2 * o(n^2) \" + (System.currentTimeMillis() - startTime) + \"ms\"); \n// \n \t\t \n\t}", "long memoryUnused();", "public static void concurrency() {\n List<String> words = new ArrayList<>();\n for (int i = 0; i < 500000; i++)\n words.add(UUID.randomUUID().toString());\n\n //Groups the list into a map of strings by length in serial\n long t2s = System.nanoTime();\n Map<Integer, List<String>> a = words.stream()\n .collect(Collectors.groupingBy(String::length));\n long t2d = System.nanoTime() - t2s;\n\n //Groups the list into a map of strings by length in parallel\n long t1s = System.nanoTime();\n ConcurrentMap<Integer, List<String>> b = words.parallelStream()\n .collect(Collectors.groupingByConcurrent(String::length));\n long t1d = System.nanoTime() - t1s;\n\n System.out.println(\"Collect Serial time : \" + t2d);\n System.out.println(\"Collect Parallel time : \" + t1d);\n }", "@Test\n public void testGetElementJavaPerfTest() throws Exception {\n\n Status somethingThatIsSerializable = Status.STATUS_ALIVE;\n byte[] serializedForm = MemoryEfficientByteArrayOutputStream.serialize(somethingThatIsSerializable).getBytes();\n\n assertEquals(404, HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\").getResponseCode());\n\n net.sf.ehcache.server.soap.jaxws.Element element = new net.sf.ehcache.server.soap.jaxws.Element();\n element.setKey(\"1\");\n element.setValue(serializedForm);\n cacheService.put(\"sampleCache2\", element);\n\n long begin = System.currentTimeMillis();\n for (int i = 0; i < 100; i++) {\n HttpURLConnection urlConnection = HttpUtil.get(\"http://localhost:9090/ehcache/rest/sampleCache2/1\");\n assertEquals(200, urlConnection.getResponseCode());\n }\n long end = System.currentTimeMillis();\n LOG.info(\"Get time: \" + (end - begin) / 100f);\n }", "private void optimiseEVProfile()\n\t{\n\t}", "@Override\n public int getCost() {\n\treturn 0;\n }", "@Test\n public void testPerformance() {\n int opCount = 1000000;\n Random random = new Random();\n\n for(int i = 0; i < opCount; i++) {\n linkedListStack.push(new Student(random.nextInt(Integer.MAX_VALUE), random.nextInt(Integer.MAX_VALUE)));\n }\n while(!linkedListStack.isEmpty()) {\n linkedListStack.pop();\n }\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}", "@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}", "private double getOEEPerformance(Batch batch) {\n return 1;\n }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "public void performance() {\n\t\tPositionVo s = currentPerformed.getFirst();\n\t\t@SuppressWarnings(\"unused\")\n\t\tPositionVo e = currentPerformed.getLast();\n//\t\tint timeCost = (int) (e.getTime() - s.getTime());\n//\t\tint span = (int) Math.abs(e.getHead().getX() - s.getHead().getX());\n\t\t// TODO according to the moving rate decide how many nodes fill the gap\n\n\t\tint size = currentPerformed.size();\n\n\t\tfor (int i = 1; i < size * 4 - 4; i += 4) {\n\t\t\tPositionVo s1 = currentPerformed.get(i - 1);\n\t\t\tPositionVo s2 = currentPerformed.get(i);\n\n\t\t\tPoint[] delta_Head = sim_dda(s1.getHead(), s2.getHead(), 4);\n\t\t\tPoint[] delta_left_hand = sim_dda(s1.getLeftHand(), s2.getRightHand(), 4);\n\t\t\tPoint[] delta_right_hand = sim_dda(s1.getRightHand(), s2.getRightHand(), 4);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tcurrentPerformed.add(i + j, new PositionVo(delta_Head[j], delta_left_hand[j], delta_right_hand[j]));\n\t\t}\n\n\t\tnCount = currentPerformed.size();\n\t\tcursor = 0;\n\n\t\t/* (*)absolute point = initial point - current point */\n\t\treferX -= s.getHead().getX();\n\t\treferY += s.getHead().getY();\n\t\tcurrReferX = referX;\n\t\tcurrReferY = referY;\n\n\t\t/* update gui */\n\t\tmanager.proceBar.setMinimum(0);\n\t\tmanager.proceBar.setMaximum(nCount);\n\t\t/* end */\n\n\t\tstartTimer((int) (ANIMATE_FPS * speedRate));\n\t}", "private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "public static void doFor(){\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n int ans = 0;\n for (Person p: personCopy){\n if (p.getHeight() > 180){\n ans++;\n }\n }\n System.out.println(\"doFor(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public static void main(String[] args) throws Exception {\n \r\n long beginTime = System.nanoTime();\r\n for (int i = 0; i < 50000000; i++) {\r\n// System.out.println(getFlowNo());\r\n getFlowNo();\r\n \r\n }\r\n long endTime = System.nanoTime();\r\n System.out.println(\"onLineWithTransaction cost:\"+((endTime-beginTime)/1000000000) + \"s \" + ((endTime-beginTime)%1000000000) + \"us\");\r\n// \r\n// System.out.println(System.currentTimeMillis());\r\n// TimeUnit.SECONDS.sleep(3);\r\n// System.out.println(System.currentTimeMillis());\r\n }", "private static void demoPerformance(int aNumIterations){\n\t\tStopWatch stopwatch = new StopWatch();\n\t\tint[] numbers = {1,2,3,4,5,6,7,8,9,10};\n\n\t\tstopwatch.start();\n\t\tcopyUsingClone(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using clone: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingArraycopy(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using System.arraycopy: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingArraysCopyOf(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using Arrays.copyOf: \" + stopwatch);\n\n\t\tstopwatch.reset();\n\t\tstopwatch.start();\n\t\tcopyUsingForLoop(numbers, aNumIterations);\n\t\tstopwatch.stop();\n\t\tlog(\"Using for loop: \" + stopwatch);\n\t}", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "private static native boolean computeSaliency_0(long nativeObj, long image_nativeObj, long saliencyMap_nativeObj);", "public static int performanceCountGet() { return 0; }", "@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}", "long memoryUsed();", "private void iterativeDataPropertyMetrics() {\n\t}", "public static void main(String[] args) {\n\t\tThread thread1=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tThread thread2=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tthread1.start();\r\n\t\tthread2.start();\r\n\r\n\t\r\n\t}", "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "public void testF() {\n\t\tfor (int k = 0; k < usedSS; k++) {\n\t\t\tList<Integer> subStr = vals.subList(k*compSize, (k+1)*compSize);\n\t\t\tint sum = (int) subStr.stream().filter(i -> i != BipartiteMatching.FREE).count();\n\t\t\tfData.add(sum);\t\t\t\n\t\t}\n\t}", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public static void main(String[] args) {\n\t\tint size = 600_000_000;\n\t\tint[] mas = new int[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmas[i] = i;\n\t\t}\n\n\t\t// positive test\n\t\tint target = size - 1;\n\n\t\tlong start = System.currentTimeMillis();\n\t\tlinearSearchTestPositive(mas, target, target);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end - start);\n\n\n\t\tlong start1 = System.currentTimeMillis();\n\t\tbinarySearchTestPositive(mas, target, target);\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(end1 - start1);\n\t}", "@Benchmark\n public void task0()\n throws IOException{\n Map<Character, Integer> letterScores = (new LetterScorer(maxThreads, validCharRegex))\n .getScoreFromCorpus(dataDir);\n\n Files.write(Paths.get(outFilePath)\n , (new KScorer(maxThreads, validCharRegex, kNeighborhood, letterScores))\n .getScoreFromCorpus(dataDir)\n .stream()\n .sorted(Comparator.comparing(Map.Entry::getKey))\n .map(e-> e.getKey() + \", \" + e.getValue())\n .collect(Collectors.joining(\"\\n\"))\n .getBytes());\n }", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected static int m34121a(int i, long j, List<C22441c> list) {\n C22441c c22441c;\n AppMethodBeat.m2504i(114774);\n Object obj = 1;\n while (i < sJS.size()) {\n try {\n Object obj2;\n c22441c = (C22441c) sJS.get(i);\n if (obj == null || c22441c.endTime <= j) {\n list.add(c22441c);\n obj2 = obj;\n } else {\n C22441c c22441c2 = new C22441c();\n c22441c2.sJY = c22441c.sJY;\n c22441c2.startTime = j;\n c22441c2.endTime = c22441c.endTime;\n list.add(c22441c2);\n obj2 = null;\n }\n i++;\n obj = obj2;\n } catch (Exception e) {\n AppMethodBeat.m2505o(114774);\n return -1;\n }\n }\n if (list.size() == 0) {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = j;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n } else {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = sJP.startTime;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n }\n int size = sJS.size();\n AppMethodBeat.m2505o(114774);\n return size;\n }", "public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }", "int memSize() {\n return super.memSize() + 4 * 4; }", "public static void benchmarkPrivacyInsertTimeSingleInsert()\n\t{\n\t\tString sampleInsertSQL \n\t\t\t= \"INSERT INTO attr0EncryptionInfoStorage (nodeGUID, realIDEncryption, subspaceId) VALUES\";\n\t\t\n\t\tConnection myConn = null;\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\tmyConn = dsInst.getConnection();\n\t\t\t\n\t\t\tstatement = (Statement) myConn.createStatement();\n\t\t\t\n\t\t\t\n\t\t\tVector<Double> resultlist = new Vector<Double>();\n\t\t\tRandom rand = new Random();\n\t\t\tfor(int i=0; i<100; i++)\n\t\t\t{\n\t\t\t\tbyte[] guidBytes = new byte[20];\n\t\t\t\trand.nextBytes(guidBytes);\n\t\t\t\tString guidString = Utils.byteArrayToHex(guidBytes);\n\t\t\t\t\n\t\t\t\tbyte[] realIDEncryptionBytes = new byte[128];\n\t\t\t\trand.nextBytes(realIDEncryptionBytes);\n\t\t\t\tString realIDHex = Utils.byteArrayToHex(realIDEncryptionBytes);\n\t\t\t\t\n\t\t\t\tint subsapceId = rand.nextInt(3);\n\t\t\t\t\n\t\t\t\tString insertSQL = sampleInsertSQL+\"(X'\"+guidString+\"' , X'\"+realIDHex\n\t\t\t\t\t\t+\"' , \"+subsapceId+\")\";\n\t\t\t\t\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\tstatement.executeUpdate(insertSQL);\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tdouble timeTaken = end-start;\n\t\t\t\tresultlist.add(timeTaken);\n\t\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"benchmarkPrivacyInsertTimeSingleInsert: Insert times \"+\n\t\t\tStatisticsClass.toString(StatisticsClass.computeStats(resultlist)));\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif( statement != null )\n\t\t\t\t\tstatement.close();\n\t\t\t\t\n\t\t\t\tif( myConn != null )\n\t\t\t\t\tmyConn.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static void testStringPoolGarbageCollection() {\n //first method call - use it as a reference\n test(1000 * 1000);\n //we are going to clean the cache here.\n System.gc();\n //check the memory consumption and how long does it take to intern strings\n //in the second method call.\n test(1000 * 1000);\n }", "private static void testStringPoolGarbageCollection() {\n //first method call - use it as a reference\n test(1000 * 1000);\n //we are going to clean the cache here.\n System.gc();\n //check the memory consumption and how long does it take to intern strings\n //in the second method call.\n test(1000 * 1000);\n }", "public void p() {\n try {\n if (this.f80656a.a().size() > 0) {\n this.f80657b.a((f) new f() {\n public void a(Object obj, boolean z) {\n }\n }, this.f80656a.a());\n }\n if (this.f80658c.a().size() > 0) {\n this.f80657b.b(new f() {\n public void a(Object obj, boolean z) {\n if (obj instanceof String) {\n m.this.f80658c.b();\n }\n }\n }, this.f80658c.a());\n }\n if (this.l.size() > 0) {\n this.f80657b.a(new f(), this.l);\n }\n } catch (Throwable th) {\n by.b(\"convertMemoryToCacheTable happen error: \" + th.toString());\n }\n }", "public void summarizeSpaceEfficient() {\n int maxLevel = Collections.max(CALattice.levelMap.keySet());\n for (int i = maxLevel; i >= 0; i--) {\n summarizeSpaceEfficientHelper(CALattice.levelMap.get(i));\n //freeing memory\n if (i < maxLevel)\n freeMemory(CALattice.levelMap.get(i + 1));\n }\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "private void m20202a(boolean checkCache) throws IOException {\n C8469e nextSpan;\n C8489j nextDataSpec;\n C8469e nextSpan2;\n C8487i nextDataSource;\n long length;\n long length2;\n if (this.f18665u) {\n nextSpan = null;\n } else if (this.f18651g) {\n try {\n nextSpan = this.f18645a.mo25946c(this.f18660p, this.f18661q);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n throw new InterruptedIOException();\n }\n } else {\n nextSpan = this.f18645a.mo25944b(this.f18660p, this.f18661q);\n }\n if (nextSpan == null) {\n nextDataSource = this.f18648d;\n Uri uri = this.f18656l;\n int i = this.f18658n;\n long j = this.f18661q;\n C8489j jVar = new C8489j(uri, i, null, j, j, this.f18662r, this.f18660p, this.f18659o);\n nextDataSpec = jVar;\n nextSpan2 = nextSpan;\n } else if (nextSpan.f18671d) {\n Uri fileUri = Uri.fromFile(nextSpan.f18672e);\n long filePosition = this.f18661q - nextSpan.f18669b;\n long length3 = nextSpan.f18670c - filePosition;\n long j2 = this.f18662r;\n if (j2 != -1) {\n length2 = Math.min(length3, j2);\n } else {\n length2 = length3;\n }\n C8489j nextDataSpec2 = new C8489j(fileUri, this.f18661q, filePosition, length2, this.f18660p, this.f18659o);\n nextDataSource = this.f18646b;\n nextDataSpec = nextDataSpec2;\n nextSpan2 = nextSpan;\n } else {\n if (nextSpan.mo25963f()) {\n length = this.f18662r;\n } else {\n length = nextSpan.f18670c;\n long j3 = this.f18662r;\n if (j3 != -1) {\n length = Math.min(length, j3);\n }\n }\n Uri uri2 = this.f18656l;\n int i2 = this.f18658n;\n long j4 = this.f18661q;\n nextDataSpec = new C8489j(uri2, i2, null, j4, j4, length, this.f18660p, this.f18659o);\n if (this.f18647c != null) {\n nextSpan2 = nextSpan;\n nextDataSource = this.f18647c;\n } else {\n C8487i nextDataSource2 = this.f18648d;\n this.f18645a.mo25939a(nextSpan);\n nextSpan2 = null;\n nextDataSource = nextDataSource2;\n }\n }\n this.f18667w = (this.f18665u || nextDataSource != this.f18648d) ? Long.MAX_VALUE : this.f18661q + 102400;\n if (checkCache) {\n C8514e.m20490b(m20206c());\n if (nextDataSource != this.f18648d) {\n try {\n m20204b();\n } catch (Throwable th) {\n Throwable e2 = th;\n if (nextSpan2.mo25962e()) {\n this.f18645a.mo25939a(nextSpan2);\n }\n throw e2;\n }\n } else {\n return;\n }\n }\n if (nextSpan2 != null && nextSpan2.mo25962e()) {\n this.f18663s = nextSpan2;\n }\n this.f18654j = nextDataSource;\n this.f18655k = nextDataSpec.f18720g == -1;\n long resolvedLength = nextDataSource.mo25917a(nextDataSpec);\n C8475k mutations = new C8475k();\n if (this.f18655k && resolvedLength != -1) {\n this.f18662r = resolvedLength;\n C8474j.m20259a(mutations, this.f18661q + this.f18662r);\n }\n if (m20208e()) {\n this.f18657m = this.f18654j.getUri();\n if (true ^ this.f18656l.equals(this.f18657m)) {\n C8474j.m20260a(mutations, this.f18657m);\n } else {\n C8474j.m20258a(mutations);\n }\n }\n if (m20209f()) {\n this.f18645a.mo25942a(this.f18660p, mutations);\n }\n }", "protected void computeDirectly() throws IOException {\n\n\n for(int i = mStart; i < mStart + mLength; i++) {\n mSource[i].forEachRemaining(n -> {\n try {\n Writer.writeBlockForNode(n, db, bufferedWriter, reportBlockSize, relationshipType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n\n\n\n }", "private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }", "@Test\n\tpublic void test() {\n\t\tlong l = System.currentTimeMillis();\n\t\tForkJoinPool forkJoinPool = new ForkJoinPool();// 实现ForkJoin\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 就必须有ForkJoinPool的支持\n\t\tForkJoinTask<Long> task = new ForkJoinWork(0L, 10000000000L);// 参数为起始值与结束值\n\t\tLong invoke = forkJoinPool.invoke(task);\n\t\tlong l1 = System.currentTimeMillis();\n\t\tSystem.out.println(\"test invoke = \" + invoke + \" time: \" + (l1 - l));\n\t\t// invoke = -5340232216128654848 time: 76474\n\t}", "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }", "int checkElapsedTime(){\r\n\t\treturn gc.getElapsedTime();\r\n\t}", "static /* synthetic */ void m34120F(int i, long j) {\n AppMethodBeat.m2504i(114776);\n C22440b c22440b;\n if (i == 11) {\n c22440b = new C22440b();\n c22440b.startTime = System.currentTimeMillis();\n sJR.put(Long.valueOf(j), c22440b);\n AppMethodBeat.m2505o(114776);\n return;\n }\n if (i == 12) {\n if (!sJR.containsKey(Long.valueOf(j))) {\n new C22440b().startTime = System.currentTimeMillis();\n AppMethodBeat.m2505o(114776);\n return;\n }\n } else if (i == 13) {\n c22440b = (C22440b) sJR.get(Long.valueOf(j));\n if (c22440b != null) {\n c22440b.endTime = System.currentTimeMillis();\n sJT.add(c22440b);\n sJR.remove(Long.valueOf(j));\n }\n }\n AppMethodBeat.m2505o(114776);\n }", "protected int getRowCountFast(){\n\t\treturn rowCount;\n\t}", "private static void arrayInserionTime() {\n\t\t String[] namesArray = new String[1000];\n\t\t \n\t long startTime = System.nanoTime();\n\t \n\t for (int i = 0; i < namesArray.length; i++)\n\t {\n\t namesArray[i] = \"Name\"+i;\n\t }\n\t \n\t long endTime = System.nanoTime(); \n\t \n\t System.out.println(\"Time taken by Array : \"+(endTime - startTime)/1000+\"us\");\n\t \n\t ArrayList<String> nameList = new ArrayList<String>(); \n\t \n\t startTime = System.nanoTime();\n\t \n\t for (int i = 0; i <= 1000; i++)\n\t {\n\t nameList.add(\"Name\"+i);\n\t }\n\t \n\t endTime = System.nanoTime();\n\t \n\t System.out.println(\"Time taken by ArrayList : \"+(endTime-startTime)/1000+\"us\");\n\n\t}", "public abstract long mo20901UQ();", "public static void main(String[] args) {\n\t\tArrayList<Integer> array = new ArrayList<>();\n\t\tLinkedList<Integer> linked = new LinkedList<>();\n\t\t\n\t\tlong aStart = System.currentTimeMillis();\n\t\tint i;\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\tlong aEnd = System.currentTimeMillis();\n\t\tlong aTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlong lStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlong lEnd = System.currentTimeMillis();\n\t\tlong lTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\t\n\t\t\n\t\taStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<1000000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\taEnd = System.currentTimeMillis();\n\t\taTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlEnd = System.currentTimeMillis();\n\t\tlTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t}", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "public abstract long mo13681c();", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "@Test public void test_4() throws Exception {\n yetihelper.Helper v76=new yetihelper.Helper(); // time:1355223203509\n int v77=-2147483647; // time:1355223203509\n java.lang.Integer v78=v76.dummyInteger((int)v77); // time:1355223203509\n material.Square v79=new material.Square((java.lang.Integer)v78,(java.lang.Integer)v78); // time:1355223203509\n java.lang.Integer v80=v79.getRow(); // time:1355223203509\n material.Square v286=new material.Square((java.lang.Integer)v80,(java.lang.Integer)null); // time:1355223203642\n int v2252=v286.hashCode();\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223207190\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat material.Square.hashCode(Square.java:49)\n YETI EXCEPTION - END**/ \n /** original locs: 4674 minimal locs: 7**/\n \n }", "public static void main(String[] args)\n {\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"enter cache size in KB among (1, 2, 4, 8, 16, 32)\");\n\tint cacheSize = sc.nextInt();\n\tSystem.out.println(\"enter way associative value among(1,2,4,8)\");\n\tint wayAssociative = sc.nextInt();\n\tSystem.out.println(\"enter cache line size in bytes among(2,4,8,16,32,64)\");\n\tint cacheLineSize = sc.nextInt();\n\tsc.close();\n\n\tlong count_hit = 0, count_miss = 0;\n\tlong count_hit_2 = 0, count_miss_2 = 0, clockCycle_2 = 0;\n\tlong count_hit_4 = 0, count_miss_4 = 0, clockCycle_4 = 0;\n\tlong count_hit_8 = 0, count_miss_8 = 0, clockCycle_8 = 0;\n\n\tint numberOfCacheLines = (int) ((cacheSize * 1024) / cacheLineSize);\n\n\tArrayList<String> cacheKeys = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheValues = new ArrayList<String>(numberOfCacheLines);\n\tArrayList<String> cacheKeys_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheKeys_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\tArrayList<String> cacheValues_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);\n\n\tlong clockCycle = 0;\n\n\tStringBuilder y = new StringBuilder(\"\");\n\n\t// creating main memory array to store all addresses in a 2d\n\t// array..mapping one\n\t// letter into one width length only..1 to 1 mapping.\n\t// so 2 width is one byte..to get value do block offset*2\n\tString[][] mainMemory = new String[1743][32];\n\tfor (int i = 0; i < 1743; i++)\n\t{\n\t for (int j = 0; j < 32; j++)\n\t {\n\t\tmainMemory[i][j] = \"\";\n\t }\n\t}\n\ttry\n\t{\n\t // read all input files\n\t\tString instructionAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_addr_trace_hex_project_1.txt\")));\n\t\tString dataSizes = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_data_size_project_1.txt\")));\n\t\tString memoryAddresses = new String(\n\t\t\t\tFiles.readAllBytes(Paths\n\t\t\t\t\t\t.get(\"/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_mem_hex_16byte_wide.txt\")));\n\t\t// copy all memory addresses into the 2d mainMemory array\n\t\t// split into each line of address\n\n\t String[] memoryAddress = memoryAddresses.split(\"\\\\s+\");\n\t for (int i = 0; i < 1743; i++)\n\t {\n\t\t// split address into each letter\n\t\tString[] oneBit = memoryAddress[i].split(\"\");\n\n\t\tint z = -1;\n\n\t\tfor (int q = oneBit.length - 1; q >= 0; q--)\n\t\t{\n\t\t z++;\n\t\t // store each letter into the array as hex\n\t\t mainMemory[i][q] = oneBit[z];\n\t\t}\n\t }\n\n\t // splitting the instruction addresses into lines\n\t String[] instructionAddress = instructionAddresses.split(\"\\\\s+\");\n\n\t // splitting dataSizes to get length of each data\n\t String[] dataSize = dataSizes.split(\"\\\\s+\");\n\t for (int i = 0; i < instructionAddress.length; i++)\n\t {\n\t\ttry\n\t\t{\n\t\t String binaryIs = \"\";\n\t\t String binaryOffset = \"\";\n\t\t String blockNumber = \"\";\n\t\t if (Integer.parseInt(instructionAddress[i], 16) > 15)\n\t\t {\n\t\t\tbinaryIs = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t\tbinaryOffset = binaryIs.substring(binaryIs.length() - 4);\n\t\t\tblockNumber = binaryIs.substring(0, binaryIs.length() - 4);\n\t\t } else\n\t\t {\n\n\t\t\tblockNumber = \"0\";\n\t\t\tbinaryOffset = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));\n\t\t }\n\n\t\t // check if hit or miss for 1 way\n\t\t if (wayAssociative == 1)\n\t\t {\n\n\t\t\tif (cacheKeys.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t{\n\t\t\t // cache hit situation\n\t\t\t count_hit++;\n\t\t\t clockCycle++;\n\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t // cache miss\n\t\t\t count_miss++;\n\t\t\t clockCycle += 15;\n\n\t\t\t // replacement for direct mapping.\n\n\t\t\t int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t int length = Integer.parseInt(dataSize[i]);\n\n\t\t\t y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t int p = -1, beta = 0;\n\t\t\t for (int alpha = 1; alpha < length; alpha++)\n\t\t\t {\n\n\t\t\t\tif ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t{\n\n\t\t\t\t newBlockNumber_Value++;\n\t\t\t\t newOffset_StartingPosition = 0;\n\t\t\t\t beta = length - alpha;\n\n\t\t\t\t if (p < beta)\n\t\t\t\t {\n\t\t\t\t\tp++;\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t }\n\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t}\n\t\t\t }\n\n\t\t\t y = y.reverse();\n\n\t\t\t // if y is more than one byte then put it in next cache line\n\t\t\t if (y.length() > 4)\n\t\t\t {\n\n\t\t\t\tfor (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t{\n\t\t\t\t String yy = y.substring(o, o + 4);\n\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(yy);\n\n\t\t\t\t}\n\t\t\t } else\n\t\t\t {\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\t\t\t\t cacheKeys.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t cacheValues.add(y.toString());\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t}\n\n\t\t\ty.delete(0, y.length());\n\n\t\t }\n\n\t\t else if (wayAssociative > 1)\n\t\t {\n\n\t\t\tif (wayAssociative == 2)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_2++;\n\t\t\t\tclockCycle_2++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_2++;\n\t\t\t\tclockCycle_2 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (i % wayAssociative == 0)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tif (cacheKeys.size() <= numberOfCacheLines)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\t cacheValues_0.add(yy);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse if (i % wayAssociative == 1)\n\t\t\t\t{\n\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\t// way =4\n\t\t\tif (wayAssociative == 4)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_1.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_2.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_4++;\n\t\t\t\tclockCycle_4++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_4++;\n\t\t\t\tclockCycle_4 += 15;\n\n\t\t\t\t// replacement\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t\telse if (wayAssociative == 8)\n\t\t\t{\n\n\t\t\t if (cacheKeys_0.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_1.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_3.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || cacheKeys_4.contains(blockNumber + \",\" + binaryOffset)\n\t\t\t\t || (cacheKeys_5.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_7.contains(blockNumber + \",\" + binaryOffset))\n\t\t\t\t || (cacheKeys_6.contains(blockNumber + \",\" + binaryOffset)))\n\t\t\t {\n\t\t\t\t// cache hit situation\n\t\t\t\tcount_hit_8++;\n\t\t\t\tclockCycle_8++;\n\n\t\t\t }\n\n\t\t\t else\n\t\t\t {\n\t\t\t\t// cache miss\n\t\t\t\tcount_miss_8++;\n\t\t\t\tclockCycle_8 += 15;\n\n\t\t\t\t// replacement\n\n\t\t\t\tint newBlockNumber_Value = Integer.parseInt(blockNumber, 2);\n\t\t\t\tint newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);\n\t\t\t\tint length = Integer.parseInt(dataSize[i]);\n\n\t\t\t\ty.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);\n\n\t\t\t\tint p = -1, beta = 0;\n\t\t\t\tfor (int alpha = 1; alpha < length; alpha++)\n\t\t\t\t{\n\n\t\t\t\t if ((alpha + newOffset_StartingPosition) % 31 == 0)\n\t\t\t\t {\n\n\t\t\t\t\tnewBlockNumber_Value++;\n\t\t\t\t\tnewOffset_StartingPosition = 0;\n\t\t\t\t\tbeta = length - alpha;\n\n\t\t\t\t\tif (p < beta)\n\t\t\t\t\t{\n\t\t\t\t\t p++;\n\t\t\t\t\t y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);\n\t\t\t\t\t}\n\n\t\t\t\t } else\n\t\t\t\t {\n\t\t\t\t\ty.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);\n\t\t\t\t }\n\t\t\t\t}\n\n\t\t\t\ty = y.reverse();\n\n\t\t\t\tif (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t{\n\n\t\t\t\t if (i % wayAssociative == 0)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_0.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_0.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_0.add(y.toString());\n\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 1\n\t\t\t\t else if (i % wayAssociative == 1)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_1.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t cacheKeys_1.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t cacheValues_1.add(y.toString());\n\t\t\t\t\t}\n\t\t\t\t }\n\n\t\t\t\t // mod 2\n\t\t\t\t else if (i % wayAssociative == 2)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_2.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_2.add(y.toString());\n\t\t\t\t\t } else\n\t\t\t\t\t {\n\t\t\t\t\t\t// System.out.println(\"cache is full...\");\n\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // mmod 3\n\t\t\t\t else if (i % wayAssociative == 3)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_3.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_3.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 4\n\t\t\t\t else if (i % wayAssociative == 4)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_4.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_4.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 5\n\t\t\t\t else if (i % wayAssociative == 5)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_5.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_5.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 6\n\t\t\t\t else if (i % wayAssociative == 6)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_6.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_6.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t // 7\n\n\t\t\t\t else if (i % wayAssociative == 7)\n\t\t\t\t {\n\t\t\t\t\tif (y.length() > 4)\n\t\t\t\t\t{\n\n\t\t\t\t\t for (int o = 0; o < y.length(); o = o + 4)\n\t\t\t\t\t {\n\t\t\t\t\t\tString yy = y.substring(o, o + 4);\n\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(yy);\n\n\t\t\t\t\t }\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\n\t\t\t\t\t if (cacheKeys.size() <= (numberOfCacheLines))\n\t\t\t\t\t {\n\t\t\t\t\t\tcacheKeys_7.add(blockNumber + \",\" + binaryOffset);\n\t\t\t\t\t\tcacheValues_7.add(y.toString());\n\t\t\t\t\t }\n\n\t\t\t\t\t}\n\n\t\t\t\t }\n\n\t\t\t\t //\n\t\t\t\t}\n\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t // System.out.println(\"cache is full...\");\n\n\t\t\t\t}\n\n\t\t\t }\n\n\t\t\t y.delete(0, y.length());\n\n\t\t\t}\n\n\t\t }\n\n\t\t // 3\n\n\t\t} catch (Exception e)\n\t\t{\n\t\t e.printStackTrace();\n\t\t}\n\n\t }\n\n\t // to print outputs\n\n\t if (wayAssociative == 1)\n\t {\n\t\tlong cache_access = count_hit + count_miss;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit);\n\n\t\tdouble hit_ratio = ((double) count_hit) / (count_hit + count_miss) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 2)\n\t {\n\t\tlong cache_access = count_hit_2 + count_miss_2;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_2);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_2);\n\n\t\tdouble hit_ratio = ((double) count_hit_2) / (count_hit_2 + count_miss_2) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_2;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t else if (wayAssociative == 4)\n\t {\n\t\tlong cache_access = count_hit_4 + count_miss_4;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_4);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_4);\n\n\t\tdouble hit_ratio = ((double) count_hit_4) / (count_hit_4 + count_miss_4) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_4;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\n\t } else if (wayAssociative == 8)\n\t {\n\t\tlong cache_access = count_hit_8 + count_miss_8;\n\n\t\tSystem.out.println(\"Total number of cache accesses is \" + cache_access);\n\t\tSystem.out.println(\"Total number of clock cycles is \" + clockCycle_8);\n\t\tSystem.out.println(\"Total number of hits \" + count_hit_8);\n\n\t\tdouble hit_ratio = ((double) count_hit_8) / (count_hit_8 + count_miss_8) * 100;\n\n\t\tSystem.out.println(\"cache hit ratio is \" + hit_ratio + \"%\");\n\n\t\tdouble ipc = ((double) instructionAddress.length) / clockCycle_8;\n\t\tSystem.out.println(\"IPC is \" + ipc);\n\t }\n\n\t} catch (Exception e)\n\t{\n\t e.printStackTrace();\n\t}\n\n }", "private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }", "private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }", "private Rational computeDirectly() {\n BigInteger _26390k = _26390.multiply(BigInteger.valueOf(start));\n BigInteger _24591257856pk = _24591257856.pow(start);\n\n Rational sum = Rational.ZERO;\n\n for (int k = start; k < end; k++) {\n BigInteger num = Factorial.verified(BigInteger.valueOf(k << 2));\n num = num.multiply(_1103.add(_26390k));\n\n BigInteger den = Factorial.verified(BigInteger.valueOf(k)).pow(4);\n den = den.multiply(_24591257856pk);\n\n _26390k = _26390k.add(_26390);\n _24591257856pk = _24591257856pk.multiply(_24591257856);\n\n sum = sum.add(Rational.valueOf(num, den).dropTo(context));\n sum = sum.dropTo(context);\n }\n return sum;\n }", "private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }", "void example2() {\n\t\t\n\t\tIndexedDataSource<HighPrecisionMember> list = ArrayDataSource.construct(G.HP, 1234);\n\t\t\n\t\t// fill the list with values\n\t\t\n\t\tFill.compute(G.HP, G.HP.unity(), list);\n\t\t\n\t\t// then calculate a result\n\n\t\tHighPrecisionMember result = G.HP.construct();\n\t\t\n\t\tSum.compute(G.HP, list, result); // result should equal 1234\n\t}", "public static int offset_cost() {\n return (56 / 8);\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "public static void main(String[] args)\n {\n double start = System.currentTimeMillis();\n int sum = 0;\n BigInteger product = new BigInteger(\"1\");\n BigInteger one = new BigInteger(\"1\");\n BigInteger number = new BigInteger(\"100\");\n while (number.compareTo(one) == 1)\n {\n product = product.multiply(number);\n number = number.subtract(new BigInteger(\"1\"));\n }\n String pString = product.toString();\n for (int i = 0; i < pString.length(); i++)\n {\n int n = Character.getNumericValue(pString.charAt(i));\n sum += n;\n }\n System.out.println(sum);\n System.out.printf(\"\\nRunning Time: %fms\\n\", System.currentTimeMillis() - \n start);\n }" ]
[ "0.5863761", "0.5848024", "0.5757903", "0.57300824", "0.55892366", "0.5539215", "0.55352205", "0.5499275", "0.5497257", "0.5428451", "0.541991", "0.5386119", "0.5369438", "0.536794", "0.536044", "0.5342582", "0.5305505", "0.5304205", "0.5300577", "0.5300387", "0.5284869", "0.528343", "0.527269", "0.5266363", "0.5263217", "0.5256771", "0.52541804", "0.52526444", "0.5244962", "0.5244425", "0.5229491", "0.521951", "0.5219069", "0.5219069", "0.52026504", "0.51871896", "0.5176182", "0.51581097", "0.5151563", "0.5148308", "0.5145173", "0.51367474", "0.5122725", "0.51186454", "0.5116246", "0.5111233", "0.5106919", "0.5093987", "0.50805527", "0.50792694", "0.50756985", "0.50742215", "0.5063606", "0.5058361", "0.5056782", "0.5029351", "0.50266325", "0.5022578", "0.5017935", "0.50170916", "0.5014718", "0.49963784", "0.499221", "0.49867383", "0.49865425", "0.49865425", "0.49847585", "0.49726418", "0.49716708", "0.49690393", "0.49673033", "0.49629456", "0.49534312", "0.4948395", "0.49446854", "0.494345", "0.49398792", "0.4939798", "0.49389666", "0.49336714", "0.49301544", "0.49293706", "0.49265957", "0.49252033", "0.4920687", "0.4914814", "0.49142638", "0.49142545", "0.49124664", "0.49057055", "0.4904726", "0.49040937", "0.48996842", "0.48993528", "0.48978534", "0.48969603", "0.48908788", "0.48861414", "0.48856843", "0.48827934" ]
0.5346567
15
Also deal with cascades is important but not present.
@RequestMapping(value ="{id}", method =RequestMethod.DELETE) public void delete(@PathVariable Long id){ sessionRepository.delete(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final void checkForComodification() {\n\t}", "boolean isConsomme();", "@Override\r\n\tpublic boolean isConcave() {\n\t\treturn false;\r\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isCascadedLookup();", "boolean hasHas_consequence();", "public boolean isCascaded() {\r\n return isCascaded;\r\n }", "boolean isTransitive();", "@Test\r\n @Override\r\n @ConditionalIgnore(condition = IgnoreTreeDeferredIssue.class)\r\n public void testSortedAddDiscontinous() {\r\n super.testSortedAddDiscontinous();\r\n }", "@Override\n protected void preconditions(Object entity) throws Exception {\n }", "@Override\n\tprotected void prepareChangeSetProcessing() {\n\t\t// change set processing is not supported for the product associations import\n\t}", "void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }", "@Override\n public boolean preconditionsSatisfied() {\n return true;\n }", "@Override\n public boolean hasIsTransient()\n {\n return version.compareTo(\"ca\") >= 0;\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }", "private void classifyCasProcessors() throws Exception {\n boolean allowReorder = true;\n // Walk the list of Cas Processor backwards. The list of Cas Processors is actually a list of\n // lists.\n // Each sub-list contains instances of the same type of Cas Processor.\n for (int i = initial_cp_list.size(); i > 0; i--) {\n // Get the sub-list containing instances of Cas Processor\n ArrayList cp_instance_list = (ArrayList) initial_cp_list.get(i - 1);\n\n String previous = \"\"; // hold the previous name of the Cas Processor\n\n // Check the list of CP instances to check if its parallelizable\n for (int j = 0; j < cp_instance_list.size(); j++) {\n CasProcessor cp = (CasProcessor) cp_instance_list.get(j);\n String name = cp.getProcessingResourceMetaData().getName();\n // Check if the CP is parallelizable\n boolean parallizable = isParallizable(cp, name);\n\n // If Cas Processor is not parallizable and we have not yet hit a parallizable component\n // place the Cas Processor in a pipeline that supports single instance components\n if (!parallizable && allowReorder) {\n // There should only be one instance. The current implementation supports placing\n // non-parallizable Analysis Engines in the Cas Consumer Pipeline.\n if (!previous.equals(name)) {\n addCasConsumer(cp, name);\n }\n } else {\n // Hit the parallizable Cas Processor. From this point of all Cas Processors will be added\n // to the main processing pipeline ( as opposed to Cas Consumer Pipeline)\n allowReorder = false;\n // If the Cas Processor is non-parallizable ad just one instance of it to the Pipeline.\n if (parallizable || !previous.equals(name)) {\n addParallizableCasProcessor(cp, name);\n }\n }\n if (!parallizable) {\n cp_instance_list.remove(0);\n }\n previous = name;\n }\n }\n }", "public boolean isAdditive() {\n return privateConfig.loggerConfig.isAdditive();\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "@Test\n\tpublic void testCanonicalCoursesLoaded() throws Exception {\n\t\ttry {\n\t\t\tcmService.getCanonicalCourse(\"biology_101\");\n\t\t\tcmService.getCanonicalCourse(\"chemistry_101\");\n\t\t} catch (IdNotFoundException ide) {\n\t\t\tAssert.fail();\n\t\t}\n\t}", "private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }", "void processWaitingAssociations() {\n\t\tint numberOfConnectedViaImport = 0;\n\t\tint numberOfConnectedViaPackage = 0;\n\t\tint numberOfConnectedViaAttribute = 0;\n\t\tint numberOfConnectedViaLocalVariable = 0;\n\t\tint numberOfConnectedViaMethod = 0;\n\n for (FamixAssociation association : theModel.waitingAssociations) {\n try {\n \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n \tboolean chainingInvocation = false;\n \tboolean typeIsAccess = false;\n \tboolean nextAssociationIsIndirect = false;\n \tString toRemainderChainingInvocation = \"\";\n \tString toString = \"\";\n \tFamixInvocation theInvocation = null;\n\n /* Test helpers\n \tif (association.from.contains(\"husacct.define.presentation.jdialog.ExceptionRuleJDialog\")) {\n \t\tif (association.lineNumber == 74) {\n \t \t\t\t\tboolean breakpoint = true;\n \t\t\t}\n \t} */\n\n \t// Check if association.from refers to an existing class\n \tif (theModel.classes.containsKey(association.from)) {\n \t\tfromExists = true;\n \t} \n \t// Check if association.to (or a part of it) refers to an existing class or library\n if ((association.to != null) && !association.to.equals(\"\") && !association.to.trim().equals(\".\")){ \n \ttoHasValue = true;\n \tif (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to)) {\n \t\ttoExists = true;\n \t} else { // Check if a part of association.to refers to an existing class or library \n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \ttoString = allSubstrings[0];\n\t\t for (int i = 1; i < allSubstrings.length ; i++) {\n\t\t \ttoString += \".\"+ allSubstrings[i];\n\t\t \tif (theModel.classes.containsKey(toString) || theModel.libraries.containsKey(\"xLibraries.\" + toString)) {\n\t\t \t\tif ((association instanceof FamixInvocation)) {\n\t\t theInvocation = (FamixInvocation) association;\n\t\t association.to = toString;\n\t\t\t \t\ttoExists = true;\n\t\t\t \t\tchainingInvocation = true;\n\t\t\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t\t\t i++;\n\t\t\t \t\tif (allSubstrings.length >= i) {\n\t\t\t\t \t\ttoRemainderChainingInvocation = allSubstrings[i];\n\t\t\t\t\t\t for (int j = i + 1; j < allSubstrings.length ; j++) {\n\t\t\t\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[j];\n\t\t\t\t\t\t }\n\t\t\t \t\t}\n\t\t \t\t}\n\t\t \t}\n\t\t }\n }\n \t}\n }\n\n \t// Objective: If FamixAssociation.to is a name instead of a unique name, than replace it by the unique name of a FamixEntity (Class or Library) it represents. \n\n /* 0) Select and process FamixInvocations with a composed to-name\n * If FamixAssociation.to is composed of substrings (a chaining assignment or call), a dependency to the type of the first substring is a direct dependency.\n * Dependencies to types of the following substrings are determined afterwards. The next one is indirect, if the first substring is a method or variable of a super class, otherwise it is direct.\n * Algorithm: Split the string and try to identify the type of the first substring. Create a separate association to identify dependencies to following substring (variables or methods). \n * If the type of the first substring is identified, replace the substring by the type in the next association, and store this association to be processed later on. \n * */\n if (fromExists && !toExists && toHasValue){\n \tif ((association instanceof FamixInvocation)) {\n theInvocation = (FamixInvocation) association;\n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \tif (allSubstrings.length > 1) {\n\t\t\t \tchainingInvocation = true;\n\t\t\t \tassociation.to = allSubstrings[0]; \n\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t toRemainderChainingInvocation = allSubstrings[1];\n\t\t\t for (int i = 2; i < allSubstrings.length ; i++) {\n\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[i];\n\t\t\t }\n\t\t\t \t}\n }\n }\n }\n \n // 1) Try to derive the unique name from the imports.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t toString = findClassInImports(association.from, association.to);\n\t if (!toString.equals(\"\")) {\n\t association.to = toString;\n \t\t\ttoExists = true;\n \t\t\tnumberOfConnectedViaImport ++;\n\t }\n \t}\n }\n\t \n // 2) Find out or association.to refers to a type in the same package as the from class.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t toString = findClassInPackage(association.to, belongsToPackage);\n\t if (!toString.equals(\"\")) { // So, in case association.to does not contain \".\" AND association.to shares the same package as association.from \n\t association.to = toString;\n\t \t\t\ttoExists = true;\n \t\t\ttypeIsAccess = true;\n\t \t\t\tnumberOfConnectedViaPackage ++;\n\t }\n \t}\n }\n\n \t// 3) Determine if association.to is an (inherited) attribute. If so determine the type of the attribute. \n if ((association instanceof FamixInvocation) && (!association.to.endsWith(\")\"))) {\n \t \tString classOfAttribute = findAttribute(association.from, association.to);\n \t if (!classOfAttribute.equals(\"\")) {\n\t \t\t\tif (!classOfAttribute.equals(association.from)) { // classOfAttribute refers to a super class \n\t\t \t// Create an access dependency on the superclass.\n\t\t \t\t\t\tFamixInvocation newIndirectInvocation = indirectAssociations_AddIndirectInvocation(\"AccessPropertyOrField\", association.from, classOfAttribute, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n\t\t \taddToModel(newIndirectInvocation); \n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t }\n \t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(classOfAttribute + \".\" + association.to);\n \t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n \t \t\t\tassociation.to = entity.declareType;\n \t \tnumberOfConnectedViaAttribute++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the type of variable. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n } \n \n // 4) Find out or association.to refers to a local variable or parameter: Get StructuralEntity on key ClassName.MethodName.VariableName\n\t if (fromExists && !toExists && toHasValue && (!association.to.endsWith(\")\"))){\n if (association instanceof FamixInvocation) {\n\t\t \tString searchKey = association.from + \".\" + theInvocation.belongsToMethod + \".\" + theInvocation.to;\n\t \tif (theModel.structuralEntities.containsKey(searchKey)) {\n\t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(searchKey);\n\t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n\t \t\t\ttheInvocation.to = entity.declareType;\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t \t\t\tnumberOfConnectedViaLocalVariable ++;\n\t \t\t}\n\t \t}\n }\n \t}\n\n \t// 5) Determine if association.to is an (inherited) method. If so determine the return type of the method. \n if ((association instanceof FamixInvocation) && (association.to.endsWith(\")\"))) {\n \tboolean methodFound = false;\n \tFamixMethod foundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t if (foundMethod != null) {\n \t \tmethodFound = true;\n \t } else { // Determine if association.to is an inherited method. \n \t \t\tString superClassName = indirectAssociations_findSuperClassThatContainsMethod(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t \t\tif ((superClassName != null) && !superClassName.equals(\"\")) {\n \t \tfoundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, superClassName, association.to);\n \t \t if (foundMethod != null) {\n \t \t \tmethodFound = true;\n \t\t \t// Create a call dependency on the superclass;\n \t\t \t\t\t\tFamixInvocation newInvocation = indirectAssociations_AddIndirectInvocation(\"InvocMethod\", theInvocation.from, superClassName, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n \t\t \taddToModel(newInvocation); \n \t\t\t \t\t\tnumberOfDerivedAssociations ++;\n \t }\n \t \t\t\t}\n \t }\n \t if (!methodFound) {\n \t \t// Check if the method is a constructor call\n \t \tString className = association.to.substring(0, association.to.indexOf(\"(\"));\n\t toString = findClassInImports(association.from, className);\n\t if (!toString.equals(\"\")) {\n\t \t \t\tassociation.to = toString;\n\t \t \t\tassociation.type = \"InvocMethod\";\n\t\t \t\t\ttoExists = true;\n\t \t \t}\n \t }\n \t if (methodFound) {\n \t \t// Determine the return type of the method.\n \t if ((foundMethod != null) && (foundMethod.declaredReturnType != null) && !foundMethod.declaredReturnType.equals(\"\")) {\n \t \tassociation.to = foundMethod.declaredReturnType;\n \t \tnumberOfConnectedViaMethod++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the return type of the method. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n \t}\n \n if (fromExists && toExists) {\n\t\t\t\t\tif (!association.from.equals(association.to) && (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to))) {\n\t \t\t\t\tdetermineSpecificExtendType(association);\n \t\t\tif (typeIsAccess && association.type.startsWith(\"Invoc\")) {\n \t\t\t\tassociation.type = \"AccessPropertyOrField\";\n \t\t\t}\n\t\t\t\t\t\taddToModel(association);\n\t\t\t\t\t} else {\n\t \t\t\t// Do nothing\n\t\t\t\t\t}\n\t\t\t\t\tif (association instanceof FamixInvocation) {\n\t\t\t\t\t\tif (chainingInvocation) { // If true, create an association to identify dependencies to the remaining parts of the chain. Store it temporarily; it is processed in a separate method. \n\t\t FamixInvocation indirectAssociation = new FamixInvocation();\n\t\t indirectAssociation.type = \"Undetermined\";\n\t\t indirectAssociation.isIndirect = nextAssociationIsIndirect;\n\t\t indirectAssociation.from = association.from;\n\t\t indirectAssociation.lineNumber = association.lineNumber;\n\t\t indirectAssociation.to = association.to;\n\t\t indirectAssociation.invocationName = toRemainderChainingInvocation;\n\t\t indirectAssociation.belongsToMethod = theInvocation.belongsToMethod;\n\t\t indirectAssociation.nameOfInstance = theInvocation.nameOfInstance;\n\t\t waitingDerivedAssociations.add(indirectAssociation);\n\t\t\t\t\t\t} else {\n\t\t \t\t\t// Do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n } else {\n \tif (!chainingInvocation) { \n \t\tnumberOfNotConnectedWaitingAssociations ++;\n \t} else {\n \t\t// Do nothing\n \t}\n \t\n }\n \t\t\t\n calculateProgress();\n //Needed to check if Thread is allowed to continue\n \tif (!ServiceProvider.getInstance().getControlService().getState().contains(States.ANALYSING)) {\n break;\n \t}\n\n } catch (Exception e) {\n \tString associationType = association.type;\n \t this.logger.error(new Date().toString() + \" \" + e + \" \" + associationType + \" \" + association.toString());\n \t e.printStackTrace();\n }\n }\n // Add the indirect associations created during this process to FamixModel.associations\n for (FamixAssociation indirectAssociation : indirectAssociations) {\n \taddToModel(indirectAssociation);\n }\n\n this.logger.info(new Date().toString() + \" Connected via 1) Import: \" + numberOfConnectedViaImport + \", 2) Package: \" + numberOfConnectedViaPackage + \", 3) Variable: \" + numberOfConnectedViaAttribute \n \t\t+ \", 4) Local var: \" + numberOfConnectedViaLocalVariable + \", 5) Method: \" + numberOfConnectedViaMethod + \", 6) Inherited var/method: \" + numberOfDerivedAssociations);\n }", "public boolean hasIntermediary() { return true; }", "boolean isOrderCertain();", "private void validateBeforeMerge()\n {\n Assert.assertTrue(!isProductInfo() || type == TTransactionType.simple);\n }", "protected boolean afterMerge() throws DBSIOException{return true;}", "@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}", "protected void optimizeChains() {\r\n\t\tfor (int i = 0; i < execChains.size(); i++) {\r\n\t\t\tLog.info(String.format(\r\n\t\t\t\t\t\"Performing Causal Analysis on Chain Sequence %d of %d\",\r\n\t\t\t\t\ti + 1, execChains.size()));\r\n\r\n\t\t\t// optimization only works for sequence lengths >= 3\r\n\t\t\tList<EventType> sequence = execChains.get(i);\r\n\t\t\tif (sequence.size() < 3)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tboolean isCausal = true;\r\n\t\t\tfor (int j = 0; j < sequence.size() - 2; j++) {\r\n\t\t\t\t// drop sequence if a sub-sequence (a triple) is not causal\r\n\t\t\t\tList<EventType> subSequence = sequence.subList(j, j + 3);\r\n\t\t\t\tif (!isCausal(subSequence)) {\r\n\t\t\t\t\tisCausal = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (isCausal) {\r\n\t\t\t\tcausalExecChains.add(sequence);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private Boolean checkDuplicatePriorities(List<StoresBrandEntity> storesBrands) throws Exception{\n Set<Integer> priorities = new HashSet<Integer>();\n for(StoresBrandEntity storesBrand: storesBrands){\n if(storesBrand.getPriority() != null){\n if(storesBrand.getFeatured() != null && storesBrand.getFeatured())\n throw new YSException(\"VLD019\");\n if(!priorities.add(storesBrand.getPriority()))\n throw new YSException(\"VLD018\");\n }\n }\n return true;\n }", "public boolean isPureFK() { // derived property\n return !_additionalFK && !_referrerAsOne;\n }", "public boolean isExplicitForeignCheckRequired();", "void removeHas_consequence(Consequence oldHas_consequence);", "public boolean beforeDownstream() {\n return true;\n }", "private boolean noImpedingPredecessors(\r\n\t\t\tfinal List<Rule> sequence) {\r\n\t\t\r\n\t\tboolean result = true;\r\n\t\tfor (int i=1; i<sequence.size(); i++) {\r\n\t\t\tRule ri = sequence.get(i);\r\n\t\t\tboolean localResult = true;\r\n\t\t\tfinal Pair<Boolean, List<String>> \r\n\t\t\truleRes = this.ruleSequence.getRuleResult(i, ri.getName(), ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t\tif (ruleRes != null) {\r\n\t\t\t\tlocalResult = ruleRes.first.booleanValue();\r\n\t\t\t} \r\n\t\t\telse {\r\n\t\t\t\tfor (int j=0; j<i; j++) {\r\n\t\t\t\t\tRule rj = sequence.get(j);\r\n\t\t\t\t\tfinal SimpleExcludePair excludePair = makeExcludePair();\r\n\t\t\t\t\tif(!asymParallelIndependentByCPA(excludePair, rj, j, ri, i)) {\t\t\t\t\t\r\n\t\t\t\t\t\tlocalResult = false;\r\n\t\t\t\t\t\tsetRuleResult(i, ri.getName(), false, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS, rj.getName());\t\r\n\t\t\t\t\t\tbreak; // evntl. weiter machen!\r\n\t\t\t\t\t} \r\n\t\t\t\t\texcludePair.dispose();\r\n\t\t\t\t}\r\n\t\t\t\tif (localResult) {\r\n\t\t\t\t\tsetRuleResult(i, ri.getName(), true, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS, \"\");\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t\t// rewrite result only if localResult is FALSE\r\n\t\t\tif (!localResult) {\r\n\t\t\t\tresult = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!result) {\r\n\t\t\tsetApplicabilityResult(false, ApplicabilityConstants.NO_IMPEDING_PREDECESSORS);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public final void checkCivility() throws CompoundPropertyException {\n CompoundPropertyException cpe = getWildExceptions();\n if (!cpe.isEmpty()) {\n if (LOG.isDebugEnabled()) { // this if does only loggin\n LOG.debug(\"the wild exceptions were not empty; we will throw the CompoundPropertyException\"); //$NON-NLS-1$\n LOG.debug(\"current RousseauBean is \" + toString()); //$NON-NLS-1$\n LOG.debug(cpe.getElementExceptions());\n LOG.debug(\"ElementExceptions details:\"); //$NON-NLS-1$\n Iterator iter = cpe.getElementExceptions().entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry entry = (Map.Entry)iter.next();\n LOG.debug(entry.getKey().toString() + \":\"); //$NON-NLS-1$\n Set propertyExceptions = (Set)entry.getValue();\n Iterator exceptions = propertyExceptions.iterator();\n while (exceptions.hasNext()) {\n PropertyException pexc = (PropertyException)exceptions.next();\n LOG.debug(pexc, pexc);\n }\n }\n }\n cpe.close();\n throw cpe;\n }\n }", "void enforceCollectiveDeliveryPolicy(Message msg){ \r\n\t\t//from the message obtained from msg.getRefersTo() get the message id, while from msg.getSenderId() we get the sender to look up the entry in the data structure\r\n\t\ttry{\r\n\t\t\tboolean policySucceeded = checkCollectiveDeliveryPolicy(msg); //return true if policy conclusively succeeded, false if still valid but still not succeeded, Exception if conclusively failed. \r\n\t\t\tif (policySucceeded){ //collective policy conclusively succeeded. Purge entries from corresponding data structures.\r\n\t\t\t\t//collectiveDiscardCondition.lock(); //with the concurrent map should also work without this\r\n\t\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\t//TODO if (DeliveryPolicy.Message.ACKNOWLEDGE is set for the initial message)\r\n\t\t\t\tsend(PredefinedMessageHelper.createAcknowledgeMessageFromAdaptersAcknowledgeMessage(msg)); //or send to TEE directly\r\n\t\t\t}\r\n\t\t}catch(Exception e){ //collective policy conclusively failed. Purge entries, and inform the original sender of the ERR.\r\n\t\t\t//if (!collectiveDiscardCondition.isHeldByCurrentThread()) collectiveDiscardCondition.lock();\r\n\t\t\t\r\n\t\t\tdiscardEntriesInPeerDeliveryPolicyDataStructure(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\tdiscardCollectivePolicyEntry(msg.getRefersTo(), msg.getReceiverId());\r\n\t\t\t\r\n\t\t\t//this implies that I want the broker to deliver me messages which will have: \r\n\t\t\t//sender=the actual peer that failed/succeeded, receiver: the component who originally sent the message to which they are replying to\r\n\t\t\t//plus refersTo field, containing the id of the original message - check with Philipp\r\n\t\t\tsend(PredefinedMessageHelper.createDeliveryErrorMessageFromAdaptersCommunicationErrorMessage(msg)); \r\n\t\t}finally{\r\n\t\t\t//collectiveDiscardCondition.unlock();\r\n\t\t}\r\n\r\n\t}", "void verifyNoReferences(Node n) {\n if (returned.contains(n))\n Assert.UNREACHABLE(\"ERROR: returned set contains \"+n);\n if (thrown.contains(n))\n Assert.UNREACHABLE(\"ERROR: thrown set contains \"+n);\n if (false) {\n for (int i=0; i<this.params.length; ++i) {\n if (this.params[i] == n)\n Assert.UNREACHABLE(\"ERROR: param #\"+i+\" \"+n);\n }\n }\n for (Iterator i = nodeIterator(); i.hasNext(); ) {\n Node n2 = (Node) i.next();\n if (n2 instanceof UnknownTypeNode) continue;\n if (multiset_contains(n2.addedEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains an edge to \"+n);\n }\n if (multiset_contains(n2.predecessors, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains predecessor \"+n);\n }\n if (multiset_contains(n2.accessPathEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains access path edge to \"+n);\n }\n if (n2 instanceof FieldNode) {\n FieldNode fn = (FieldNode) n2;\n if (fn.field_predecessors != null &&\n fn.field_predecessors.contains(n)) {\n Assert.UNREACHABLE(\"ERROR: \"+fn+\" contains a field predecessor \"+n);\n }\n }\n }\n }", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "@Test\r\n\tpublic void test02CascadeSave() {\r\n\t\tstudentLucy.setConfidential(confidential);\r\n\t\tconfidential.setStudent(studentLucy);\r\n\t\tstudentDao.save(studentLucy);\r\n\t\tconfidentialDao.save(confidential);\r\n\t\tlogger.debug(studentLucy);\r\n\t\tlogger.debug(confidential);\r\n\t}", "private void buildReferencedClassSet() throws CheckedAnalysisException, InterruptedException {\n\n if (PROGRESS) {\n System.out.println(\"Adding referenced classes\");\n }\n Set<String> referencedPackageSet = new HashSet<String>();\n\n LinkedList<ClassDescriptor> workList = new LinkedList<ClassDescriptor>();\n workList.addAll(appClassList);\n\n Set<ClassDescriptor> seen = new HashSet<ClassDescriptor>();\n Set<ClassDescriptor> appClassSet = new HashSet<ClassDescriptor>(appClassList);\n\n Set<ClassDescriptor> badAppClassSet = new HashSet<ClassDescriptor>();\n HashSet<ClassDescriptor> knownDescriptors = new HashSet<ClassDescriptor>(DescriptorFactory.instance()\n .getAllClassDescriptors());\n int count = 0;\n Set<ClassDescriptor> addedToWorkList = new HashSet<ClassDescriptor>(appClassList);\n\n // add fields\n //noinspection ConstantIfStatement\n if (false)\n for (ClassDescriptor classDesc : appClassList) {\n try {\n XClass classNameAndInfo = Global.getAnalysisCache().getClassAnalysis(XClass.class, classDesc);\n for (XField f : classNameAndInfo.getXFields()) {\n String sig = f.getSignature();\n ClassDescriptor d = DescriptorFactory.createClassDescriptorFromFieldSignature(sig);\n if (d != null && addedToWorkList.add(d))\n workList.addLast(d);\n }\n } catch (RuntimeException e) {\n bugReporter.logError(\"Error scanning \" + classDesc + \" for referenced classes\", e);\n if (appClassSet.contains(classDesc)) {\n badAppClassSet.add(classDesc);\n }\n } catch (MissingClassException e) {\n // Just log it as a missing class\n bugReporter.reportMissingClass(e.getClassDescriptor());\n if (appClassSet.contains(classDesc)) {\n badAppClassSet.add(classDesc);\n }\n }\n }\n\n while (!workList.isEmpty()) {\n if (Thread.interrupted()) {\n throw new InterruptedException();\n }\n ClassDescriptor classDesc = workList.removeFirst();\n\n if (seen.contains(classDesc)) {\n continue;\n }\n seen.add(classDesc);\n\n if (!knownDescriptors.contains(classDesc)) {\n count++;\n if (PROGRESS && count % 5000 == 0) {\n System.out.println(\"Adding referenced class \" + classDesc);\n }\n }\n\n referencedPackageSet.add(classDesc.getPackageName());\n\n // Get list of referenced classes and add them to set.\n // Add superclasses and superinterfaces to worklist.\n try {\n XClass classNameAndInfo = Global.getAnalysisCache().getClassAnalysis(XClass.class, classDesc);\n\n ClassDescriptor superclassDescriptor = classNameAndInfo.getSuperclassDescriptor();\n if (superclassDescriptor != null && addedToWorkList.add(superclassDescriptor)) {\n workList.addLast(superclassDescriptor);\n }\n\n for (ClassDescriptor ifaceDesc : classNameAndInfo.getInterfaceDescriptorList()) {\n if (addedToWorkList.add(ifaceDesc))\n workList.addLast(ifaceDesc);\n }\n\n ClassDescriptor enclosingClass = classNameAndInfo.getImmediateEnclosingClass();\n if (enclosingClass != null && addedToWorkList.add(enclosingClass))\n workList.addLast(enclosingClass);\n\n } catch (RuntimeException e) {\n bugReporter.logError(\"Error scanning \" + classDesc + \" for referenced classes\", e);\n if (appClassSet.contains(classDesc)) {\n badAppClassSet.add(classDesc);\n }\n } catch (MissingClassException e) {\n // Just log it as a missing class\n bugReporter.reportMissingClass(e.getClassDescriptor());\n if (appClassSet.contains(classDesc)) {\n badAppClassSet.add(classDesc);\n }\n } catch (CheckedAnalysisException e) {\n // Failed to scan a referenced class --- just log the error and\n // continue\n bugReporter.logError(\"Error scanning \" + classDesc + \" for referenced classes\", e);\n if (appClassSet.contains(classDesc)) {\n badAppClassSet.add(classDesc);\n }\n }\n }\n // Delete any application classes that could not be read\n appClassList.removeAll(badAppClassSet);\n DescriptorFactory.instance().purge(badAppClassSet);\n\n for (ClassDescriptor d : DescriptorFactory.instance().getAllClassDescriptors()) {\n referencedPackageSet.add(d.getPackageName());\n }\n referencedClassSet = new ArrayList<ClassDescriptor>(DescriptorFactory.instance().getAllClassDescriptors());\n\n // Based on referenced packages, add any resolvable package-info classes\n // to the set of referenced classes.\n if (PROGRESS) {\n referencedPackageSet.remove(\"\");\n System.out.println(\"Added \" + count + \" referenced classes\");\n System.out.println(\"Total of \" + referencedPackageSet.size() + \" packages\");\n for (ClassDescriptor d : referencedClassSet)\n System.out.println(\" \" + d);\n\n }\n\n }", "boolean isCyclic() {\n\n // if we are processing the course currently that is a cyclic graph and we can't\n // do all the courses\n if (processed) {\n return false;\n }\n\n // if we already visited the course and no cycle was found then we can return\n if (visited) {\n return true;\n }\n //else we set the course and visited\n visited = true;\n\n //we then loop through all the prerequisites performing the same check\n for (Course preCourse : pre) {\n if (preCourse.isCyclic()) {\n return true;\n }\n }\n\n //if we arrive here then we have gone through all the combinations and there is no cyclic graph\n visited = false;\n processed = true;\n return false;\n }", "private boolean isFetchNeeded() {\n return true;\n }", "@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }", "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "private boolean checkEssentialConnects() {\r\n\t\treturn (animalsHash != null && questionChooser != null);\r\n\t}", "private void eClausura(Set<Estado> estados){\n boolean changed;\n do {\n changed=false;\n for(Estado e:estados){\n changed=changed||estados.addAll(delta.get(e).getOrDefault(null, new HashSet<Estado>()));\n }\n } while (changed);\n return;\n }", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private void markDuplicateRelationships(EntityInstanceImpl ei)\n {\n EntityInstanceImpl parent = ei.getParent();\n EntityDef entityDef = ei.getEntityDef();\n\n // Duplicate relationship searching phase I, see if a linked instance to\n // the target instance in the same object instance represents the\n // same relationship type AND has the same parent.\n for ( EntityInstanceImpl linked : ei.getLinkedInstances() )\n {\n // Check to make sure linked EI has a parent--it is possible for a root\n // to be flagged as included and we don't care about roots.\n if ( linked.isDeleted() || linked.getParent() == null )\n continue;\n\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Linked EI must have the same relationship and it can't be derived.\n if ( linkedEntityDef.getErRelToken() == entityDef.getErRelToken() ||\n linkedEntityDef.isDerivedPath() )\n {\n continue;\n }\n\n // Now check to see if the parents are linked.\n EntityInstanceImpl linkParent = linked.getParent();\n for ( EntityInstanceImpl parentLinked : linkParent.getLinkedInstances() )\n {\n if ( parentLinked == parent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance...\n\n // Duplicate relationship searching, phase II, see if the parent of\n // the instance has a linked instance representing the same relationship\n // type which is also a child of one of the targets linked instances.\n\n // If the parent isn't linked then there are no duplicate relationships.\n if ( parent.getLinkedInstances().size() == 0 )\n return;\n\n for ( EntityInstanceImpl linked : parent.getLinkedInstances() )\n {\n // Check for appropriate include/exclude flag.\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Check to see if the relationship for the EI linked to the parent is\n // the same as the relationship of the original EI.\n if ( linkedEntityDef.getErRelToken() != entityDef.getErRelToken() )\n continue; // Nope.\n\n // OK, we have an EI ('linked') that has the same relationship as\n // ei. Check to see if the parent of 'linked' (grandParent)\n // is linked with ei. If they are linked then 'linked'\n // has the same physical relationship as ei.\n EntityInstanceImpl grandParent = linked.getParent();\n for ( EntityInstanceImpl gp : ei.getLinkedInstances() )\n {\n if ( gp == grandParent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance of parent...\n }", "private Set<String> crossCheckDependenciesAndResolve(Map<String, List<Dependency>> dependencies) throws MojoFailureException {\n Map<String, Map<String, Dependency>> lookupTable = new HashMap<>();\n for (String bom : dependencies.keySet()) {\n Map<String, Dependency> bomLookup = new HashMap<>();\n lookupTable.put(bom, bomLookup);\n\n for (Dependency dependency : dependencies.get(bom)) {\n String key = dependencyKey(dependency);\n bomLookup.put(key, dependency);\n }\n }\n\n Map<String, Set<VersionInfo>> inconsistencies = new TreeMap<>();\n Set<String> trueInconsistencies = new TreeSet<>();\n\n // Cross-check all dependencies\n for (String bom1 : dependencies.keySet()) {\n for (Dependency dependency1 : dependencies.get(bom1)) {\n String key = dependencyKey(dependency1);\n String version1 = dependency1.getArtifact().getVersion();\n\n for (String bom2 : dependencies.keySet()) {\n // Some boms have conflicts with themselves\n\n Dependency dependency2 = lookupTable.get(bom2).get(key);\n String version2 = dependency2 != null ? dependency2.getArtifact().getVersion() : null;\n if (version2 != null) {\n Set<VersionInfo> inconsistency = inconsistencies.get(key);\n if (inconsistency == null) {\n inconsistency = new TreeSet<>();\n inconsistencies.put(key, inconsistency);\n }\n\n inconsistency.add(new VersionInfo(dependency1, bom1));\n inconsistency.add(new VersionInfo(dependency2, bom2));\n\n if (!version2.equals(version1)) {\n trueInconsistencies.add(key);\n }\n }\n }\n }\n }\n\n // Try to solve with preferences\n Set<String> resolvedInconsistencies = new TreeSet<>();\n DependencyMatcher preferencesMatcher = new DependencyMatcher(this.preferences);\n for (String key : trueInconsistencies) {\n int preferred = 0;\n for (VersionInfo nfo : inconsistencies.get(key)) {\n if (preferencesMatcher.matches(nfo.getDependency())) {\n preferred++;\n }\n }\n\n if (preferred == 1) {\n resolvedInconsistencies.add(key);\n }\n }\n\n trueInconsistencies.removeAll(resolvedInconsistencies);\n\n if (trueInconsistencies.size() > 0) {\n StringBuilder message = new StringBuilder();\n message.append(\"Found \" + trueInconsistencies.size() + \" inconsistencies in the generated BOM.\\n\");\n\n for (String key : trueInconsistencies) {\n message.append(key);\n message.append(\" has different versions:\\n\");\n for (VersionInfo nfo : inconsistencies.get(key)) {\n message.append(\" - \");\n message.append(nfo);\n message.append(\"\\n\");\n }\n }\n\n throw new MojoFailureException(message.toString());\n }\n\n return resolvedInconsistencies;\n }", "private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }", "public boolean isAdditiveProperty() {\n\t\treturn false;\n\t}", "private void optimizeEdgePropFlag() {\n TreeNode currentTreeNode = treeLeaf;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof EdgeTreeNode) {\n EdgeTreeNode edgeTreeNode = EdgeTreeNode.class.cast(currentTreeNode);\n TreeNode nextTreeNode = edgeTreeNode.getOutputNode();\n if (null != nextTreeNode &&\n edgeTreeNode.beforeRequirementList.isEmpty() &&\n edgeTreeNode.afterRequirementList.isEmpty()) {\n if (nextTreeNode instanceof EdgeVertexTreeNode ||\n (nextTreeNode.getNodeType() == NodeType.AGGREGATE &&\n !(nextTreeNode instanceof GroupTreeNode))) {\n edgeTreeNode.setFetchPropFlag(true);\n }\n\n }\n }\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }", "protected boolean hasCycle(Map<Object, Object> data) {\n return Boolean.TRUE == data.get(DATA_CLOSURE_CYCLIC); \n }", "public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "private void checkHeaderGeneration() {\r\n\t\tif (headerGenerated) {\r\n\t\t\tthrow new RuntimeException(\"Header already generated using previous value.\");\r\n\t\t}\r\n\t}", "boolean isWeakRelationship();", "@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}", "private boolean addIfUseful(HashSet visited, HashSet path, Node n) {\n if (path.contains(n)) return true;\n path.add(n);\n if (visited.contains(n)) return nodes.containsKey(n);\n visited.add(n);\n boolean useful = false;\n if (nodes.containsKey(n)) {\n if (TRACE_INTER) out.println(\"Useful: \"+n);\n useful = true;\n }\n if (n instanceof UnknownTypeNode) {\n path.remove(n);\n return true;\n }\n if (n.addedEdges != null) {\n if (TRACE_INTER) out.println(\"Useful because of added edge: \"+n);\n useful = true;\n for (Iterator i = n.getNonEscapingEdgeTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator i = n.accessPathEdges.entrySet().iterator(); i.hasNext(); ) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n //jq_Field f = (jq_Field)e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n if (addIfUseful(visited, path, (Node)o)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+o);\n useful = true;\n } else {\n if (n != o) i.remove();\n }\n } else {\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Node n2 = (Node)j.next();\n if (addIfUseful(visited, path, n2)) {\n if (TRACE_INTER && !useful) out.println(\"Useful because outside edge: \"+n+\"->\"+n2);\n useful = true;\n } else {\n if (n != n2) j.remove();\n }\n }\n if (!useful) i.remove();\n }\n }\n }\n if (castPredecessors.contains(n)) {\n for (Iterator i = castMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry)i.next();\n Node goestocast = (Node)((Pair)e.getKey()).left;\n CheckCastNode castsucc = (CheckCastNode)e.getValue();\n // Call \"addIfUseful()\" on all successor checkcast nodes, and set the \"useful\" flag if the call returns true.\n if (n == goestocast && addIfUseful(visited, path, castsucc))\n useful = true;\n }\n }\n if (n instanceof ReturnedNode) {\n if (TRACE_INTER && !useful) out.println(\"Useful because ReturnedNode: \"+n);\n useful = true;\n }\n if (n.predecessors != null) {\n useful = true;\n if (TRACE_INTER && !useful) out.println(\"Useful because target of added edge: \"+n);\n for (Iterator i = n.getPredecessorTargets().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node) i.next());\n }\n }\n if (useful) {\n this.nodes.put(n, n);\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode)n;\n for (Iterator i = fn.getAccessPathPredecessors().iterator(); i.hasNext(); ) {\n addAsUseful(visited, path, (Node)i.next());\n }\n }\n if (n instanceof CheckCastNode) {\n // If the \"useful\" flag is true and the node is a checkcast node,\n // call \"addAsUseful()\" on all predecessors.\n Quad thiscast = ((QuadProgramLocation)((CheckCastNode)n).getLocation()).getQuad();\n for (Iterator i = castPredecessors.iterator(); i.hasNext(); ) {\n Node goestocast = (Node)i.next();\n CheckCastNode castsucc = (CheckCastNode)castMap.get(new Pair(goestocast, thiscast));\n if (castsucc != null)\n addAsUseful(visited, path, goestocast);\n }\n }\n }\n if (TRACE_INTER && !useful) out.println(\"Not useful: \"+n);\n path.remove(n);\n return useful;\n }", "private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "void processImports() {\n FamixImport foundImport;\n\t\tArrayList<FamixImport> foundImportsList;\n\t\tArrayList<FamixImport> alreadyIncludedImportsList;\n\t\timportsPerEntity = new HashMap<String, ArrayList<FamixImport>>();\n\t \n\t\ttry{\n\t for (FamixAssociation association : theModel.associations) {\n \tString uniqueNameFrom = association.from;\n\t \tfoundImport = null;\n\t if (association instanceof FamixImport) {\n\t \tfoundImport = (FamixImport) association;\n\t // Fill HashMap importsPerEntity \n\t \talreadyIncludedImportsList = null;\n\t \tif (importsPerEntity.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedImportsList = importsPerEntity.get(uniqueNameFrom);\n\t \t\talreadyIncludedImportsList.add(foundImport);\n\t \t\timportsPerEntity.put(uniqueNameFrom, alreadyIncludedImportsList);\n\t \t}\n\t \telse{\n\t\t\t \tfoundImportsList = new ArrayList<FamixImport>();\n\t\t \tfoundImportsList.add(foundImport);\n\t\t \timportsPerEntity.put(uniqueNameFrom, foundImportsList);\n\t \t}\n\t }\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.warn(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n }", "@Test\r\n\tpublic void testCascadeDelete() {\r\n\t\tSet<Student> students = studentDao.getStudentByName(\"lucy\");\r\n\t\tif(students != null) {\r\n\t\t\tfor(Student student : students) {\r\n\t\t\t\tstudentDao.delete(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.debug(confidentialDao.loadAll());\r\n\t\t\r\n\t}", "public void markCriticalAbateMerge() throws JNCException {\n markLeafMerge(\"criticalAbate\");\n }", "@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}", "private boolean specialBlockChecking(SimulinkBlock block, List<SimulinkBlock> processedBlocks) {\n\n\t\tboolean allPredeccesorsAvailable = true;\n\t\t// every predecessor has to be checked\n\t\tfor (int i = 0; i < block.getInPorts().size(); i++) {\n\t\t\tSimulinkBlock srcBlock = block.getInLines().get(i).getSrcPort().getBlock();\n\t\t\t// if srcblock is not in sorted AND is no \"last Block\"\n\t\t\tif (!(processedBlocks.contains(srcBlock))) {\n\t\t\t\tif (!lastBlocks.contains(srcBlock.getType())) {\n\t\t\t\t\tallPredeccesorsAvailable = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn allPredeccesorsAvailable;\n\t}", "protected void checkScrollability() throws HibernateException {\n \t\t// Allows various loaders (ok mainly the QueryLoader :) to check\n \t\t// whether scrolling of their result set should be allowed.\n \t\t//\n \t\t// By default it is allowed.\n \t\treturn;\n \t}", "@Override\r\n\tpublic boolean checkBudget() {\n\t\treturn false;\r\n\t}", "@Test\n public void processCompoundTransaction_TestC() throws Exception {\n ct = new CompoundTransaction(\"compound\");\n\n Assert.assertEquals(false, trans_mang.processCompoundTransaction(ct));\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private boolean journalRebuildRequired() {\n\t\tfinal int REDUNDANT_OP_COMPACT_THRESHOLD = 2000;\n\t\treturn redundantOpCount >= REDUNDANT_OP_COMPACT_THRESHOLD\n\t\t\t&& redundantOpCount >= lruEntries.size();\n\t}", "public boolean tienePrepaga() {\r\n\t\treturn obraSocial != null;\r\n\t}", "private CatchUpResult tryBuildingChain() {\n\n\t\tlog.debug(\"Try to build the chain.\");\n\n\t\tif(pendingBlocks != null && !pendingBlocks.isEmpty()) {\n\n\t\t\t// check if all indexes are present\n\t\t\tLong[] indexes = (Long[]) pendingBlocks.keySet().toArray(new Long[pendingBlocks.keySet().size()]);\n\t\t\tArrays.sort(indexes);\n\n\t\t\tfor (int i = 0; i<indexes.length-1; i++) {\n\t\t\t\tif(indexes[i] != indexes[i+1] - 1) {\n\t\t\t\t\tlog.info(\"Cannot build chain, missing block.\"+indexes[i]+\" -> \"+indexes[i+1]);\n\t\t\t\t\treturn CatchUpResult.CATCH_UP_FAILED;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog.info(\"All blocks are arrived, start building chain with \"+pendingBlocks.size()+\" blocks\");\n\n\t\t\t// link blocks for each index\n\t\t\tList<Block> blocks = new LinkedList<Block>();\n\t\t\tfor (int i=0; i<indexes.length; i++) {\n\t\t\t\tblocks.add(pendingBlocks.get(indexes[i]).get(0));\n\t\t\t}\t\t\n\n\t\t\tChainPart chainPart = new ChainPart();\n\t\t\tchainPart.addBlocks(blocks);\n\t\t\ttry {\n\t\t\t\t// init chain with catch-up data\n\t\t\t\tchain.addChainPart(chainPart);\n\t\t\t\tblockchain.setInitialChain(chain);\n\t\t\t\tlog.info(\"Build completed !\");\n\t\t\t\treturn CatchUpResult.CATCH_UP_SUCCESSFUL;\n\t\t\t} catch (ChainIntegrityException e) {\n\t\t\t\t// catch-up fail on data integrity\n\t\t\t\te.printStackTrace();\n\t\t\t\tlog.warn(\"Error while building chain.\");\n\t\t\t\treturn CatchUpResult.CATCH_UP_FAILED;\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"No block received for catching up, chain can't be initialized\");\n\t\t\treturn CatchUpResult.CATCH_UP_EMPTY;\n\t\t}\n\t}", "public boolean hasDependencies(int pk) {\n return (employeeDao.select(pk).getSubordinate() != null);\n }", "@Override\n public boolean predicate2(Object dm, Designer dsgr) {\n if (!(Model.getFacade().isAClassifier(dm))) {\n return NO_PROBLEM;\n }\n if (!(Model.getFacade().isPrimaryObject(dm))) {\n return NO_PROBLEM;\n }\n\n // If the classifier does not have a name,\n // then no problem - the model is not finished anyhow.\n if ((Model.getFacade().getName(dm) == null)\n\t || (\"\".equals(Model.getFacade().getName(dm)))) {\n return NO_PROBLEM;\n\t}\n\n // Abstract elements do not necessarily require associations\n if (Model.getFacade().isAGeneralizableElement(dm)\n\t && Model.getFacade().isAbstract(dm)) {\n return NO_PROBLEM;\n }\n\n // Types can probably have associations, but we should not nag at them\n // not having any.\n // utility is a namespace collection - also not strictly required\n // to have associations.\n if (Model.getFacade().isType(dm)) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().isUtility(dm)) {\n return NO_PROBLEM;\n }\n\n // See issue 1129: If the classifier has dependencies,\n // then mostly there is no problem. \n if (Model.getFacade().getClientDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n if (Model.getFacade().getSupplierDependencies(dm).size() > 0) {\n return NO_PROBLEM;\n }\n \n // special cases for use cases\n // Extending use cases and use case that are being included are\n // not required to have associations.\n if (Model.getFacade().isAUseCase(dm)) {\n Object usecase = dm;\n Collection includes = Model.getFacade().getIncludes(usecase);\n if (includes != null && includes.size() >= 1) {\n return NO_PROBLEM;\n }\n Collection extend = Model.getFacade().getExtends(usecase);\n if (extend != null && extend.size() >= 1) {\n return NO_PROBLEM;\n }\n }\n \n \n\n //TODO: different critic or special message for classes\n //that inherit all ops but define none of their own.\n\n if (findAssociation(dm, 0)) {\n return NO_PROBLEM;\n }\n return PROBLEM_FOUND;\n }", "public void cascadePerformRemoveIfRequired(Object object, UnitOfWorkImpl uow, IdentityHashtable visitedObjects){\n Object cloneAttribute = null;\n cloneAttribute = getAttributeValueFromObject(object);\n if ( cloneAttribute == null ) {\n return;\n }\n\n ContainerPolicy cp = getContainerPolicy();\n Object cloneObjectCollection = null;\n cloneObjectCollection = getRealCollectionAttributeValueFromObject(object, uow);\n Object cloneIter = cp.iteratorFor(cloneObjectCollection);\n while (cp.hasNext(cloneIter)) {\n Object objectToCascadeOn = cp.next(cloneIter, uow);\n if (objectToCascadeOn != null && (!visitedObjects.containsKey(objectToCascadeOn)) ) {\n visitedObjects.put(objectToCascadeOn, objectToCascadeOn);\n ObjectBuilder builder = getReferenceDescriptor(objectToCascadeOn.getClass(), uow).getObjectBuilder();\n builder.cascadePerformRemove(objectToCascadeOn, uow, visitedObjects);\n }\n }\n }", "@Override\n\tpublic boolean deterministic() {\n\t\treturn true;\n\t}", "@Test\n public void testNoOverwriteCases() throws Exception {\n // Setup is to add the first candidate\n mWifiCandidates.add(mScanDetail1, mConfig1, 2, 0.0, false, 100);\n assertEquals(1, mWifiCandidates.size());\n\n // Later nominator. Should not add.\n assertFalse(mWifiCandidates.add(mScanDetail1, mConfig1, 5, 0.0, false, 100));\n assertFalse(mWifiCandidates.add(mScanDetail1, mConfig1, 5, 0.0, false, 100));\n assertEquals(0, mWifiCandidates.getFaultCount()); // Still no faults\n // After all that, only one candidate should be there.\n assertEquals(1, mWifiCandidates.size());\n }", "private static boolean checkAndAddDependency(int trans_id, int independent_trans_id) {\n List<Integer> txnsInCycle = new ArrayList<Integer>();\n txnsInCycle.add(trans_id);\n if (DeadlockHandler.isThereACycleInGraph(trans_id, independent_trans_id, txnsInCycle)) {\n // System.out.println(\"List contents are\" + txnsInCycle.toString());\n long youngestTxnTime = transactions.get(txnsInCycle.get(0)).getStartTime();\n Integer youngestTxnId = txnsInCycle.get(0);\n for (Integer t : txnsInCycle) {\n if (youngestTxnTime < transactions.get(t).getStartTime()) {\n youngestTxnTime = transactions.get(t).getStartTime();\n youngestTxnId = t;\n }\n }\n\n\n\n System.out.println(\"Cycle in graph. DEADLOCK\");\n System.out.println(\"Aborted : T\" + youngestTxnId);\n releaseResources(youngestTxnId);\n clearWaitingOperations();\n if (youngestTxnId != trans_id && youngestTxnId != independent_trans_id) {\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n return true;\n }\n\n\n\n return false;\n\n }\n\n else {\n\n // if edge exists we don't need to do anything\n if (!DeadlockHandler.ifThereIsAnEdgeFromT1toT2(trans_id, independent_trans_id)) {\n\n // System.out.println(\"checkAndAddDependency::Edge is not present\");\n // System.out.println(\"checkAndAddDependency::Add dependency edge\");\n // no deadlock hence we can add the edge\n DeadlockHandler.addDependencyEdge(independent_trans_id, trans_id);\n }\n }\n\n return true;\n }", "void addHas_consequence(Consequence newHas_consequence);", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "public boolean dropCasOnException() {\n return dropCasOnExceptionPolicy;\n }", "public boolean isHierarchical() {\n/* 2889 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(dependsOnMethods = \"testImportCertificate\")\n public void testMergeCertificate() {\n throw new SkipException(\"merging certificates requires an external entity, skipping\");\n }", "@Override\r\n\tpublic void testValidParentWithNoEntries() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testValidParentWithNoEntries();\r\n\t\t}\r\n\t}", "@Test\n void getMandatoryDeepSuccessors () {\n\n }", "boolean hasConstruct();", "protected void sequence_EveryAbsentSequenceSourceChain(ISerializationContext context, EveryAbsentSequenceSourceChain semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getEveryAbsentSequenceSourceChain_AbsSeqSrcChain()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getEveryAbsentSequenceSourceChain_AbsSeqSrcChain()));\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getEveryAbsentSequenceSourceChain_SeqSrcChain()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getEveryAbsentSequenceSourceChain_SeqSrcChain()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getEveryAbsentSequenceSourceChainAccess().getAbsSeqSrcChainAbsentSequenceSourceChainParserRuleCall_0_1_0(), semanticObject.getAbsSeqSrcChain());\n\t\tfeeder.accept(grammarAccess.getEveryAbsentSequenceSourceChainAccess().getSeqSrcChainSequenceSourceChainParserRuleCall_0_3_0(), semanticObject.getSeqSrcChain());\n\t\tfeeder.finish();\n\t}", "protected void beforeDiscovery(Collection<BeanArchiveBuilder> builders) {\n // No-op\n }", "boolean isSetFurtherRelations();", "@Override\n protected void handleDependenciesBeforeDelete(TbCOMPETENCIASEMOCIONAISEntity tbCOMPETENCIASEMOCIONAIS) {\n \n this.cutAllIdCOMPEMTbCOMPETENCIASEMCARGOSsAssignments(tbCOMPETENCIASEMOCIONAIS);\n \n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "@Override\n public boolean isArchivable()\n {\n /* If the complaint is resolved, it is archivable */\n return resolved;\n }", "@Override\n public void sure(OrderDetail orderDetail) {\n }", "@Override\r\n\tpublic boolean containsCycles()\r\n\t\tthrows LexicalSemanticResourceException\r\n\t{\r\n\t\tthrow new UnsupportedOperationException();\r\n\t}", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public SemanticError checkCyclicInheritance() {\n\t\tMap<String, VSOPClass> map = new HashMap<>();\n\n\t\tfor (VSOPClass c = superClass; c != null; c = c.superClass) {\n\t\t\tif (c == this) {\n\t\t\t\treturn new SemanticError(ln, col, String.format(\"Cyclic inheritance of class %s\", id));\n\t\t\t}\n\n\t\t\tif (map.containsKey(c.id))\n\t\t\t\treturn null;\n\n\t\t\tmap.put(c.id, c);\n\t\t}\n\n\t\treturn null;\n\t}", "@Test\n public void processCompoundTransaction_TestB() throws Exception {\n ct = new CompoundTransaction(\"compound\");\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n ct.addTransaction(new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),10001));\n\n ct.addTransaction(new Transaction(\"atomic2\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),40));\n\n Assert.assertEquals(false,trans_mang.processCompoundTransaction(ct));\n }", "@Override\n public Object preProcess() {\n return null;\n }", "@Override\n public boolean impliedPartExists() {\n return true;\n }", "protected void checkChapter(final Parade parade) {\n\t\tfinal Chapter chapter;\n\t\tfinal Area areaChapter;\n\t\tArea areaParade;\n\n\t\tchapter = this.chapterService.findByPrincipal();\n\t\tareaChapter = chapter.getArea();\n\t\tareaParade = this.areaService.findAreaByParade(parade.getId());\n\n\t\tAssert.isTrue(areaChapter.equals(areaParade));\n\t}", "public boolean hasC() {\n return cBuilder_ != null || c_ != null;\n }" ]
[ "0.5577376", "0.5463451", "0.5377584", "0.53060144", "0.52643204", "0.5226925", "0.5133606", "0.5128625", "0.5123278", "0.5078247", "0.503709", "0.5017874", "0.4981755", "0.49736065", "0.49608102", "0.4959658", "0.49506795", "0.49324408", "0.49213448", "0.49184704", "0.48880172", "0.48844174", "0.48836088", "0.48378953", "0.48365033", "0.4827605", "0.4826352", "0.48212257", "0.48172003", "0.48122582", "0.48079014", "0.47970343", "0.47937173", "0.4793543", "0.479241", "0.4789593", "0.4787541", "0.47810128", "0.47807685", "0.47743994", "0.47605276", "0.4755664", "0.47469705", "0.4745734", "0.47419855", "0.4740901", "0.47364277", "0.47348332", "0.47335014", "0.47325215", "0.47319058", "0.4711653", "0.47111908", "0.46995658", "0.46973556", "0.46934098", "0.46865523", "0.4686537", "0.4685105", "0.46839753", "0.46751064", "0.46646303", "0.4656573", "0.46532446", "0.46516472", "0.46506333", "0.46477783", "0.46466863", "0.4630866", "0.4630003", "0.4628466", "0.46238974", "0.4617461", "0.46083042", "0.46036825", "0.4601434", "0.4601266", "0.45927244", "0.45876965", "0.4585905", "0.45848522", "0.4571778", "0.4570309", "0.45685166", "0.45606554", "0.45570216", "0.4543033", "0.45389938", "0.45382962", "0.45366734", "0.45357302", "0.45284295", "0.45277625", "0.45237648", "0.45190763", "0.45182326", "0.45156476", "0.4511944", "0.45103043", "0.4510031", "0.45064798" ]
0.0
-1
Determine the provider implementation suitable for byProvider(Class) and delegate the creation of this specific Configuration subclass to the provider.
public T configure() { if (validationProviderClass == null) { throw new ValidationException( "builder is mandatory. Use Validation.byDefaultProvider() to use the generic provider discovery mechanism"); } // used mostly as a BootstrapState GenericBootstrapImpl state = new GenericBootstrapImpl(); if (resolver == null) { resolver = state.getDefaultValidationProviderResolver(); } else { // stay null if no resolver is defined state.providerResolver(resolver); } List<ValidationProvider<?>> resolvers; try { resolvers = resolver.getValidationProviders(); } catch (RuntimeException re) { throw new ValidationException( "Unable to get available provider resolvers.", re); } for (ValidationProvider<?> provider : resolvers) { // GWT validation only support exact matches. if (validationProviderClass.equals(provider.getClass())) { @SuppressWarnings("unchecked") ValidationProvider<T> specificProvider = (ValidationProvider<T>) provider; return specificProvider.createSpecializedConfiguration(state); } } throw new ValidationException("Unable to find provider: " + validationProviderClass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T extends Configuration<T>,U extends ValidationProvider<T>>\n ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) {\n return new ProviderSpecificBootstrapImpl<T, U>(providerType);\n }", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "void toProvider(@NotNull Class<? extends Provider<? extends T>> provider);", "public ConfigurationItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "Provider createProvider();", "public static Class<?> getProvider() {\n return provider;\n }", "@Override\n protected void configure() {\n bind(EurekaInstanceConfig.class).toProvider(MyDataCenterInstanceConfigProvider.class).in(Scopes.SINGLETON);\n }", "protected Provider(String providerClass) {\n this(providerClass, null);\n }", "public interface SecurityConfigurator {\n\n /**\n * The provider to use for {@link SSLEngine}.\n */\n enum SslProvider {\n /**\n * Use the stock JDK implementation.\n */\n JDK,\n /**\n * Use the openssl implementation.\n */\n OPENSSL,\n /**\n * Auto detect which implementation to use.\n */\n AUTO\n }\n\n /**\n * Trusted certificates for verifying the remote endpoint's certificate. The input stream should\n * contain an {@code X.509} certificate chain in {@code PEM} format.\n *\n * @param trustCertChainSupplier a supplier for the certificate chain input stream.\n * <p>\n * The responsibility to call {@link InputStream#close()} is transferred to callers of the returned\n * {@link Supplier}. If this is not the desired behavior then wrap the {@link InputStream} and override\n * {@link InputStream#close()}.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(Supplier<InputStream> trustCertChainSupplier);\n\n /**\n * Trust manager for verifying the remote endpoint's certificate.\n * The {@link TrustManagerFactory} which take preference over any configured {@link Supplier}.\n *\n * @param trustManagerFactory the {@link TrustManagerFactory} to use.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(TrustManagerFactory trustManagerFactory);\n\n /**\n * The SSL protocols to enable, in the order of preference.\n *\n * @param protocols the protocols to use.\n * @return {@code this}.\n * @see SSLEngine#setEnabledProtocols(String[])\n */\n SecurityConfigurator protocols(String... protocols);\n\n /**\n * The cipher suites to enable, in the order of preference.\n *\n * @param ciphers the ciphers to use.\n * @return {@code this}.\n */\n SecurityConfigurator ciphers(Iterable<String> ciphers);\n\n /**\n * Set the size of the cache used for storing SSL session objects.\n *\n * @param sessionCacheSize the cache size.\n * @return {@code this}.\n */\n SecurityConfigurator sessionCacheSize(long sessionCacheSize);\n\n /**\n * Set the timeout for the cached SSL session objects, in seconds.\n *\n * @param sessionTimeout the session timeout.\n * @return {@code this}.\n */\n SecurityConfigurator sessionTimeout(long sessionTimeout);\n\n /**\n * Sets the {@link SslProvider} to use.\n *\n * @param provider the provider.\n * @return {@code this}.\n */\n SecurityConfigurator provider(SslProvider provider);\n}", "protected ConnectionProvider createConnectionProviderIfNotSupplied() {\n\t\tif (connectionProviderSupplier != null) {\n\t\t\treturn connectionProviderSupplier.get();\n\t\t}\n\t\treturn new CoreConnectionPool();\n\t}", "public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }", "private static EndpointProvider\n getEndpointProvider(final String providerClass) {\n ServiceLoader<EndpointProvider> providerServices\n = ServiceLoader.load(EndpointProvider.class);\n for (EndpointProvider provider : providerServices) {\n if (providerClass.equals(provider.getClass().getName())) {\n return provider;\n }\n }\n return null;\n }", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "void loadSecurityProviderConfig() throws ConfigurationException;", "protected abstract Class<C> getConfigClass();", "@Test\n public void testConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(PROVIDER_FILE);\n factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n }", "@VisibleForTesting\n public static <T> FailoverProxyProvider<T> createFailoverProxyProvider(\n Configuration conf, Class<FailoverProxyProvider<T>> failoverProxyProviderClass,\n Class<T> xface, URI nameNodeUri, AtomicBoolean fallbackToSimpleAuth) throws IOException {\n Preconditions.checkArgument(\n xface.isAssignableFrom(NamenodeProtocols.class),\n \"Interface %s is not a NameNode protocol\", xface);\n try {\n Constructor<FailoverProxyProvider<T>> ctor = failoverProxyProviderClass\n .getConstructor(Configuration.class, URI.class, Class.class);\n FailoverProxyProvider<T> provider = ctor.newInstance(conf, nameNodeUri,\n xface);\n return provider;\n } catch (Exception e) {\n String message = \"Couldn't create proxy provider \" + failoverProxyProviderClass;\n if (LOG.isDebugEnabled()) {\n LOG.debug(message, e);\n }\n if (e.getCause() instanceof IOException) {\n throw (IOException) e.getCause();\n } else if(e.getCause() instanceof RuntimeException && e.getCause().getCause() instanceof IOException){\n throw (IOException) e.getCause().getCause();\n } else {\n throw new IOException(message, e);\n }\n }\n }", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "public IProvider provider();", "public static ConfigProvider getConfigurationProvider() {\n ConfigProvider configProvider = DataHolder.getInstance().getConfigProvider();\n if (configProvider == null) {\n if (DataHolder.getInstance().getBundleContext() != null) {\n throw new RuntimeException(\n \"Failed to populate HTTPMonitoringConfig Configuration. Config Provider is Null.\");\n }\n //Standalone mode\n String deploymentYamlPath = System.getProperty(DEPLOYMENT_YAML_SYS_PROPERTY);\n if (deploymentYamlPath == null || deploymentYamlPath.isEmpty()) {\n logger.info(\"System property '\" + DEPLOYMENT_YAML_SYS_PROPERTY +\n \"' is not set. Default deployment.yaml file will be used.\");\n deploymentYamlPath = DEPLOYMENT_YAML_FILE;\n try (InputStream configInputStream = AnalyticUtils.class.getClassLoader()\n .getResourceAsStream(DEPLOYMENT_YAML_FILE)) {\n if (configInputStream == null) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n if (Files.notExists(Paths.get(deploymentYamlPath))) {\n Files.copy(configInputStream, Paths.get(deploymentYamlPath));\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't read configuration from file \" + deploymentYamlPath, e);\n }\n } else if (!Files.exists(Paths.get(deploymentYamlPath))) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n\n try {\n configProvider = ConfigProviderFactory.getConfigProvider(Paths.get(deploymentYamlPath), null);\n DataHolder.getInstance().setConfigProvider(configProvider);\n } catch (ConfigurationException e) {\n throw new RuntimeException(\"Error loading deployment.yaml Configuration\", e);\n }\n }\n return configProvider;\n }", "public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}", "protected Provider() {}", "@Test\n public void testAddConfigurationProvider()\n {\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n assertNull(\"Provider already registered\", factory\n .providerForTag(\"test\"));\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Provider not registered\", provider, factory\n .providerForTag(\"test\"));\n }", "CustomerServiceProviderConfiguration getConfiguration(String serviceProviderId);", "public void setConfigProvider(ConfigProvider configProvider) {\n this.configProvider = configProvider;\n }", "protected Provider(String providerClass, String version) {\n assert !(null == providerClass || \"\".equals(providerClass.trim())) : \"Provider class must be given!\";\n this.providerClass = providerClass;\n this.version = version;\n this.vendorSpecificProperties = initPropertyNames();\n }", "public interface IProvider extends BaseProvider{\n}", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "public interface ConfigProcessor {\n\n\tvoid inject2Instance(Object obj,String keyName);\n\n\tvoid storeOneFile(ConfigBaseModel configBaseModel);\n\n\tvoid inject2Conf();\n\n}", "public ConfigurationHandlerImpl(BugzillaTaskRepositoryProvider bugzillaTaskRepositoryProvider) {\n this();\n this.repositoryProvider = bugzillaTaskRepositoryProvider;\n }", "public interface Provider {\n Service newService();\n }", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "@Test\n public void testConfigurationBuilderProvider()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\", TEST_FILE\n .getAbsolutePath());\n CombinedConfiguration cc = factory.getConfiguration(false);\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n checkProperties(cc);\n }", "public IhsItemProviderAdapterFactory() {\r\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\r\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\r\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\r\n\t\tsupportedTypes.add(IItemLabelProvider.class);\r\n\t\tsupportedTypes.add(IItemPropertySource.class);\r\n\t}", "public String getProviderClassName();", "@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();", "public static Configurable configure() {\n return new SqlServerManager.ConfigurableImpl();\n }", "public ConfigurationProvider load(PersistenceUnitInfo pinfo, Map m)\n throws IOException {\n if (pinfo == null)\n return null;\n if (!isOpenJPAPersistenceProvider(pinfo, null)) {\n warnUnknownProvider(pinfo);\n return null;\n }\n\n ConfigurationProviderImpl cp = new ConfigurationProviderImpl();\n cp.addProperties(PersistenceUnitInfoImpl.toOpenJPAProperties(pinfo));\n cp.addProperties(m);\n if (pinfo instanceof PersistenceUnitInfoImpl) {\n PersistenceUnitInfoImpl impl = (PersistenceUnitInfoImpl) pinfo;\n if (impl.getPersistenceXmlFileUrl() != null)\n cp.setSource(impl.getPersistenceXmlFileUrl().toString());\n }\n return cp;\n }", "public void setProvider(String value) { _provider = value; }", "@VisibleForTesting\n public static <T> Class<FailoverProxyProvider<T>> getFailoverProxyProviderClass(\n Configuration conf, URI nameNodeUri, Class<T> xface) throws IOException {\n if (nameNodeUri == null) {\n return null;\n }\n String host = nameNodeUri.getHost();\n String configKey = HdfsClientConfigKeys.Failover.PROXY_PROVIDER_KEY_PREFIX\n + \".\" + host;\n try {\n @SuppressWarnings(\"unchecked\")\n Class<FailoverProxyProvider<T>> ret = (Class<FailoverProxyProvider<T>>) conf\n .getClass(configKey, null, FailoverProxyProvider.class);\n if (ret != null) {\n // If we found a proxy provider, then this URI should be a logical NN.\n // Given that, it shouldn't have a non-default port number.\n int port = nameNodeUri.getPort();\n if (port > 0 && port != NameNode.DEFAULT_PORT) {\n throw new IOException(\"Port \" + port + \" specified in URI \"\n + nameNodeUri + \" but host '\" + host\n + \"' is a logical (HA) namenode\"\n + \" and does not use port information.\");\n }\n }\n return ret;\n } catch (RuntimeException e) {\n if (e.getCause() instanceof ClassNotFoundException) {\n throw new IOException(\"Could not load failover proxy provider class \"\n + conf.get(configKey) + \" which is configured for authority \"\n + nameNodeUri, e);\n } else {\n throw e;\n }\n }\n }", "public interface SettingsProvider {\n /**\n * Enable the background data option to fetch daily deviations periodically.\n */\n void enableBackgroundData();\n\n /**\n * Disable the background data option to fetch daily deviations periodically.\n */\n void disableBackgroundDate();\n\n /**\n * Determine whether background data is enabled.\n * @return true if background data is enabled.\n */\n boolean isBackgroundDataEnabled();\n\n /**\n * Enable the local notification system used to notify users when there is new data.\n */\n void enableNotifications();\n\n /**\n * Disable the local notification system used to notify users when there is new data.\n */\n void disableNotifications();\n\n /**\n * Determine whether local notifications are enabled.\n * @return true if local notifications are enabled - note this will be overridden by\n * the Android system settings regarding notifications for the app.\n */\n boolean isNotificationsEnabled();\n\n /**\n * Enable the automatic header image selection when the app starts up - where an\n * image is chosen at random from the content provider and displayed in the nav menu.\n */\n void enableAutomaticHeaderImage();\n\n /**\n * Disable the automatic header image selection on app start.\n */\n void disableAutomaticHeaderImage();\n\n /**\n * Determine whether the automatic header image is enabled.\n * @return true if automatic header images is enabled.\n */\n boolean isAutomaticHeaderImageEnabled();\n}", "private void addProvider(\n String elementName,\n String namespace,\n Class<?> provider)\n {\n // Attempt to load the provider class and then create\n // a new instance if it's an IQProvider. Otherwise, if it's\n // an IQ class, add the class object itself, then we'll use\n // reflection later to create instances of the class.\n try\n {\n // Add the provider to the map.\n if (IQProvider.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider.newInstance());\n }\n else if (IQ.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider);\n }\n }\n catch (Throwable t)\n {\n logger.error(\"Error adding iq provider.\", t);\n }\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "Builder addProvider(String value);", "public TypedKeyWithProvider(String name, Class<T> clazz, InstanceProvider<T> provider) {\n this(name, clazz, provider, AppScope.NON_PERSISTENT);\n }", "public interface PluginProvider {\n\n /**\n * Returns an instance of the specified plugin by loading the plugin class through the specified class loader.\n *\n * @param type plugin type class\n * @param className plugin class name\n * @param classLoader class loader to be used to load the plugin class\n * @param <T> plugin type\n * @return instance of the plugin\n * @throws PluginLoadingException if en error occurred when loading or instantiation of the plugin\n */\n <T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;\n}", "public ColumnConfigProvider(ColumnConfig config){\r\n\t\tthis.config = config;\r\n\t\tinit();\r\n\t}", "public interface BancoProvider extends Provider<String>{\n\n}", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n\t\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\t\n\t\t\t}", "private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}", "public interface ContainerConfigurer {\n\n /**\n * Applies a class of Registry type to the \n * container configuration.\n *\n * @param <R> the type of register\n * @param registryType the class registry type\n */\n <R extends Registry> void apply(Class<R> registryType);\n\n /**\n * Applies an instance of a Registry class to the \n * container configuration.\n * \n * @param <R> the type of register\n * @param registry a registry instance\n */\n <R extends Registry> void apply(R registry);\n\n /**\n * Gets the configured registry.\n * \n * @return the configured registry\n */\n Registry getRegistry();\n}", "public EzfirmataItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public ProviderServices(\n Class<? extends ConstrainedToType> constraintToType,\n ProviderFactory componentProviderFactory,\n Set<Class<?>> providers,\n Set<?> providerInstances) {\n this.constraintToType = constraintToType;\n this.componentProviderFactory = componentProviderFactory;\n this.providers = providers;\n this.providerInstances = providerInstances;\n }", "@SuppressWarnings(\"unchecked\")\n protected AbstractProcessor(@NotNull Class<? extends PsiElement> supportedClass,\n @NotNull Class<? extends Annotation> supportedAnnotationClass) {\n this.onceIOConfigDiscovery = OnceIOConfigDiscovery.getInstance();\n this.supportedClass = supportedClass;\n this.supportedAnnotationClasses = new Class[]{supportedAnnotationClass};\n }", "public interface IAppConfigProvider {\n\t\n\tpublic void addChangeListener(IAppConfigChangeListener l);\n\t\n\tpublic void removeChangeListener(IAppConfigChangeListener l);\n\n\tpublic void appConfigChanged(String... properties);\n\t\n\tpublic AppConfig getAppConfig();\n\t\n\tpublic void save() throws IOException;\n}", "@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t\t\n \t\t}", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "public interface ConfigurableComponentProvider extends ComponentProvider {\n\n}", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n \t\tpublic void onProviderEnabled(String provider) {\n \t\t}", "public AcapeItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "java.lang.String getProvider();", "public ManufacturingSystemItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "void toProvider(@NotNull Provider<? extends T> provider);", "public Provider1Builder() {\r\n provider1 = new Provider1();\r\n }", "public RhythmItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public void init(IConfigProvider configProvider) {\n\t\tif (isInitialized) {\n\t\t\tthrow new RuntimeException(\"Connection provider is already initialized\");\n\t\t}\n\t\tthis.provider = configProvider;\n\n\t\tif (configProvider.isCacheEnabled()) {\n\t\t\t_initRedisConfig(configProvider.getRedisSettings());\n\t\t}\n\n\t\tfor (IConfigInitializer configInitializer : customInitializers) {\n\t\t\tconfigInitializer.init(configProvider);\n\t\t}\n\n\t\tthis.isInitialized = true;\n\t\tLOGGER.info(\"External Configs has been initialized\");\n\t}", "@Override\r\n public void onProviderEnabled(String provider) {\n }", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "protected Class getClassForImplementationHint( final Class type, final PlexusConfiguration configuration,\n final ClassLoader classLoader )\n throws ComponentConfigurationException\n {\n Class retValue = type;\n \n final String implementation = configuration.getAttribute( IMPLEMENTATION, null );\n \n if ( implementation != null )\n {\n try\n {\n retValue = classLoader.loadClass( implementation );\n \n }\n catch ( final ClassNotFoundException e )\n {\n final String msg =\n \"ClassNotFoundException: Class name which was explicitly given in configuration using\"\n + \" 'implementation' attribute: '\" + implementation + \"' cannot be loaded\";\n \n throw new ComponentConfigurationException( msg, e );\n }\n catch ( final UnsupportedClassVersionError e )\n {\n final String msg =\n \"UnsupportedClassVersionError: Class name which was explicitly given in configuration\"\n + \" using 'implementation' attribute: '\" + implementation + \"' cannot be loaded\";\n \n throw new ComponentConfigurationException( msg, e );\n }\n catch ( final LinkageError e )\n {\n final String msg =\n \"LinkageError: Class name which was explicitly given in configuration using\"\n + \" 'implementation' attribute: '\" + implementation + \"' cannot be loaded\";\n \n throw new ComponentConfigurationException( msg, e );\n }\n }\n \n return retValue;\n }", "public InfoSystemItemProviderAdapterFactory()\n {\n supportedTypes.add(IEditingDomainItemProvider.class);\n supportedTypes.add(IStructuredItemContentProvider.class);\n supportedTypes.add(ITreeItemContentProvider.class);\n supportedTypes.add(IItemLabelProvider.class);\n supportedTypes.add(IItemPropertySource.class);\n }", "public Provider getProvider() {\r\n Provider provider = new Provider();\r\n provider.setProviderId(this.loginId);\r\n provider.setProviderPassword(this.loginPassword);\r\n provider.setProviderEmail(this.email);\r\n provider.setProviderPhone(this.phone);\r\n provider.setProviderBirth(this.birth);\r\n provider.setProviderGender(this.gender);\r\n provider.setAuthentication(this.authentication);\r\n provider.setProviderAccountPayment(this.accountPayment);\r\n provider.setUrl(this.urlAvatar);\r\n // Address add = new Address();\r\n // add.setBuildingName(this.buildingName);\r\n // add.setDistrictName(this.districtName);\r\n // add.setHomeNumber(this.homeNumber);\r\n // add.setStreetName(this.streetName);\r\n // add.setWardName(this.wardName);\r\n this.address = CustomerBLO.toStringAddres(homeNumber, buildingName, streetName, wardName, districtName);\r\n provider.setProviderAddress(this.address);\r\n provider.setLoginDate(new Date());\r\n provider.setDetail(this.detail);\r\n provider.setProviderName(this.loginName);\r\n return provider;\r\n\r\n }", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}", "@Override\n\t\tpublic void onProviderEnabled(String provider) {\n\n\t\t}", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "@Override\n public void onProviderEnabled(String provider) {\n }", "public OMItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public interface Provider {\n //Connection connect(String url, java.util.Properties info)\n Service newService();\n}", "void establishBookDataSourceFromProvider() {\n String className = prefs.getString(\"dataproviderpref\", GoogleBookDataSource.class.getCanonicalName());\r\n Log.i(Constants.LOG_TAG, \"Establishing book data provider using class name - \" + className);\r\n try {\r\n Class<?> clazz = Class.forName(className);\r\n // NOTE - validate that clazz is of BookDataSource type?\r\n Constructor<?> ctor = clazz.getConstructor(new Class[] { BookWormApplication.class });\r\n bookDataSource = (BookDataSource) ctor.newInstance(this);\r\n } catch (ClassNotFoundException e) {\r\n Log.e(Constants.LOG_TAG, e.getMessage(), e);\r\n throw new RuntimeException(\"Error, unable to establish data provider. \" + e.getMessage());\r\n } catch (InvocationTargetException e) {\r\n Log.e(Constants.LOG_TAG, e.getMessage(), e);\r\n throw new RuntimeException(\"Error, unable to establish data provider. \" + e.getMessage());\r\n } catch (NoSuchMethodException e) {\r\n Log.e(Constants.LOG_TAG, e.getMessage(), e);\r\n throw new RuntimeException(\"Error, unable to establish data provider. \" + e.getMessage());\r\n } catch (IllegalAccessException e) {\r\n Log.e(Constants.LOG_TAG, e.getMessage(), e);\r\n throw new RuntimeException(\"Error, unable to establish data provider. \" + e.getMessage());\r\n } catch (InstantiationException e) {\r\n Log.e(Constants.LOG_TAG, e.getMessage(), e);\r\n throw new RuntimeException(\"Error, unable to establish data provider. \" + e.getMessage());\r\n }\r\n }", "public abstract Configuration configuration();", "@Override\n\t\t\t\tpublic void onProviderEnabled(String provider)\n\t\t\t\t\t{\n\n\t\t\t\t\t}", "@Override\n public void onProviderEnabled(String provider) {\n\n }", "@Override\n public void onProviderEnabled(String provider) {\n\n }" ]
[ "0.6169093", "0.6021895", "0.59421676", "0.58344305", "0.57508296", "0.5726076", "0.568453", "0.5663438", "0.5655882", "0.5616583", "0.5508485", "0.55073756", "0.5478218", "0.5451953", "0.5437348", "0.5432751", "0.54185826", "0.5405304", "0.5405129", "0.5378476", "0.53524977", "0.5323045", "0.5322483", "0.52771735", "0.52649236", "0.5233726", "0.52329254", "0.5201075", "0.51876277", "0.5174112", "0.51698655", "0.51636946", "0.5146201", "0.51444507", "0.51444507", "0.51317805", "0.5127065", "0.51067144", "0.5077123", "0.5074511", "0.5069633", "0.50648636", "0.5062149", "0.50544864", "0.50508446", "0.5046563", "0.5046563", "0.5042681", "0.50376654", "0.5028764", "0.5023542", "0.5021249", "0.5014667", "0.5014667", "0.5014667", "0.49875617", "0.4981003", "0.49806646", "0.49727702", "0.49707803", "0.49682993", "0.49677438", "0.49665633", "0.49563405", "0.49524924", "0.49516132", "0.49505413", "0.49483082", "0.49382344", "0.49367428", "0.49333113", "0.49233532", "0.49232015", "0.49225578", "0.49173415", "0.4917104", "0.4917104", "0.4917104", "0.4917104", "0.4917104", "0.4917104", "0.4917104", "0.4917104", "0.49141505", "0.49117017", "0.49110314", "0.4910436", "0.4910436", "0.490609", "0.490609", "0.490609", "0.490609", "0.490609", "0.4901207", "0.49004492", "0.48962244", "0.4890285", "0.4889818", "0.48834312", "0.48834312" ]
0.6242418
0
Optionally define the provider resolver implementation used. If not defined, use the default ValidationProviderResolver
public ProviderSpecificBootstrap<T> providerResolver( ValidationProviderResolver resolver) { this.resolver = resolver; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T configure() {\n if (validationProviderClass == null) {\n throw new ValidationException(\n \"builder is mandatory. Use Validation.byDefaultProvider() to use the generic provider discovery mechanism\");\n }\n // used mostly as a BootstrapState\n GenericBootstrapImpl state = new GenericBootstrapImpl();\n if (resolver == null) {\n resolver = state.getDefaultValidationProviderResolver();\n } else {\n // stay null if no resolver is defined\n state.providerResolver(resolver);\n }\n\n List<ValidationProvider<?>> resolvers;\n try {\n resolvers = resolver.getValidationProviders();\n } catch (RuntimeException re) {\n throw new ValidationException(\n \"Unable to get available provider resolvers.\", re);\n }\n\n for (ValidationProvider<?> provider : resolvers) {\n // GWT validation only support exact matches.\n if (validationProviderClass.equals(provider.getClass())) {\n @SuppressWarnings(\"unchecked\")\n ValidationProvider<T> specificProvider = (ValidationProvider<T>) provider;\n return specificProvider.createSpecializedConfiguration(state);\n }\n }\n throw new ValidationException(\"Unable to find provider: \"\n + validationProviderClass);\n }", "public XMLSchemaValidatorProvider() {\n this(Optional.empty());\n }", "public static ValidatorFactory buildDefaultValidatorFactory() {\n return byDefaultProvider().configure().buildValidatorFactory();\n }", "public ValidatorFactory setMessageResolver(MessageResolver resolver) {\n this.messageResolver = resolver == null ? MessageResolver.DEFAULT : resolver;\n return this;\n }", "public interface MessageResolver {\n\t\n\tstatic final Logger LOG = LoggerFactory.getLogger( Validator.class );\n\t\n\tvoid setConfiguration( ContextConfigurion configuration );\n\tContextConfigurion getConfiguration();\n\t\n\tvoid setDefaultLocale( Locale defaultLocale );\n\tLocale getDefaultLocale();\n\n\tvoid addResourceBundle( String resourceName, String ... preloadings );\n\tvoid addResourceBundles( List<MessageResource> resources );\n\tSet<ResourceBundle> getResourceBundles();\n\n\tString getMessageKey( String key );\n\n\tString resolve( String key );\n\tString resolve( String key, String defaultValue );\n\t\n\tString resolve( String key, Locale locale );\n\tString resolve( String key, Locale locale, String defaultValue );\n\t\n}", "protected ComponentResolver createComponentResolver() {\n return new DefaultComponentResolver();\n }", "public void setDependencyResolver( DependencyResolver resolver )\r\n {\r\n this.resolver = resolver;\r\n }", "@Bean\n public Validator validator() {\n return new org.springframework.validation.beanvalidation.LocalValidatorFactoryBean();\n }", "public void setEntityResolver(EntityResolver resolver)\n {\n if (resolver instanceof EntityResolver2)\n {\n resolver2 = (EntityResolver2) resolver;\n }\n else\n {\n resolver2 = null;\n }\n if (resolver == null)\n {\n resolver = base;\n }\n entityResolver = resolver;\n }", "public DefaultValidationAnnotationHandlerRegistry() {\n\n // class annotation handlers\n registerClassHandler(new ExpressionClassValidationAnnotationHandler());\n registerClassHandler(new ExpressionsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorReferenceClassValidationAnnotationHandler());\n\n // method annotation handlers\n registerMethodHandler(new ValidationMethodAnnotationHandler());\n\n // property annotation handlers\n registerPropertyHandler(new CascadeValidationAnnotationHandler());\n registerPropertyHandler(new EmailValidationAnnotationHandler());\n registerPropertyHandler(new DateInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new DateInThePastValidationAnnotationHandler());\n registerPropertyHandler(new LengthValidationAnnotationHandler());\n registerPropertyHandler(new NotBlankValidationAnnotationHandler());\n registerPropertyHandler(new NotEmptyValidationAnnotationHandler());\n registerPropertyHandler(new NotNullValidationAnnotationHandler());\n registerPropertyHandler(new RangeValidationAnnotationHandler());\n registerPropertyHandler(new RegExpValidationAnnotationHandler());\n registerPropertyHandler(new SizeValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionsPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ConditionReferenceValidationAnnotationHandler());\n\n if (LibraryUtils.JODA_TIME_IN_CLASSPATH) {\n registerPropertyHandler(new InstantInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new InstantInThePastValidationAnnotationHandler());\n }\n\n }", "@Override\n\tpublic void register(EValidatorRegistrar registrar) {\n\t}", "public RbnfLenientScannerProvider getLenientScannerProvider()\n/* */ {\n/* 1301 */ if ((this.scannerProvider == null) && (this.lenientParse) && (!this.lookedForScanner)) {\n/* */ try\n/* */ {\n/* 1304 */ this.lookedForScanner = true;\n/* 1305 */ Class<?> cls = Class.forName(\"com.ibm.icu.text.RbnfScannerProviderImpl\");\n/* 1306 */ RbnfLenientScannerProvider provider = (RbnfLenientScannerProvider)cls.newInstance();\n/* 1307 */ setLenientScannerProvider(provider);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1315 */ return this.scannerProvider;\n/* */ }", "private void configureBeanValidation(OpenJPAConfigurationImpl conf) {\n // Validation defines/adds the following plugins to OpenJPA Configuration\n conf.validationFactory = conf.addObject(JPAProperties.VALIDATE_FACTORY);\n conf.validator = conf.addObject(\"Validator\");\n conf.validationMode = conf.addString(JPAProperties.VALIDATE_MODE);\n conf.validationGroupPrePersist = conf.addString(JPAProperties.VALIDATE_PRE_PERSIST);\n conf.validationGroupPreUpdate = conf.addString(JPAProperties.VALIDATE_PRE_UPDATE);\n conf.validationGroupPreRemove = conf.addString(JPAProperties.VALIDATE_PRE_REMOVE);\n\n conf.validationMode.setDynamic(true);\n String[] aliases = new String[] {\n String.valueOf(ValidationMode.AUTO),\n String.valueOf(ValidationMode.AUTO).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.CALLBACK),\n String.valueOf(ValidationMode.CALLBACK).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.NONE),\n String.valueOf(ValidationMode.NONE).toLowerCase(Locale.ENGLISH)\n };\n conf.validationMode.setAliases(aliases);\n conf.validationMode.setAliasListComprehensive(true);\n conf.validationMode.setDefault(aliases[0]);\n\n conf.validationGroupPrePersist.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPrePersist.setDefault(\"\");\n conf.validationGroupPrePersist.setDynamic(true);\n\n conf.validationGroupPreUpdate.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPreUpdate.setDefault(\"\");\n conf.validationGroupPreUpdate.setDynamic(true);\n\n conf.validationGroupPreRemove.setDefault(\"\");\n conf.validationGroupPreRemove.setDynamic(true);\n\n conf.validationFactory.setInstantiatingGetter(\"getValidationFactoryInstance\");\n conf.validationFactory.setDynamic(true);\n\n conf.validator.setInstantiatingGetter(\"getValidatorInstance\");\n conf.validator.setDynamic(true);\n conf.validator.makePrivate();\n }", "public static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relation to modify the\n\t\t * binding.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic void addInjection(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to lazily resolve an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to calculate its initial binding\n\t\t * when it is first accessed.\n\t\t * \n\t\t * The resolver must call back the manager to modify the resolved target.\n\t\t * \n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.addTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.removeTarget\n\t\t * @see fr.imag.adele.apam.apform.impl.InterfaceInjectionManager.substituteTarget\n\t\t * \n\t\t */\n\t\tpublic boolean resolve(RelationInjectionManager injection);\n\t\t\n\t\t/**\n\t\t * Request to remove an injection.\n\t\t * \n\t\t * This method is invoked by a injection manager to signify that the\n\t\t * component wants to force the resolution of the relation the next\n\t\t * access\n\t\t * \n\t\t */\n\t\tpublic boolean unresolve(RelationInjectionManager injection);\n\t\t\n\t}", "@Bean\n\tpublic LocaleResolver localeResolver() {\n\t\tFixedLocaleResolver resolver = new FixedLocaleResolver(new Locale(\"es\", \"MX\"));\n\t\treturn resolver;\n\t}", "public DependencyResolver getResolver() {\n return resolver;\n }", "@Override\n public void resolve(DeserializationContext ctxt) throws JsonMappingException {\n ((ResolvableDeserializer) defaultDeserializer).resolve(ctxt);\n }", "@Autowired\n public final void setLocaleResolver(final LocaleResolver localeResolver) {\n this.localeResolver = localeResolver;\n }", "@Override\r\n\tprotected Validator setValidator() {\n\t\treturn null;\r\n\t}", "@Bean\n public LocalValidatorFactoryBean getValidator(){\n LocalValidatorFactoryBean validatorFactoryBean = new LocalValidatorFactoryBean();\n validatorFactoryBean.setValidationMessageSource(messageSource());\n return validatorFactoryBean;\n }", "public void setProvider(String value) { _provider = value; }", "public void setURIResolver(URIResolver resolver){\n m_uriResolver=resolver;\n }", "public abstract RepositoryLocationValidator getRepositoryLocationValidator();", "public void setResolver( final PropertyResolver propertyResolver )\n {\n m_propertyResolver = propertyResolver;\n }", "public interface ParamResolverFactory<T> {\n ParamResolver<T> createParamResolver(Parameter parameter);\n}", "public void setLenientScannerProvider(RbnfLenientScannerProvider scannerProvider)\n/* */ {\n/* 1285 */ this.scannerProvider = scannerProvider;\n/* */ }", "public EntityResolver getEntityResolver()\n {\n return (entityResolver == base) ? null : entityResolver;\n }", "public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }", "@Override\n protected Validator getValidator() {\n return super.getValidator();\n }", "public final LocaleResolver getLocaleResolver() {\n return localeResolver;\n }", "modelProvidersI getProvider();", "java.lang.String getProvider();", "public RegisteredConstraintLinkValidator() {\r\n\t\tsetDomainID(RegisteredConstraintLinkValidator.class.getName());\r\n\t}", "@Bean\r\n\t@ConditionalOnMissingBean(RetypePasswordValidator.class)\r\n\tpublic RetypePasswordValidator retypePasswordValidator() {\r\n\t\t\r\n logger.info(\"Configuring RetypePasswordValidator\"); \r\n\t\treturn new RetypePasswordValidator();\r\n\t}", "@Bean\n\tpublic LocaleResolver localeResolver() {\n\t\tAcceptHeaderLocaleResolver locale = new AcceptHeaderLocaleResolver(); // as we are passing the locale in accept header\n\t\tlocale.setDefaultLocale(Locale.US);\n\t\treturn locale;\n\t}", "@Description(\n \"The class of the validator that should be created and used to validate paths. \"\n + \"If pathValidator has not been set explicitly, an instance of this class will be \"\n + \"constructed and used as the path validator.\")\n @Default.Class(GcsPathValidator.class)\n Class<? extends PathValidator> getPathValidatorClass();", "public static ValidatorFactory getDefault() {\n return DEFAULT_FACTORY;\n }", "@Override\n public Map<ConfigType, ValidationResult> validate(Map<ConfigType, ConfigDataProvider> configTypeWithDataProvider,\n ValidationType validationType) {\n\n switch (validationType) {\n case SYNTACTIC:\n // reuse default implementation in super class to perform syntax validation\n return super.validate(configTypeWithDataProvider, ValidationType.SYNTACTIC);\n case SEMANTIC:\n return validateSemantics(configTypeWithDataProvider);\n default:\n throw new ConfigValidationException(\"Unsupported validation type: \" + validationType.name());\n }\n }", "private CatalogResolver getCatalogResolver() {\n\n if (catalogResolver == null) {\n\n AntClassLoader loader;\n // Memory-Leak in line below\n loader = getProject().createClassLoader(Path.systemClasspath);\n\n try {\n Class<?> clazz = Class.forName(APACHE_RESOLVER, true, loader);\n\n // The Apache resolver is present - Need to check if it can\n // be seen by the catalog resolver class. Start by getting\n // the actual loader\n ClassLoader apacheResolverLoader = clazz.getClassLoader();\n\n // load the base class through this loader.\n Class<?> baseResolverClass\n = Class.forName(CATALOG_RESOLVER, true, apacheResolverLoader);\n\n // and find its actual loader\n ClassLoader baseResolverLoader\n = baseResolverClass.getClassLoader();\n\n // We have the loader which is being used to load the\n // CatalogResolver. Can it see the ApacheResolver? The\n // base resolver will only be able to create the ApacheResolver\n // if it can see it - doesn't use the context loader.\n clazz = Class.forName(APACHE_RESOLVER, true, baseResolverLoader);\n\n Object obj = clazz.newInstance();\n //\n // Success! The xml-commons resolver library is\n // available, so use it.\n //\n catalogResolver = new ExternalResolver(clazz, obj);\n } catch (Throwable ex) {\n //\n // The xml-commons resolver library is not\n // available, so we can't use it.\n //\n catalogResolver = new InternalResolver();\n if (getCatalogPath() != null\n && getCatalogPath().list().length != 0) {\n log(\"Warning: XML resolver not found; external catalogs\"\n + \" will be ignored\", Project.MSG_WARN);\n }\n log(\"Failed to load Apache resolver: \" + ex, Project.MSG_DEBUG);\n }\n }\n return catalogResolver;\n }", "public void setValidator(Validator<V> validator);", "@Autowired\n\t\n\t@Override\n\tpublic boolean isValid(String value, ConstraintValidatorContext context) {\n\t\treturn false;\n\t}", "@ProviderType\npublic interface StringConstraint extends BaseConstraint, FormatConstraint {\n\n /**\n * Returns the minimum length of the data. The constraint is applicable only for field with type string\n *\n * @return minimum length of the data\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n @JsonInclude(JsonInclude.Include.NON_NULL)\n Integer getMinLength();\n\n /**\n * Returns the maximum length of the data. The constraint is applicable only for field with type string\n *\n * @return maximum length of the data\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n @JsonInclude(JsonInclude.Include.NON_NULL)\n Integer getMaxLength();\n\n /**\n * As specified in the JSON Schema specification, the regex against which the value of the field should be tested with.\n *\n * Returns the regex. The constraint is applicable only for field with type string\n *\n * @return string represented as pattern\n * @since com.adobe.cq.forms.core.components.models.form 0.0.1\n */\n default String getPattern() {\n return null;\n }\n}", "@Override\n public void setCatalogManagerSchemaResolver(Object catalogManager,\n Object parserObject,\n Object environmentSetting) {\n\n }", "@objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();", "public YadisResolver()\n {\n \n }", "@Bean\n LocaleResolver localeResolver() {\n return new FixedLocaleResolver(Locale.ENGLISH);\n }", "@Singleton\n @Requires(beans = DiscoveryClient.class)\n @Requires(property = ENABLED, value = StringUtils.TRUE, defaultValue = StringUtils.FALSE)\n protected NameResolver.Factory nameResolverFactory(\n DiscoveryClient discoveryClient,\n List<ServiceInstanceList> serviceInstanceLists) {\n return new GrpcNameResolverProvider(discoveryClient, serviceInstanceLists);\n }", "public BinderConfiguration() {\n this(new PropertyResolverRegistry());\n }", "@Override\n public String externalize(ResourceResolver resourceResolver, Map<String, String> params,\n Function<Map<String, String>, String> urlProvider) {\n return externalizer.externalize(resourceResolver, urlProvider.apply(params));\n }", "public IProvider provider();", "protected Provider() {}", "public interface IValidator {\n\n /**\n * Based on what is required to be validated,\n *\n * @param response The REST response returns JSONElement.\n * @return By default, return false. Implementations returns true, if this matches expectation.\n */\n default boolean checkJsonResp(JsonElement response) {\n return false;\n }\n\n /**\n * Based on what is required to be validated,\n *\n * @param object On querying the db returns an object of the required class.\n * @return By default, return false. Implementations returns true, if this matches expectation.\n */\n default boolean checkDbObj(Object object) {\n return false;\n }\n}", "@Override\n public void setEntityResolver(EntityResolver entityResolver) {\n this.entityResolver = entityResolver;\n }", "@Override\n public abstract boolean needsResolving();", "@Bean\n\tpublic LocaleResolver localResolver(){\n\t\tSessionLocaleResolver slr = new SessionLocaleResolver();\n\t\tslr.setDefaultLocale(Locale.FRANCE);\n\t\treturn slr;\n\t}", "@JsonIgnore\n @Description(\n \"The path validator instance that should be used to validate paths. \"\n + \"If no path validator has been set explicitly, the default is to use the instance factory \"\n + \"that constructs a path validator based upon the currently set pathValidatorClass.\")\n @Default.InstanceFactory(PathValidatorFactory.class)\n PathValidator getPathValidator();", "@Autowired\n public void setUrlTokenResolver(UrlTokenResolver urlTokenResolver) {\n this.urlTokenResolver = urlTokenResolver;\n }", "public CatalogResolver getResolver() {\n return resolver;\n }", "@Override\n public String externalize(ResourceResolver resourceResolver, Map<String, String> params,\n Function<Map<String, String>, String> urlProvider) {\n return Optional.ofNullable(params.get(UrlProvider.PAGE_PARAM))\n .map(resourceResolver::getResource)\n .map(externalizer::externalize)\n .map(externalPath -> {\n params.put(UrlProvider.PAGE_PARAM, externalPath);\n return urlProvider.apply(params);\n })\n .orElse(urlProvider.apply(params));\n }", "public interface SupportedLocales {\n\n Locale getDefaultLocale();\n\n Collection<Locale> getSupportedLocales();\n\n SupportedLocales withLocale(Locale locale);\n\n SupportedLocales withLocaleParsingPolicy(LocalePolicy localeParsingPolicy);\n\n SupportedLocales withLocaleLookupPolicy(LocalePolicy localeLookupPolicy);\n\n Locale filterForParsing(Locale locale);\n\n Locale filterForLookup(Locale locale);\n\n LocalePolicy getLocaleParsingPolicy();\n\n LocalePolicy getLocaleLookupPolicy();\n}", "private interface CatalogResolver extends URIResolver, EntityResolver {\n @Override\n InputSource resolveEntity(String publicId, String systemId);\n }", "public Validator<V> getValidator();", "public interface Resolver {\n\n String resolveToken(String token);\n }", "public interface IProvider {\n String provide(String resourceAbsolutePath);\n}", "IWrfResourceProvider getProvider();", "public interface IAggregateValidator extends IValidator {\n\n\t/**\n\t * Gets a map of names to instances of the validators used by this validator.\n\t * FIXME: this operation is Eclipse-specific. Move it to an interface\n\t * in com.choicemaker.cm.validation.eclipse\n\t * @return a non-null, but possibly empty map of name to delegate validators.\n\t */\n\tpublic Map getValidatorMap();\n\n\t/**\n\t * Gets the plugin names of the validators used by this validator.\n\t * FIXME: this operation is Eclipse-specific. Move it to an interface\n\t * in com.choicemaker.cm.validation.eclipse\n\t * @return a non-null, but possibly empty array of validator names.\n\t */\n\tpublic String[] getValidatorNames();\n\n\t/**\n\t * Gets the validators used by this validator.\n\t * @return a non-null, but possibly empty array of delegate validators.\n\t */\n\tpublic IValidator[] getValidators();\n\n}", "Provider createProvider();", "public interface ValidatorService {\n\n /**\n * Valiadtion\n *\n * @param ruleSetCode - rule set code (named set of services and rules)\n * Can only be null when validate object contains xml message then\n * data parser select module automatically based on namespace and root element name\n * @param target - object for check\n * @return result of validation\n */\n ValidationResult validate(String ruleSetCode, ValidateObject target);\n\n /**\n * Check that rule with business code can by run\n *\n * @param businessRuleCode\n * @param onDay -\n * @return\n */\n boolean canIRun(String businessRuleCode, LocalDate onDay);\n}", "public void setProvider(String provider) {\r\n this.provider = provider == null ? null : provider.trim();\r\n }", "@Bean\n @ConditionalOnMissingBean(value = DubboParamResolveService.class, search = SearchStrategy.ALL)\n public DubboParamResolveService defaultDubboParamResolveService() {\n return new DefaultDubboParamResolveService();\n }", "public void setResolverConfigs(List<IntentResolverConfig> resolverConfigs) {\n this.resolverConfigs = resolverConfigs;\n }", "public ModelItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "void setProvider(modelProvidersI IDProvider);", "@Bean\n public LocaleResolver localeResolver() {\n SessionLocaleResolver slr = new SessionLocaleResolver();\n slr.setDefaultLocale(Locale.US);\n return slr;\n }", "@Override\n\t\tpublic void configureEditableValidation(ValidationConfigurer validationConfigurer) {\n\t\t\tvalidationConfigurer.addValidation(\".*\");\n\t\t}", "public FuzzyAutomatonItemProviderAdapterFactory() {\r\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\r\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\r\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\r\n\t\tsupportedTypes.add(IItemLabelProvider.class);\r\n\t\tsupportedTypes.add(IItemPropertySource.class);\r\n\t}", "public void setMetadataResolver(@Nullable final MetadataResolver resolver) {\n checkSetterPreconditions();\n metadataResolver = resolver;\n }", "@Bean\r\n\tpublic LocaleResolver localeResolver() {\r\n\t\tSessionLocaleResolver localeResolver = new SessionLocaleResolver();\r\n\t\tlocaleResolver.setDefaultLocale(new Locale(\"es\",\"ES\"));\r\n\t\treturn localeResolver;\r\n\t}", "void setViewResolver(ViewResolver resolver);", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "public void setProvider(String provider) {\n\t\tthis.provider = provider;\n\t}", "public ValidatorFactory(String bundleName) {\n this.messageResolver = new ResourceMessageResolver(bundleName);\n }", "public void setValidator(Validator validator) {\n _validator = validator;\n }", "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(loginValidateAuthenticationProvider);\n }", "public interface IValidator\n{\n /**\n * \n * @return the validator bean name\n */\n String getValidatorBeanName( );\n\n /**\n * \n * @return the validator display name\n */\n String getValidatorDisplayName( );\n\n /**\n * @param control\n * The control to build model\n * @return the HTML to display\n */\n String getDisplayHtml( Control control );\n\n /**\n * \n * @return the list of available entrytype for this validator\n */\n List<String> getListAvailableEntryType( );\n\n /**\n * @param questionResponse\n * The response to control\n * @param control\n * The control to verify\n * @return boolean that indicate the validation result\n */\n boolean validate( FormQuestionResponse questionResponse, Control control );\n\n /**\n * @param questionResponse\n * The List response to control\n * @param control\n * The control to verify\n * @return boolean that indicate the validation result\n */\n boolean validate( List<FormQuestionResponse> questionResponse, Control control );\n\n /**\n * Only the content of the function should be returned. The parameter names are in FormsConstants, JS_PARAMETER_INPUT_VALUE and JS_PARAMETER_CONTROL_VALUE\n * \n * @return the javascript validation code for Conditional display control\n * \n */\n String getJavascriptValidation( );\n\n /**\n * @param control\n * The control\n * @return the control value needed for javascript\n */\n String getJavascriptControlValue( Control control );\n\n}", "@objid (\"a3188449-2f95-4e02-a233-e2e48fa5e5b0\")\n void setProvider(ProvidedInterface value);", "@Override\n public EntityResolver getEntityResolver() {\n return entityResolver;\n }", "Builder addProvider(Organization value);", "@Override\n\tpublic void setAuthProvider(AuthProvider arg0) {\n\t}", "@Bean\n public LocaleResolver localeResolver() {\n SessionLocaleResolver slr = new SessionLocaleResolver();\n slr.setDefaultLocale(Locale.US);\n return slr;\n }", "public OfficialOwnerValidator(IValidatable validator) {\n super(validator);\n }", "public void setEntityResolver(final EntityResolver resolver) {\r\n _resolver = new DTDResolver(resolver);\r\n }", "@Bean\n @ConditionalOnMissingBean(RemoteAddressResolver.class)\n public RemoteAddressResolver remoteAddressResolver() {\n return new ForwardedRemoteAddressResolver(1);\n }", "public DataflowItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public interface LocaleProvider {\n\tLocale getLocale();\n}", "void registerFallback(EntityApiProvider<A, C> fallbackProvider);", "public abstract String resolve();", "public RoutinesItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public static <T extends Configuration<T>,U extends ValidationProvider<T>>\n ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) {\n return new ProviderSpecificBootstrapImpl<T, U>(providerType);\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);" ]
[ "0.6316807", "0.62342995", "0.5888116", "0.5679078", "0.56283706", "0.555435", "0.54555464", "0.54156417", "0.5410612", "0.5404699", "0.53931063", "0.53885794", "0.5301632", "0.52452195", "0.52389735", "0.5205818", "0.5184317", "0.5172781", "0.5155584", "0.51548445", "0.5133682", "0.51134527", "0.51073104", "0.5072729", "0.50653243", "0.5063", "0.5050867", "0.50495726", "0.50461394", "0.5041627", "0.50211483", "0.5002516", "0.49988532", "0.49988484", "0.49866176", "0.49803722", "0.49767065", "0.4974158", "0.4974106", "0.4967241", "0.49652433", "0.49631214", "0.49539426", "0.49469072", "0.4937022", "0.49302348", "0.49291235", "0.49164623", "0.4915745", "0.4914985", "0.48987824", "0.48930216", "0.48737139", "0.4868958", "0.48632228", "0.4840246", "0.483667", "0.48291028", "0.48015845", "0.47973195", "0.47939515", "0.47933465", "0.4792006", "0.47724062", "0.4772045", "0.4744785", "0.47387826", "0.47348562", "0.47330415", "0.4719062", "0.47042975", "0.47036907", "0.47000444", "0.46937773", "0.4691927", "0.46905825", "0.46846634", "0.46839866", "0.46770936", "0.46687368", "0.46687368", "0.46553695", "0.46500695", "0.46475405", "0.4634061", "0.4633298", "0.46241888", "0.4614352", "0.4608397", "0.46079037", "0.46029398", "0.4595207", "0.45912865", "0.45884126", "0.45841885", "0.45811453", "0.4559416", "0.45589656", "0.45574823", "0.45545384" ]
0.72965693
0
Build and return a ValidatorFactory instance based on the default Bean Validation provider. The provider list is resolved using the default validation provider resolver logic. The code is semantically equivalent to Validation.byDefaultProvider().configure().buildValidatorFactory()
public static ValidatorFactory buildDefaultValidatorFactory() { return byDefaultProvider().configure().buildValidatorFactory(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ValidatorFactory getDefault() {\n return DEFAULT_FACTORY;\n }", "public T configure() {\n if (validationProviderClass == null) {\n throw new ValidationException(\n \"builder is mandatory. Use Validation.byDefaultProvider() to use the generic provider discovery mechanism\");\n }\n // used mostly as a BootstrapState\n GenericBootstrapImpl state = new GenericBootstrapImpl();\n if (resolver == null) {\n resolver = state.getDefaultValidationProviderResolver();\n } else {\n // stay null if no resolver is defined\n state.providerResolver(resolver);\n }\n\n List<ValidationProvider<?>> resolvers;\n try {\n resolvers = resolver.getValidationProviders();\n } catch (RuntimeException re) {\n throw new ValidationException(\n \"Unable to get available provider resolvers.\", re);\n }\n\n for (ValidationProvider<?> provider : resolvers) {\n // GWT validation only support exact matches.\n if (validationProviderClass.equals(provider.getClass())) {\n @SuppressWarnings(\"unchecked\")\n ValidationProvider<T> specificProvider = (ValidationProvider<T>) provider;\n return specificProvider.createSpecializedConfiguration(state);\n }\n }\n throw new ValidationException(\"Unable to find provider: \"\n + validationProviderClass);\n }", "@Bean\n public Validator validator() {\n return new org.springframework.validation.beanvalidation.LocalValidatorFactoryBean();\n }", "public Validator getValidator() throws InstantiationException, \r\n\t\t\tIllegalAccessException, ClassNotFoundException {\r\n\t\treturn ValidatorFactory.getValidator(getClassName());\r\n\t}", "@Bean\n public LocalValidatorFactoryBean getValidator(){\n LocalValidatorFactoryBean validatorFactoryBean = new LocalValidatorFactoryBean();\n validatorFactoryBean.setValidationMessageSource(messageSource());\n return validatorFactoryBean;\n }", "public FormFieldValidator createValidator(Element constraint, BpmnParse bpmnParse, ExpressionManager expressionManager) {\n\n String name = constraint.attribute(\"name\");\n String config = constraint.attribute(\"config\");\n\n if(\"validator\".equals(name)) {\n\n // custom validators\n\n if(config == null || config.isEmpty()) {\n bpmnParse.addError(\"validator configuration needs to provide either a fully \" +\n \t\t\"qualified classname or an expression resolving to a custom FormFieldValidator implementation.\",\n \t\tconstraint);\n\n } else {\n if(StringUtil.isExpression(config)) {\n // expression\n Expression validatorExpression = expressionManager.createExpression(config);\n return new DelegateFormFieldValidator(validatorExpression);\n } else {\n // classname\n return new DelegateFormFieldValidator(config);\n }\n }\n\n } else {\n\n // built-in validators\n\n Class<? extends FormFieldValidator> validator = validators.get(name);\n if(validator != null) {\n FormFieldValidator validatorInstance = createValidatorInstance(validator);\n return validatorInstance;\n\n } else {\n bpmnParse.addError(\"Cannot find validator implementation for name '\"+name+\"'.\", constraint);\n\n }\n\n }\n\n return null;\n\n\n }", "public XMLSchemaValidatorProvider() {\n this(Optional.empty());\n }", "public DefaultValidationAnnotationHandlerRegistry() {\n\n // class annotation handlers\n registerClassHandler(new ExpressionClassValidationAnnotationHandler());\n registerClassHandler(new ExpressionsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorReferenceClassValidationAnnotationHandler());\n\n // method annotation handlers\n registerMethodHandler(new ValidationMethodAnnotationHandler());\n\n // property annotation handlers\n registerPropertyHandler(new CascadeValidationAnnotationHandler());\n registerPropertyHandler(new EmailValidationAnnotationHandler());\n registerPropertyHandler(new DateInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new DateInThePastValidationAnnotationHandler());\n registerPropertyHandler(new LengthValidationAnnotationHandler());\n registerPropertyHandler(new NotBlankValidationAnnotationHandler());\n registerPropertyHandler(new NotEmptyValidationAnnotationHandler());\n registerPropertyHandler(new NotNullValidationAnnotationHandler());\n registerPropertyHandler(new RangeValidationAnnotationHandler());\n registerPropertyHandler(new RegExpValidationAnnotationHandler());\n registerPropertyHandler(new SizeValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionsPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ConditionReferenceValidationAnnotationHandler());\n\n if (LibraryUtils.JODA_TIME_IN_CLASSPATH) {\n registerPropertyHandler(new InstantInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new InstantInThePastValidationAnnotationHandler());\n }\n\n }", "protected List<IValidation> createDefaultEditableValidations(final Element element, final ParserContext parserContext) {\n\n\t\t// Load validations from xml\n\t\tDefaultValidationParser parser = new DefaultValidationParser();\n\t\tparser.readDefaultValidations();\n\t\tList<Map<ValidationParam, String>> validations = parser.getValidations();\n\n\t\tList<IValidation> defaultValidations = new ArrayList<IValidation>();\n\n\t\tfor (Map<ValidationParam, String> validation : validations) {\n\t\t\t// Map contains validation id and regex extracted from the xml\n\t\t\tString id = validation.get(ValidationParam.ID);\n\t\t\tString regex = validation.get(ValidationParam.REGEX);\n\n\t\t\t// Create validation instance\n\t\t\tValidation validationBean = new Validation();\n\t\t\tvalidationBean.setName(id);\n\t\t\tvalidationBean.setDefaultValidation(true);\n\t\t\tvalidationBean.setRejectedPattern(regex);\n\n\t\t\tdefaultValidations.add(validationBean);\n\t\t}\n\n\t\tObject source = parserContext.extractSource(element);\n\t\tRootBeanDefinition bean = new RootBeanDefinition(ListFactoryBean.class);\n\t\tbean.setSource(source);\n\t\tbean.setRole(BeanDefinition.ROLE_INFRASTRUCTURE);\n\t\tbean.getPropertyValues().addPropertyValue(\"sourceList\", defaultValidations);\n\n\t\t// Register validation list bean\n\t\tparserContext.getRegistry().registerBeanDefinition(DEFAULT_EDITABLE_VALIDATIONS_BEAN_NAME, bean);\n\n\t\treturn defaultValidations;\n\t}", "private void configureBeanValidation(OpenJPAConfigurationImpl conf) {\n // Validation defines/adds the following plugins to OpenJPA Configuration\n conf.validationFactory = conf.addObject(JPAProperties.VALIDATE_FACTORY);\n conf.validator = conf.addObject(\"Validator\");\n conf.validationMode = conf.addString(JPAProperties.VALIDATE_MODE);\n conf.validationGroupPrePersist = conf.addString(JPAProperties.VALIDATE_PRE_PERSIST);\n conf.validationGroupPreUpdate = conf.addString(JPAProperties.VALIDATE_PRE_UPDATE);\n conf.validationGroupPreRemove = conf.addString(JPAProperties.VALIDATE_PRE_REMOVE);\n\n conf.validationMode.setDynamic(true);\n String[] aliases = new String[] {\n String.valueOf(ValidationMode.AUTO),\n String.valueOf(ValidationMode.AUTO).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.CALLBACK),\n String.valueOf(ValidationMode.CALLBACK).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.NONE),\n String.valueOf(ValidationMode.NONE).toLowerCase(Locale.ENGLISH)\n };\n conf.validationMode.setAliases(aliases);\n conf.validationMode.setAliasListComprehensive(true);\n conf.validationMode.setDefault(aliases[0]);\n\n conf.validationGroupPrePersist.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPrePersist.setDefault(\"\");\n conf.validationGroupPrePersist.setDynamic(true);\n\n conf.validationGroupPreUpdate.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPreUpdate.setDefault(\"\");\n conf.validationGroupPreUpdate.setDynamic(true);\n\n conf.validationGroupPreRemove.setDefault(\"\");\n conf.validationGroupPreRemove.setDynamic(true);\n\n conf.validationFactory.setInstantiatingGetter(\"getValidationFactoryInstance\");\n conf.validationFactory.setDynamic(true);\n\n conf.validator.setInstantiatingGetter(\"getValidatorInstance\");\n conf.validator.setDynamic(true);\n conf.validator.makePrivate();\n }", "public ValidatorFactory(String bundleName) {\n this.messageResolver = new ResourceMessageResolver(bundleName);\n }", "@ApplicationScoped\n\t@Produces\n\tpublic Multimap<Class<?>, AbstractValidator<?>> create() {\n\t\tMultimap<Class<?>, AbstractValidator<?>> map = ArrayListMultimap.create();\n\t\tIterator<AbstractValidator<?>> iter = validators.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tAbstractValidator<?> validator = iter.next();\n\t\t\tClass<?> validatorBeanClass = Reflections.getGenericTypeArgument(validator.getClass(), 0);\n\t\t\tif (!validatorBeanClass.isAnnotationPresent(Ignore.class)) {\n\t\t\t\tmap.put(validatorBeanClass, validator);\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}", "public static InvCatalogFactory getDefaultFactory(boolean validate) {\n return new InvCatalogFactory(\"default\", validate);\n }", "public ProviderSpecificBootstrap<T> providerResolver(\n ValidationProviderResolver resolver) {\n this.resolver = resolver;\n return this;\n }", "public Validator<V> getValidator();", "@BeforeClass\n public static void setUpValidator() {\n vf = Validation.buildDefaultValidatorFactory();\n validator = vf.getValidator();\n }", "public static <T extends Configuration<T>,U extends ValidationProvider<T>>\n ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) {\n return new ProviderSpecificBootstrapImpl<T, U>(providerType);\n }", "public RuleBasedValidator() {\n globalRules = new ArrayList();\n rulesByProperty = new HashMap();\n }", "public SecurityManager newDefaultBean() {\n return (SecurityManager) InnerMiscUtil.newDefaultBean(BeanServiceConstants.securityManagerServiceName, SecurityManager.class);\n }", "private JwtConsumerBuilder GetJwtConsumerBuilder() {\n JwtConsumerBuilder customJwtConsumerBuilder = new JwtConsumerBuilder()\n .setSkipAllDefaultValidators();\n if (!skipDefaultAudienceValidation) {\n Set<String> setAud = new HashSet<String>();\n setAud.add(CommonConstraint.EXPECTED_AUDIENCE);\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new AudValidator(setAud, false));\n }\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new IssValidator(null, false))\n .registerValidator(new SubValidator(requireSubject))\n .registerValidator(new JtiValidator(requireJwtId));\n\n return customJwtConsumerBuilder;\n }", "public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }", "public interface IAggregateValidator extends IValidator {\n\n\t/**\n\t * Gets a map of names to instances of the validators used by this validator.\n\t * FIXME: this operation is Eclipse-specific. Move it to an interface\n\t * in com.choicemaker.cm.validation.eclipse\n\t * @return a non-null, but possibly empty map of name to delegate validators.\n\t */\n\tpublic Map getValidatorMap();\n\n\t/**\n\t * Gets the plugin names of the validators used by this validator.\n\t * FIXME: this operation is Eclipse-specific. Move it to an interface\n\t * in com.choicemaker.cm.validation.eclipse\n\t * @return a non-null, but possibly empty array of validator names.\n\t */\n\tpublic String[] getValidatorNames();\n\n\t/**\n\t * Gets the validators used by this validator.\n\t * @return a non-null, but possibly empty array of delegate validators.\n\t */\n\tpublic IValidator[] getValidators();\n\n}", "public ValidationContext buildValidationContext() {\n return validationContextObjectFactory.getObject();\n }", "public static ConfigValidator create( final InputSource inputSource )\n throws Exception\n {\n return create( null, inputSource, null );\n }", "public static ConfigValidator create( final InputSource inputSource,\n final EntityResolver resolver )\n throws Exception\n {\n return create( null, inputSource, resolver );\n }", "public static Object getFactory(String propName, Hashtable<?, ?> env, Context ctx, String classSuffix,\n String defaultPkgPrefix) throws NamingException {\n\n // Merge property with provider property and supplied default\n String facProp = getProperty(propName, env, ctx, true);\n if (facProp != null)\n facProp += (\":\" + defaultPkgPrefix);\n else\n facProp = defaultPkgPrefix;\n\n // Cache factory based on context class loader, class name, and\n // property val\n ClassLoader loader = helper.getContextClassLoader();\n String key = classSuffix + \" \" + facProp;\n\n Map<String, WeakReference<Object>> perLoaderCache = null;\n synchronized (urlFactoryCache) {\n perLoaderCache = urlFactoryCache.get(loader);\n if (perLoaderCache == null) {\n perLoaderCache = new HashMap<>(11);\n urlFactoryCache.put(loader, perLoaderCache);\n }\n }\n\n synchronized (perLoaderCache) {\n Object factory = null;\n\n WeakReference<Object> factoryRef = perLoaderCache.get(key);\n if (factoryRef == NO_FACTORY) {\n return null;\n } else if (factoryRef != null) {\n factory = factoryRef.get();\n if (factory != null) { // check if weak ref has been cleared\n return factory;\n }\n }\n\n // Not cached; find first factory and cache\n StringTokenizer parser = new StringTokenizer(facProp, \":\");\n String className;\n while (factory == null && parser.hasMoreTokens()) {\n className = parser.nextToken() + classSuffix;\n try {\n // System.out.println(\"loading \" + className);\n factory = helper.loadClass(className, loader).newInstance();\n } catch (InstantiationException e) {\n NamingException ne = new NamingException(\"Cannot instantiate \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (IllegalAccessException e) {\n NamingException ne = new NamingException(\"Cannot access \" + className);\n ne.setRootCause(e);\n throw ne;\n } catch (Exception e) {\n // ignore ClassNotFoundException, IllegalArgumentException,\n // etc.\n }\n }\n\n // Cache it.\n perLoaderCache.put(key, (factory != null) ? new WeakReference<>(factory) : NO_FACTORY);\n return factory;\n }\n }", "@Override\n protected Validator getValidator() {\n return super.getValidator();\n }", "public <T> Validator<T> newValidator(Class<T> type) {\n return newValidator(BeanMetaData.<T>getMetaData(type));\n }", "public static JavaJRExpressionFactory init()\n {\n try\n {\n JavaJRExpressionFactory theJavaJRExpressionFactory = (JavaJRExpressionFactory)EPackage.Registry.INSTANCE.getEFactory(JavaJRExpressionPackage.eNS_URI);\n if (theJavaJRExpressionFactory != null)\n {\n return theJavaJRExpressionFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new JavaJRExpressionFactoryImpl();\n }", "@Before\n\tpublic void addValidator() throws Exception {\n\t\tfactory.add(\"test\", TestValidator.class);\n\t}", "public List<ModelValidator> getBasicValidators() {\n return basicValidators;\n }", "private TSLValidatorFactory() {\r\n\t\tsuper();\r\n\t}", "protected ComponentResolver createComponentResolver() {\n return new DefaultComponentResolver();\n }", "public Builder defaultRestrictedFieldsProvider(ResourcePathsProvider restrictedFieldsProvider) {\n\t\t\tthis.defaultRestrictedFieldsProvider = restrictedFieldsProvider;\n\t\t\treturn this.me();\n\t\t}", "@Singleton\n @Requires(beans = DiscoveryClient.class)\n @Requires(property = ENABLED, value = StringUtils.TRUE, defaultValue = StringUtils.FALSE)\n protected NameResolver.Factory nameResolverFactory(\n DiscoveryClient discoveryClient,\n List<ServiceInstanceList> serviceInstanceLists) {\n return new GrpcNameResolverProvider(discoveryClient, serviceInstanceLists);\n }", "public static CertificationFactory init() {\n\t\ttry {\n\t\t\tCertificationFactory theCertificationFactory = (CertificationFactory)EPackage.Registry.INSTANCE.getEFactory(CertificationPackage.eNS_URI);\n\t\t\tif (theCertificationFactory != null) {\n\t\t\t\treturn theCertificationFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CertificationFactoryImpl();\n\t}", "protected Constructor buildFactoryDefaultConstructor() throws DescriptorException {\n return this.buildDefaultConstructorFor(this.getFactoryClass());\n }", "public String getValidatorClassName() {\n return configurationName + \"Validator\";\n }", "public IValidator[] getValidators();", "public List<CandidateValidator> getValidators(List<CandidateValidatorType> validatorTypes) {\n\n\t\tList<CandidateValidator> toReutrn = new LinkedList<>();\n\n\t\tthis.validators.stream().filter(v -> handlesAny(v, validatorTypes)).forEach(toReutrn::add);\n\t\treturn toReutrn;\n\t}", "public <T> Validator<T> newValidator(Class<T> type, Validator<?> config) {\n return newValidator(BeanMetaData.<T>getMetaData(type), config);\n }", "BeanFactory getBeanFactory();", "List<FormValidator> getValidators();", "public interface IValidator\n{\n /**\n * \n * @return the validator bean name\n */\n String getValidatorBeanName( );\n\n /**\n * \n * @return the validator display name\n */\n String getValidatorDisplayName( );\n\n /**\n * @param control\n * The control to build model\n * @return the HTML to display\n */\n String getDisplayHtml( Control control );\n\n /**\n * \n * @return the list of available entrytype for this validator\n */\n List<String> getListAvailableEntryType( );\n\n /**\n * @param questionResponse\n * The response to control\n * @param control\n * The control to verify\n * @return boolean that indicate the validation result\n */\n boolean validate( FormQuestionResponse questionResponse, Control control );\n\n /**\n * @param questionResponse\n * The List response to control\n * @param control\n * The control to verify\n * @return boolean that indicate the validation result\n */\n boolean validate( List<FormQuestionResponse> questionResponse, Control control );\n\n /**\n * Only the content of the function should be returned. The parameter names are in FormsConstants, JS_PARAMETER_INPUT_VALUE and JS_PARAMETER_CONTROL_VALUE\n * \n * @return the javascript validation code for Conditional display control\n * \n */\n String getJavascriptValidation( );\n\n /**\n * @param control\n * The control\n * @return the control value needed for javascript\n */\n String getJavascriptControlValue( Control control );\n\n}", "public static Testing2Factory init() {\n\t\ttry {\n\t\t\tTesting2Factory theTesting2Factory = (Testing2Factory)EPackage.Registry.INSTANCE.getEFactory(Testing2Package.eNS_URI);\n\t\t\tif (theTesting2Factory != null) {\n\t\t\t\treturn theTesting2Factory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new Testing2FactoryImpl();\n\t}", "public RbnfLenientScannerProvider getLenientScannerProvider()\n/* */ {\n/* 1301 */ if ((this.scannerProvider == null) && (this.lenientParse) && (!this.lookedForScanner)) {\n/* */ try\n/* */ {\n/* 1304 */ this.lookedForScanner = true;\n/* 1305 */ Class<?> cls = Class.forName(\"com.ibm.icu.text.RbnfScannerProviderImpl\");\n/* 1306 */ RbnfLenientScannerProvider provider = (RbnfLenientScannerProvider)cls.newInstance();\n/* 1307 */ setLenientScannerProvider(provider);\n/* */ }\n/* */ catch (Exception e) {}\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1315 */ return this.scannerProvider;\n/* */ }", "protected Object buildFactory() throws DescriptorException {\n if (this.getFactoryClass() == null) {\n return null;\n }\n\n // If there is a factory class specified but no factory method name,\n // instantiate the factory using the default constructor\n if (this.getFactoryMethodName() == null) {\n return this.buildFactoryUsingDefaultConstructor();\n }\n\n // If both the factory class and the factory method name have been specified,\n // instantiate the factory by invoking the static factory method\n return this.buildFactoryUsingStaticMethod();\n }", "protected static CertificateFactory getCertificateFactory()\n throws GeneralSecurityException {\n if (provider == null) {\n return CertificateFactory.getInstance(\"X.509\");\n } else {\n return CertificateFactory.getInstance(\"X.509\", provider);\n }\n }", "public static VizualizerFactory init()\n {\n try\n {\n VizualizerFactory theVizualizerFactory = (VizualizerFactory)EPackage.Registry.INSTANCE.getEFactory(VizualizerPackage.eNS_URI);\n if (theVizualizerFactory != null)\n {\n return theVizualizerFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new VizualizerFactoryImpl();\n }", "public static BasicSafetyCaseFactory init() {\n\t\ttry {\n\t\t\tBasicSafetyCaseFactory theBasicSafetyCaseFactory = (BasicSafetyCaseFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(BasicSafetyCasePackage.eNS_URI);\n\t\t\tif (theBasicSafetyCaseFactory != null) {\n\t\t\t\treturn theBasicSafetyCaseFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BasicSafetyCaseFactoryImpl();\n\t}", "public static UseCaseDslFactory init()\n {\n try\n {\n UseCaseDslFactory theUseCaseDslFactory = (UseCaseDslFactory)EPackage.Registry.INSTANCE.getEFactory(UseCaseDslPackage.eNS_URI);\n if (theUseCaseDslFactory != null)\n {\n return theUseCaseDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new UseCaseDslFactoryImpl();\n }", "public static ProyectoFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectoFactory theProyectoFactory = (ProyectoFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectoPackage.eNS_URI);\r\n\t\t\tif (theProyectoFactory != null) {\r\n\t\t\t\treturn theProyectoFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProyectoFactoryImpl();\r\n\t}", "public static ValidatorConfig getStandardPDFA1BConfiguration () {\n\t ValidatorConfig pdfa1bStandardConfig = new ValidatorConfig();\n\t pdfa1bStandardConfig.addPriorHelpers(STREAM_FILTER, StreamValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(CATALOG_FILTER, CatalogValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(FONT_FILTER, FontValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(GRAPHIC_FILTER, GraphicsValidationHelper.class);\n\n\t pdfa1bStandardConfig.addStandHelpers(TRAILER_FILTER, TrailerValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(XREF_FILTER, XRefValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(BOOKMARK_FILTER, BookmarkValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(ACRO_FORM_FILTER, AcroFormValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(FILE_SPECIF_FILTER, FileSpecificationValidationHelper.class);\n\t // Page Helper must be called after the FontHelper to check\n\t // if Fonts used by the page content are embedded in the PDF file.\n\t pdfa1bStandardConfig.addStandHelpers(PAGE_FILTER, PagesValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(META_DATA_FILTER, MetadataValidationHelper.class);\n\n\t pdfa1bStandardConfig.setActionFactory(ActionManagerFactory.class);\n\t pdfa1bStandardConfig.setAnnotationFactory(PDFAbAnnotationFactory.class);\n\t return pdfa1bStandardConfig;\n }", "public List<Validator> getValidators() {\n return Collections.unmodifiableList(validators);\n }", "public static SpecificationFactory init()\r\n {\r\n try\r\n {\r\n SpecificationFactory theSpecificationFactory = (SpecificationFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.reclipse.org/ns/specification\"); \r\n if (theSpecificationFactory != null)\r\n {\r\n return theSpecificationFactory;\r\n }\r\n }\r\n catch (Exception exception)\r\n {\r\n EcorePlugin.INSTANCE.log(exception);\r\n }\r\n return new SpecificationFactoryImpl();\r\n }", "@Bean\r\n public static BeanFactoryPostProcessor databaseStartupValidationPostProcessor() {\r\n return bf -> {\r\n final String[] jpa = bf.getBeanNamesForType(EntityManagerFactory.class);\r\n\r\n Stream.of(jpa).map(bf::getBeanDefinition).forEach(it -> it.setDependsOn(\"databaseStartupValidator\"));\r\n };\r\n }", "public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }", "public EmployeeController()\n\t{\n\t\tValidatorFactory validatorFactory = Validation.buildDefaultValidatorFactory();\n\t\tvalidator = validatorFactory.getValidator();\n\t}", "public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}", "public ValidatorFactory setMessageBuilder(MessageBuilder builder) {\n this.messageBuilder = builder == null ? MessageBuilder.DEFAULT : builder;\n return this;\n }", "public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BuiltinFactoryImpl();\n\t}", "FactoryBean getFactoryBean();", "public static AccountProviderCollection create(\n final AccountProvider in_default_provider,\n final SortedMap<URI, AccountProvider> in_providers)\n throws IllegalArgumentException {\n\n return new AutoValue_AccountProviderCollection(\n in_default_provider, Collections.unmodifiableSortedMap(in_providers));\n }", "public interface Validateable {\n\n Validator validator = Validation.buildDefaultValidatorFactory().getValidator();\n\n default void validate(Validateable v) throws BeanValidationException {\n Set<ConstraintViolation<Validateable>> constraintViolations = validator.validate(v);\n if (constraintViolations.size() != 0) {\n StringBuilder sb = new StringBuilder();\n constraintViolations.forEach(cons -> sb.append(cons.getPropertyPath()).append(cons.getMessage()).append(','));\n throw new BeanValidationException(sb.toString());\n }\n }\n\n void validate();\n}", "@Override\r\n\tpublic Validation<Escala> getValidation() {\n\t\treturn new EscalaValidation();\r\n\t\t\r\n\t}", "public static ControlFactory init() {\n\t\ttry {\n\t\t\tControlFactory theControlFactory = (ControlFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/control/1.0\"); \n\t\t\tif (theControlFactory != null) {\n\t\t\t\treturn theControlFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ControlFactoryImpl();\n\t}", "public TypeValidator getValidator() {\n if (validator != null)\n return validator;\n return this;\n }", "public Validator getValidator() {\n/* 613 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public DefaultFieldDecorator(ElementLocatorFactory factory) {\n\t\tthis.factory = factory;\n\t}", "public Map getValidatorMap();", "public static ConfigValidator create( final String schemaType,\n final InputSource inputSource,\n final EntityResolver entityResolver )\n throws Exception\n {\n if( null == inputSource )\n {\n throw new NullPointerException( \"inputSource\" );\n }\n final VerifierFactory factory = createFactory( schemaType );\n final Schema schema = factory.compileSchema( inputSource );\n return new ConfigValidator( schema, entityResolver );\n }", "public static WebpageFactory init() {\n\t\ttry {\n\t\t\tWebpageFactory theWebpageFactory = (WebpageFactory)EPackage.Registry.INSTANCE.getEFactory(WebpagePackage.eNS_URI);\n\t\t\tif (theWebpageFactory != null) {\n\t\t\t\treturn theWebpageFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new WebpageFactoryImpl();\n\t}", "public static UiFactory init() {\n\t\ttry {\n\t\t\tUiFactory theUiFactory = (UiFactory)EPackage.Registry.INSTANCE.getEFactory(UiPackage.eNS_URI);\n\t\t\tif (theUiFactory != null) {\n\t\t\t\treturn theUiFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new UiFactoryImpl();\n\t}", "public <T> Validator<T> newValidator(EntityMetaData<T> metadata, Validator<?> config) {\n return new Validator<T>(this, metadata,\n config.messageResolver, config.messageBuilder,\n config.defaultIntegerPattern, config.defaultDecimalPattern,\n config.defaultDatePattern, config.defaultDateStyle, config.defaultTimeStyle);\n }", "@Bean\r\n\t@ConditionalOnMissingBean(RetypePasswordValidator.class)\r\n\tpublic RetypePasswordValidator retypePasswordValidator() {\r\n\t\t\r\n logger.info(\"Configuring RetypePasswordValidator\"); \r\n\t\treturn new RetypePasswordValidator();\r\n\t}", "public static CommonsFactory init() {\n\t\ttry {\n\t\t\tCommonsFactory theCommonsFactory = (CommonsFactory)EPackage.Registry.INSTANCE.getEFactory(CommonsPackage.eNS_URI);\n\t\t\tif (theCommonsFactory != null) {\n\t\t\t\treturn theCommonsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CommonsFactoryImpl();\n\t}", "public static EzdmxctrlFactory init() {\n\t\ttry {\n\t\t\tEzdmxctrlFactory theEzdmxctrlFactory = (EzdmxctrlFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://ezdmxctrl/1.0\"); \n\t\t\tif (theEzdmxctrlFactory != null) {\n\t\t\t\treturn theEzdmxctrlFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EzdmxctrlFactoryImpl();\n\t}", "public ModelItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "@Bean\n public RulesEngine getRulesEngine() {\n return new DefaultRulesEngine(new RulesEngineParameters().skipOnFirstAppliedRule(false));\n }", "public DefaultValidationReport()\r\n {\r\n factory = new DefaultReportFactory();\r\n }", "public static PageGeneratorLanguareFactory init()\n {\n try\n {\n PageGeneratorLanguareFactory thePageGeneratorLanguareFactory = (PageGeneratorLanguareFactory)EPackage.Registry.INSTANCE.getEFactory(PageGeneratorLanguarePackage.eNS_URI);\n if (thePageGeneratorLanguareFactory != null)\n {\n return thePageGeneratorLanguareFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new PageGeneratorLanguareFactoryImpl();\n }", "public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EditorFactoryImpl();\n\t}", "protected Object buildFactoryUsingDefaultConstructor() throws DescriptorException {\n try {\n if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()){\n try {\n return AccessController.doPrivileged(new PrivilegedInvokeConstructor(this.buildFactoryDefaultConstructor(), (Object[])null));\n } catch (PrivilegedActionException exception) {\n Exception throwableException = exception.getException();\n if (throwableException instanceof InvocationTargetException){\n throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException);\n } else if (throwableException instanceof IllegalAccessException){\n throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n } else {\n throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(), throwableException); \n }\n }\n } else {\n return PrivilegedAccessHelper.invokeConstructor(this.buildFactoryDefaultConstructor(), (Object[])null);\n }\n } catch (InvocationTargetException exception) {\n throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(), exception);\n } catch (IllegalAccessException exception) {\n throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(), exception);\n } catch (InstantiationException exception) {\n throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(), exception);\n } catch (NoSuchMethodError exception) {\n // This exception is not documented but gets thrown.\n throw DescriptorException.noSuchMethodWhileConstructorInstantiationOfFactory(this.getDescriptor(), exception);\n } catch (NullPointerException exception) {\n // Some JVMs will throw a NULL pointer exception here\n throw DescriptorException.nullPointerWhileConstructorInstantiationOfFactory(this.getDescriptor(), exception);\n }\n }", "public static ClazzDslFactory init()\n {\n try\n {\n ClazzDslFactory theClazzDslFactory = (ClazzDslFactory)EPackage.Registry.INSTANCE.getEFactory(ClazzDslPackage.eNS_URI);\n if (theClazzDslFactory != null)\n {\n return theClazzDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new ClazzDslFactoryImpl();\n }", "public static ServiceFactory init() {\n\t\ttry {\n\t\t\tServiceFactory theServiceFactory = (ServiceFactory)EPackage.Registry.INSTANCE.getEFactory(ServicePackage.eNS_URI);\n\t\t\tif (theServiceFactory != null) {\n\t\t\t\treturn theServiceFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ServiceFactoryImpl();\n\t}", "public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }", "public Validator getValidator() {\n return _validator;\n }", "public static MyDslFactory init()\n {\n try\n {\n MyDslFactory theMyDslFactory = (MyDslFactory)EPackage.Registry.INSTANCE.getEFactory(MyDslPackage.eNS_URI);\n if (theMyDslFactory != null)\n {\n return theMyDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MyDslFactoryImpl();\n }", "private ParamsValidator getParamsValidator(Class<? extends ParamsValidator> validatorClass,\n String[] customParams) throws ApiException {\n boolean useCache = customParams == null || customParams.length == 0;\n\n if (useCache) {\n ParamsValidator validator = paramsValidatorsMap.get(validatorClass);\n if (validator != null) {\n return validator;\n }\n }\n\n try {\n ParamsValidator validator = validatorClass.newInstance();\n validator.setCustomParams(customParams);\n\n if (useCache) {\n paramsValidatorsMap.put(validatorClass, validator);\n }\n return validator;\n }\n catch (Exception e) {\n throw new ApiException(\"Failed to instantiate a validator: \" + validatorClass.getName());\n }\n }", "public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }", "public PdfAValidator createValidatorInstance(String format, ValidatorConfig conf)\n throws ValidationException {\n\n\tif (conf == null) {\n\t return createValidatorInstance(format);\n\t}\n \n if (PDF_A_1_b.equals(format)) {\n return new PdfA1bValidator(conf);\n } else {\n throw new ValidationException(\"Unknown pdf format : \" + format);\n }\n }", "public static <T> Validator<T> create(Function<String, T> validator) {\n return new Validator<T>() {\n boolean used = false;\n T value = null;\n\n @Override\n public boolean used() {\n return used;\n }\n\n @Override\n public T value() {\n if (!used) {\n throw new IllegalStateException(\"Validator was not used\");\n }\n return value;\n }\n\n @Override\n public void validate(String rawValue) {\n used = true;\n value = validator.apply(rawValue);\n }\n };\n }", "public Function<Config, ConfigFilter> build() {\n return (c) -> new ValueResolvingFilter(failOnMissingReference);\n }", "public static GpflFactory init()\n {\n try\n {\n GpflFactory theGpflFactory = (GpflFactory)EPackage.Registry.INSTANCE.getEFactory(GpflPackage.eNS_URI);\n if (theGpflFactory != null)\n {\n return theGpflFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new GpflFactoryImpl();\n }", "public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }", "@BeforeClass\n\tpublic static void setUpBeforeClass() {\n\t\tValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n\t\tvalidator = factory.getValidator();\n\t}", "public interface FormValidator {\r\n\r\n /**\r\n * Performs on-the-fly validation of the form field 'name'.\r\n *\r\n * @param value This parameter receives the value that the user has typed.\r\n * @return Indicates the outcome of the validation. This is sent to the\r\n * browser.\r\n */\r\n default FormValidation doCheckArtifactId(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation.error(\"Please set an ArtifactId!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckGroupId(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation.error(\"Please set a GroupId!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckVersion(@QueryParameter String value) {\r\n if (value.length() == 0)\r\n return FormValidation\r\n .error(\"Please set a Version for your artifact!\");\r\n return FormValidation.ok();\r\n }\r\n\r\n default FormValidation doCheckStagingRepository(\r\n @QueryParameter String value) {\r\n return checkURI(value);\r\n }\r\n\r\n default FormValidation doCheckReleaseRepository(\r\n @QueryParameter String value) {\r\n return checkURI(value);\r\n }\r\n\r\n /**\r\n * This method checks originally the URL if it is valid. On the way to\r\n * support tokens this behavior is build out. It will be reactivated\r\n * after a general refactoring for better token macro support.\r\n * <p>\r\n * TODO implment a URL validation which works with token macro plugin\r\n *\r\n * @param value\r\n * @return\r\n */\r\n default FormValidation checkURI(String value) {\r\n if (value.length() == 0) {\r\n return FormValidation\r\n .error(\"Please set an URL for the staging repository!\");\r\n }\r\n return FormValidation.ok();\r\n }\r\n\r\n /**\r\n * Generates LisBoxModel for available Repository systems\r\n *\r\n * @return available Promoters as ListBoxModel\r\n */\r\n default ListBoxModel doFillPromoterClassItems() {\r\n ListBoxModel promoterModel = new ListBoxModel();\r\n for (Promotor promotor : Jenkins.getInstance()\r\n .getExtensionList(Promotor.class)) {\r\n promoterModel.add(promotor.getDescriptor().getDisplayName(), promotor\r\n .getClass().getCanonicalName());\r\n }\r\n\r\n return promoterModel;\r\n }\r\n\r\n}", "private ValidatorForm(){}", "public static ComponentsFactory init() {\n\t\ttry {\n\t\t\tComponentsFactory theComponentsFactory = (ComponentsFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.cwi.nl/reo/components\"); \n\t\t\tif (theComponentsFactory != null) {\n\t\t\t\treturn theComponentsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ComponentsFactory();\n\t}", "public PdfAValidator createValidatorInstance(String format)\n throws ValidationException {\n if (PDF_A_1_b.equals(format)) {\n return new PdfA1bValidator(getStandardPDFA1BConfiguration());\n } else {\n throw new ValidationException(\"Unknown pdf format : \" + format);\n }\n }" ]
[ "0.7142718", "0.63110465", "0.57159305", "0.5659628", "0.5531108", "0.524719", "0.5191746", "0.5127483", "0.50975907", "0.49402517", "0.49278674", "0.49129483", "0.49116874", "0.4809596", "0.47977707", "0.4740678", "0.47219846", "0.47102553", "0.46983632", "0.4679732", "0.4656388", "0.4639776", "0.46159115", "0.4580036", "0.4542546", "0.45204684", "0.4499505", "0.44745952", "0.44724792", "0.4465558", "0.4462475", "0.44614398", "0.4448223", "0.4435388", "0.44316542", "0.44289672", "0.4415343", "0.440443", "0.4399396", "0.43987277", "0.4394204", "0.43878123", "0.43758047", "0.43684736", "0.4350421", "0.43224254", "0.43220368", "0.43099168", "0.43093118", "0.4308558", "0.4304832", "0.4281607", "0.42804918", "0.42790046", "0.42747027", "0.4272417", "0.42620236", "0.42562905", "0.42530525", "0.4252751", "0.42514092", "0.42474523", "0.4242766", "0.42381412", "0.42347148", "0.42252034", "0.4206524", "0.42052403", "0.42047417", "0.41969067", "0.4186283", "0.41783404", "0.41767532", "0.417557", "0.41748375", "0.41740513", "0.4173914", "0.41735598", "0.41580096", "0.41548902", "0.41476974", "0.41433877", "0.41410583", "0.41367093", "0.4129618", "0.41288194", "0.41264853", "0.41258603", "0.41243926", "0.41226557", "0.41215712", "0.41201788", "0.41132623", "0.41070917", "0.4103925", "0.40849423", "0.40818846", "0.40818244", "0.40716505", "0.4070932" ]
0.8489568
0
Build a Configuration. The provider list is resolved using the strategy provided to the bootstrap state. Configuration&lt?&gt; configuration = Validation .byDefaultProvider() .providerResolver( new MyResolverStrategy() ) .configure(); ValidatorFactory factory = configuration.buildValidatorFactory(); The first available provider will be returned.
public static GenericBootstrap byDefaultProvider() { return new GenericBootstrapImpl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T configure() {\n if (validationProviderClass == null) {\n throw new ValidationException(\n \"builder is mandatory. Use Validation.byDefaultProvider() to use the generic provider discovery mechanism\");\n }\n // used mostly as a BootstrapState\n GenericBootstrapImpl state = new GenericBootstrapImpl();\n if (resolver == null) {\n resolver = state.getDefaultValidationProviderResolver();\n } else {\n // stay null if no resolver is defined\n state.providerResolver(resolver);\n }\n\n List<ValidationProvider<?>> resolvers;\n try {\n resolvers = resolver.getValidationProviders();\n } catch (RuntimeException re) {\n throw new ValidationException(\n \"Unable to get available provider resolvers.\", re);\n }\n\n for (ValidationProvider<?> provider : resolvers) {\n // GWT validation only support exact matches.\n if (validationProviderClass.equals(provider.getClass())) {\n @SuppressWarnings(\"unchecked\")\n ValidationProvider<T> specificProvider = (ValidationProvider<T>) provider;\n return specificProvider.createSpecializedConfiguration(state);\n }\n }\n throw new ValidationException(\"Unable to find provider: \"\n + validationProviderClass);\n }", "public static ValidatorFactory buildDefaultValidatorFactory() {\n return byDefaultProvider().configure().buildValidatorFactory();\n }", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }", "public static <T extends Configuration<T>,U extends ValidationProvider<T>>\n ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) {\n return new ProviderSpecificBootstrapImpl<T, U>(providerType);\n }", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "@NonNull\n\t\tConfig build();", "public abstract CONFIG build();", "CustomerServiceProviderConfiguration getConfiguration(String serviceProviderId);", "public BinderConfiguration() {\n this(new PropertyResolverRegistry());\n }", "public ProviderSpecificBootstrap<T> providerResolver(\n ValidationProviderResolver resolver) {\n this.resolver = resolver;\n return this;\n }", "private void configureBeanValidation(OpenJPAConfigurationImpl conf) {\n // Validation defines/adds the following plugins to OpenJPA Configuration\n conf.validationFactory = conf.addObject(JPAProperties.VALIDATE_FACTORY);\n conf.validator = conf.addObject(\"Validator\");\n conf.validationMode = conf.addString(JPAProperties.VALIDATE_MODE);\n conf.validationGroupPrePersist = conf.addString(JPAProperties.VALIDATE_PRE_PERSIST);\n conf.validationGroupPreUpdate = conf.addString(JPAProperties.VALIDATE_PRE_UPDATE);\n conf.validationGroupPreRemove = conf.addString(JPAProperties.VALIDATE_PRE_REMOVE);\n\n conf.validationMode.setDynamic(true);\n String[] aliases = new String[] {\n String.valueOf(ValidationMode.AUTO),\n String.valueOf(ValidationMode.AUTO).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.CALLBACK),\n String.valueOf(ValidationMode.CALLBACK).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.NONE),\n String.valueOf(ValidationMode.NONE).toLowerCase(Locale.ENGLISH)\n };\n conf.validationMode.setAliases(aliases);\n conf.validationMode.setAliasListComprehensive(true);\n conf.validationMode.setDefault(aliases[0]);\n\n conf.validationGroupPrePersist.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPrePersist.setDefault(\"\");\n conf.validationGroupPrePersist.setDynamic(true);\n\n conf.validationGroupPreUpdate.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPreUpdate.setDefault(\"\");\n conf.validationGroupPreUpdate.setDynamic(true);\n\n conf.validationGroupPreRemove.setDefault(\"\");\n conf.validationGroupPreRemove.setDynamic(true);\n\n conf.validationFactory.setInstantiatingGetter(\"getValidationFactoryInstance\");\n conf.validationFactory.setDynamic(true);\n\n conf.validator.setInstantiatingGetter(\"getValidatorInstance\");\n conf.validator.setDynamic(true);\n conf.validator.makePrivate();\n }", "public static ConfigProvider getConfigurationProvider() {\n ConfigProvider configProvider = DataHolder.getInstance().getConfigProvider();\n if (configProvider == null) {\n if (DataHolder.getInstance().getBundleContext() != null) {\n throw new RuntimeException(\n \"Failed to populate HTTPMonitoringConfig Configuration. Config Provider is Null.\");\n }\n //Standalone mode\n String deploymentYamlPath = System.getProperty(DEPLOYMENT_YAML_SYS_PROPERTY);\n if (deploymentYamlPath == null || deploymentYamlPath.isEmpty()) {\n logger.info(\"System property '\" + DEPLOYMENT_YAML_SYS_PROPERTY +\n \"' is not set. Default deployment.yaml file will be used.\");\n deploymentYamlPath = DEPLOYMENT_YAML_FILE;\n try (InputStream configInputStream = AnalyticUtils.class.getClassLoader()\n .getResourceAsStream(DEPLOYMENT_YAML_FILE)) {\n if (configInputStream == null) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n if (Files.notExists(Paths.get(deploymentYamlPath))) {\n Files.copy(configInputStream, Paths.get(deploymentYamlPath));\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't read configuration from file \" + deploymentYamlPath, e);\n }\n } else if (!Files.exists(Paths.get(deploymentYamlPath))) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n\n try {\n configProvider = ConfigProviderFactory.getConfigProvider(Paths.get(deploymentYamlPath), null);\n DataHolder.getInstance().setConfigProvider(configProvider);\n } catch (ConfigurationException e) {\n throw new RuntimeException(\"Error loading deployment.yaml Configuration\", e);\n }\n }\n return configProvider;\n }", "public static ConfigValidator create( final InputSource inputSource,\n final EntityResolver resolver )\n throws Exception\n {\n return create( null, inputSource, resolver );\n }", "@Test\n public void testConfigurationBuilderProvider()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\", TEST_FILE\n .getAbsolutePath());\n CombinedConfiguration cc = factory.getConfiguration(false);\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n checkProperties(cc);\n }", "@Test\n public void testConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(PROVIDER_FILE);\n factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n }", "public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }", "@SuppressWarnings(\"unused\")\n @Provides\n @Singleton\n private ExpressiveObjectsConfigurationBuilder providesConfigurationBuilder() {\n return expressiveObjectsConfigurationBuilder;\n }", "void loadSecurityProviderConfig() throws ConfigurationException;", "public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }", "protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}", "@Test\n public void testAddConfigurationProvider()\n {\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n assertNull(\"Provider already registered\", factory\n .providerForTag(\"test\"));\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Provider not registered\", provider, factory\n .providerForTag(\"test\"));\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> \n getConfigurationFieldBuilder() {\n if (configurationBuilder_ == null) {\n configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(\n getConfiguration(),\n getParentForChildren(),\n isClean());\n configuration_ = null;\n }\n return configurationBuilder_;\n }", "public interface ApplicationRuntimeConfigurationBuilder\n{\n Repository createRepositoryFromModel( Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n\n void releaseRepository( Repository repository, Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n}", "public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}", "public ConfigProvider getConfig() {\n return config;\n }", "public abstract Configuration configuration();", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public Function<Config, ConfigFilter> build() {\n return (c) -> new ValueResolvingFilter(failOnMissingReference);\n }", "public ValidateConfiguration() {\n super();\n }", "public static ConfigValidator create( final InputSource inputSource )\n throws Exception\n {\n return create( null, inputSource, null );\n }", "public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "public ApplicationConfig initialize() throws IOException {\n\t\tClassLoader classLoader = TCCLUtil.getThreadContextClassLoaderOrDefault(getClass());\n\n\t\t// Obtain a ResourceReader that is compatible with a startup ExternalContext\n\t\tResourceReader resourceReader = newResourceReader();\n\n\t\t// Obtain a SAX Parser Factory.\n\t\tSAXParserFactory saxParserFactory = ConcurrentSAXParserFactory.newInstance();\n\t\tsaxParserFactory.setValidating(false);\n\t\tsaxParserFactory.setNamespaceAware(true);\n\n\t\ttry {\n\n\t\t\t// Obtain a SAX Parser from the factory.\n\t\t\tSAXParser saxParser = saxParserFactory.newSAXParser();\n\n\t\t\t// Scan all the web.xml and web-fragment.xml descriptors in the classpath.\n\t\t\tWebConfigScanner webConfigScanner = newWebConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities);\n\t\t\tWebConfig webConfig = webConfigScanner.scan();\n\n\t\t\t// Scan all the faces-config.xml descriptors in the classpath.\n\t\t\tFacesConfigScanner facesConfigScanner = newFacesConfigScanner(classLoader, resourceReader, saxParser,\n\t\t\t\t\tresolveEntities, webConfig);\n\t\t\tFacesConfig facesConfig = facesConfigScanner.scan();\n\n\t\t\treturn new ApplicationConfigImpl(contextPath, facesConfig, webConfig);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new IOException(e);\n\t\t}\n\t}", "public Configuration parse() {\n final CommandLineParser parser = new BasicParser();\n final CommandLine cmd;\n\n try {\n cmd = parser.parse(options, args);\n\n if (cmd.hasOption(\"h\"))\n return help();\n\n if (cmd.hasOption(\"f\")) {\n return configurationFromFile(cmd.getOptionValue(\"f\"));\n } else if (cmd.hasOption(\"u\")) {\n return configurationFromUrl(cmd.getOptionValue(\"u\"));\n } else if (0 < args.length) {\n logback.warn(\"Unknown parameter: \" + args[0]);\n return help();\n } else {\n return configurationFromResource();\n }\n\n } catch (final ParseException e) {\n logback.error(\"Failed to parse command line properties\", e);\n return help();\n }\n }", "public XMLSchemaValidatorProvider() {\n this(Optional.empty());\n }", "public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }", "public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}", "public ValidationContext buildValidationContext() {\n return validationContextObjectFactory.getObject();\n }", "protected WjrConfigLoader getConfigLoader() {\r\n\t\treturn new WjrConfigLoader();\r\n\t}", "public Configuration() {\n\t\tpackages(\"apiservice.services\");\n\t\tregister(CORSFilter.class);\n\t\tregister(AuthenticationFilter.class);\n\t}", "public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }", "@Override\n public Map<ConfigType, ValidationResult> validate(Map<ConfigType, ConfigDataProvider> configTypeWithDataProvider,\n ValidationType validationType) {\n\n switch (validationType) {\n case SYNTACTIC:\n // reuse default implementation in super class to perform syntax validation\n return super.validate(configTypeWithDataProvider, ValidationType.SYNTACTIC);\n case SEMANTIC:\n return validateSemantics(configTypeWithDataProvider);\n default:\n throw new ConfigValidationException(\"Unsupported validation type: \" + validationType.name());\n }\n }", "protected void validate() throws ConfigurationException\n {\n\n }", "protected freemarker.template.Configuration newConfiguration(TemplateLoader templateLoader) throws IOException, TemplateException {\n return enhance ? new Configuration(templateLoader) : new freemarker.template.Configuration();\n }", "public interface HibernateConfigurationValidator\n{\n\tvoid validate(Configuration hibernateConfiguration,\n\t Properties hibernateProperties,\n\t GuiceConfig environmentConfiguration);\n}", "Pair<T, U> build() throws IOException, ConfigurationException;", "public static ConfigValidator create( final String schemaType,\n final InputSource inputSource,\n final EntityResolver entityResolver )\n throws Exception\n {\n if( null == inputSource )\n {\n throw new NullPointerException( \"inputSource\" );\n }\n final VerifierFactory factory = createFactory( schemaType );\n final Schema schema = factory.compileSchema( inputSource );\n return new ConfigValidator( schema, entityResolver );\n }", "public interface RegistrySettings {\n\n\n static Builder builder() {\n\t\treturn new Builder();\n\t}\n\n ResourceRegistryRepository getResourceRegistryRepository();\n\n MappedClassRegistry getMappedClassRegistry();\n\n MappedClassFactory getMappedClassFactory();\n\n List<String> getPackagesToScan();\n\n MappedFieldFactory getMappedFieldFactory();\n\n Comparator<MappedField<?>> getMappedFieldOrderComparator();\n\n RepositoryFactory getRepositoryFactory();\n\n MappedFieldBuilderVisitor[] getMappedFieldVisitors();\n\n ErrorFactory getErrorFactory();\n\n MethodArgumentFactory getMethodArgumentFactory();\n\n ConverterFactory getConverterFactory();\n\n ParameterConverterFactory getParameterConverterFactory();\n\n ControllerMethodAccess getDefaultControllerAccess();\n\n ServiceMethodAccess getDefaultServiceAccess();\n\n List<Object> getDefaultServiceFilters();\n\n RequestObjectFactory getRequestObjectFactory();\n\n Pagination getDefaultPagination();\n\n ResourcePathsProvider getDefaultRestrictedFieldsProvider();\n\n ResourcePathsProvider getDefaultSparseFieldsProvider();\n\n String getBasePath();\n\n static class Builder {\n private final static Logger log = LoggerFactory.getLogger(RegistrySettings.class);\n\n\t\tprivate boolean excludeFrameworkFilters;\n\n\t\tprivate ResourceRegistryRepository resourceRegistryMap;\n\t\tprivate MappedClassFactory mappedClassFactory;\n\t\tprivate MappedClassRegistry mappedClassRegistry;\n\t\tprivate String[] packagesToScan;\n\t\tprivate MappedFieldFactory mappedFieldFactory;\n\t\tprivate MappedFieldBuilderVisitor[] mappedFieldVisitors;\n\t\tprivate Comparator<MappedField<?>> mappedFieldOrderComparator;\n\n\t\tprivate ControllerMethodAccess defaultControllerMethodAccess;\n\t\tprivate ServiceMethodAccess defaultServiceMethodAccess;\n\n\t\tprivate RepositoryFactory repositoryFactory;\n\t\tprivate ErrorFactory errorFactory;\n\t\tprivate RequestObjectFactory requestObjectFactory;\n\t\tprivate MethodArgumentFactory methodArgumentFactory;\n\t\tprivate Object[] defaultServiceFilters;\n\t\tprivate Pagination defaultPagination;\n\t\tprivate Validator validator;\n\t\tprivate ResourcePathsProvider defaultSparseFieldsProvider;\n\t\tprivate ResourcePathsProvider defaultRestrictedFieldsProvider;\n\t\tprivate String basePath;\n private ConverterFactory converterFactory;\n\n\t\tprivate Builder me() {\n\t\t\treturn this;\n\t\t}\n\n\t\t/**\n * Provided alternate storage for registry meta data\n * \n * @param resourceRegistryMap implementation\n * @return this builder\n */\n\t\tpublic Builder resourceRegistryRepository(ResourceRegistryRepository resourceRegistryMap) {\n\t\t\tthis.resourceRegistryMap = resourceRegistryMap;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n\t\t * @param packagesToScan used by {@link com.github.restup.registry.ResourceRegistry} to filter acceptable {@link Resource}s\n * @return this builder\n */\n\t\tpublic Builder packagesToScan(String... packagesToScan) {\n\t\t\tthis.packagesToScan = packagesToScan;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Comparator for defining sort order of {@link MappedClass#getAttributes()}\n * \n * @param mappedFieldOrderComparator implementation\n * @return this builder\n */\n\t\tpublic Builder mappedFieldOrderComparator(Comparator<MappedField<?>> mappedFieldOrderComparator) {\n\t\t\tthis.mappedFieldOrderComparator = mappedFieldOrderComparator;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Provide an alternate implementation for creating {@link MappedField}\n * \n * @param mappedFieldFactory implementation\n * @return this builder\n */\n\t\tpublic Builder mappedFieldFactory(MappedFieldFactory mappedFieldFactory) {\n\t\t\tthis.mappedFieldFactory = mappedFieldFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * If {@link #mappedFieldFactory(MappedFieldFactory)} is not overridden,\n * {@link MappedFieldBuilderVisitor} implementations may be specified to customize behavior of\n * {@link DefaultMappedFieldFactory}\n * \n * @param visitors implementations\n * @return this builder\n */\n\t\tpublic Builder mappedFieldBuilderVisitors(MappedFieldBuilderVisitor... visitors) {\n\t\t\tthis.mappedFieldVisitors = visitors;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides factory for providing default {@link com.github.restup.repository.Repository}\n * implementations.\n * \n * @param repositoryFactory implementation\n * @return this builder\n */\n\t\tpublic Builder repositoryFactory(RepositoryFactory repositoryFactory) {\n\t\t\tthis.repositoryFactory = repositoryFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides factory for providing error objects\n * \n * @param errorFactory implementation\n * @return this builder\n */\n\t\tpublic Builder errorFactory(ErrorFactory errorFactory) {\n\t\t\tthis.errorFactory = errorFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Provides argument instances for services filters\n * \n * @param methodArgumentFactory implementation\n * @return this builder\n */\n\t\tpublic Builder methodArgumentFactory(MethodArgumentFactory methodArgumentFactory) {\n\t\t\tthis.methodArgumentFactory = methodArgumentFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Defines default service method access for resources. Resources may define their own.\n * \n * @param defaultServiceMethodAccess implementation\n * @return this builder\n */\n\t\tpublic Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Defines default service controller access for resources. Resources may define their own.\n * \n * @param defaultControllerMethodAccess implementation\n * @return this builder\n */\n\t\tpublic Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides default {@link RequestObjectFactory}\n * \n * @param requestObjectFactory implementation\n * @return this builder\n */\n\t\tpublic Builder requestObjectFactory(RequestObjectFactory requestObjectFactory) {\n\t\t\tthis.requestObjectFactory = requestObjectFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides default {@link MappedClassFactory}\n * \n * @param mappedClassFactory implementation\n * @return this builder\n */\n\t\tpublic Builder mappedClassFactory(MappedClassFactory mappedClassFactory) {\n\t\t\tthis.mappedClassFactory = mappedClassFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * If true, default filters ({@link NotFoundFilter}, etc) will be excluded from default filters\n * \n * @param excludeFrameworkFilters if true service filters are excluded. if false, Up! filters are\n * added.\n * @return this builder\n */\n\t\tpublic Builder excludeFrameworkFilters(boolean excludeFrameworkFilters) {\n\t\t\tthis.excludeFrameworkFilters = excludeFrameworkFilters;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Define default service filters to be used for resources relying on filter based services. This\n * will add to default Up! filters unless, {@link #excludeFrameworkFilters(boolean)} is set to true\n * \n * @param filters to add as default service filters.\n * @return this builder\n */\n\t\tpublic Builder defaultServiceFilters(Object... filters) {\n\t\t\tthis.defaultServiceFilters = filters;\n\t\t\treturn this.me();\n\t\t}\n\n public Builder defaultPagination(Pagination defaultPagination) {\n this.defaultPagination = defaultPagination;\n\t\t\t\t\treturn this.me();\n }\n\n public Builder defaultPaginationDisabled() {\n\t\t\t\t\treturn this.defaultPagination(Pagination.disabled());\n }\n\n public Builder defaultPagination(Integer pageLimit, Integer pageOffset, boolean withTotalsDisabled) {\n\t\t\t\t\treturn this.defaultPagination(Pagination.of(pageLimit, pageOffset, withTotalsDisabled));\n }\n\n\t\tpublic Builder defaultPagination(Integer pageLimit) {\n\t\t\treturn this.defaultPagination(pageLimit, 0, false);\n\t\t}\n\n\t\tpublic Builder validator(Validator validator) {\n\t\t\tthis.validator = validator;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Default implementation to be used when resource does not specify it's own implementation\n * \n * @param restrictedFieldsProvider implementation\n * @return this builder\n */\n\t\tpublic Builder defaultRestrictedFieldsProvider(ResourcePathsProvider restrictedFieldsProvider) {\n\t\t\tthis.defaultRestrictedFieldsProvider = restrictedFieldsProvider;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Default implementation to be used when resource does not specify it's own implementation\n * \n * @param defaultSparseFieldsProvider implementation\n * @return this builder\n */\n\t\tpublic Builder defaultSparseFieldsProvider(ResourcePathsProvider defaultSparseFieldsProvider) {\n\t\t\tthis.defaultSparseFieldsProvider = defaultSparseFieldsProvider;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * The default base path for all resources\n * \n * @param basePath used for exposed endpoints\n * @return this builder\n */\n public Builder basePath(String basePath) {\n this.basePath = basePath;\n\t\t\t\t\treturn this.me();\n }\n\n /**\n * @param converterFactory used for parameter conversion\n * @return this builder\n */\n public Builder converterFactory(ConverterFactory converterFactory) {\n this.converterFactory = converterFactory;\n\t\t\t\t\treturn this.me();\n }\n\n\t\tpublic RegistrySettings build() {\n\t\t\tString[] packagesToScan = this.packagesToScan;\n\t\t\tif (ArrayUtils.isEmpty(packagesToScan)) {\n\t\t\t\tpackagesToScan = new String[] { \"com\" };\n\t\t\t}\n\t\t\tComparator<MappedField<?>> mappedFieldOrderComparator = this.mappedFieldOrderComparator;\n\t\t\tif (mappedFieldOrderComparator == null) {\n mappedFieldOrderComparator = MappedClass.getDefaultFieldComparator();\n\t\t\t}\n\t\t\tMappedFieldBuilderVisitor[] mappedFieldVisitors = this.mappedFieldVisitors;\n\t\t\tif (ArrayUtils.isEmpty(mappedFieldVisitors)) {\n mappedFieldVisitors = MappedFieldBuilderVisitor.getDefaultVisitors();\n\t\t\t}\n\t\t\tMappedFieldFactory mappedFieldFactory = this.mappedFieldFactory;\n\t\t\tif (mappedFieldFactory == null) {\n\t\t\t\tmappedFieldFactory = new DefaultMappedFieldFactory(mappedFieldVisitors);\n\t\t\t}\n\n\t\t\tErrorFactory errorFactory = this.errorFactory;\n\t\t\tif (errorFactory == null) {\n errorFactory = ErrorFactory.getDefaultErrorFactory();\n\t\t\t}\n\t\t\tRequestObjectFactory requestObjectFactory = this.requestObjectFactory;\n\t\t\tif (requestObjectFactory == null) {\n\t\t\t\trequestObjectFactory = new DefaultRequestObjectFactory();\n\t\t\t}\n\n\t\t\tObject[] defaultServiceFilters = this.defaultServiceFilters;\n\n\t\t\tif (!this.excludeFrameworkFilters) {\n\t\t\t\tdefaultServiceFilters = ArrayUtils.addAll(defaultServiceFilters, new BulkOperationByQueryFilter(),\n\t\t\t\t\t\tnew ImmutableFieldValidationFilter(), new IncludeFilter(), new NotFoundFilter(),\n\t\t\t\t\t\tnew RelationshipValidationFilter(), new SequencedIdValidationFilter(),\n\t\t\t\t\t\tnew CaseInsensitiveSearchFieldFilter());\n\n\t\t\t\tValidator javaxValidations = this.validator;\n\t\t\t\tif (javaxValidations == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n\t\t\t\t\t\tjavaxValidations = factory.getValidator();\n\t\t\t\t\t} catch (Exception p) {\n\t\t\t\t\t\tlog.warn(\n\t\t\t\t\t\t\t\t\"Unable to add JavaxValidationFilter, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (javaxValidations != null) {\n\t\t\t\t\tdefaultServiceFilters = ArrayUtils.add(defaultServiceFilters,\n\t\t\t\t\t\t\tnew JavaxValidationFilter(javaxValidations));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tResourceRegistryRepository resourceRegistryMap = this.resourceRegistryMap;\n\t\t\tif (resourceRegistryMap == null) {\n\t\t\t\tresourceRegistryMap = new DefaultResourceRegistryRepository();\n\t\t\t}\n\n // builder.add(parameterConverters);\n ConverterFactory converterFactory = this.converterFactory;\n\n if (converterFactory == null) {\n converterFactory = ConverterFactory.getDefaultConverterFactory();\n\t\t\t}\n\n\t\t\tParameterConverterFactory parameterConverterFactory = ParameterConverterFactory\n\t\t\t\t\t.builder(errorFactory)\n\t\t\t\t\t.addAll(converterFactory.getConverters(String.class))\n\t\t\t\t\t.build();\n\n\t\t\tControllerMethodAccess defaultControllerMethodAccess = this.defaultControllerMethodAccess;\n\t\t\tif (defaultControllerMethodAccess == null) {\n defaultControllerMethodAccess = ControllerMethodAccess.allEnabled();\n\t\t\t}\n\n\t\t\tServiceMethodAccess defaultServiceMethodAccess = this.defaultServiceMethodAccess;\n\t\t\tif (defaultServiceMethodAccess == null) {\n defaultServiceMethodAccess = ServiceMethodAccess.allEnabled();\n\t\t\t}\n\n\t\t\tPagination pagination = this.defaultPagination;\n\t\t\tif (pagination == null) {\n\t\t\t\tpagination = Pagination.of(10, 0);\n\t\t\t}\n\n\t\t\tResourcePathsProvider defaultSparseFields = this.defaultSparseFieldsProvider;\n\t\t\tif (defaultSparseFields == null) {\n defaultSparseFields = ResourcePathsProvider.allApiFields();\n\t\t\t}\n\n\t\t\tResourcePathsProvider restrictedFields = this.defaultRestrictedFieldsProvider;\n\t\t\tif (restrictedFields == null) {\n restrictedFields = ResourcePathsProvider.empty();\n\t\t\t}\n\n\t\t\tString basePath = Resource.cleanBasePath(this.basePath);\n\t\t\tif (basePath == null) {\n\t\t\t\tbasePath = \"/\";\n\t\t\t}\n\n\t\t\treturn new BasicRegistrySettings(resourceRegistryMap, this.mappedClassFactory,\n\t\t\t\tthis.mappedClassRegistry, packagesToScan,\n\t\t\t\t\tmappedFieldFactory, mappedFieldVisitors, mappedFieldOrderComparator, defaultControllerMethodAccess,\n\t\t\t\tdefaultServiceMethodAccess, this.repositoryFactory, errorFactory, requestObjectFactory,\n\t\t\t\tthis.methodArgumentFactory, converterFactory, parameterConverterFactory,\n\t\t\t\tdefaultServiceFilters,\n\t\t\t\t\tpagination, defaultSparseFields, restrictedFields, basePath);\n\t\t}\n\t}\n\n}", "private JwtConsumerBuilder GetJwtConsumerBuilder() {\n JwtConsumerBuilder customJwtConsumerBuilder = new JwtConsumerBuilder()\n .setSkipAllDefaultValidators();\n if (!skipDefaultAudienceValidation) {\n Set<String> setAud = new HashSet<String>();\n setAud.add(CommonConstraint.EXPECTED_AUDIENCE);\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new AudValidator(setAud, false));\n }\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new IssValidator(null, false))\n .registerValidator(new SubValidator(requireSubject))\n .registerValidator(new JtiValidator(requireJwtId));\n\n return customJwtConsumerBuilder;\n }", "private Configuration getAuth() {\r\n final ConfigurationBuilder cb = new ConfigurationBuilder();\r\n cb.setOAuthConsumerKey(\"n2g9XOjAr9p44yJwFjXUbeUa2\");\r\n cb.setOAuthConsumerSecret(\"57FHkBBptp17yBGl1v853lldZO9Kh4osJnDQqQEcXd4d9C3xFA\");\r\n cb.setOAuthAccessToken(\"113906448-2fx9njfJgzQrGdnRaGchI9GlZTzLMXrayEzFk2ju\");\r\n cb.setOAuthAccessTokenSecret(\"FJOqMt7dtBp1yuW2VnQDfzksa7IS5h3IxxsJ1ixBGI1ny\");\r\n \r\n return cb.build();\r\n }", "abstract public Config createConfigWithFactory(String path, String factoryPath);", "@Override\n public void initializeRuleClasses(ConfiguredRuleClassProvider.Builder builder) {\n builder.addConfigurationOptions(BuildConfiguration.Options.class);\n builder.addConfigurationOptions(TestConfiguration.TestOptions.class);\n // The tools repository is needed for createGlobals\n builder.setToolsRepository(TestConstants.TOOLS_REPOSITORY);\n }", "public interface ConfigurationManager {\n\n String loadRunAsUser();\n\n void storeRunAsUser(String username);\n\n List<String> loadEnabledProjects();\n\n void storeEnabledProjects(List<String> projectKeys);\n\n Map<String, String> loadBranchFilters();\n \n void storeBranchFilters(Map<String, String> branchFilters);\n \n /**\n * @since v1.2\n */\n Collection<String> loadCrucibleUserNames();\n\n /**\n * @since v1.2\n */\n void storeCrucibleUserNames(Collection<String> usernames);\n\n /**\n * @since v1.3\n */\n Collection<String> loadCrucibleGroups();\n\n /**\n * @since v1.3\n */\n void storeCrucibleGroups(Collection<String> groupnames);\n\n CreateMode loadCreateMode();\n\n void storeCreateMode(CreateMode mode);\n\n /**\n * @since v1.4.1\n */\n boolean loadIterative();\n\n /**\n * @since v1.4.1\n */\n void storeIterative(boolean iterative);\n}", "protected void validateConfiguration() {}", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder> \n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n if (!(converseRequestCase_ == 1)) {\n converseRequest_ = com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder>(\n (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_,\n getParentForChildren(),\n isClean());\n converseRequest_ = null;\n }\n converseRequestCase_ = 1;\n onChanged();;\n return configBuilder_;\n }", "public static ValidatorFactory getDefault() {\n return DEFAULT_FACTORY;\n }", "public void configure() throws ConfigurationException;", "private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }", "private void bootstrap() {\n\t\t// configure default values\n\t\t// maxPoolSize = 5;\n\t\tthis.parserPool.setMaxPoolSize(50);\n\t\t// coalescing = true;\n\t\tthis.parserPool.setCoalescing(true);\n\t\t// expandEntityReferences = false;\n\t\tthis.parserPool.setExpandEntityReferences(false);\n\t\t// ignoreComments = true;\n\t\tthis.parserPool.setIgnoreComments(true);\n\t\t// ignoreElementContentWhitespace = true;\n\t\tthis.parserPool.setIgnoreElementContentWhitespace(true);\n\t\t// namespaceAware = true;\n\t\tthis.parserPool.setNamespaceAware(true);\n\t\t// schema = null;\n\t\tthis.parserPool.setSchema(null);\n\t\t// dtdValidating = false;\n\t\tthis.parserPool.setDTDValidating(false);\n\t\t// xincludeAware = false;\n\t\tthis.parserPool.setXincludeAware(false);\n\n\t\tMap<String, Object> builderAttributes = new HashMap<>();\n\t\tthis.parserPool.setBuilderAttributes(builderAttributes);\n\n\t\tMap<String, Boolean> parserBuilderFeatures = new HashMap<>();\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/disallow-doctype-decl\", TRUE);\n\t\tparserBuilderFeatures.put(XMLConstants.FEATURE_SECURE_PROCESSING, TRUE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-general-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/validation/schema/normalized-value\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://xml.org/sax/features/external-parameter-entities\", FALSE);\n\t\tparserBuilderFeatures.put(\"http://apache.org/xml/features/dom/defer-node-expansion\", FALSE);\n\t\tthis.parserPool.setBuilderFeatures(parserBuilderFeatures);\n\n\t\ttry {\n\t\t\tthis.parserPool.initialize();\n\t\t}\n\t\tcatch (ComponentInitializationException x) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3 ParserPool\", x);\n\t\t}\n\n\t\ttry {\n\t\t\tInitializationService.initialize();\n\t\t}\n\t\tcatch (InitializationException e) {\n\t\t\tthrow new Saml2Exception(\"Unable to initialize OpenSaml v3\", e);\n\t\t}\n\n\t\tXMLObjectProviderRegistry registry;\n\t\tsynchronized (ConfigurationService.class) {\n\t\t\tregistry = ConfigurationService.get(XMLObjectProviderRegistry.class);\n\t\t\tif (registry == null) {\n\t\t\t\tregistry = new XMLObjectProviderRegistry();\n\t\t\t\tConfigurationService.register(XMLObjectProviderRegistry.class, registry);\n\t\t\t}\n\t\t}\n\n\t\tregistry.setParserPool(this.parserPool);\n\t}", "private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }", "@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }", "public interface ConfigurableSupplierBuilder <T, U extends ConfigurableSupplierBuilder<T,U>>\n extends SupplierBuilder<T>, Configurable<U>{\n\n default StreamableSupplier<T> build(Consumer<U> configuration){\n return this.configure(configuration).build();\n }\n}", "static Configuration loadConfiguration(File pluginConfig) throws Exception {\n Properties props = new Properties();\n try (FileInputStream input = new FileInputStream(pluginConfig)) {\n props.load(input);\n }\n\n boolean trustAllHttps = BooleanUtils.toBoolean(props.getProperty(\"trust.all.https\", \"false\"));\n HttpClient client = new HttpClient(trustAllHttps);\n\n List<String> stageEndpoints = new ArrayList<>();\n List<String> agentEndpoints = new ArrayList<>();\n\n Enumeration<?> names = props.propertyNames();\n while (names.hasMoreElements()) {\n String name = (String) names.nextElement();\n if (name.startsWith(\"stage.status.endpoint.\")) {\n stageEndpoints.add(props.getProperty(name));\n } else if (name.startsWith(\"agent.status.endpoint.\")) {\n agentEndpoints.add(props.getProperty(name));\n }\n }\n\n LOGGER.info(String.format(\"Loaded webhook configuration from %s\", pluginConfig.getAbsolutePath()));\n return new Configuration(client, stageEndpoints, agentEndpoints);\n }", "public DefaultValidationAnnotationHandlerRegistry() {\n\n // class annotation handlers\n registerClassHandler(new ExpressionClassValidationAnnotationHandler());\n registerClassHandler(new ExpressionsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorsClassValidationAnnotationHandler());\n registerClassHandler(new ValidatorReferenceClassValidationAnnotationHandler());\n\n // method annotation handlers\n registerMethodHandler(new ValidationMethodAnnotationHandler());\n\n // property annotation handlers\n registerPropertyHandler(new CascadeValidationAnnotationHandler());\n registerPropertyHandler(new EmailValidationAnnotationHandler());\n registerPropertyHandler(new DateInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new DateInThePastValidationAnnotationHandler());\n registerPropertyHandler(new LengthValidationAnnotationHandler());\n registerPropertyHandler(new NotBlankValidationAnnotationHandler());\n registerPropertyHandler(new NotEmptyValidationAnnotationHandler());\n registerPropertyHandler(new NotNullValidationAnnotationHandler());\n registerPropertyHandler(new RangeValidationAnnotationHandler());\n registerPropertyHandler(new RegExpValidationAnnotationHandler());\n registerPropertyHandler(new SizeValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ExpressionsPropertyValidationAnnotationHandler());\n registerPropertyHandler(new ConditionReferenceValidationAnnotationHandler());\n\n if (LibraryUtils.JODA_TIME_IN_CLASSPATH) {\n registerPropertyHandler(new InstantInTheFutureValidationAnnotationHandler());\n registerPropertyHandler(new InstantInThePastValidationAnnotationHandler());\n }\n\n }", "private void init() {\n if (adminConnectionFactory != null) {\n throw new IllegalStateException(\"Provider already initialized.\");\n }\n\n // setup admin connection pool\n LdapConnectionConfig cc = createConnectionConfig();\n String bindDN = config.getBindDN();\n if (bindDN != null && !bindDN.isEmpty()) {\n cc.setName(bindDN);\n cc.setCredentials(config.getBindPassword());\n }\n adminConnectionFactory = new ValidatingPoolableLdapConnectionFactory(cc);\n if (config.getAdminPoolConfig().lookupOnValidate()) {\n adminConnectionFactory.setValidator(new LookupLdapConnectionValidator());\n } else {\n adminConnectionFactory.setValidator(new DefaultLdapConnectionValidator());\n }\n if (config.getAdminPoolConfig().getMaxActive() != 0) {\n adminPool = new LdapConnectionPool(adminConnectionFactory);\n adminPool.setTestOnBorrow(true);\n adminPool.setMaxTotal(config.getAdminPoolConfig().getMaxActive());\n adminPool.setBlockWhenExhausted(true);\n adminPool.setMinEvictableIdleTimeMillis(config.getAdminPoolConfig().getMinEvictableIdleTimeMillis());\n adminPool.setTimeBetweenEvictionRunsMillis(config.getAdminPoolConfig().getTimeBetweenEvictionRunsMillis());\n adminPool.setNumTestsPerEvictionRun(config.getAdminPoolConfig().getNumTestsPerEvictionRun());\n }\n\n // setup unbound connection pool. let's create a new version of the config\n cc = createConnectionConfig();\n\n userConnectionFactory = new PoolableUnboundConnectionFactory(cc);\n if (config.getUserPoolConfig().lookupOnValidate()) {\n userConnectionFactory.setValidator(new UnboundLookupConnectionValidator());\n } else {\n userConnectionFactory.setValidator(new UnboundConnectionValidator());\n }\n if (config.getUserPoolConfig().getMaxActive() != 0) {\n userPool = new UnboundLdapConnectionPool(userConnectionFactory);\n userPool.setTestOnBorrow(true);\n userPool.setMaxTotal(config.getUserPoolConfig().getMaxActive());\n userPool.setBlockWhenExhausted(true);\n userPool.setMinEvictableIdleTimeMillis(config.getUserPoolConfig().getMinEvictableIdleTimeMillis());\n userPool.setTimeBetweenEvictionRunsMillis(config.getUserPoolConfig().getTimeBetweenEvictionRunsMillis());\n userPool.setNumTestsPerEvictionRun(config.getUserPoolConfig().getNumTestsPerEvictionRun());\n }\n\n log.info(\"LdapIdentityProvider initialized: {}\", config);\n }", "public MapConfiguration getConfiguration() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Reset layers\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t}\n\n\t\t\t// Add edit layer to context\n\t\t\tmapFactory.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\t// Start configuratie zoomt naar Provincie OVL\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\t\t\tEnvelope envelope = GeometryUtils.getEnvelope(provincie.getGeom());\n\t\t\tcontext.setBoundingBox(envelope);\n\t\t\tsetBaseLayerName(\"tms\");\n\t\t\treturn configuration;\n\t\t}\n\n\t\treturn null;\n\t}", "public static Configurable configure() {\n return new SqlServerManager.ConfigurableImpl();\n }", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public ComponentConfiguration getConfiguration();", "private static Configuration getConfiguration(HIFTestOptions options) {\n Configuration conf = new Configuration();\n conf.set(ConfigurationOptions.ES_NODES, options.getServerIp());\n conf.set(ConfigurationOptions.ES_PORT, options.getServerPort().toString());\n conf.set(ConfigurationOptions.ES_NODES_WAN_ONLY, TRUE);\n // Set username and password if Elasticsearch is configured with security.\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_USER, options.getUserName());\n conf.set(ConfigurationOptions.ES_NET_HTTP_AUTH_PASS, options.getPassword());\n conf.set(ConfigurationOptions.ES_RESOURCE, ELASTIC_RESOURCE);\n conf.set(\"es.internal.es.version\", ELASTIC_INTERNAL_VERSION);\n conf.set(ConfigurationOptions.ES_INDEX_AUTO_CREATE, TRUE);\n conf.setClass(HadoopInputFormatIOConstants.INPUTFORMAT_CLASSNAME,\n org.elasticsearch.hadoop.mr.EsInputFormat.class, InputFormat.class);\n conf.setClass(HadoopInputFormatIOConstants.KEY_CLASS, Text.class, Object.class);\n conf.setClass(HadoopInputFormatIOConstants.VALUE_CLASS, LinkedMapWritable.class, Object.class);\n return conf;\n }", "@Test\n public void testConfigurationBuilderProviderInheritProperties()\n throws Exception\n {\n factory.addProperty(\"override.configuration[@fileName]\",\n TEST_FILE.getAbsolutePath());\n factory.setBasePath(\"conf\");\n factory.setAttributeSplittingDisabled(true);\n factory.setDelimiterParsingDisabled(true);\n factory.setListDelimiter('/');\n factory.setThrowExceptionOnMissing(true);\n Log log = LogFactory.getLog(getClass());\n factory.setLogger(log);\n factory.clearErrorListeners();\n factory.clearConfigurationListeners();\n ConfigurationListenerTestImpl l =\n new ConfigurationListenerTestImpl(factory);\n factory.addConfigurationListener(l);\n DefaultConfigurationBuilder.ConfigurationDeclaration decl =\n new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory,\n factory.configurationAt(\"override.configuration\"));\n DefaultConfigurationBuilder.ConfigurationBuilderProvider provider =\n new DefaultConfigurationBuilder.ConfigurationBuilderProvider();\n DefaultConfigurationBuilder child =\n (DefaultConfigurationBuilder) provider.createBean(\n provider.fetchConfigurationClass(), decl, null);\n assertEquals(\"Wrong base path\", factory.getBasePath(),\n child.getBasePath());\n assertEquals(\"Wrong attribute splitting flag\",\n factory.isAttributeSplittingDisabled(),\n child.isAttributeSplittingDisabled());\n assertEquals(\"Wrong delimiter parsing flag\",\n factory.isDelimiterParsingDisabled(),\n child.isDelimiterParsingDisabled());\n assertEquals(\"Wrong list delimiter\", factory.getListDelimiter(),\n child.getListDelimiter());\n assertEquals(\"Wrong exception flag\",\n factory.isThrowExceptionOnMissing(),\n child.isThrowExceptionOnMissing());\n assertSame(\"Wrong logger\", log, child.getLogger());\n assertTrue(\"Got error listeners\", child.getErrorListeners().isEmpty());\n assertEquals(\"Wrong number of listeners\", 1, child\n .getConfigurationListeners().size());\n assertEquals(\"Wrong listener\", l, child.getConfigurationListeners()\n .iterator().next());\n }", "public IotdmSimpleConfig build() {\n return new IotdmSimpleConfig(this.builder.build());\n }", "public Provider1Builder() {\r\n provider1 = new Provider1();\r\n }", "protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }", "public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }", "public JerseyConfig() {\n\t\tregister(StudentService.class);\n\t\tregister(PromotionService.class);\n\t\tregister(GroupService.class);\n\t\tregister(RoleService.class);\n\t\tregister(RightService.class);\n\t\tregister(AccountService.class);\n\t\tregister(TimesheetService.class);\n\t\tthis.configureSwagger();\n\t}", "void validateConfigImpl() throws SMSException {\n if ((orgConfigImpl == null) || !orgConfigImpl.isValid()) {\n try {\n orgConfigImpl = OrganizationConfigManagerImpl.getInstance(\n token, orgName);\n } catch (SSOException ssoe) {\n throw (new SMSException(ssoe, \"sms-INVALID_SSO_TOKEN\"));\n }\n }\n }", "public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n if (configurationBuilder_ != null) {\n return configurationBuilder_.getMessageOrBuilder();\n } else {\n return configuration_ == null ?\n com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }\n }", "public ComponentFactory<T, E> toConfigure(BiConsumer<Context, Annotation> consumer) {\n return new ComponentFactory<>(this.annotationType, this.classElement, consumer, this.createFunction);\n }", "@Override\n\tpublic void configure(AuthenticationManagerBuilder builder)\n\t\t\tthrows Exception {\n\t\tbuilder.authenticationProvider(discoveryAuthenticationProvider);\n\t}", "public static ValidatorConfig getStandardPDFA1BConfiguration () {\n\t ValidatorConfig pdfa1bStandardConfig = new ValidatorConfig();\n\t pdfa1bStandardConfig.addPriorHelpers(STREAM_FILTER, StreamValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(CATALOG_FILTER, CatalogValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(FONT_FILTER, FontValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(GRAPHIC_FILTER, GraphicsValidationHelper.class);\n\n\t pdfa1bStandardConfig.addStandHelpers(TRAILER_FILTER, TrailerValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(XREF_FILTER, XRefValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(BOOKMARK_FILTER, BookmarkValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(ACRO_FORM_FILTER, AcroFormValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(FILE_SPECIF_FILTER, FileSpecificationValidationHelper.class);\n\t // Page Helper must be called after the FontHelper to check\n\t // if Fonts used by the page content are embedded in the PDF file.\n\t pdfa1bStandardConfig.addStandHelpers(PAGE_FILTER, PagesValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(META_DATA_FILTER, MetadataValidationHelper.class);\n\n\t pdfa1bStandardConfig.setActionFactory(ActionManagerFactory.class);\n\t pdfa1bStandardConfig.setAnnotationFactory(PDFAbAnnotationFactory.class);\n\t return pdfa1bStandardConfig;\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public Provider1 build() {\r\n return provider1;\r\n }", "public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "protected Configuration() {\r\n }", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public interface SecurityConfigurator {\n\n /**\n * The provider to use for {@link SSLEngine}.\n */\n enum SslProvider {\n /**\n * Use the stock JDK implementation.\n */\n JDK,\n /**\n * Use the openssl implementation.\n */\n OPENSSL,\n /**\n * Auto detect which implementation to use.\n */\n AUTO\n }\n\n /**\n * Trusted certificates for verifying the remote endpoint's certificate. The input stream should\n * contain an {@code X.509} certificate chain in {@code PEM} format.\n *\n * @param trustCertChainSupplier a supplier for the certificate chain input stream.\n * <p>\n * The responsibility to call {@link InputStream#close()} is transferred to callers of the returned\n * {@link Supplier}. If this is not the desired behavior then wrap the {@link InputStream} and override\n * {@link InputStream#close()}.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(Supplier<InputStream> trustCertChainSupplier);\n\n /**\n * Trust manager for verifying the remote endpoint's certificate.\n * The {@link TrustManagerFactory} which take preference over any configured {@link Supplier}.\n *\n * @param trustManagerFactory the {@link TrustManagerFactory} to use.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(TrustManagerFactory trustManagerFactory);\n\n /**\n * The SSL protocols to enable, in the order of preference.\n *\n * @param protocols the protocols to use.\n * @return {@code this}.\n * @see SSLEngine#setEnabledProtocols(String[])\n */\n SecurityConfigurator protocols(String... protocols);\n\n /**\n * The cipher suites to enable, in the order of preference.\n *\n * @param ciphers the ciphers to use.\n * @return {@code this}.\n */\n SecurityConfigurator ciphers(Iterable<String> ciphers);\n\n /**\n * Set the size of the cache used for storing SSL session objects.\n *\n * @param sessionCacheSize the cache size.\n * @return {@code this}.\n */\n SecurityConfigurator sessionCacheSize(long sessionCacheSize);\n\n /**\n * Set the timeout for the cached SSL session objects, in seconds.\n *\n * @param sessionTimeout the session timeout.\n * @return {@code this}.\n */\n SecurityConfigurator sessionTimeout(long sessionTimeout);\n\n /**\n * Sets the {@link SslProvider} to use.\n *\n * @param provider the provider.\n * @return {@code this}.\n */\n SecurityConfigurator provider(SslProvider provider);\n}", "public EmailRetriever build() {\n\t\t\treturn new EmailRetrieverImpl(this);\n\t\t}", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "public FtlConfig() {\n cfg = new Configuration(Configuration.VERSION_2_3_30);\n cfg.setClassLoaderForTemplateLoading(this.getClass().getClassLoader(), \"ftl\");\n cfg.setDefaultEncoding(\"UTF-8\");\n cfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\n cfg.setSharedVariable(\"random\",\n new BeansWrapperBuilder(Configuration.VERSION_2_3_30).build().getStaticModels());\n cfg.setLogTemplateExceptions(false);\n cfg.setWrapUncheckedExceptions(true);\n cfg.setFallbackOnNullLoopVariable(false);\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeConfig,\n com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeConfigOrBuilder>\n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n configBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeConfig,\n com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeConfigOrBuilder>(\n getConfig(), getParentForChildren(), isClean());\n config_ = null;\n }\n return configBuilder_;\n }", "public ValidationResult validateConfiguration(@Nonnull AnalysisContext analysisContext) {\n ValidationResult validation = ValidationResult.success();\n\n validation = validate(analysisContext, validation, availableFilters);\n validation = validate(analysisContext, validation, availableReporters);\n validation = validate(analysisContext, validation, availableApiAnalyzers);\n validation = validate(analysisContext, validation, availableTransforms);\n\n return validation;\n }", "public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }", "public static ShenYuEngineConfigure fromAnnotation(final ShenYuTest annotation) {\n final ShenYuTest annotationProxy = newShenYuTestProxy(annotation);\n \n ServiceConfigure[] services = annotationProxy.services();\n ServiceConfigure[] serviceProxies = new ServiceConfigure[services.length];\n for (int i = 0; i < services.length; i++) {\n serviceProxies[i] = newServiceConfigureProxy(i, services[i]);\n }\n \n ShenYuEngineConfigure configure = new ShenYuEngineConfigure();\n configure.mode = annotationProxy.mode();\n if (Mode.DOCKER == annotationProxy.mode()) {\n configure.dockerConfigure = parseDockerServiceConfigures(\n annotationProxy.dockerComposeFile(),\n serviceProxies\n );\n } else {\n configure.hostConfigure = parseHostServiceConfigures(serviceProxies);\n }\n return configure;\n }" ]
[ "0.8184323", "0.63250756", "0.57313806", "0.5672106", "0.55887026", "0.54967886", "0.5370223", "0.53588325", "0.5322654", "0.52826065", "0.5256567", "0.523622", "0.52217597", "0.51960003", "0.51473236", "0.5146684", "0.50942117", "0.50929046", "0.5046965", "0.5018513", "0.49855283", "0.49815115", "0.49472988", "0.4926876", "0.49225044", "0.4911036", "0.4898889", "0.4898889", "0.4895914", "0.4895914", "0.4895914", "0.4895914", "0.48481584", "0.4800807", "0.4771048", "0.47685468", "0.47625822", "0.47605762", "0.47536877", "0.4738317", "0.47230878", "0.47163334", "0.47161546", "0.47067583", "0.4699589", "0.46979925", "0.46857503", "0.46744043", "0.46581057", "0.465003", "0.46332437", "0.46255076", "0.4624178", "0.45968917", "0.4583254", "0.4569041", "0.45591733", "0.4553397", "0.45416427", "0.45303097", "0.45301846", "0.45222807", "0.4510251", "0.45022148", "0.44982114", "0.4496413", "0.4495746", "0.44911465", "0.44865987", "0.44864738", "0.44842482", "0.44809926", "0.44732755", "0.44686273", "0.44662082", "0.4464854", "0.44643494", "0.44483927", "0.44482315", "0.44462556", "0.44436288", "0.44432506", "0.444041", "0.4440253", "0.4438238", "0.44300818", "0.44300032", "0.4426723", "0.4422158", "0.4421092", "0.44153622", "0.44010687", "0.44010502", "0.43850893", "0.43772936", "0.4372891", "0.43696755", "0.43654874", "0.43644845", "0.43607038" ]
0.44863686
70
Build a Configuration for a particular provider implementation. Optionally overrides the provider resolution strategy used to determine the provider. Used by applications targeting a specific provider programmatically. ACMEConfiguration configuration = Validation.byProvider(ACMEProvider.class) .providerResolver( new MyResolverStrategy() ) .configure(); , where ACMEConfiguration is the Configuration sub interface uniquely identifying the ACME Bean Validation provider. and ACMEProvider is the ValidationProvider implementation of the ACME provider.
public static <T extends Configuration<T>,U extends ValidationProvider<T>> ProviderSpecificBootstrap<T> byProvider(Class<U> providerType) { return new ProviderSpecificBootstrapImpl<T, U>(providerType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T configure() {\n if (validationProviderClass == null) {\n throw new ValidationException(\n \"builder is mandatory. Use Validation.byDefaultProvider() to use the generic provider discovery mechanism\");\n }\n // used mostly as a BootstrapState\n GenericBootstrapImpl state = new GenericBootstrapImpl();\n if (resolver == null) {\n resolver = state.getDefaultValidationProviderResolver();\n } else {\n // stay null if no resolver is defined\n state.providerResolver(resolver);\n }\n\n List<ValidationProvider<?>> resolvers;\n try {\n resolvers = resolver.getValidationProviders();\n } catch (RuntimeException re) {\n throw new ValidationException(\n \"Unable to get available provider resolvers.\", re);\n }\n\n for (ValidationProvider<?> provider : resolvers) {\n // GWT validation only support exact matches.\n if (validationProviderClass.equals(provider.getClass())) {\n @SuppressWarnings(\"unchecked\")\n ValidationProvider<T> specificProvider = (ValidationProvider<T>) provider;\n return specificProvider.createSpecializedConfiguration(state);\n }\n }\n throw new ValidationException(\"Unable to find provider: \"\n + validationProviderClass);\n }", "Pair<T, U> build(ConfigurationSourceProvider provider, String path) throws IOException, ConfigurationException;", "CustomerServiceProviderConfiguration getConfiguration(String serviceProviderId);", "Builder addProvider(Organization.Builder value);", "public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }", "public abstract CONFIG build();", "@Test\n public void testConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(PROVIDER_FILE);\n factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n }", "public interface ConfigurationProvider extends ContainerProvider, PackageProvider {\n}", "Builder addProvider(Organization value);", "public static ConfigProvider getConfigurationProvider() {\n ConfigProvider configProvider = DataHolder.getInstance().getConfigProvider();\n if (configProvider == null) {\n if (DataHolder.getInstance().getBundleContext() != null) {\n throw new RuntimeException(\n \"Failed to populate HTTPMonitoringConfig Configuration. Config Provider is Null.\");\n }\n //Standalone mode\n String deploymentYamlPath = System.getProperty(DEPLOYMENT_YAML_SYS_PROPERTY);\n if (deploymentYamlPath == null || deploymentYamlPath.isEmpty()) {\n logger.info(\"System property '\" + DEPLOYMENT_YAML_SYS_PROPERTY +\n \"' is not set. Default deployment.yaml file will be used.\");\n deploymentYamlPath = DEPLOYMENT_YAML_FILE;\n try (InputStream configInputStream = AnalyticUtils.class.getClassLoader()\n .getResourceAsStream(DEPLOYMENT_YAML_FILE)) {\n if (configInputStream == null) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n if (Files.notExists(Paths.get(deploymentYamlPath))) {\n Files.copy(configInputStream, Paths.get(deploymentYamlPath));\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Couldn't read configuration from file \" + deploymentYamlPath, e);\n }\n } else if (!Files.exists(Paths.get(deploymentYamlPath))) {\n throw new RuntimeException(\"Couldn't find \" + deploymentYamlPath);\n }\n\n try {\n configProvider = ConfigProviderFactory.getConfigProvider(Paths.get(deploymentYamlPath), null);\n DataHolder.getInstance().setConfigProvider(configProvider);\n } catch (ConfigurationException e) {\n throw new RuntimeException(\"Error loading deployment.yaml Configuration\", e);\n }\n }\n return configProvider;\n }", "@Override\n\tpublic void configure(AuthenticationManagerBuilder builder)\n\t\t\tthrows Exception {\n\t\tbuilder.authenticationProvider(discoveryAuthenticationProvider);\n\t}", "void loadSecurityProviderConfig() throws ConfigurationException;", "public ProviderSpecificBootstrap<T> providerResolver(\n ValidationProviderResolver resolver) {\n this.resolver = resolver;\n return this;\n }", "public ComponentFactory<T, E> toConfigure(BiConsumer<Context, Annotation> consumer) {\n return new ComponentFactory<>(this.annotationType, this.classElement, consumer, this.createFunction);\n }", "@NotNull public Builder provider(@NotNull Organization.Builder organization) {\n putValue(\"provider\", organization.build());\n return this;\n }", "@Test\n public void testConfigurationBuilderProvider()\n throws ConfigurationException\n {\n factory.addProperty(\"override.configuration[@fileName]\", TEST_FILE\n .getAbsolutePath());\n CombinedConfiguration cc = factory.getConfiguration(false);\n assertEquals(\"Wrong number of configurations\", 1, cc\n .getNumberOfConfigurations());\n checkProperties(cc);\n }", "public interface IAppConfigProvider {\n\t\n\tpublic void addChangeListener(IAppConfigChangeListener l);\n\t\n\tpublic void removeChangeListener(IAppConfigChangeListener l);\n\n\tpublic void appConfigChanged(String... properties);\n\t\n\tpublic AppConfig getAppConfig();\n\t\n\tpublic void save() throws IOException;\n}", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "public static Configurable configure() {\n return new RecoveryServicesManager.ConfigurableImpl();\n }", "@Override\r\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.authenticationProvider(authenticateionProvider());\r\n\t}", "@Override\n protected void configure(AuthenticationManagerBuilder authenticationManagerBuilderObj) throws Exception {\n\t authenticationManagerBuilderObj.authenticationProvider(authenticationProvider());\n }", "@NotNull public Builder provider(@NotNull Organization organization) {\n putValue(\"provider\", organization);\n return this;\n }", "@Override\n protected void configure() {\n bind(EurekaInstanceConfig.class).toProvider(MyDataCenterInstanceConfigProvider.class).in(Scopes.SINGLETON);\n }", "@Override\r\n\t@Autowired\r\n\tpublic void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.authenticationProvider(authenticationProvider());\r\n\t}", "@Test\n public void testAddConfigurationProvider()\n {\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n assertNull(\"Provider already registered\", factory\n .providerForTag(\"test\"));\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Provider not registered\", provider, factory\n .providerForTag(\"test\"));\n }", "CustomerServiceProviderConfiguration updateConfiguration(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "protected void enhanceConfig(ConfigurationBuilder c) {\n }", "@NonNull\n\t\tConfig build();", "private void configureBeanValidation(OpenJPAConfigurationImpl conf) {\n // Validation defines/adds the following plugins to OpenJPA Configuration\n conf.validationFactory = conf.addObject(JPAProperties.VALIDATE_FACTORY);\n conf.validator = conf.addObject(\"Validator\");\n conf.validationMode = conf.addString(JPAProperties.VALIDATE_MODE);\n conf.validationGroupPrePersist = conf.addString(JPAProperties.VALIDATE_PRE_PERSIST);\n conf.validationGroupPreUpdate = conf.addString(JPAProperties.VALIDATE_PRE_UPDATE);\n conf.validationGroupPreRemove = conf.addString(JPAProperties.VALIDATE_PRE_REMOVE);\n\n conf.validationMode.setDynamic(true);\n String[] aliases = new String[] {\n String.valueOf(ValidationMode.AUTO),\n String.valueOf(ValidationMode.AUTO).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.CALLBACK),\n String.valueOf(ValidationMode.CALLBACK).toLowerCase(Locale.ENGLISH),\n String.valueOf(ValidationMode.NONE),\n String.valueOf(ValidationMode.NONE).toLowerCase(Locale.ENGLISH)\n };\n conf.validationMode.setAliases(aliases);\n conf.validationMode.setAliasListComprehensive(true);\n conf.validationMode.setDefault(aliases[0]);\n\n conf.validationGroupPrePersist.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPrePersist.setDefault(\"\");\n conf.validationGroupPrePersist.setDynamic(true);\n\n conf.validationGroupPreUpdate.setString(JPAProperties.VALIDATE_GROUP_DEFAULT);\n conf.validationGroupPreUpdate.setDefault(\"\");\n conf.validationGroupPreUpdate.setDynamic(true);\n\n conf.validationGroupPreRemove.setDefault(\"\");\n conf.validationGroupPreRemove.setDynamic(true);\n\n conf.validationFactory.setInstantiatingGetter(\"getValidationFactoryInstance\");\n conf.validationFactory.setDynamic(true);\n\n conf.validator.setInstantiatingGetter(\"getValidatorInstance\");\n conf.validator.setDynamic(true);\n conf.validator.makePrivate();\n }", "public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}", "public interface ConfigurableComponentProvider extends ComponentProvider {\n\n}", "@SuppressWarnings(\"unused\")\n @Provides\n @Singleton\n private ExpressiveObjectsConfigurationBuilder providesConfigurationBuilder() {\n return expressiveObjectsConfigurationBuilder;\n }", "public BinderConfiguration() {\n this(new PropertyResolverRegistry());\n }", "@Override\n public Map<ConfigType, ValidationResult> validate(Map<ConfigType, ConfigDataProvider> configTypeWithDataProvider,\n ValidationType validationType) {\n\n switch (validationType) {\n case SYNTACTIC:\n // reuse default implementation in super class to perform syntax validation\n return super.validate(configTypeWithDataProvider, ValidationType.SYNTACTIC);\n case SEMANTIC:\n return validateSemantics(configTypeWithDataProvider);\n default:\n throw new ConfigValidationException(\"Unsupported validation type: \" + validationType.name());\n }\n }", "@Test\n public void testExtendedXMLConfigurationProvider() throws ConfigurationException\n {\n factory.setFile(EXTENDED_PROVIDER_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n DefaultConfigurationBuilder.ConfigurationProvider provider = factory\n .providerForTag(\"test\");\n assertNotNull(\"Provider 'test' not registered\", provider);\n Configuration config = cc.getConfiguration(\"xml\");\n assertNotNull(\"Test configuration not present\", config);\n assertTrue(\"Configuration is not ExtendedXMLConfiguration, is \" +\n config.getClass().getName(), config instanceof ExtendedXMLConfiguration);\n }", "void validateConfigImpl() throws SMSException {\n if ((orgConfigImpl == null) || !orgConfigImpl.isValid()) {\n try {\n orgConfigImpl = OrganizationConfigManagerImpl.getInstance(\n token, orgName);\n } catch (SSOException ssoe) {\n throw (new SMSException(ssoe, \"sms-INVALID_SSO_TOKEN\"));\n }\n }\n }", "public ConfigProvider getConfig() {\n return config;\n }", "CdapInternalApplicationConfiguration createCdapInternalApplicationConfiguration();", "@Override\n protected void configure(AuthenticationManagerBuilder auth) throws Exception {\n auth.authenticationProvider(loginValidateAuthenticationProvider);\n }", "public MaskingProvider getProviderFromType(MaskingProviderTypes providerType,\r\n DeidMaskingConfig deidMaskingConfig, MaskingProviderConfig config, String tenantId,\r\n String localizationProperty);", "protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}", "public Provider getProvider() {\r\n Provider provider = new Provider();\r\n provider.setProviderId(this.loginId);\r\n provider.setProviderPassword(this.loginPassword);\r\n provider.setProviderEmail(this.email);\r\n provider.setProviderPhone(this.phone);\r\n provider.setProviderBirth(this.birth);\r\n provider.setProviderGender(this.gender);\r\n provider.setAuthentication(this.authentication);\r\n provider.setProviderAccountPayment(this.accountPayment);\r\n provider.setUrl(this.urlAvatar);\r\n // Address add = new Address();\r\n // add.setBuildingName(this.buildingName);\r\n // add.setDistrictName(this.districtName);\r\n // add.setHomeNumber(this.homeNumber);\r\n // add.setStreetName(this.streetName);\r\n // add.setWardName(this.wardName);\r\n this.address = CustomerBLO.toStringAddres(homeNumber, buildingName, streetName, wardName, districtName);\r\n provider.setProviderAddress(this.address);\r\n provider.setLoginDate(new Date());\r\n provider.setDetail(this.detail);\r\n provider.setProviderName(this.loginName);\r\n return provider;\r\n\r\n }", "private Configuration getAuth() {\r\n final ConfigurationBuilder cb = new ConfigurationBuilder();\r\n cb.setOAuthConsumerKey(\"n2g9XOjAr9p44yJwFjXUbeUa2\");\r\n cb.setOAuthConsumerSecret(\"57FHkBBptp17yBGl1v853lldZO9Kh4osJnDQqQEcXd4d9C3xFA\");\r\n cb.setOAuthAccessToken(\"113906448-2fx9njfJgzQrGdnRaGchI9GlZTzLMXrayEzFk2ju\");\r\n cb.setOAuthAccessTokenSecret(\"FJOqMt7dtBp1yuW2VnQDfzksa7IS5h3IxxsJ1ixBGI1ny\");\r\n \r\n return cb.build();\r\n }", "private JSONObject fetchOidcProviderConfig(String providerURI) throws IOException {\n\t\tJSONObject result = new JSONObject();\n\n\t\t// send Open ID Provider Config request\n\t\t// (cf. http://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig)\n\t\tURL pConfigDocUri = new URL(providerURI + \"/.well-known/openid-configuration\");\n\t\tHTTPRequest pConfigRequest = new HTTPRequest(Method.GET, pConfigDocUri);\n\n\t\t// parse JSON result\n\t\ttry {\n\t\t\tString configStr = pConfigRequest.send().getContent();\n\t\t\tJSONObject config = (JSONObject) JSONValue.parseWithException(configStr);\n\t\t\t// put JSON result in result table\n\t\t\tresult.put(\"config\", config);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"OpenID Connect Provider \" + providerURI + \" unreachable!\");\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Make sure to set a correct OpenID Connect Provider URL in your las2peer Web Connector config!\");\n\t\t\tSystem.out.println(\"WebConnector will now run in OIDC agnostic mode.\");\n\t\t\tlogError(\"Could not retrieve a valid OIDC provider config from \" + providerURI + \"!\");\n\n\t\t\treturn null;\n\t\t}\n\n\t\treturn result;\n\t}", "public ConfigurationItemProvider(AdapterFactory adapterFactory) {\r\n\t\tsuper(adapterFactory);\r\n\t}", "public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }", "@Override\n public void configure(@Nonnull AbstractConfigNode node) throws ConfigurationException {\n Preconditions.checkArgument(node instanceof ConfigPathNode);\n try {\n ConfigurationAnnotationProcessor.readConfigAnnotations(getClass(), (ConfigPathNode) node, this);\n Map<String, Object> config = configuration(node);\n ClientBuilder builder = ClientBuilder.newBuilder();\n if (config != null && !config.isEmpty()) {\n for (String key : config.keySet()) {\n builder.property(key, config.get(key));\n }\n }\n builder.connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS);\n builder.readTimeout(readTimeout, TimeUnit.MILLISECONDS);\n\n if (useSSL) {\n builder.sslContext(SSLContext.getDefault());\n }\n client = builder.register(JacksonJaxbJsonProvider.class).build();\n state().setState(EConnectionState.Open);\n } catch (Exception ex) {\n state().setError(ex);\n throw new ConfigurationException(ex);\n }\n }", "public static ShenYuEngineConfigure fromAnnotation(final ShenYuTest annotation) {\n final ShenYuTest annotationProxy = newShenYuTestProxy(annotation);\n \n ServiceConfigure[] services = annotationProxy.services();\n ServiceConfigure[] serviceProxies = new ServiceConfigure[services.length];\n for (int i = 0; i < services.length; i++) {\n serviceProxies[i] = newServiceConfigureProxy(i, services[i]);\n }\n \n ShenYuEngineConfigure configure = new ShenYuEngineConfigure();\n configure.mode = annotationProxy.mode();\n if (Mode.DOCKER == annotationProxy.mode()) {\n configure.dockerConfigure = parseDockerServiceConfigures(\n annotationProxy.dockerComposeFile(),\n serviceProxies\n );\n } else {\n configure.hostConfigure = parseHostServiceConfigures(serviceProxies);\n }\n return configure;\n }", "public void configure() throws ConfigurationException;", "private EnsembleProvider buildProvider(Properties properties) {\n //String servers = properties.getProperty(\"host.rest.servers\"); //hosts.servers = 127.0.0.1,127.0.0.2\n \tString servers = \"192.168.31.10\"; //hosts.servers = 127.0.0.1,127.0.0.2\n if (servers == null || servers.isEmpty()) {\n throw new IllegalArgumentException(\"host.servers cant be empty\");\n }\n //List<String> hostnames = Arrays.asList(servers.split(\",\"));\n List<String> hostnames = Arrays.asList(\"192.168.31.10\");\n //String port = properties.getProperty(\"host.rest.port\");\n String port = \"2181\";\n Integer restPort = 80; //default\n if (port != null) {\n restPort = Integer.valueOf(port);\n }\n //final String backupAddress = properties.getProperty(\"host.backup\");//127.0.0.1:2181\n final String backupAddress = \"127.0.0.1:2181\";//127.0.0.1:2181\n //if network is error,you should sepcify a backup zk-connectString\n Exhibitors exhibitors = new Exhibitors(hostnames, restPort, new Exhibitors.BackupConnectionStringProvider() {\n @Override\n public String getBackupConnectionString() throws Exception {\n return backupAddress;\n }\n });\n //rest,as meaning of getting fresh zk-connectString list.\n ExhibitorRestClient restClient = new DefaultExhibitorRestClient();\n //String restUriPath = properties.getProperty(\"host.rest.path\");\n //String period = properties.getProperty(\"host.rest.period\");\n String restUriPath = properties.getProperty(\"host.rest.path\");\n String period = properties.getProperty(\"host.rest.period\");\n Integer pollingMs = 180000; //3 min\n if (period != null) {\n pollingMs = Integer.valueOf(period);\n }\n return new ExhibitorEnsembleProvider(exhibitors, restClient, restUriPath, pollingMs, new RetryNTimes(10, 1000));\n }", "public interface ApplicationRuntimeConfigurationBuilder\n{\n Repository createRepositoryFromModel( Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n\n void releaseRepository( Repository repository, Configuration configuration, CRepository repoConf )\n throws ConfigurationException;\n}", "@Override\n protected void configure(AuthenticationManagerBuilder auth) {\n auth.authenticationProvider(authProvider);\n }", "public IProvider lookupProvider(Class<? extends IProvider> providerType);", "public interface SecurityConfigurator {\n\n /**\n * The provider to use for {@link SSLEngine}.\n */\n enum SslProvider {\n /**\n * Use the stock JDK implementation.\n */\n JDK,\n /**\n * Use the openssl implementation.\n */\n OPENSSL,\n /**\n * Auto detect which implementation to use.\n */\n AUTO\n }\n\n /**\n * Trusted certificates for verifying the remote endpoint's certificate. The input stream should\n * contain an {@code X.509} certificate chain in {@code PEM} format.\n *\n * @param trustCertChainSupplier a supplier for the certificate chain input stream.\n * <p>\n * The responsibility to call {@link InputStream#close()} is transferred to callers of the returned\n * {@link Supplier}. If this is not the desired behavior then wrap the {@link InputStream} and override\n * {@link InputStream#close()}.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(Supplier<InputStream> trustCertChainSupplier);\n\n /**\n * Trust manager for verifying the remote endpoint's certificate.\n * The {@link TrustManagerFactory} which take preference over any configured {@link Supplier}.\n *\n * @param trustManagerFactory the {@link TrustManagerFactory} to use.\n * @return {@code this}.\n */\n SecurityConfigurator trustManager(TrustManagerFactory trustManagerFactory);\n\n /**\n * The SSL protocols to enable, in the order of preference.\n *\n * @param protocols the protocols to use.\n * @return {@code this}.\n * @see SSLEngine#setEnabledProtocols(String[])\n */\n SecurityConfigurator protocols(String... protocols);\n\n /**\n * The cipher suites to enable, in the order of preference.\n *\n * @param ciphers the ciphers to use.\n * @return {@code this}.\n */\n SecurityConfigurator ciphers(Iterable<String> ciphers);\n\n /**\n * Set the size of the cache used for storing SSL session objects.\n *\n * @param sessionCacheSize the cache size.\n * @return {@code this}.\n */\n SecurityConfigurator sessionCacheSize(long sessionCacheSize);\n\n /**\n * Set the timeout for the cached SSL session objects, in seconds.\n *\n * @param sessionTimeout the session timeout.\n * @return {@code this}.\n */\n SecurityConfigurator sessionTimeout(long sessionTimeout);\n\n /**\n * Sets the {@link SslProvider} to use.\n *\n * @param provider the provider.\n * @return {@code this}.\n */\n SecurityConfigurator provider(SslProvider provider);\n}", "@Bean\n\tpublic DaoAuthenticationProvider authenticationProvider() {\n\t\t//Create a new authentication provider object\n\t\tDaoAuthenticationProvider authenticationProvider = new DaoAuthenticationProvider();\n\t\t//setting up custom user details service\n\t\tauthenticationProvider.setUserDetailsService(userServiceObj);\n\t\t//setting up password encoder by BCrypt\n\t\tauthenticationProvider.setPasswordEncoder(pswdEncoder()); \n\t\t//Return the authentication provider object\n\t\treturn authenticationProvider;\n\t}", "Builder addProvider(String value);", "public ColumnConfigProvider(ColumnConfig config){\r\n\t\tthis.config = config;\r\n\t\tinit();\r\n\t}", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "Provider createProvider(Provider prov, Aggregator agr) throws RepoxException;", "private List<AuthUI.IdpConfig> getProvider() {\n List<AuthUI.IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.FacebookBuilder().setPermissions(Arrays.asList(\"email\")).build(),\n new AuthUI.IdpConfig.GoogleBuilder().build(),\n new AuthUI.IdpConfig.TwitterBuilder().build());\n\n return providers;\n }", "Provider createProvider();", "@Bean\n\tpublic SpringSocialConfigurer imoocSocialSecurityConfig() {\n\t\tString filterProcessesUrl = securityProperties.getSocial().getFilterProcessesUrl();\n\t\tMySpringSocialConfigurer configurer = new MySpringSocialConfigurer(filterProcessesUrl);\n\t\tconfigurer.signupUrl(securityProperties.getBrowser().getSignUpUrl());\n\t\treturn configurer;\n\t}", "public Configuration getConfiguration(final String name, Environment environment) {\n\t\tif (environment == null)\n\t\t\tenvironment = GlobalEnvironment.INSTANCE;\n\t\tfinal Artefact a = getArtefact(name);\n\t\tif (a == null)\n\t\t\tthrow new IllegalArgumentException(\"No such artefact: \" + name);\n\t\tfinal ConfigurationImpl configurationImpl = new ConfigurationImpl(a.getName());\n\t\tfinal List<String> attributeNames = a.getAttributeNames();\n\n\t\tconfigurationImpl.clearExternalConfigurations();\n\t\tfor (final ConfigurationSourceKey include : a.getExternalConfigurations())\n\t\t\tconfigurationImpl.addExternalConfiguration(include);\n\n\t\tfor (final String attributeName : attributeNames) {\n\t\t\tfinal Value attributeValue = a.getAttribute(attributeName).getValue(environment);\n\t\t\tif (attributeValue != null)\n\t\t\t\tconfigurationImpl.setAttribute(attributeName, attributeValue);\n\t\t}\n\t\treturn configurationImpl;\n\t}", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "private void initializeWithProviderConfiguration() {\n List<JRProvider> socialProviders = mSessionData.getSocialProviders();\n if (socialProviders == null || socialProviders.size() == 0) {\n JREngageError err = new JREngageError(\n \"Cannot load the Publish Activity, no social providers are configured.\",\n JREngageError.ConfigurationError.CONFIGURATION_INFORMATION_ERROR,\n JREngageError.ErrorType.CONFIGURATION_INFORMATION_MISSING);\n mSessionData.triggerPublishingDialogDidFail(err);\n return;\n }\n \n // Configure the properties of the UI\n mActivityObject.shortenUrls(new JRActivityObject.ShortenedUrlCallback() {\n public void setShortenedUrl(String shortenedUrl) {\n mShortenedActivityURL = shortenedUrl;\n \n if (mSelectedProvider == null) return;\n \n if (mSelectedProvider.getSocialSharingProperties().\n getAsBoolean(\"content_replaces_action\")) {\n updatePreviewTextWhenContentReplacesAction();\n } else {\n updatePreviewTextWhenContentDoesNotReplaceAction();\n }\n updateCharacterCount();\n }\n });\n createTabs();\n }", "@NotNull\n private LdapConnectionConfig createConnectionConfig() {\n LdapConnectionConfig cc = new LdapConnectionConfig();\n cc.setLdapHost(config.getHostname());\n cc.setLdapPort(config.getPort());\n cc.setUseSsl(config.useSSL());\n cc.setUseTls(config.useTLS());\n\n // todo: implement better trustmanager/keystore management (via sling/felix)\n if (config.noCertCheck()) {\n cc.setTrustManagers(new NoVerificationTrustManager());\n }\n\n String[] enabledProtocols = config.enabledProtocols();\n if (enabledProtocols != null && enabledProtocols.length > 0) {\n cc.setEnabledProtocols(enabledProtocols);\n }\n\n return cc;\n }", "public interface ContainerConfigurer {\n\n /**\n * Applies a class of Registry type to the \n * container configuration.\n *\n * @param <R> the type of register\n * @param registryType the class registry type\n */\n <R extends Registry> void apply(Class<R> registryType);\n\n /**\n * Applies an instance of a Registry class to the \n * container configuration.\n * \n * @param <R> the type of register\n * @param registry a registry instance\n */\n <R extends Registry> void apply(R registry);\n\n /**\n * Gets the configured registry.\n * \n * @return the configured registry\n */\n Registry getRegistry();\n}", "abstract public Config createConfigWithFactory(String path, String factoryPath);", "private void configure(ClientBuilder builder) {\n\n final ClientBuilderHolder<?> holder = new ClientBuilderHolder<>(builder);\n final ClientBuilderConfigurer configurer = new ClientBuilderConfigurer(holder);\n\n // configures the builder\n configureClientBuilder(configurer);\n\n // registers the providers\n registerProviders(holder.getClientBuilder(), getProviders());\n }", "Provider apply(List<Provider> providers);", "public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }", "public static Provider provider() {\n try {\n Object provider = getProviderUsingServiceLoader();\n if (provider == null) {\n provider = FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);\n }\n if (!(provider instanceof Provider)) {\n Class pClass = Provider.class;\n String classnameAsResource = pClass.getName().replace('.', '/') + \".class\";\n ClassLoader loader = pClass.getClassLoader();\n if (loader == null) {\n loader = ClassLoader.getSystemClassLoader();\n }\n URL targetTypeURL = loader.getResource(classnameAsResource);\n throw new LinkageError(\"ClassCastException: attempting to cast\" + provider.getClass()\n .getClassLoader().getResource(classnameAsResource) + \"to\" + targetTypeURL.toString());\n }\n return (Provider) provider;\n } catch (WebServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new WebServiceException(\"Unable to createEndpointReference Provider\", ex);\n }\n }", "public interface RelyingPartyConfigurationManager {\n\n /**\n * Gets the configuration for the given relying party.\n * \n * @param relyingPartyEntityID the entity of the relying part to get the configuration for\n * \n * @return configuration for the given relying party\n */\n public RelyingPartyConfiguration getRelyingPartyConfiguration(String relyingPartyEntityID);\n\n /**\n * Gets the registered relying party configurations indexed by relying party ID.\n * \n * @return the registered relying party configurations\n */\n public Map<String, RelyingPartyConfiguration> getRelyingPartyConfigurations();\n\n /**\n * Gets the default relying party configuration.\n * \n * @return the default relying party configuration\n */\n public RelyingPartyConfiguration getDefaultRelyingPartyConfiguration();\n\n /**\n * Gets the relying party configuration to use for anonymous parties.\n * \n * @return the relying party configuration to use for anonymous parties\n */\n public RelyingPartyConfiguration getAnonymousRelyingConfiguration();\n}", "Observable<CustomerServiceProviderConfiguration> getConfigurationAsync(String serviceProviderId);", "public AcapeItemProviderAdapterFactory() {\n\t\tsupportedTypes.add(IEditingDomainItemProvider.class);\n\t\tsupportedTypes.add(IStructuredItemContentProvider.class);\n\t\tsupportedTypes.add(ITreeItemContentProvider.class);\n\t\tsupportedTypes.add(IItemLabelProvider.class);\n\t\tsupportedTypes.add(IItemPropertySource.class);\n\t}", "public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }", "public abstract Configuration configuration();", "public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }", "void configure (CallbackUtilities cus) throws RootException;", "public MapConfiguration getConfiguration() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Reset layers\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t}\n\n\t\t\t// Add edit layer to context\n\t\t\tmapFactory.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\t// Start configuratie zoomt naar Provincie OVL\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\t\t\tEnvelope envelope = GeometryUtils.getEnvelope(provincie.getGeom());\n\t\t\tcontext.setBoundingBox(envelope);\n\t\t\tsetBaseLayerName(\"tms\");\n\t\t\treturn configuration;\n\t\t}\n\n\t\treturn null;\n\t}", "@Test\n public void testRemoveConfigurationProvider()\n {\n assertNull(\"Removing unknown provider\", factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Removing provider for null tag\", factory\n .removeConfigurationProvider(null));\n DefaultConfigurationBuilder.ConfigurationProvider provider = new DefaultConfigurationBuilder.ConfigurationProvider();\n factory.addConfigurationProvider(\"test\", provider);\n assertSame(\"Failed to remove provider\", provider, factory\n .removeConfigurationProvider(\"test\"));\n assertNull(\"Provider still registered\", factory.providerForTag(\"test\"));\n }", "public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}", "public static Configurable configure() {\n return new SqlServerManager.ConfigurableImpl();\n }", "public LdapIdentityProvider(@NotNull LdapProviderConfig config) {\n this.config = config;\n init();\n }", "public static Authenticator newInstance(Configuration config,\n String proxyCallbackUrl, ProxyCallbackHandler proxyCallbackHandler) {\n \n HttpsURLConnectionFactory connectionFactory = \n new HttpsURLConnectionFactory(config.getSslContext(), \n config.getHostnameVerifier());\n \n TicketValidator validator = createTicketValidator(config, \n connectionFactory);\n\n if (validator instanceof Cas20ServiceTicketValidator) {\n configureServiceValidator(config, proxyCallbackUrl, proxyCallbackHandler,\n connectionFactory, (Cas20ServiceTicketValidator) validator);\n }\n if (validator instanceof Cas20ProxyTicketValidator) {\n configureProxyValidator(config, (Cas20ProxyTicketValidator)\n validator);\n }\n if (validator instanceof Saml11TicketValidator) {\n configureSamlValidator(config, (Saml11TicketValidator) validator);\n }\n return new JasigAuthenticator(config, validator);\n }", "public ProviderServices(\n Class<? extends ConstrainedToType> constraintToType,\n ProviderFactory componentProviderFactory,\n Set<Class<?>> providers,\n Set<?> providerInstances) {\n this.constraintToType = constraintToType;\n this.componentProviderFactory = componentProviderFactory;\n this.providers = providers;\n this.providerInstances = providerInstances;\n }", "Observable<CustomerServiceProviderConfiguration> updateConfigurationAsync(String serviceProviderId, ServiceProviderConfigurationUpdateRequest configuration);", "private URL mergeUrl(URL providerUrl) {\n\n providerUrl = ClusterUtils.mergeUrl(providerUrl, queryMap);\n\n List<Configurator> localConfigurators = this.configurators;\n if (!Objects.isNull(localConfigurators) && localConfigurators.size() > 0){\n for (Configurator configurator : localConfigurators) {\n configurator.configure(providerUrl);\n }\n }\n\n providerUrl = providerUrl.addParameter(Constants.CHECK_KEY, String.valueOf(false));\n\n this.overrideDirectoryUrl = this.overrideDirectoryUrl.addParametersIfAbsent(providerUrl.getParameters());\n if ((Objects.isNull(providerUrl.getPath()) || providerUrl.getPath().length() == 0) && \"mandal\".equals(providerUrl.getProtocol())){\n String path = directoryUrl.getParameter(Constants.INTERFACE_KEY);\n if (!Objects.isNull(path)){\n int i = path.indexOf(\"/\");\n if (i >= 0){\n path = path.substring(i + 1);\n }\n i = path.lastIndexOf(':');\n if (i >= 0){\n path = path.substring(0, i);\n }\n providerUrl = providerUrl.setPath(path);\n }\n }\n return providerUrl;\n }", "@Override\n\tprotected void configure() {\n\n\t\tbind(RacingBike.class).annotatedWith(ApacheRR.class).to(ApacheRR310.class);\n\t\tbind(RacingBike.class).annotatedWith(ApacheRS.class).to(ApacheRR200.class);\n//\t\tbind(RacingBike.class).annotatedWith(Names.named(\"ApacheRT\")).to(ApacheRR160.class);\n//\t\t\n//\t\tbind(String.class).annotatedWith(Names.named(\"Prajjwal Singh\")).toInstance(\"This is Prajjwal Singh Welcoming you here\");\n\t\t\n\t\t//provider class binding\n//\t\tbind(RacingBike.class).toProvider(ProviderBikes.class);\n\t\t\n//\t\tbind(ApacheRR310.class).to(ApacheRR200.class);\n\t\t\n\t}", "private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}", "public static ValidatorFactory buildDefaultValidatorFactory() {\n return byDefaultProvider().configure().buildValidatorFactory();\n }", "@Override\n public void validate() {\n LOG.ok(\"Validating configuration {0}\", this);\n\n if (CONNECTION_TYPE_SSH.equals(connectionType)) {\n if (StringUtil.isBlank(hostName))\n throw new ConfigurationException(\"The hostName configuration property is mandatory for SSH connections\");\n if (StringUtil.isBlank(userName))\n throw new ConfigurationException(\"The userName configuration property is mandatory for SSH connections\");\n if ((StringUtil.isBlank(privateKey)) && (password == null))\n throw new ConfigurationException(\"The password configuration property is mandatory for SSH connections if no private key is set\");\n }\n\n if (StringUtil.isBlank(method)) {\n throw new ConfigurationException(\"The method configuration property is mandatory\");\n } else if (!Arrays.asList(METHOD_PW, METHOD_USERADD + \":\" + SUBMETHOD_BSD, METHOD_USERADD + \":\" + SUBMETHOD_LINUX).contains(method)) {\n throw new ConfigurationException(\"Unsupported value in configuration property method\");\n }\n\n if (!Arrays.asList(BECOME_METHOD_DOAS, BECOME_METHOD_NONE, BECOME_METHOD_SUDO).contains(becomeMethod)) {\n throw new ConfigurationException(\"Unsupported value in configuration property becomeMethod\");\n }\n }", "public ComponentConfiguration getConfiguration();", "void toProvider(@NotNull Class<? extends Provider<? extends T>> provider);", "public void configure(FunctionRuntimeContext runtimeContext) {\n validateConfigurationMethods(runtimeContext.getMethodWrapper());\n applyUserConfigurationMethod(runtimeContext.getMethodWrapper(), runtimeContext);\n }", "@Test\n public void testConfigurationBuilderProviderInheritProperties()\n throws Exception\n {\n factory.addProperty(\"override.configuration[@fileName]\",\n TEST_FILE.getAbsolutePath());\n factory.setBasePath(\"conf\");\n factory.setAttributeSplittingDisabled(true);\n factory.setDelimiterParsingDisabled(true);\n factory.setListDelimiter('/');\n factory.setThrowExceptionOnMissing(true);\n Log log = LogFactory.getLog(getClass());\n factory.setLogger(log);\n factory.clearErrorListeners();\n factory.clearConfigurationListeners();\n ConfigurationListenerTestImpl l =\n new ConfigurationListenerTestImpl(factory);\n factory.addConfigurationListener(l);\n DefaultConfigurationBuilder.ConfigurationDeclaration decl =\n new DefaultConfigurationBuilder.ConfigurationDeclaration(\n factory,\n factory.configurationAt(\"override.configuration\"));\n DefaultConfigurationBuilder.ConfigurationBuilderProvider provider =\n new DefaultConfigurationBuilder.ConfigurationBuilderProvider();\n DefaultConfigurationBuilder child =\n (DefaultConfigurationBuilder) provider.createBean(\n provider.fetchConfigurationClass(), decl, null);\n assertEquals(\"Wrong base path\", factory.getBasePath(),\n child.getBasePath());\n assertEquals(\"Wrong attribute splitting flag\",\n factory.isAttributeSplittingDisabled(),\n child.isAttributeSplittingDisabled());\n assertEquals(\"Wrong delimiter parsing flag\",\n factory.isDelimiterParsingDisabled(),\n child.isDelimiterParsingDisabled());\n assertEquals(\"Wrong list delimiter\", factory.getListDelimiter(),\n child.getListDelimiter());\n assertEquals(\"Wrong exception flag\",\n factory.isThrowExceptionOnMissing(),\n child.isThrowExceptionOnMissing());\n assertSame(\"Wrong logger\", log, child.getLogger());\n assertTrue(\"Got error listeners\", child.getErrorListeners().isEmpty());\n assertEquals(\"Wrong number of listeners\", 1, child\n .getConfigurationListeners().size());\n assertEquals(\"Wrong listener\", l, child.getConfigurationListeners()\n .iterator().next());\n }", "@Override\n public void configure() throws Exception {\n BankAccountManagementService bankAccountManagementService = services.get(BankAccountManagementService.class);\n UserManagementService userManagementService = services.get(UserManagementService.class);\n ObjectMapper mapper = JsonMapperFactory.getObjectMapper();\n if (this.filePathAString == null) {\n throw new Exception(\"No config file provided, please set the cashmanager.config.localfile property\");\n }\n LocalFileDTO fileConfig = mapper.readValue(new File(filePathAString), LocalFileDTO.class);\n this.preferences = new HashMap<String, String>(fileConfig.preferences);\n fileConfig.accounts.forEach((account) ->\n bankAccountManagementService.registerNewAcount(account.getId(), account.getBalance())\n );\n fileConfig.users.forEach((user) ->\n userManagementService.registerUser(user.getId(), user.getPassword())\n );\n }", "public void injectConfiguration(ComponentConfiguration conf);", "@Override\n public void configure() {\n bind(Clock.class).toInstance(Clock.systemDefaultZone());\n // Ask Guice to create an instance of ApplicationTimer when the\n // application starts.\n bind(ApplicationTimer.class).asEagerSingleton();\n\n bind(UsersLogic.class).to(UsersLogicImpl.class);\n bind(EventsLogic.class).to(EventsLogicImpl.class);\n bind(SalesLogic.class).to(SalesLogicImpl.class);\n bind(CoatChecksLogic.class).to(CoatChecksLogicImpl.class);\n\n // Every time your class expects a UserRespository (as @Inject), it gets a JPA one.\n bind(UsersRepository.class).to(UsersRepositoryJPA.class).asEagerSingleton();\n bind(EventsRepository.class).to(EventsRepositoryJPA.class).asEagerSingleton();\n bind(TicketRepository.class).to(TicketRepositoryJPA.class).asEagerSingleton();\n bind(CoatChecksRepository.class).to(CoatChecksRepositoryJPA.class).asEagerSingleton();\n\n bind(StartupConfiguration.class).to(StartupConfigurationImpl.class).asEagerSingleton();\n }" ]
[ "0.7236493", "0.53498846", "0.5257148", "0.49804366", "0.49663994", "0.4965269", "0.49263263", "0.4913334", "0.49019662", "0.4900174", "0.48914334", "0.48690215", "0.48618868", "0.48156178", "0.48056963", "0.47753376", "0.474269", "0.47374493", "0.47374493", "0.47175306", "0.47118646", "0.4678583", "0.4673287", "0.46695155", "0.4661316", "0.46477902", "0.46450064", "0.46326742", "0.45929626", "0.4580093", "0.4573619", "0.45629126", "0.45554966", "0.45346737", "0.45346117", "0.4519447", "0.45179498", "0.4508449", "0.45062697", "0.44371703", "0.44262707", "0.44233897", "0.44116417", "0.43858093", "0.43843013", "0.43840113", "0.4383179", "0.43674698", "0.4354868", "0.43499526", "0.43486294", "0.43474388", "0.4340026", "0.4325312", "0.43211323", "0.4321053", "0.4313639", "0.43105212", "0.42813787", "0.42813787", "0.42677602", "0.42659515", "0.42635378", "0.4249436", "0.42395577", "0.4233614", "0.4223779", "0.42124933", "0.41969684", "0.41842815", "0.41840953", "0.4169592", "0.4168538", "0.4163867", "0.41566056", "0.41522348", "0.41408512", "0.41393563", "0.41377425", "0.41363883", "0.4124952", "0.41192967", "0.41180813", "0.41170883", "0.41167417", "0.41128662", "0.41062823", "0.41035733", "0.41019684", "0.40832666", "0.40798718", "0.4071306", "0.40648368", "0.4061804", "0.40554124", "0.4053846", "0.40526956", "0.40477893", "0.40456957", "0.40455297" ]
0.5085568
3
Returns a composite filter of the given filters.
private static SearchFilter compose(Vector<? extends SearchFilter> filters) { //As a minor optimization, we avoid a few method calls in //special cases. if (filters.size() == 0) { return new AllowFilter(); } else if (filters.size() == 1) { return filters.get(0); } else { SearchFilter[] delegates = new SearchFilter[filters.size()]; filters.copyInto(delegates); return new CompositeFilter(delegates); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CompositeFilter(FilteringOperator operator, Filter<T>... filters) {\n\t\tthis.filters = filters;\n\t\tthis.operator = operator;\n\t}", "public static FilterBuilder filters()\n {\n return new FilterBuilder();\n }", "private static Filter newFilter()\r\n {\r\n Filter filter = new Filter(\"filter1\", new Source(\"display1\", \"name1\", \"server\", \"key1\"));\r\n filter.getOtherSources().add(filter.getSource());\r\n Group group = new Group();\r\n group.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"123\"));\r\n Group group2 = new Group();\r\n group2.addFilterCriteria(new Criteria(\"field1\", Conditional.EQ, \"124\"));\r\n group.addFilterGroup(group2);\r\n filter.setFilterGroup(group);\r\n return filter;\r\n }", "List<Condition> composeFilterConditions(F filter);", "private ValueConstraint getConstraintFromFilters(Set<ElementFilter> filters) {\n\t\tExpr left = null;\r\n\t\tfor (ElementFilter filter : filters) {\r\n\t\t\tExpr filterExpr = ValueConstraintUtils.deepCopyExpr(filter.getExpr()); // create a copy of the expression\r\n\t\t\tif (left == null) {\r\n\t\t\t\tleft = filterExpr;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tleft = new E_LogicalAnd(left, filterExpr);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new ValueConstraint(left);\r\n\t}", "private Filter ssoFilter() {\n\t\tCompositeFilter filter = new CompositeFilter();\n\t\tList<Filter> filters = new ArrayList<>();\n\t\tfilters.add(ssoFilter(facebook(), \"/login/facebook\"));\n\t\tfilters.add(ssoFilter(github(), \"/login/github\"));\n//\t\tfilters.add(ssoFilter(twitter(), \"/login/twitter\"));\n\t\tfilters.add(ssoFilter(linkedin(), \"/login/linkedin\"));\n\t\tfilter.setFilters(filters);\n\t\treturn filter;\n\t}", "private static List<Filter> enumCompoundFilters(List<Filter> filters,\n int filterLength,\n int maxFilterLength,\n boolean allowDisjunction) {\n filters = filters.stream().filter(f -> {\n List<ValHole> holes = f.getAllHoles().stream()\n .filter(h -> (h instanceof ValHole)).map(h -> (ValHole) h).collect(Collectors.toList());\n return !ValHole.containsSameHoleDiffType(holes);\n }).collect(Collectors.toList());\n\n if (filterLength == maxFilterLength)\n return filters;\n\n List<Filter> result = new ArrayList<Filter>();\n result.addAll(filters);\n\n for (int i = 0; i < filters.size(); i ++) {\n for (int j = i + 1; j < filters.size(); j ++) {\n\n if (filters.get(i) instanceof ExistsFilter && filters.get(j) instanceof ExistsFilter)\n continue;\n\n // Prune: if two filters have same arguments but different comparator,\n // then they are exclusive and will not be added as LogicAndFilter\n if (filters.get(i).containsExclusiveFilter(filters.get(j)))\n continue;\n\n Filter f = new LogicAndFilter(filters.get(i), filters.get(j));\n if (f.getFilterLength() == filterLength + 1)\n result.add(f);\n\n if (allowDisjunction) {\n f = new LogicOrFilter(filters.get(i), filters.get(j));\n if (f.getFilterLength() == filterLength + 1)\n result.add(f);\n }\n }\n }\n\n return enumCompoundFilters(result, filterLength + 1, maxFilterLength, allowDisjunction);\n }", "public VCSResourceOrFilter(Collection<VCSResourceFilter<T>> filters) {\r\n if (filters == null) {\r\n throw new IllegalArgumentException(\"filters must not be null\");\r\n }\r\n if (filters.isEmpty()) {\r\n throw new IllegalArgumentException(\"filters must not be empty\");\r\n }\r\n\r\n this.filters = new LinkedHashSet<VCSResourceFilter<T>>();\r\n\r\n for (VCSResourceFilter<T> f : filters) {\r\n if (f == null) {\r\n throw new IllegalArgumentException(\"filters must not contain null\");\r\n }\r\n this.extract(f);\r\n }\r\n\r\n boolean exact = false;\r\n boolean path = false;\r\n for (VCSResourceFilter<T> f : filters) {\r\n if (f instanceof ExactFilter) {\r\n exact = true;\r\n if (path) {\r\n throw new IllegalArgumentException(\"exact filter \" + f\r\n + \" can not combine with a path filter\");\r\n }\r\n } else if (f instanceof AbstractPathFilter) {\r\n path = true;\r\n if (exact) {\r\n throw new IllegalArgumentException(\"path filter \" + f\r\n + \" can not be combined with an exact filter\");\r\n }\r\n }\r\n }\r\n }", "public BFilterGroup(BFilter... filters) {\n mFilters = filters;\n }", "@Override\n public Object build() {\n Map<String, org.opensearch.index.query.QueryBuilder> filterMap = new HashMap<>();\n for (FilterComposite filter : this.getChildren().stream()\n .filter(child -> FilterComposite.class.isAssignableFrom(child.getClass()))\n .map(child -> (FilterComposite) child).collect(Collectors.toList())) {\n\n org.opensearch.index.query.QueryBuilder filterBuilder = (org.opensearch.index.query.QueryBuilder)filter.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build();\n filterMap.put(filter.getName(), filterBuilder);\n }\n\n FiltersAggregationBuilder filtersAggsBuilder = AggregationBuilders.filters(this.getName(),\n Stream.ofAll(filterMap.entrySet())\n .map(entry -> new FiltersAggregator.KeyedFilter(entry.getKey(), entry.getValue()))\n .toJavaArray(FiltersAggregator.KeyedFilter.class));\n\n for (Composite childComposite : this.getChildren().stream()\n .filter(child -> !FilterComposite.class.isAssignableFrom(child.getClass()) &&\n !ParamComposite.class.isAssignableFrom(child.getClass()) &&\n !HavingComposite.class.isAssignableFrom(child.getClass())).collect(Collectors.toList())) {\n\n applySubAggregationFromChild(filtersAggsBuilder, childComposite);\n }\n\n return filtersAggsBuilder;\n }", "public ChainFilterFactory(FilterFactory... factories) {\n this.chainedFactories = ImmutableList.copyOf(factories);\n }", "public static Filter and(Filter[] filters) {\r\n if (filters == null) {\r\n throw new IllegalArgumentException(\"The filters is null.\");\r\n }\r\n\r\n return new AndFilter(Arrays.asList(filters));\r\n }", "public static NodeFilter makeFilter()\n\t{\n\t\tNodeFilter[] fa = new NodeFilter[3];\n\t\tfa[0] = new HasAttributeFilter(\"HREF\");\n\t\tfa[1] = new TagNameFilter(\"A\");\n\t\tfa[2] = new HasParentFilter(new TagNameFilter(\"H3\"));\n\t\tNodeFilter filter = new AndFilter(fa);\n\t\treturn filter;\n\t}", "public static Filter or(Filter[] filters) {\r\n if (filters == null) {\r\n throw new IllegalArgumentException(\"The filters is null.\");\r\n }\r\n\r\n return new OrFilter(Arrays.asList(filters));\r\n }", "public And(Object... filters) {\n if (filters.length > 0) {\n if (filters[0].getClass().isArray()) {\n filters = (Object[]) filters[0];\n }\n }\n this.filters = new IFilter[filters.length];\n for (int i = 0; i < filters.length; i++) this.filters[i] = (IFilter) filters[i];\n }", "public synchronized RDataframe filter(RFilter<?>... tests) {\n\t\t\n\t\t// return everything if no conditions\n\t\tBitSet filter = (new BitSet(this.nrow()));\n\t\tfilter.set(0, this.nrow(), true);\n\t\t\n\t\tfor (RFilter<?> test: tests) {\n\t\t\tBitSet and = this.get(test.name()).matches(test.predicate());\n\t\t\tfilter.and(and); \n\t\t}\n\t\tfinal BitSet filter2 = filter;\n\t\tRDataframe out = new RDataframe();\n\t\tthis.columnIterator().forEachRemaining(n -> {\n\t\t\tout.addCol(n.getKey(), n.getValue().subset(filter2));\n\t\t});\n\t\tout.groupBy(this.getGroups());\n\t\treturn out;\n\t}", "String genWhereConditionsFromFilters(TableFields tableFields, String filters);", "BuildFilter defaultFilter();", "public static FilterBuilder build() {\n return new FilterBuilder();\n }", "private Filter setFilters(Filter originalFilter, DateRange temporalSubset, NumberRange<?> elevationSubset, GeneralEnvelope envelopeSubset, \n Map<String, List<Object>> dimensionSubset, StructuredGridCoverage2DReader reader, DimensionDescriptor timeDimension, \n DimensionDescriptor elevationDimension, List<DimensionDescriptor> additionalDimensions) \n throws IOException {\n List<Filter> filters = new ArrayList<Filter>();\n \n // Setting temporal filter\n Filter timeFilter = temporalSubset == null && timeDimension == null ? null\n : setTimeFilter(temporalSubset, timeDimension.getStartAttribute(),\n timeDimension.getEndAttribute());\n\n // Setting elevation filter\n Filter elevationFilter = elevationSubset == null && elevationDimension == null ? null\n : setElevationFilter(elevationSubset,\n elevationDimension.getStartAttribute(),\n elevationDimension.getEndAttribute());\n\n // setting envelope filter\n Filter envelopeFilter = setEnevelopeFilter(envelopeSubset, reader);\n\n // Setting dimensional filters\n Filter additionalDimensionsFilter = setAdditionalDimensionsFilter(dimensionSubset, additionalDimensions);\n\n // Updating filters \n if(originalFilter != null) {\n filters.add(originalFilter);\n }\n if (elevationFilter != null) {\n filters.add(elevationFilter);\n }\n if (timeFilter != null) {\n filters.add(timeFilter);\n }\n if (envelopeFilter != null) {\n filters.add(envelopeFilter);\n }\n if (additionalDimensionsFilter != null) {\n filters.add(additionalDimensionsFilter);\n }\n\n // Merging all filters\n Filter finalFilter = FF.and(filters);\n return finalFilter;\n }", "public ConcatFilter() {\n super();\n }", "private FilterPipeline createPipeline() {\n Filter filterZero = createDefaultPatternFilter(0);\n Filter filterTwo = createDefaultPatternFilter(2); \n Sorter sorter = new ShuttleSorter();\n Filter[] filters = new Filter[] {filterZero, filterTwo, sorter};\n FilterPipeline pipeline = new FilterPipeline(filters);\n return pipeline;\n }", "public FilterSpec build() {\n return new FilterSpec(this);\n }", "private static Filter createFilter(final BundleContext bundleContext, final Class<?>... classes) {\r\n\t\tfinal StringBuilder filter = new StringBuilder();\r\n\t\tif (classes != null) {\r\n\t\t\tif (classes.length > 1) {\r\n\t\t\t\tfilter.append(\"(|\");\r\n\t\t\t}\r\n\t\t\tfor (Class<?> clazz : classes) {\r\n\t\t\t\tfilter.append(\"(\").append(Constants.OBJECTCLASS).append(\"=\").append(clazz.getName()).append(\")\");\r\n\t\t\t}\r\n\t\t\tif (classes.length > 1) {\r\n\t\t\t\tfilter.append(\")\");\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn bundleContext.createFilter(filter.toString());\r\n\t\t} catch (InvalidSyntaxException e) {\r\n\t\t\tthrow new IllegalArgumentException(\"Unexpected InvalidSyntaxException: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }", "private static Expression constructBinaryFilterTreeWithAnd(List<Expression> expressions) {\n if (expressions.size() == 2) {\n return new LogicAndExpression(expressions.get(0), expressions.get(1));\n } else {\n return new LogicAndExpression(\n expressions.get(0),\n constructBinaryFilterTreeWithAnd(expressions.subList(1, expressions.size())));\n }\n }", "public AXLFileFilter(String[] filters) {\n\t this(filters, null);\n }", "public Filter intersection(Filter f);", "static <T> Predicate<T> compose(Predicate<T>... functions) {\n return Stream.of(functions).reduce(__ -> true, Predicate::and);\n }", "public interface FilterFactory<K, G> extends Serializable\n{\n\t/**\n\t * Creates a set of filters for the given token,tag, and tag-of-previous-token.\n\t * The convention is as follows:\n\t * Let each feature f be a feature that <B>might</B> return non-zero for the given token,tag,previous-tag.\n\t * That feature is encapsulated with a {@link Filter} in a {@link CrfFilteredFeature}. Let's call this filter \"t\".\n\t * For that filter there exist one filter in the set returned by this function, name it \"t'\", such that \"t'\" equals to \"t\".\n\t * \n\t * \n\t * @param sequence A sequence of tokens\n\t * @param tokenIndex An index of a token in that sequence\n\t * @param currentTag A tag for that token\n\t * @param previousTag A tag for the token which immediately precedes that token.\n\t * @return A set of filters as described above.\n\t */\n\tpublic Set<Filter<K, G>> createFilters(K[] sequence, int tokenIndex, G currentTag, G previousTag);\n}", "public GLFilterGroup(List<GPUImageFilter> filters) {\n mFilters = filters;\n if (mFilters == null) {\n mFilters = new ArrayList<>();\n } else {\n updateMergedFilters();\n }\n\n mGLCubeBuffer = ByteBuffer.allocateDirect(GLRender.CUBE.length * 4)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n mGLCubeBuffer.put(GLRender.CUBE).position(0);\n\n mGLTextureBuffer = ByteBuffer.allocateDirect(TEXTURE_NO_ROTATION.length * 4)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n mGLTextureBuffer.put(TEXTURE_NO_ROTATION).position(0);\n\n float[] flipTexture = TextureRotationUtil.getRotation(Rotation.NORMAL, false, true);\n mGLTextureFlipBuffer = ByteBuffer.allocateDirect(flipTexture.length * 4)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n mGLTextureFlipBuffer.put(flipTexture).position(0);\n }", "private static TreeFilter createPathFilter(Collection<String> paths) {\n\t\tList<TreeFilter> filters = new ArrayList<TreeFilter>(paths.size());\n\t\tfor (String path : paths) {\n\t\t\tif (path.length() == 0)\n\t\t\t\treturn null;\n\t\t\tfilters.add(PathFilter.create(path));\n\t\t}\n\t\tif (filters.size() == 1)\n\t\t\treturn filters.get(0);\n\t\treturn OrTreeFilter.create(filters);\n\t}", "Get<K, C> addFilter(Filter<K, C> filter);", "static <T> Function<T, T> compose(Stream<Function<T, T>> functions) {\n return functions.reduce(identity(), Function::andThen);\n }", "StandardFilterBuilder standardFilter(int count);", "public static FsItemFilter createMimeFilter(final String[] mimeFilters) {\n\t\tif (mimeFilters == null || mimeFilters.length == 0)\n\t\t\treturn FILTER_ALL;\n\n\t\treturn new FsItemFilter() {\n\t\t\t@Override\n\t\t\tpublic boolean accepts(FsItemEx item) {\n\t\t\t\tString mimeType = item.getMimeType().toUpperCase();\n\n\t\t\t\tfor (String mf : mimeFilters) {\n\t\t\t\t\tmf = mf.toUpperCase();\n\t\t\t\t\tif (mimeType.startsWith(mf + \"/\") || mimeType.equals(mf))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\t}", "Collection<BuildFilterResource<?>> getBuildFilters(ID branchId);", "public AXLFileFilter(String[] filters, String description) {\n\t this();\n\t for (int i = 0; i < filters.length; i++) {\n\t // add filters one by one\n\t addExtension(filters[i]);\n\t }\n \t if(description!=null) setDescription(description);\n }", "public AggregationBuilder filters(String name) {\n if (this.current.op != Op.terms && this.current.op != Op.filters && this.current.op != Op.root) {\n throw new UnsupportedOperationException(\"'filters' may only appear in the 'root', 'terms' or 'filters' context\");\n }\n\n if (this.seekLocalName(this.current, name) != null) {\n this.current = this.seekLocalName(this.current, name);\n } else {\n Composite filters = new FiltersComposite(name, this.current);\n this.current.getChildren().add(filters);\n this.current = filters;\n }\n\n return this;\n }", "private static SequentialFilter constructFilterFromSubCommand(String subCommand){\n\t\tsubCommand = subCommand.trim();\n\t\t//Splits the filter into the actual filter command and any parameters it may have\n\t\tString[]command = subCommand.split(\" \", 0);\n\t\t//Saves the first element as the filter command\n\t\tString c = command[0];\n\t\t//saves the rest of the elements as any of the parameters that the filter may have\n\t\t//Only passes the parameters to the filters that require them\n\t\tString [] input = Arrays.copyOfRange(command, 1, command.length);\n\t\tif(c.equals(\"cat\")) {\n\t\t\tCat cat = new Cat(input);\n\t\t\treturn cat;\n\t\t} else if(c.equals(\"pwd\")) {\n\t\t\tPwd pwd = new Pwd();\n\t\t\treturn pwd;\n\t\t} else if(c.equals(\"ls\")) {\n\t\t\tLs ls = new Ls();\n\t\t\treturn ls;\n\t\t} else if(c.equals(\"grep\")) {\n\t\t\tGrep grep = new Grep(input);\n\t\t\treturn grep;\n\t\t}else if(c.equals(\"wc\")) {\n\t\t\tWc wc = new Wc();\n\t\t\treturn wc;\n\t\t} else if(c.equals(\"uniq\")) {\n\t\t\tUniq uniq = new Uniq();\n\t\t\treturn uniq;\n\t\t} else if(c.equals(\">\")) {\n\t\t\tRedirect redirect = new Redirect(input);\n\t\t\treturn redirect;\n\t\t} else if(c.equals(\"output\")){\n\t\t\tOutput output = new Output();\n\t\t\treturn output;\n\t\t} else {\n\t\t\tString s = Arrays.deepToString(input);\n\t\t\ts = s.replace(\"[\", \"\");\n\t\t\ts = s.replace(\"]\", \"\");\n\t\t\ts = s.replace(\",\", \"\");\n\t\t\tthrow new RuntimeException(Message.COMMAND_NOT_FOUND.with_parameter(c + \" \" + s));\n\t\t}\n\t}", "FilterCondition createFilterCondition(int clueNum);", "Filter getFilter();", "default <K> List<Condition> composeFilterConditionsForCompositePrimaryKey(K key) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Pair<Attribute<T, ?>, Object>> attributesToValues = decomposePrimaryKey(key);\n\t\tif (attributesToValues != null) {\n\t\t\tfor (Pair<Attribute<T, ?>, Object> p : attributesToValues) {\n\t\t\t\tAttribute<T, ?> attr = p.getFirst();\n\t\t\t\tObject value = p.getSecond();\n\t\t\t\tconditions.add(Condition.eq(attr, value));\n\t\t\t}\n\t\t}\n\t\treturn conditions;\n\t}", "private JPanel renderFilterPanel()\n\t{\n\t\t//filterPanel will hold all of the filtering options\n\t\tJPanel\t\tfilterPanel = new JPanel(new GridLayout(1, 4));\n\t\tfilterPanel.setBorder(new EmptyBorder(5, 50, 5, 50));\n\t\t//filter by fav option\n\t\tJCheckBox\tfavoritesBox = new JCheckBox();\n\t\tfavoritesBox.setHorizontalAlignment(JCheckBox.RIGHT);\n\t\tJLabel\t\tfavoritesLabel = new JLabel(\"Favorites\");\n\t\t//filters by what is in stock\n\t\tJCheckBox\tinStockBox = new JCheckBox();\n\t\tinStockBox.setHorizontalAlignment(JCheckBox.RIGHT);\n\t\tJLabel\t\tinStockLabel = new JLabel(\"In Stock\");\n\t\t//add all options to the main filter panel\n\t\tfilterPanel.add(favoritesBox);\n\t\tfilterPanel.add(favoritesLabel);\n\t\tfilterPanel.add(inStockBox);\n\t\tfilterPanel.add(inStockLabel);\n\t\t//mid is then used to center the filterPanel\n\t\tJPanel\tmid = new JPanel(new BorderLayout());\n\t\tmid.add(filterPanel, BorderLayout.CENTER);\n\t\treturn mid;\n\t}", "public void addBusinessFilterToCreator(ViewerFilter filter);", "public static Filter or(Filter filterA, Filter filterB) {\r\n return new OrFilter(filterA, filterB);\r\n }", "private InputFilter[] createInputFilters() {\n\n InputFilter[] filterArray = new InputFilter[2];\n\n filterArray[0] = new InputFilter.LengthFilter(MAX_WORD_LENGTH);\n filterArray[1] = new InputFilter() {\n @Override\n public CharSequence filter(CharSequence src, int start, int end, Spanned dest, int dstart, int dend) {\n if(src.equals(\"\")){ // for backspace\n return src;\n }\n if(src.toString().matches(\"[a-zA-Z ]+\")){\n return src;\n }\n return \"\";\n }\n };\n\n return filterArray;\n }", "public ClientAppFilter build() {\n\t\t\tClientAppFilter filter = new ClientAppFilter();\n\t\t\tfilter.setApplicationId(this.applicationId);\n\t\t\tfilter.setApplicationName(this.applicationName);\n\t\t\tfilter.setOrganization(this.organization);\n\t\t\tfilter.setState(this.state);\n\t\t\tfilter.setIncludeQuota(this.includeQuota);\n\t\t\tfilter.setIncludeCredentials(this.includeCredentials);\n\t\t\tfilter.setIncludeImage(this.includeImage);\n\t\t\tfilter.setIncludeAPIAccess(this.includeAPIAccess);\n\t\t\tfilter.setCredential(this.credential);\n\t\t\tfilter.setRedirectUrl(this.redirectUrl);\n\t\t\tfilter.setIncludeOauthResources(this.includeOauthResources);\n\t\t\tfilter.setCustomProperties(this.customProperties);\n\t\t\tfilter.setApiName(this.apiName);\n\t\t\treturn filter;\n\t\t}", "public static Filter and(Filter filterA, Filter filterB) {\r\n return new AndFilter(filterA, filterB);\r\n }", "public ArrayList<CampusEvent> eventListFilter (ArrayList<CampusEvent> campusEvents, Filters filter) {\n ArrayList<CampusEvent> newList = new ArrayList<CampusEvent>();\n //if all the filters are zero, return original list\n Log.d(Globals.TAGG, \"Showing what the filters are\");\n\n if (filter == null) {\n Log.d(Globals.TAGG, \"All filters are null\");\n return campusEvents;\n } else {\n if (filter.getfFood() == 0 && filter.getfEventType() == 0 && filter.getfProgramType() == 0 && filter.getfGender() == 0 && filter.getfGreekSociety() == 0 && filter.getfMajor() == 0 && filter.getfYear() == 0) {\n return campusEvents;\n }\n if (filter.getfFood() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfFood() - 1;\n if (event.getFood() == scaleval) {\n newList.add(event);\n }\n }\n }\n if (filter.getfEventType() != 0) {\n for (CampusEvent event : campusEvents) {\n int scaleval = filter.getfEventType() - 1;\n if (event.getEventType() == scaleval) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfProgramType() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getProgramType() == filter.getfProgramType()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfYear() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getYear() == filter.getfYear()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfMajor() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getMajor() == filter.getfMajor()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGender() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGender() == filter.getfGender()) {\n newList.add(event);\n }\n }\n }\n\n if (filter.getfGreekSociety() != 0) {\n for (CampusEvent event : campusEvents) {\n if (event.getGreekSociety() == filter.getfGreekSociety()) {\n newList.add(event);\n }\n }\n }\n\n return newList;\n }\n }", "public Hashtable getFilters() {\n // we need to build the hashtable dynamically\n return globalFilterSet.getFilterHash();\n }", "private Reviews filterByFunc(FilterFunction filterFunc)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfor(Review review : list)\n\t\t\tif(filterFunc.filter(review))\n\t\t\t\tfilteredList.add(review);\n\t\treturn new Reviews(filteredList);\n\t}", "public SubsetFilter createFilter(Dimension dimension);", "private void initIntercativeDatasetFilters() {\n\n int filterHeight = Math.max(((screenHeight - 200) / 2), 300);\n int filterWidth = filterHeight;\n\n int colNumber = Math.max(screenWidth / 310, 1);\n popupBody.setColumns(colNumber);\n popupBody.setHideEmptyRowsAndColumns(true);\n if (colNumber == 1) {\n popupWindow.setFrameWidth(370);\n\n }\n\n filtersSet.clear();\n DatasetPieChartFilter yearFilter = initPieChartFilter(\"Year\", \"yearFilter\", 0, filterWidth, filterHeight);\n\n filtersSet.put(\"yearFilter\", yearFilter);\n\n DatasetPieChartFilter studyTypeFilter = initPieChartFilter(\"Study Type\", \"studyTypeFilter\", 1, filterWidth, filterHeight);\n\n filtersSet.put(\"studyTypeFilter\", studyTypeFilter);\n\n DatasetPieChartFilter sampleMatchingFilter = initPieChartFilter(\"Sample Matching\", \"sampleMatchingFilter\", 1, filterWidth, filterHeight);\n\n filtersSet.put(\"sampleMatchingFilter\", sampleMatchingFilter);\n\n DatasetPieChartFilter technologyFilter = initPieChartFilter(\"Technology\", \"technologyFilter\", 1, filterWidth, filterHeight);\n\n filtersSet.put(\"technologyFilter\", technologyFilter);\n\n DatasetPieChartFilter analyticalApproachFilter = initPieChartFilter(\"Analytical Approach\", \"analyticalApproachFilter\", 1, filterWidth, filterHeight);\n\n filtersSet.put(\"analyticalApproachFilter\", analyticalApproachFilter);\n\n DatasetPieChartFilter shotgunTargetedFilter = initPieChartFilter(\"Shotgun/Targeted\", \"shotgunTargetedFilter\", 1, filterWidth, filterHeight);\n\n filtersSet.put(\"shotgunTargetedFilter\", shotgunTargetedFilter);\n int col = 0, row = 0;\n\n for (DatasetPieChartFilter filter : filtersSet.values()) {\n this.popupBody.addComponent(filter, col++, row);\n this.popupBody.setComponentAlignment(filter, Alignment.MIDDLE_CENTER);\n if (col == colNumber) {\n row++;\n col = 0;\n }\n }\n\n }", "private void applyFilters() {\r\n\t\t// create the new filters\r\n\t\tViewerFilter[] filters = new ViewerFilter[] { new TransportStateViewFilter(IProgramStatus.PROGRAM_STATUS_PREBOOKING),\r\n\t\t\t\tnew TransportDirectnessFilter(IDirectness.TOWARDS_BRUCK), transportDateFilter, transportViewFilter };\r\n\t\t// set up the filters for the view\r\n\t\tviewerBruck.setFilters(filters);\r\n\t\tviewerGraz.setFilters(filters);\r\n\t\tviewerWien.setFilters(filters);\r\n\t\tviewerMariazell.setFilters(filters);\r\n\t\tviewerKapfenberg.setFilters(filters);\r\n\t\tviewerLeoben.setFilters(filters);\r\n\t}", "public static <A> CompositePredicate<A> predicate(Predicate<? super A> pred) {\n return new CompositePredicate<A>(pred);\n }", "public Collection<AbstractFilterPlugin> getFilters();", "public String buildWhereSQL() throws Exception {\r\n if (!inputData.hasFilter()) {\r\n return null;\r\n }\r\n\r\n List<BasicFilter> filters = null;\r\n try {\r\n String filterString = inputData.getFilterString();\r\n Object filterObj = getFilterObject(filterString);\r\n\r\n filters = convertBasicFilterList(filterObj, filters);\r\n\r\n StringBuffer sb = new StringBuffer();\r\n String andDivisor = \"\";\r\n for (Object obj : filters) {\r\n BasicFilter filter = (BasicFilter) obj;\r\n\r\n sb.append(andDivisor);\r\n andDivisor = \" AND \";\r\n\r\n ColumnDescriptor column = inputData.getColumn(filter.getColumn().index());\r\n //the column name of filter\r\n sb.append(column.columnName());\r\n\r\n //the operation of filter\r\n FilterParser.Operation op = filter.getOperation();\r\n switch (op) {\r\n case HDOP_LT:\r\n sb.append(\"<\");\r\n break;\r\n case HDOP_GT:\r\n sb.append(\">\");\r\n break;\r\n case HDOP_LE:\r\n sb.append(\"<=\");\r\n break;\r\n case HDOP_GE:\r\n sb.append(\">=\");\r\n break;\r\n case HDOP_EQ:\r\n sb.append(\"=\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported Filter operation : \" + op);\r\n }\r\n\r\n Object val = filter.getConstant().constant();\r\n switch (DataType.get(column.columnTypeCode())) {\r\n case SMALLINT:\r\n case INTEGER:\r\n case BIGINT:\r\n case FLOAT8:\r\n case REAL:\r\n case BOOLEAN:\r\n sb.append(val.toString());\r\n break;\r\n case TEXT:\r\n sb.append(\"'\").append(val.toString()).append(\"'\");\r\n break;\r\n case DATE:\r\n sb.append(\"'\" + val.toString() + \"'\");\r\n break;\r\n default:\r\n throw new UnsupportedFilterException(\"unsupported column type for filtering : \" + column.columnTypeCode());\r\n }\r\n\r\n }\r\n return sb.toString();\r\n } catch (UnsupportedFilterException ex) {\r\n // Do not throw exception, impose no constraints instead\r\n return null;\r\n }\r\n }", "public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }", "public OrFileFilter addFilter (FileFilter filter)\n {\n filters.add (filter);\n return this;\n }", "com.google.monitoring.dashboard.v1.DashboardFilter getDashboardFilters(int index);", "public void setFilters(List<COSName> filters) {\n/* 333 */ COSArray cOSArray = COSArrayList.converterToCOSArray(filters);\n/* 334 */ this.stream.setItem(COSName.FILTER, (COSBase)cOSArray);\n/* */ }", "public FiltersDialog(java.awt.Frame parent, boolean modal, List<Filter> filters,\n JComboBox filtersComboBox, CalendarManager calManager) {\n super(parent, modal);\n initComponents();\n this.calManager = calManager;\n model = (FiltersListModel) filtersList.getModel();\n newFilterButton.requestFocus();\n model.setFilters(filters);\n this.filtersComboBox = filtersComboBox;\n comboModel = (FiltersComboBoxModel) filtersComboBox.getModel();\n activeFilterName = (String) filtersComboBox.getSelectedItem();\n }", "public static Filter buildFromDOM (Element element) throws FilterConstructionException { \r\n Filter filter = null;\r\n\r\n // check if root element's name equals 'filter'\r\n if (!element.getLocalName().equals (\"Filter\"))\r\n throw new FilterConstructionException (\"Name of element does not equal 'Filter'!\"); \r\n \r\n // determine type of Filter (FeatureFilter / ComplexFilter) \r\n Element firstElement = null;\r\n NodeList children = element.getChildNodes (); \r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item (i).getNodeType () == Node.ELEMENT_NODE) {\r\n firstElement = (Element) children.item (i);\r\n }\r\n }\r\n if (firstElement == null) throw new FilterConstructionException (\"Filter Node is empty!\");\r\n \r\n if (firstElement.getLocalName().equals (\"FeatureId\")) {\r\n // must be a FeatureFilter\r\n FeatureFilter fFilter = new FeatureFilter ();\r\n children = element.getChildNodes ();\r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item(i).getNodeType () == Node.ELEMENT_NODE) {\r\n Element fid = (Element) children.item (i);\r\n if (!fid.getLocalName().equals (\"FeatureId\"))\r\n throw new FilterConstructionException (\"Unexpected Element encountered: \" + fid.getLocalName());\r\n fFilter.addFeatureId (FeatureId.buildFromDOM (fid));\r\n }\r\n }\r\n filter = fFilter;\r\n }\r\n else {\r\n // must be a ComplexFilter\r\n children = element.getChildNodes ();\r\n boolean justOne = false;\r\n for (int i = 0; i < children.getLength (); i++) {\r\n if (children.item(i).getNodeType () == Node.ELEMENT_NODE) {\r\n Element operator = (Element) children.item (i);\r\n if (justOne)\r\n throw new FilterConstructionException (\"Unexpected element encountered: \" + operator.getLocalName());\r\n ComplexFilter cFilter = new ComplexFilter (AbstractOperation.buildFromDOM (operator));\r\n filter = cFilter;\r\n justOne = true;\r\n }\r\n }\r\n }\r\n return filter;\r\n }", "static <T> Function<T, T> compose(Function<T, T>... functions) {\n return compose(Stream.of(functions));\n }", "Parameters genParamatersFromFilters(TableFields tableFields, String filters);", "public List<String> build()\n {\n return filters;\n }", "public PipelineFilter()\n {\n }", "public abstract Filter<T> filter();", "public FileFilter(FieldFilter[] fieldFilters) {\n this.filterExpression = makeExpression(fieldFilters);\n }", "public Map<String, Object> getFilters() {\n if (filters == null) {\n filters = new HashMap<String, Object>();\n }\n \n return filters;\n }", "public IntentFilter createFilter()\n {\n IntentFilter filter = new IntentFilter();\n filter.addAction(UPDATE_TIME);\n\n return filter;\n }", "public Dataset calculateFluxVsEnergyForAllFilters(String parentFolder, double wigglerGap, double s1HGap, Map<String, String> filters) throws IllegalArgumentException, IOException {\n\n\t\t// Load wiggler power\n\t\tFile wigglerFile = getEnergyFieldFile(parentFolder, wigglerGap, s1HGap);\n\t\tDataset power = loadDatasetFromFile(wigglerFile);\n\n\t\t// Store the X-axis (energy) values\n\t\tint numVals = power.getShape()[0];\n\t\tDataset xvals = power.getSlice(new int[] {0,0}, new int[] {numVals, 1}, null);\n\n\t\t// Apply Be filter to wiggler power\n\t\tFile beFilterFile = new File(parentFolder, BE_FILTER_FILE_NAME);\n\t\tDataset transmission = loadDatasetFromFile(beFilterFile);\n\n\t\t// Adjust the transmission if filter thickness is not 0.3mm\n\t\tif (Math.abs(BE_FILTER_THICKNESS_MM - 0.3) > 1e-4) {\n\t\t\tadjustTransmission(transmission, 0.3, BE_FILTER_THICKNESS_MM);\n\t\t}\n\n\t\ttransmission = Maths.multiply(power, transmission);\n\t\t// Apply attenuators and mirrors to the transmission\n\n\t\tfor (Entry<String, String> filter : filters.entrySet()) {\n\t\t\tlogger.info(\"scannable = {}, position = {}\", filter.getKey(), filter.getValue());\n\t\t\tif (Mirrors.INSTANCE.isPyroFilter(filter.getValue())) {\n\t\t\t\tDataset cPyroTransmission = loadDatasetFromFile(new File(parentFolder, C_PYRO_FILTER_FILE_NAME));\n\t\t\t\tdouble filterThickness = Mirrors.INSTANCE.getThickness(filter.getValue());\n\t\t\t\tadjustTransmission(cPyroTransmission, C_PYRO_FILTER_THICKNESS_MM, filterThickness);\n\t\t\t\ttransmission = Maths.multiply(transmission, cPyroTransmission);\n\t\t\t} else {\n\t\t\t\tString dataFileName = Mirrors.INSTANCE.getDataFileName(filter.getKey(), filter.getValue(), me2PitchAngle);\n\t\t\t\tif (!dataFileName.isEmpty()) {\n\t\t\t\t\tFile file = new File(parentFolder, dataFileName);\n\t\t\t\t\tDataset filterTransmission = loadDatasetFromFile(file);\n\t\t\t\t\ttransmission = Maths.multiply(transmission, filterTransmission);\n\n\t\t\t\t\tif (ScannableSetup.ME2_STRIPE.getScannableName().equals(filter.getKey())) {\n\t\t\t\t\t\ttransmission = Maths.multiply(transmission, filterTransmission);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Set the energy values (1st column) back to the original non-multiplied values\n\t\ttransmission.setSlice(xvals, new int[] {0,0}, new int[] {numVals, 1}, null);\n\t\treturn transmission;\n\t}", "public Iterator<Filter> getFilters() {\n final Filter filter = privateConfig.loggerConfig.getFilter();\n if (filter == null) {\n return Collections.emptyIterator();\n } else if (filter instanceof CompositeFilter) {\n return ((CompositeFilter) filter).iterator();\n } else {\n final List<Filter> filters = new ArrayList<>();\n filters.add(filter);\n return filters.iterator();\n }\n }", "public void filter(List<String> filters){\n filteredList.clear();\n\n if(filters == null || filters.size() == 0 || filters.get(0).toLowerCase().equals(\"NONE\")){\n filteredList = new ArrayList<>(sensorList);\n }\n\n for(int i=0; i<sensorList.size(); i++) {\n for (int j = 0; j < filters.size(); j++) {\n if(!filteredList.contains(sensorList.get(i))) {\n if (sensorList.get(i).getSensor_Type().equals(filters.get(j))) {\n filteredList.add(sensorList.get(i));\n }\n if (filters.get(j).equals(\"Heartbeat=0\")) {\n if (sensorList.get(i).getSensor_Type().equals(\"HeartRate\") && sensorList.get(i).getSensor_Val() == 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Tripped Vibration Sensor\")) {\n if (sensorList.get(i).getSensor_Type().equals(\"Vibration\") && sensorList.get(i).getSensor_Val() > 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Health=Service\")) {\n if (sensorList.get(i).getSensorHealth().equals(\"Service\")) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Health=EOL\")) {\n if (sensorList.get(i).getSensorHealth().equals(\"EOL\")) {\n filteredList.add(sensorList.get(i));\n }\n }\n if (filters.get(j).equals(\"Dead Battery\")) {\n if (sensorList.get(i).getBattery() == 0) {\n filteredList.add(sensorList.get(i));\n }\n }\n }\n }\n }\n filteredListForSearch.clear();\n filteredListForSearch.addAll(filteredList);\n removeDuplicates();\n notifyDataSetChanged();\n }", "public Filters() {\n }", "public List<Filter> getFilters() {\n List<Filter> filters = new ArrayList<>();\n JsonArray filterInfos = definition.getArray(FILTERS);\n if (filterInfos == null) {\n return filters;\n }\n\n for (Object filterInfo : filterInfos) {\n try {\n filters.add(Serializer.<Filter>deserialize((JsonObject) filterInfo));\n }\n catch (SerializationException e) {\n continue;\n }\n }\n return filters;\n }", "public static PieceFilter parse(String expression) {\n if (expression == null\n || expression.length() == 0) {\n return NULL_FILTER;\n }\n String[] s = OR.split(expression);\n PieceFilter f = null;\n if (s.length > 1) {\n f = parse(s[0]);\n for (int i = 1; i < s.length; ++i) {\n f = new BooleanOrPieceFilter(f, parse(s[i]));\n }\n }\n else {\n s = AND.split(expression);\n if (s.length > 1) {\n f = parse(s[0]);\n for (int i = 1; i < s.length; ++i) {\n f = new BooleanAndPieceFilter(f, parse(s[i]));\n }\n }\n else {\n for (int i = 0; i < CONDITIONS.length && f == null; i++) {\n if (expression.indexOf(CONDITIONS[i].pattern()) >= 0) {\n s = CONDITIONS[i].split(expression);\n String name = \"\";\n String value = \"\";\n if (s.length > 0) {\n name = s[0].trim();\n if (s.length > 1) {\n value = s[1].trim();\n }\n switch (i) {\n case 0:\n f = new NE(name, value);\n break;\n case 1:\n f = new LE(name, value);\n break;\n case 2:\n f = new GE(name, value);\n break;\n case 3:\n f = new GT(name, value);\n break;\n case 4:\n f = new LT(name, value);\n break;\n case 5:\n f = new MATCH(name, value);\n break;\n case 6:\n f = new EQ(name, value);\n break;\n }\n }\n break;\n }\n }\n if (f == null) {\n f = NULL_FILTER;\n }\n }\n }\n return f;\n }", "@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }", "protected IUIFilterable createFilterable() {\n \t\treturn new UIFilterable();\n \t}", "private static void replaceAppliedFilters(String[] serializedFilters, FilterPanel filterPanel) {\n filterPanel.removeAllAppliedFilters();\n for (String serialFilter : serializedFilters) {\n AbstractFilter filter = ObjectSerializer.unserializeFilter(serialFilter);\n if (filter != null) {\n filterPanel.addAppliedFilter(filter);\n }\n }\n }", "private static <R, I, T> SerializableFunction<R, T> compose(\n SerializableFunction<R, I> f1, SerializableFunction<I, T> f2) {\n return r -> f2.apply(f1.apply(r));\n }", "public void setFilters(List<COSName> filters)\n {\n stream.setItem(COSName.FILTER, new COSArray(filters));\n }", "public Filter getFilter(final boolean isHistory) {\n\t\tisHistory_global = isHistory;\n\t\tFilter filter = new Filter() {\n\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tprotected void publishResults(CharSequence constraint,\n\t\t\t\t\tFilterResults results) {\n\n\t\t\t\tbookingsList = (List<Bookings>) results.values;\n\t\t\t\tnotifyDataSetChanged();\n\t\t\t\temptyviewHandler.sendEmptyMessage(0);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected FilterResults performFiltering(CharSequence constraint) {\n\n\t\t\t\tFilterResults results = new FilterResults();\n\t\t\t\tfilteredBookingsList = new ArrayList<Bookings>();\n\n\t\t\t\tif (constraint == null || constraint.length() == 0) {\n\t\t\t\t\tresults.count = bookingsList.size();\n\t\t\t\t\tresults.values = bookingsList;\n\t\t\t\t} else {\n\t\t\t\t\tconstraint = constraint.toString().toLowerCase();\n\t\t\t\t\tfor (int i = 0; i < bookingsList.size(); i++) {\n\n\t\t\t\t\t\tif (isHistory) {\n\t\t\t\t\t\t\tif (bookingsList.get(i).getCompletedAt().equals(\"\")\n\t\t\t\t\t\t\t\t\t|| bookingsList.get(i).getStatus()\n\t\t\t\t\t\t\t\t\t\t\t.get(\"currentStatus\").toString()\n\t\t\t\t\t\t\t\t\t\t\t.equals(\"\")) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString pickupAddress, dropoffAddress;\n\t\t\t\t\t\tpickupAddress = bookingsList.get(i).getPickupLocation()\n\t\t\t\t\t\t\t\t.getAddressLine1().toString();\n\n\t\t\t\t\t\tdropoffAddress = bookingsList.get(i).getDropLocation()\n\t\t\t\t\t\t\t\t.getAddressLine1().toString();\n\n\t\t\t\t\t\tif (pickupAddress.toLowerCase().contains(\n\t\t\t\t\t\t\t\tconstraint.toString())\n\t\t\t\t\t\t\t\t|| dropoffAddress.toLowerCase().contains(\n\t\t\t\t\t\t\t\t\t\tconstraint.toString())) {\n\t\t\t\t\t\t\tfilteredBookingsList.add(bookingsList.get(i));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tresults.count = filteredBookingsList.size();\n\t\t\t\t\tresults.values = filteredBookingsList;\n\n\t\t\t\t}\n\n\t\t\t\treturn results;\n\t\t\t}\n\t\t};\n\n\t\treturn filter;\n\t}", "public Function<Config, ConfigFilter> build() {\n return (c) -> new ValueResolvingFilter(failOnMissingReference);\n }", "FeatureHolder filter(FeatureFilter filter);", "public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }", "com.google.monitoring.dashboard.v1.DashboardFilterOrBuilder getDashboardFiltersOrBuilder(\n int index);", "@NotNull\r\n\t@Override\r\n\tpublic ArrayStack initFilters(@Nullable ArrayStack filters, @NotNull Locale locale) throws FlexPayException {\r\n\r\n\t\tif (filters == null) {\r\n\t\t\tfilters = new ArrayStack();\r\n\t\t}\r\n\r\n\t\tBuildingsFilter parentFilter = filters.isEmpty() ? null : (BuildingsFilter) filters.pop();\r\n\r\n\t\t// check if a districts filter present\r\n\t\tif (filters.size() > 1 && filters.peek(1) instanceof DistrictFilter) {\r\n\t\t\tPrimaryKeyFilter<?> streetFilter = (PrimaryKeyFilter<?>) filters.pop();\r\n\r\n\t\t\tfilters = districtParentService.initFilters(filters, locale);\r\n\t\t\tDistrictFilter districtFilter = (DistrictFilter) filters.pop();\r\n\r\n\t\t\tfilters.push(streetFilter);\r\n\t\t\tfilters = parentService.initFilters(filters, locale);\r\n\t\t\tstreetFilter = (PrimaryKeyFilter<?>) filters.pop();\r\n\r\n\t\t\tfilters.push(districtFilter);\r\n\t\t\tfilters.push(streetFilter);\r\n\r\n\t\t\t// init filter\r\n\t\t\tparentFilter = initFilter(parentFilter, streetFilter,\r\n\t\t\t\t\tdistrictFilter);\r\n\t\t\tfilters.push(parentFilter);\r\n\t\t} else {\r\n\t\t\tfilters = parentService.initFilters(filters, locale);\r\n\t\t\tPrimaryKeyFilter<?> forefatherFilter = (PrimaryKeyFilter<?>) filters.peek();\r\n\r\n\t\t\t// init filter\r\n\t\t\tparentFilter = initFilter(parentFilter, forefatherFilter, locale);\r\n\t\t\tfilters.push(parentFilter);\r\n\t\t}\r\n\r\n\t\treturn filters;\r\n\t}", "List<String> getFilters();", "public static <L, R, G, H, T> BinaryCompositeBinaryFunction<L, R, T> function(\n BinaryFunction<? super G, ? super H, ? extends T> f, BinaryFunction<? super L, ? super R, ? extends G> g,\n BinaryFunction<? super L, ? super R, ? extends H> h) {\n return new BinaryCompositeBinaryFunction<L, R, T>(f, g, h);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Filter> getFilters(AgentContext ctx) {\n\t\tString filtrs = ConfigurationManager.getProperty(Agent.getPropertyName(AGENT_GROUP_NAME, \"list\"));\n\t\tif (filtrs == null) \n {\n filtrs = DEFAULT_FILTERS;\n log.info(LogManager.getHeader(null, \"Filters is null!!!\", null));\n }\n else\n log.info(LogManager.getHeader(null, \"Filters is NOT null!!!\", null));\n\t\tList<String> filters = Arrays.asList(filtrs.split(\",\"));\n\t\tList<Filter> list = new ArrayList<Filter>();\n\t\tfor (String string : filters) {\n\t\t\ttry {\n\t\t\t log.info(LogManager.getHeader(null,\"Get Filters #\",string));\n Class cls = Class.forName(string.trim());\n\t\t\t\tObject obj = cls.newInstance();\n\t\t\t\tif (obj instanceof Filter) {\n\t\t\t\t\tFilter m = (Filter) obj;\n\t\t\t\t\tm.setContext(ctx);\n\t\t\t\t\tlist.add(m);\n\t\t\t\t}\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n \"Class \"+string.trim()+\" not found\"),e);\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n\t\t\t\t\t\t\"Impossible to create instance of \"+string.trim()),e);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.info(LogManager.getHeader(null, \"oaidriver_error\",\n\t\t\t\t\t\t\"Class \"+string.trim()+\" doesn't have empty constructor\"),e);\n\t\t\t}\n\t\t}\n\t\treturn list;\n }", "Map<String, String> getFilters();", "public void addFilterToCreator(ViewerFilter filter);", "WithCreate withFilter(EventChannelFilter filter);", "private BandPassFilter constructBPF(float r) {\n float width = 0.20f/r;\n BandPassFilter bpf = new BandPassFilter(0.0,0.5/r,width,0.01);\n return bpf;\n }", "public Filter getStandardOrFilter(String filterText, String[] caseInsensitivePropertyNames, String[] otherPropertyNames) {\n\t\tif (StringUtils.isBlank(filterText)) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] filterTextElements = StringUtils.split(filterText, ' ');\n\t\tOr[] ors = new Or[filterTextElements.length];\n\t\tfor (int f = 0; f < filterTextElements.length; f++) {\n\t\t\tLike[] likes = new Like[caseInsensitivePropertyNames.length + otherPropertyNames.length];\n\t\t\tfor (int l = 0; l < likes.length; l++) {\n\t\t\t\tif (l < caseInsensitivePropertyNames.length) {\n\t\t\t\t\tlikes[l] = new Like(caseInsensitivePropertyNames[l], filterTextElements[f], false);\n\t\t\t\t} else {\n\t\t\t\t\t// Note: for non-string properties we can't specify case-insensitive filtering (causes error)\n\t\t\t\t\tlikes[l] = new Like(otherPropertyNames[l-caseInsensitivePropertyNames.length], filterTextElements[f]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tors[f] = new Or(likes);\n\t\t}\n\t\tif (ors.length == 1) {\n\t\t\treturn ors[0];\n\t\t} else {\n\t\t\treturn new And(ors);\n\t\t}\n\t}", "List<List<String>> getFilters(String resource);", "Composite() {\n\n\t}", "static ObjectInputFilter createFilter(String param2String, boolean param2Boolean) {\n/* 448 */ Global global = new Global(param2String, param2Boolean);\n/* 449 */ return global.isEmpty() ? null : global;\n/* */ }" ]
[ "0.7126156", "0.64891404", "0.6298864", "0.6291239", "0.62622184", "0.6203915", "0.62026435", "0.6155188", "0.5919843", "0.58166164", "0.5731913", "0.5699675", "0.56988573", "0.5640381", "0.55985683", "0.55829114", "0.54747164", "0.54741836", "0.54738337", "0.5462453", "0.5444792", "0.54350746", "0.5367466", "0.5364908", "0.5353007", "0.5308944", "0.5282604", "0.52634263", "0.52008957", "0.52002347", "0.5196651", "0.5190596", "0.51856446", "0.51836944", "0.51751184", "0.51349163", "0.5112242", "0.5088878", "0.5077479", "0.50718933", "0.50597626", "0.5054018", "0.5010643", "0.50087994", "0.5005481", "0.49621812", "0.4962103", "0.4949677", "0.4946718", "0.4946183", "0.49394357", "0.4929079", "0.49227297", "0.49198362", "0.49146333", "0.49080175", "0.49076363", "0.4899041", "0.48981985", "0.4891676", "0.48901182", "0.48838365", "0.48830277", "0.48790416", "0.48754647", "0.48674327", "0.4863043", "0.48586372", "0.48524097", "0.48522902", "0.48437464", "0.48409998", "0.4833745", "0.4829366", "0.4816675", "0.4807454", "0.4793786", "0.47918457", "0.47895283", "0.47686014", "0.47639078", "0.47501403", "0.47448617", "0.47347862", "0.4734201", "0.47175294", "0.47116572", "0.47078255", "0.47002", "0.46893233", "0.46733308", "0.46721655", "0.46650305", "0.46637106", "0.4649008", "0.46488562", "0.46439654", "0.46325547", "0.46315888", "0.4630268" ]
0.7658234
0
Notifies the Engine that a phone call was activated on a calling device.
final protected void callActivated( String callId ) { callActivated( getNativeObject(), callId ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }", "@Override\n\tpublic void Call() {\n\t\tSystem.out.println( phoneName+\"'s Call.\");\n\t}", "@Override\n public void onCallEstablished(SipAudioCall call) {\n Toast.makeText(CallActivity.this, \"onCallEstablished\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onCallEstablished: \");\n try {\n call.answerCall(30);\n } catch (Exception e) {\n e.printStackTrace();\n }\n call.startAudio();\n call.setSpeakerMode(true);\n // call.toggleMute();\n updateStatus(call);\n updateLayout(CONNECTED);\n }", "public void onCallStateChanged(Context context, int state, String number) {\n if (lastState == state) {\n //No change, debounce extras\n return;\n }\n switch (state) {\n case TelephonyManager.CALL_STATE_RINGING:\n start_time = System.currentTimeMillis();\n String sub = number.replaceAll(\" \", \"\");\n String sub1 = sub.replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\-\", \"\");\n mynumber = sub1.substring(Math.max(sub1.length() - 10, 0));\n//contactExists(context, mynumber) ||\n if (contactExistsinApp(context, mynumber)) {\n\n rejectCall(context);\n\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else if (!contactExists(context, mynumber)) {\n rejectCall(context);\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else {\n Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n }\n\n// Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n //There is incoming call\n break;\n case TelephonyManager.CALL_STATE_OFFHOOK:\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n Toast.makeText(context, \"Incoming Detect\" + mynumber, Toast.LENGTH_SHORT).show();\n\n }\n if (lastState != TelephonyManager.CALL_STATE_RINGING) {\n }\n\n break;\n case TelephonyManager.CALL_STATE_IDLE:\n //Went to idle- this is the end of a call. What type depends on previous state(s)\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n //Ring but no pickup- a miss\n\n }\n }\n lastState = state;\n }", "public void onCallAdded(android.telecom.Call call) {\n // Since a call has been added we are no longer waiting for Telecom to send us a\n // call.\n setBoundAndWaitingForOutgoingCall(false, null);\n call.registerCallback(mCallCallback);\n }", "private void Call()\n {\n Intent i = new Intent();\n i.setAction(Intent.ACTION_DIAL);\n i.setData(Uri.parse(\"tel:\" + number[index]));\n startActivity(i);\n Toast.makeText(this, \"Option call Chosen...\", Toast.LENGTH_LONG).show();\n }", "@Test\n public void testOnCallAddedRinging() throws Exception {\n BluetoothCall ringingCall = createRingingCall();\n when(ringingCall.getHandle()).thenReturn(Uri.parse(\"tel:555000\"));\n\n mBluetoothInCallService.onCallAdded(ringingCall);\n\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(0), eq(0), eq(CALL_STATE_INCOMING),\n eq(\"555000\"), eq(PhoneNumberUtils.TOA_Unknown), nullable(String.class));\n }", "@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }", "@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "@Override\n public void onDialPhone(@Nullable String phone) {\n if (phone == null) return;\n Log.d(TAG, \"onDialPhone: Phone:\" + phone);\n\n //ACTION_DIAL does not call directly\n //ACTION_CALL will call directly and app has to declare permission in manifest\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + phone));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "private void makePhoneCall(){\n if(ContextCompat.checkSelfPermission(NotificationHelper.this, android.Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n Toast.makeText(this, \"Phone call permission not given\", Toast.LENGTH_SHORT).show();\n // ActivityCompat.requestPermissions(Alarm2Activity.this, new String[] {android.Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n String number = \"+213658305662\";\n String phoneNum = \"tel:\" + number;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(phoneNum)));\n }\n }", "public void incomingCallReceived(CallEvent event)\n {\n CallShortcut.addCall(event.getSourceCall(), this.incomingCalls);\n }", "@Override\n\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\tswitch (state) {\n\t\t\t/* 取得手机是待机状态 */\n\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_IDLE);\n\n\t\t\t\ttry {\n\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t/* 设置手机为待机时响铃为正常模式 */\n\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n\t\t\t\t\t\taudioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为通话中 */\n\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_OFFHOOK);\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为来电 */\n\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t/* 显示来电信息 */\n\t\t\t\tstateTips.setText(getResources().getText(\n\t\t\t\t\t\tR.string.str_CALL_STATE_RINGING)\n\t\t\t\t\t\t+ incomingNumber);\n Log.i(\"电话\",phoneView.getText().toString());\n\t\t\t\t/* 判断与输入电话是否为一样,一样则转为静音模式 */\n\t\t\t\tif (incomingNumber.equals(phoneView.getText().toString())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t\t/* 设置响铃模式为静音 */\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.str_msg),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\n\t\t\tetPhone.setOnKeyListener(new EditText.OnKeyListener() {\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t/* 同步显示TextView */\n\t\t\t\t\tphoneView.setText(etPhone.getText());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "@Override\n public void onIncomingCall(Call call) {\n InCallState newState = startOrFinishUi(InCallState.INCOMING);\n InCallState oldState = mInCallState;\n\n Log.i(this, \"Phone switching state: \" + oldState + \" -> \" + newState);\n mInCallState = newState;\n\n for (IncomingCallListener listener : mIncomingCallListeners) {\n listener.onIncomingCall(oldState, mInCallState, call);\n }\n }", "@Override\n public void notifyHasPhone(boolean hasPhone) {\n }", "@Override\n public void onCallStateChanged(int state, String incomingNumber) {\n // Log.i(TAG, \"PhoneStateListener.onCallStateChanged: \"\n // + state + \", '\" + incomingNumber + \"'\");\n if ((state == TelephonyManager.CALL_STATE_IDLE) && dialpadChooserVisible()) {\n // Log.i(TAG, \"Call ended with dialpad chooser visible! Taking it down...\");\n // Note there's a race condition in the UI here: the\n // dialpad chooser could conceivably disappear (on its\n // own) at the exact moment the user was trying to select\n // one of the choices, which would be confusing. (But at\n // least that's better than leaving the dialpad chooser\n // onscreen, but useless...)\n showDialpadChooser(phoneIsInUse());\n }\n }", "public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "public void onCallStateChanged (int state, String incomingNumber) {\n\t\t\n\t\ttry {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tswitch (state) {\t\t\t\t\t\n\t\t\t\n\t\t\t\t//-------------\t\tCALL_STATE_IDLE\t\t----------------------//\n\t\t\t\t//Device call state: No activity. \n\t\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tprocessCallStateIdle();\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//-----------------\t\tCALL_STATE_OFFHOOK\t\t--------------//\n\t\t\t\t//Device call state: Off-hook. At least one call exists that is \n\t\t\t\t//dialing, active, or on hold, and no calls are ringing or waiting. \n\t\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\t\t\t\t\t\n\t\t\t\t\tprocessCallStateOffhook();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//-----------------\t\tCALL_STATE_RINGING\t\t--------------//\n\t\t\t\t//Device call state: Ringing. A new call arrived and is ringing \n\t\t\t\t//or waiting. In the latter case, another call is already active. \n\t\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\t\t\t\t\t\t\t\n\t\t\t\t\tprocessCallStateRinging(incomingNumber);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\t\t\t\n\t\t}\n\t}", "public void showCallDialog() {\n new AlertDialog.Builder(this)\n .setTitle(getString(R.string.ms_callDIalog_call_ask)).setMessage(getString(R.string.ms_callDialog_call_contact) + \" \" + user.getNom() + \" \" + user.getPrenom() + \" \" + getString(R.string.ms_callDialog_call_end))\n .setPositiveButton(getString(R.string.ms_callDialog_call), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(getString(R.string.ms_callDialog_phone) + \" \" + user.getTelephone()));\n try {\n startActivity(intent);\n }\n catch(SecurityException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(getString(R.string.ms_callDialog_stop), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }", "@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(PhoneDialerActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n // cerem permisiuni de CALL\n ActivityCompat.requestPermissions(\n PhoneDialerActivity.this,\n new String[]{Manifest.permission.CALL_PHONE},\n Constants.PERMISSION_REQUEST_CALL_PHONE);\n // daca avem permisiunea de a efectua CALL\n } else {\n // generam o intentie pentru CALL\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumberEditText.getText().toString()));\n // pornim activitatea de CALL\n startActivity(intent);\n }\n }", "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL);\r\n phoneIntent.setData(Uri.parse(\"tel:\"+phoneNumber));\r\n startActivity(Intent.createChooser(phoneIntent, \"Calling number...\"));\r\n \t\t\t}", "public void takeEmergencyCallAction() {\n if (PhoneUtils.isInCall(this.mContext)) {\n PhoneUtils.resumeCall(this.mContext);\n return;\n }\n KeyguardUpdateMonitor.getInstance(this.mContext).reportEmergencyCallAction(true);\n this.mContext.startActivityAsUser(INTENT_EMERGENCY_DIAL, ActivityOptions.makeCustomAnimation(this.mContext, 0, 0).toBundle(), new UserHandle(KeyguardUpdateMonitor.getCurrentUser()));\n }", "@Override\n public void onCallStateChanged(int state, String incomingNumber) {\n // Log.i(TAG, \"PhoneStateListener.onCallStateChanged: \"\n // + state + \", '\" + incomingNumber + \"'\");\n if ((state == TelephonyManager.CALL_STATE_IDLE) && dialpadChooserVisible()) {\n // Log.i(TAG, \"Call ended with dialpad chooser visible! Taking it down...\");\n // Note there's a race condition in the UI here: the\n // dialpad chooser could conceivably disappear (on its\n // own) at the exact moment the user was trying to select\n // one of the choices, which would be confusing. (But at\n // least that's better than leaving the dialpad chooser\n // onscreen, but useless...)\n showDialpadChooser(false);\n }\n }", "@Override\n public void addPhoneCall(PhoneCall phoneCall) {\n this.calls.add(phoneCall);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle myBundle = intent.getExtras();\n if (myBundle != null) {\n System.out.println(\"--------Not null-----\");\n try {\n System.out.println(\"BlockCallReceiver:\"+intent.getAction());\n if (intent.getAction().equals(\"android.intent.action.PHONE_STATE\")) {\n String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);\n System.out.println(\"--------in state-----\");\n if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {\n // Incoming call\n String incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);\n System.out.println(\"--------------my number---------\" + incomingNumber);\n\n List<Plan> list = GetIfResult.getBoolean(ApplicationController.getIfPlanDB(Plan.IF_CALL), incomingNumber);\n if (list.size() == 0) return;\n for (int i = 0; i < list.size(); i++) {\n GetIfResult.doitResult(list.get(i).resultCode, list.get(i).resultValue, context);\n }\n\n if ((System.currentTimeMillis() - ApplicationController.getEndcall() > 5000)\n || (ApplicationController.getEndcall() == -1)) return;\n\n try {\n // this is main section of the code,. could also be use for particular number.\n // Get the boring old TelephonyManager.\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n // Get the getITelephony() method\n Class<?> classTelephony = Class.forName(telephonyManager.getClass().getName());\n Method methodGetITelephony = classTelephony.getDeclaredMethod(\"getITelephony\");\n\n // Ignore that the method is supposed to be private\n methodGetITelephony.setAccessible(true);\n\n // Invoke getITelephony() to get the ITelephony interface\n Object telephonyInterface = methodGetITelephony.invoke(telephonyManager);\n\n // Get the endCall method from ITelephony\n Class<?> telephonyInterfaceClass = Class.forName(telephonyInterface.getClass().getName());\n Method methodEndCall = telephonyInterfaceClass.getDeclaredMethod(\"endCall\");\n\n // Invoke endCall()\n methodEndCall.invoke(telephonyInterface);\n\n SendNotification.sendNotification(context, \"전화가 자동 거절되었습니다.\", incomingNumber);\n } catch (Exception e) {\n //am.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n if (mode == -1) {\n mode = notificationManager.getCurrentInterruptionFilter();\n }\n notificationManager.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE);\n } else {\n AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n if (mode == -1) {\n mode = mAudioManager.getRingerMode();\n }\n mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); //무음\n }\n //am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n }finally {\n isDoing = true;\n }\n\n //}\n\n } else if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)) {\n Log.d(\"EXTRA_STATE_IDLE\", mode + \"/\"+isDoing);\n if (isDoing) {\n isDoing = false;\n if (mode == -1) return;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n assert notificationManager != null;\n notificationManager.setInterruptionFilter(mode);\n mode = -1;\n\n } else {\n AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n assert mAudioManager != null;\n mAudioManager.setRingerMode(mode);\n mode = -1;\n }\n }\n Log.e(\"EXTRA_STATE_IDLE\", mode + \"\");\n }\n }\n } catch (Exception ex) { // Many things can go wrong with reflection calls\n ex.printStackTrace();\n }\n }\n }", "private void modifyCallFunc(String number) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + number));\n startActivity(intent);\n }", "public void onCallBellPressed(MessageReason reason);", "public void makeCall(Context context){\n dbAdapter = new ContactsDbAdapter(context);\n dbAdapter.open();\n\n Cursor contactsCursor= dbAdapter.fetchAllContacts();\n if (contactsCursor.getCount()!=0){\n contactsCursor.moveToFirst();\n\n System.out.println(\"NOMBRE: \" + contactsCursor.getString(1));\n System.out.println(\"TELEFONO: \" + contactsCursor.getString(2));\n phoneNumber=contactsCursor.getString(2);\n\n try{\n\n System.out.println(\"ey\");\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED){\n\n System.out.println(\"No hay permiso de llamada\");\n\n }\n\n Intent intentLlamada = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"+phoneNumber));\n intentLlamada.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentLlamada);\n\n } catch (Exception e){\n System.out.println(\"err\");\n e.printStackTrace();\n }\n\n }\n\n\n\n }", "public void onPressNumber(View view) {\r\n CallHelper.callNumber(this, event.contactNumber);\r\n }", "private void acceptCall() {\n\t\ttry {\n\t\t\tupdateText(\"Pratar med \", call.getPeerProfile().getUserName());\n\t\t\tcall.answerCall(30);\n\t\t\tcall.startAudio();\n\t\t\tif (call.isMuted()) {\n\t\t\t\tcall.toggleMute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (call != null) {\n\t\t\t\tcall.close();\n\t\t\t}\n\n\t\t}\n\t}", "@OnClick(R.id.converter_organization_phone_iv)\n public void callToOrg() {\n if (ActivityCompat.checkSelfPermission(CashApplication.getContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n new DialogInfoCall(mContext);\n } else {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" +\n mMainListForActions.get(mPositionOfCurInList).getOrganizations().get(mPositionOfOrgInList).getPhone()));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }", "public static void openCallIntent(Context context, String phone) {\n if (Utils.isNullOrEmpty(phone)) {\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n context.startActivity(intent);\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1407\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1091\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "public static int placeCall(Context context, Phone phone, String number, Uri contactRef,\n boolean isEmergencyCall, RawGatewayInfo gatewayInfo, CallGatewayManager callGateway) {\n final Uri gatewayUri = gatewayInfo.gatewayUri;\n\n if (VDBG) {\n log(\"placeCall()... number: '\" + number + \"'\"\n + \", GW:'\" + gatewayUri + \"'\"\n + \", contactRef:\" + contactRef\n + \", isEmergencyCall: \" + isEmergencyCall);\n } else {\n log(\"placeCall()... number: \" + toLogSafePhoneNumber(number)\n + \", GW: \" + (gatewayUri != null ? \"non-null\" : \"null\")\n + \", emergency? \" + isEmergencyCall);\n }\n final PhoneGlobals app = PhoneGlobals.getInstance();\n\n boolean useGateway = false;\n if (null != gatewayUri &&\n !isEmergencyCall &&\n PhoneUtils.isRoutableViaGateway(number)) { // Filter out MMI, OTA and other codes.\n useGateway = true;\n }\n\n int status = CALL_STATUS_DIALED;\n Connection connection;\n String numberToDial;\n if (useGateway) {\n // TODO: 'tel' should be a constant defined in framework base\n // somewhere (it is in webkit.)\n if (null == gatewayUri || !PhoneAccount.SCHEME_TEL.equals(gatewayUri.getScheme())) {\n Log.e(LOG_TAG, \"Unsupported URL:\" + gatewayUri);\n return CALL_STATUS_FAILED;\n }\n\n // We can use getSchemeSpecificPart because we don't allow #\n // in the gateway numbers (treated a fragment delim.) However\n // if we allow more complex gateway numbers sequence (with\n // passwords or whatnot) that use #, this may break.\n // TODO: Need to support MMI codes.\n numberToDial = gatewayUri.getSchemeSpecificPart();\n } else {\n numberToDial = number;\n }\n\n try {\n connection = app.mCM.dial(phone, numberToDial, VideoProfile.STATE_AUDIO_ONLY);\n } catch (CallStateException ex) {\n // CallStateException means a new outgoing call is not currently\n // possible: either no more call slots exist, or there's another\n // call already in the process of dialing or ringing.\n Log.w(LOG_TAG, \"Exception from app.mCM.dial()\", ex);\n return CALL_STATUS_FAILED;\n\n // Note that it's possible for CallManager.dial() to return\n // null *without* throwing an exception; that indicates that\n // we dialed an MMI (see below).\n }\n\n int phoneType = phone.getPhoneType();\n\n // On GSM phones, null is returned for MMI codes\n if (null == connection) {\n status = CALL_STATUS_FAILED;\n } else {\n if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {\n updateCdmaCallStateOnNewOutgoingCall(app, connection);\n }\n\n if (gatewayUri == null) {\n // phone.dial() succeeded: we're now in a normal phone call.\n // attach the URI to the CallerInfo Object if it is there,\n // otherwise just attach the Uri Reference.\n // if the uri does not have a \"content\" scheme, then we treat\n // it as if it does NOT have a unique reference.\n String content = context.getContentResolver().SCHEME_CONTENT;\n if ((contactRef != null) && (contactRef.getScheme().equals(content))) {\n Object userDataObject = connection.getUserData();\n if (userDataObject == null) {\n connection.setUserData(contactRef);\n } else {\n // TODO: This branch is dead code, we have\n // just created the connection which has\n // no user data (null) by default.\n if (userDataObject instanceof CallerInfo) {\n ((CallerInfo) userDataObject).contactRefUri = contactRef;\n } else {\n ((CallerInfoToken) userDataObject).currentInfo.contactRefUri =\n contactRef;\n }\n }\n }\n }\n\n startGetCallerInfo(context, connection, null, null, gatewayInfo);\n }\n\n return status;\n }", "@Test\n public void testOnCallAddedCdmaActiveHold() throws Exception {\n BluetoothCall parentCall = createActiveCall();\n final BluetoothCall foregroundCall = getMockCall();\n final BluetoothCall heldCall = createHeldCall();\n addCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE);\n removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN);\n when(parentCall.isConference()).thenReturn(true);\n List<String> childrenIds = Arrays.asList(foregroundCall.getTelecomCallId(),\n heldCall.getTelecomCallId());\n when(parentCall.getChildrenIds()).thenReturn(childrenIds);\n\n mBluetoothInCallService.onCallAdded(parentCall);\n\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(1), eq(1), eq(CALL_STATE_IDLE),\n eq(\"\"), eq(128), nullable(String.class));\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1073\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1071\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "public void addToConference(Call call);", "public void dialButtonPressed(boolean isIpCall) {\n if (isDigitsEmpty()) { // No number entered.\n if (phoneIsCdma() && phoneIsOffhook()) {\n // This is really CDMA specific. On GSM is it possible\n // to be off hook and wanted to add a 3rd party using\n // the redial feature.\n startActivity(newFlashIntent());\n } else {\n if (!TextUtils.isEmpty(mLastNumberDialed)) {\n // Recall the last number dialed.\n mDigits.setText(mLastNumberDialed);\n\n // ...and move the cursor to the end of the digits string,\n // so you'll be able to delete digits using the Delete\n // button (just as if you had typed the number manually.)\n //\n // Note we use mDigits.getText().length() here, not\n // mLastNumberDialed.length(), since the EditText widget now\n // contains a *formatted* version of mLastNumberDialed (due to\n // mTextWatcher) and its length may have changed.\n mDigits.setSelection(mDigits.getText().length());\n } else {\n // There's no \"last number dialed\" or the\n // background query is still running. There's\n // nothing useful for the Dial button to do in\n // this case. Note: with a soft dial button, this\n // can never happens since the dial button is\n // disabled under these conditons.\n playTone(ToneGenerator.TONE_PROP_NACK);\n }\n }\n } else {\n final String number = mDigits.getText().toString();\n\n // \"persist.radio.otaspdial\" is a temporary hack needed for one carrier's automated\n // test equipment.\n // TODO: clean it up.\n if (number != null\n && !TextUtils.isEmpty(mProhibitedPhoneNumberRegexp)\n && number.matches(mProhibitedPhoneNumberRegexp)\n && (SystemProperties.getInt(\"persist.radio.otaspdial\", 0) != 1)) {\n Log.i(TAG, \"The phone number is prohibited explicitly by a rule.\");\n if (getActivity() != null) {\n DialogFragment dialogFragment = ErrorDialogFragment.newInstance(\n R.string.dialog_phone_call_prohibited_title);\n dialogFragment.show(getFragmentManager(), \"phone_prohibited_dialog\");\n }\n\n // Clear the digits just in case.\n mDigits.getText().clear();\n } else {\n final Intent intent = newDialNumberIntent(number);\n if (getActivity() instanceof DialtactsActivity) {\n intent.putExtra(DialtactsActivity.EXTRA_CALL_ORIGIN,\n DialtactsActivity.CALL_ORIGIN_DIALTACTS);\n }\n\t\t if(isIpCall){\n\t\t \tintent.putExtra(IP_CALL_MODE_KEY,isIpCall) ;\n\t\t }\n startActivity(intent);\n mDigits.getText().clear(); // TODO: Fix bug 1745781\n getActivity().finish();\n }\n }\n }", "public boolean onCallAdded(Call call) {\n if (call == null) {\n HiLog.error(LOG_LABEL, \"onCallAdded fail, no call.\", new Object[0]);\n return false;\n } else if (call.getState() == 9 && this.mPendingDisconnectPreAddedCall != null) {\n HiLog.info(LOG_LABEL, \"onCallAdded, has pending disconnect call.\", new Object[0]);\n CallAppAbilityConnnectionHandler callAppAbilityConnnectionHandler = this.mHandler;\n if (callAppAbilityConnnectionHandler != null) {\n callAppAbilityConnnectionHandler.removeEvent(1001);\n }\n this.mPendingDisconnectPreAddedCall = null;\n call.disconnect();\n return true;\n } else if (!canAddCallToCallMap()) {\n return false;\n } else {\n if (isConnected()) {\n HiLog.info(LOG_LABEL, \"onCallAdded, already connectted call ability.\", new Object[0]);\n if (this.mPreAddedCall == null && this.mPendingDisconnectPreAddedCall == null) {\n HiLog.info(LOG_LABEL, \"onCallAdded, no pre added call.\", new Object[0]);\n addCallToCallMap(call);\n } else {\n if (this.mPreAddedCall == null) {\n PreAddedCall preAddedCall = this.mPendingDisconnectPreAddedCall;\n }\n processPreAddedCall(this.mPreAddedCall, call);\n this.mPreAddedCall = null;\n this.mPendingDisconnectPreAddedCall = null;\n }\n return addCall(call);\n }\n addCallToCallMap(call);\n this.mPreAddedCall = null;\n this.mPendingDisconnectPreAddedCall = null;\n connect();\n return true;\n }\n }", "private void MakeCall() {\n String number = content_txt.getText().toString();\n if (number.trim().length() > 0) {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE);\n\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(\n this,\n new String[]{Manifest.permission.CALL_PHONE},\n 123);\n } else {\n String dial = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(dial));\n startActivity(intent);\n }\n }\n }", "private void requestPermission() {\n\n ActivityCompat.requestPermissions(CalltoVendor.this, new String[]\n {\n CALL_PHONE\n }, RequestPermissionCode);\n }", "private void listenVoiceCall() {\n final String username = MyAccount.getInstance().getName();\n final String topic = String.format(\"voice/%s\", username);\n new Subscriber(topic, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n String action = message.data.toString();\n switch (action) {\n case Constants.VOICE_REQUEST:\n onReceiveVoiceRequest(message);\n break;\n\n case Constants.VOICE_ACCEPT:\n hideCallingPane();\n onReceiveVoiceAccept(message);\n break;\n\n case Constants.VOICE_REJECT:\n hideCallingPane();\n onReceiveVoiceReject(message);\n break;\n\n case Constants.VOICE_QUIT:\n onReceiveVoiceQuit(message);\n\n }\n }\n })\n .listen();\n }", "@SuppressWarnings(\"ResourceType\")\n public static void callPhoneNum(Context context, String phoneNum) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + phoneNum));\n context.startActivity(intent);\n }", "@Override\n public void onInitiateCallAttemptRequest(InitiateCallAttemptRequest initiateCallAttemptRequest) {\n\n }", "public void hangUpOngoingCall(Context context) {\n // By the time we receive this intent, we could be shut down and call list\n // could be null. Bail in those cases.\n if (mCallList == null) {\n if (mStatusBarNotifier == null) {\n // The In Call UI has crashed but the notification still stayed up. We should not\n // come to this stage.\n StatusBarNotifier.clearAllCallNotifications(context);\n }\n return;\n }\n\n Call call = mCallList.getOutgoingCall();\n if (call == null) {\n call = mCallList.getActiveOrBackgroundCall();\n }\n\n if (call != null) {\n TelecomAdapter.getInstance().disconnectCall(call.getId());\n call.setState(Call.State.DISCONNECTING);\n mCallList.onUpdate(call);\n }\n }", "public void onUaCallAccepted(UserAgent ua)\n { changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(Intent.ACTION_CALL);\n\t\t\t\tintent.setData(Uri.parse(\"tel:+8801744955241\"));\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1072\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "public boolean handleCallKey() {\n Log.v(this, \"handleCallKey\");\n\n // The green CALL button means either \"Answer\", \"Unhold\", or\n // \"Swap calls\", or can be a no-op, depending on the current state\n // of the Phone.\n\n /**\n * INCOMING CALL\n */\n final CallList calls = mCallList;\n final Call incomingCall = calls.getIncomingCall();\n Log.v(this, \"incomingCall: \" + incomingCall);\n\n // (1) Attempt to answer a call\n if (incomingCall != null) {\n TelecomAdapter.getInstance().answerCall(\n incomingCall.getId(), VideoProfile.STATE_AUDIO_ONLY);\n return true;\n }\n\n /**\n * STATE_ACTIVE CALL\n */\n final Call activeCall = calls.getActiveCall();\n if (activeCall != null) {\n // TODO: This logic is repeated from CallButtonPresenter.java. We should\n // consolidate this logic.\n final boolean canMerge = activeCall.can(\n android.telecom.Call.Details.CAPABILITY_MERGE_CONFERENCE);\n final boolean canSwap = activeCall.can(\n android.telecom.Call.Details.CAPABILITY_SWAP_CONFERENCE);\n\n Log.v(this, \"activeCall: \" + activeCall + \", canMerge: \" + canMerge +\n \", canSwap: \" + canSwap);\n\n // (2) Attempt actions on conference calls\n if (canMerge) {\n TelecomAdapter.getInstance().merge(activeCall.getId());\n return true;\n } else if (canSwap) {\n TelecomAdapter.getInstance().swap(activeCall.getId());\n return true;\n }\n }\n\n /**\n * BACKGROUND CALL\n */\n final Call heldCall = calls.getBackgroundCall();\n if (heldCall != null) {\n // We have a hold call so presumeable it will always support HOLD...but\n // there is no harm in double checking.\n final boolean canHold = heldCall.can(android.telecom.Call.Details.CAPABILITY_HOLD);\n\n Log.v(this, \"heldCall: \" + heldCall + \", canHold: \" + canHold);\n\n // (4) unhold call\n if (heldCall.getState() == Call.State.ONHOLD && canHold) {\n TelecomAdapter.getInstance().unholdCall(heldCall.getId());\n return true;\n }\n }\n\n // Always consume hard keys\n return true;\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1031\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public boolean onCall() {\n return true;\n }", "private void handleContactInfoUpdated() {\n Call call = getCallToShow(CallList.getInstance());\n if (call != null) {\n showNotification(call);\n }\n }", "private void processCallStateRinging (String incomingNumber) {\n\t\t\n\t\ttry {\n\t\t\t\t\t\t\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"RINGING\");\t\t\t\t\t\n\t\t\t\n\t\t\t/* Put the device in silent mode if the incoming number is\n\t\t\t * from contact banned and in schedule interval \n\t\t\t */\t\t\t\t\t\n\t\t\tif (ringerMode() != AudioManager.RINGER_MODE_SILENT && \n\t\t\t\t\tCheckSettingsOperations.checkQuiteSleepServiceState() &&\n\t\t\t\t\t!ConfigAppValues.processRingCall) {\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tConfigAppValues.processRingCall = true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Process to control the incoming call and kill it if proceed.\t\t\t\t\n\t\t\t\tConfigAppValues.getContext().startService(\n\t\t\t\t\t\tnew Intent(\n\t\t\t\t\t\t\t\tConfigAppValues.getContext(),\n\t\t\t\t\t\t\t\tSilentModeCallService.class).putExtra(\n\t\t\t\t\t\t\t\t\tConfigAppValues.INCOMING_CALL_NUMBER, \n\t\t\t\t\t\t\t\t\tincomingNumber));\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t//------------------------------------------------------------//\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (QSToast.DEBUG) QSToast.d(\n\t\t\t\t\t\tConfigAppValues.getContext().getApplicationContext(),\n\t\t\t\t\t\t\"RINGING!!!!!!!!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\n\t\t}\n\t}", "@Override\n public void onCallInformationRequestRequest(CallInformationRequestRequest arg0) {\n\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:101\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "public void addPendingCallToProxy(IBinder iBinder) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy\", new Object[0]);\n this.mRemote = iBinder;\n processLiveCallWhenServiceConnected();\n CallAudioState callAudioState = this.mPendingCallAudioState;\n if (callAudioState != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCallAudioStateChanged %{public}s\", new Object[]{callAudioState.toString()});\n onCallAudioStateChanged(this.mPendingCallAudioState);\n this.mPendingCallAudioState = null;\n }\n Boolean bool = this.mPendingCanAddCall;\n if (bool != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCanAddCallChanged %{public}s\", new Object[]{bool.toString()});\n onCanAddCallChanged(this.mPendingCanAddCall.booleanValue());\n this.mPendingCanAddCall = null;\n }\n }", "private void makeCall() {\n\t\t// send the originate action (Call)\n\t\tthis.asteriskServer.originateAsync(this.originateAction, new OriginateCallbackAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onDialing(final AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Dialing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\tCall.this.state=CallState.DIALING;\n\t\t\t\tCall.this.currentChannel = asteriskChannel.getName();\n\t\t\t\t// Make sure when there was a hangup event that it is realy hung up.\n\t\t\t\tif(Call.this.hangup)\n\t\t\t\t\tCall.this.hangup();\n\t\t\t\t// Listen for cool stuff like \"ringing\"\n\t\t\t\tasteriskChannel.addPropertyChangeListener(new PropertyChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\t\t// is the phone ringing?\n\t\t\t\t\t\tif (evt.getPropertyName().equals(\"state\") && evt.getNewValue().toString().equals(\"RINGING\")) {\n\t\t\t\t\t\t\tCall.this.log.log(Level.INFO, \"Ringing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\t\t\t\t// Schedule hangup timeout\n\t\t\t\t\t\t\tCall.this.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\t\t\t\t\tCall.this.asteriskServer.getChannelByName(Call.this.currentChannel).hangup();\n\t\t\t\t\t\t\t\t\t\t// no \"noAnswer()\" called here because a\n\t\t\t\t\t\t\t\t\t\t// onNoAnswer event will come in anyway\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, new Long(EPursuit.properties.getProperty(\"callTime\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.state=CallState.RUNNING;\n\t\t\t\tCall.this.success = true;\n\t\t\t\tCall.this.log.log(Level.INFO, \"Connection successful: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNoAnswer(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Channel not answered: \" + Call.this.currentChannel + \" \" + Call.this.destination);\n\t\t\t\tif (asteriskChannel.getHangupCause().toString().equals(\"CALL_REJECTED\")) {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onBusy(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tCall.this.log.log(Level.INFO, \"Busy: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(LiveException cause) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tif (cause.getClass().getCanonicalName().equals(\"org.asteriskjava.live.NoSuchChannelException\")) {\n\t\t\t\t\t// Called when the channel is busy... dunno why\n\t\t\t\t\tCall.this.log.log(Level.INFO, \"Channel perhabs busy. \" + Call.this.destination);\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.log.log(Level.WARNING, \"Received unknown error.\\n\" + cause + \" \" + Call.this.destination);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(this);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "@Override\n public void callUsers(String userPhone) {\n }", "@Override\n public void onCallListChange(CallList callList) {\n if (mInCallActivity != null && mInCallActivity.getCallCardFragment() != null &&\n mInCallActivity.getCallCardFragment().isAnimating()) {\n mAwaitingCallListUpdate = true;\n return;\n }\n if (callList == null) {\n return;\n }\n\n mAwaitingCallListUpdate = false;\n\n InCallState newState = getPotentialStateFromCallList(callList);\n InCallState oldState = mInCallState;\n Log.d(this, \"onCallListChange oldState= \" + oldState + \" newState=\" + newState);\n newState = startOrFinishUi(newState);\n Log.d(this, \"onCallListChange newState changed to \" + newState);\n\n // Set the new state before announcing it to the world\n Log.i(this, \"Phone switching state: \" + oldState + \" -> \" + newState);\n mInCallState = newState;\n\n // notify listeners of new state\n for (InCallStateListener listener : mListeners) {\n Log.d(this, \"Notify \" + listener + \" of state \" + mInCallState.toString());\n listener.onStateChange(oldState, mInCallState, callList);\n }\n\n if (isActivityStarted()) {\n final boolean hasCall = callList.getActiveOrBackgroundCall() != null ||\n callList.getOutgoingCall() != null;\n mInCallActivity.dismissKeyguard(hasCall);\n }\n }", "public void outgoingCallCreated(CallEvent event)\n {\n CallShortcut.addCall(event.getSourceCall(), this.answeredCalls);\n }", "public void processCallAudioStateWhenServiceConnected() {\n CallAudioState callAudioState = this.mCurrentCallAudioState;\n if (callAudioState != null) {\n HiLog.info(LOG_LABEL, \"processCallAudioStateWhenServiceConnected:onCallAudioStateChanged %{public}s\", new Object[]{callAudioState.toString()});\n onCallAudioStateChanged(this.mCurrentCallAudioState);\n }\n }", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(mContext);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "public static void verifyCallPermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.CALL_PHONE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_CALL,\n REQUEST_CALL\n );\n }\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:103\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "public void onCallClicked(View view) {\n if (mUIState == UIState.DISCONNECTED) {\n // Prior to joining the channel, ensure audio is muted.\n setAudioState(true);\n\n // Join the channel.\n String token = getString(R.string.agora_access_token);\n if (TextUtils.isEmpty(token) || TextUtils.equals(token, \"#YOUR ACCESS TOKEN#\")) {\n token = null; // default, no token\n }\n mRtcEngine.joinChannel(token, mChannelText.getEditableText().toString(), \"Extra Optional Data\", 0);\n setUIState(UIState.CONNECTED_SPLITSCREEN);\n } else {\n // Leave the channel.\n mRemoteCameraUid = 0;\n removeRemoteCamera();\n removeRemoteShare();\n mRtcEngine.leaveChannel();\n mLogView.logI(\"Left channel\");\n setUIState(UIState.DISCONNECTED);\n }\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}", "public void callSellerButton(View Button){\n Intent i = getIntent();\n String contact = i.getStringExtra(\"contact\").toString();\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\"+contact));\n startActivity(callIntent);\n }", "public void prepareCallObject(){\n\n SipAudioCall.Listener listener = new SipAudioCall.Listener(){\n\n\n @Override\n public void onCallEstablished(SipAudioCall call) {\n// call.startAudio();\n// call.setSpeakerMode(true);\n Log.i(\"sip-->\", \"onCallEstablished\");\n\n\n if (mTotalTime == 0L){\n mPointTime = System.currentTimeMillis();\n mHandler.removeCallbacks(mUpdateTimeTask);\n mHandler.postDelayed(mUpdateTimeTask, 100);\n }\n }\n\n\n @Override\n public void onCallEnded(SipAudioCall call) {\n\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n\n// endCall();\n\n }\n\n };\n try {\n call = manager.takeAudioCall(IncomingCallService_new.incomingIntent, listener);\n\n sipNameIncome = call.getPeerProfile().getUserName();\n// updateStatus(\"Odebrano od \" + sipNameIncome);\n caller_name.setText(sipNameIncome);\n } catch (SipException e) {\n e.printStackTrace();\n }\n\n\n }", "private void makePhoneCall(){\n String number1 = _txtTel1.getText().toString();\n String number2 = _txtTel2.getText().toString();\n if (number1.trim().length() > 0 && number2.trim().length() >0)\n {\n if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED)\n {\n ActivityCompat.requestPermissions(MainActivity.this,new String[]{Manifest.permission.CALL_PHONE},REQUEST_CALL);\n }\n else {\n AlertDialog call = MesOptions2();\n call.show();\n }\n }\n else if (number1.trim().length() > 0 && number2.trim().length() == 0 )\n {\n String dial = \"tel:\" + number1;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n else\n {\n String dial = \"tel:\" + number2;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n\n }", "private static boolean isActiveCall(Call call)\n {\n List<Call> calls;\n CallGroup group = call.getCallGroup();\n if(group != null)\n {\n calls = group.getCalls();\n }\n else\n {\n calls = new Vector<Call>();\n calls.add(call);\n }\n\n for(int i = 0; i < calls.size(); ++i)\n {\n if(isAtLeastOneActiveCallPeer(calls.get(i).getCallPeers()))\n {\n // If there is a single active call peer, then the call is\n // active.\n return true;\n }\n }\n return false;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == START_ADD_PHONE_REQUEST) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n phoneAdded = true;\n }\n }\n }", "public void processLiveCallWhenServiceConnected() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"processLiveCallWhenServiceConnected: still has call\", new Object[0]);\n addCall(callById);\n }\n }\n processCallAudioStateWhenServiceConnected();\n processCanAddCallWhenServiceConnected();\n }\n }", "public abstract void requestFocusToPrimaryPhone();", "public void makeCall() {\n\n// updateStatus(\"Dzwonię do \" + sipNameOutcome);\n call_timer.setVisibility(TextView.VISIBLE);\n\n try {\n SipAudioCall.Listener callListener = new SipAudioCall.Listener() {\n @Override\n public void onCallEstablished(SipAudioCall call) {\n\n call.startAudio();\n call.setSpeakerMode(true);\n Log.i(\"sip-->\", \"onCallEstablished\");\n\n\n\n if (mTotalTime == 0L){\n mPointTime = System.currentTimeMillis();\n mHandler.removeCallbacks(mUpdateTimeTask);\n mHandler.postDelayed(mUpdateTimeTask, 100);\n }\n }\n @Override\n public void onError(SipAudioCall call, int errorCode, String errorMessage){\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n endCall();\n }\n\n @Override\n public void onCallEnded (SipAudioCall call) {\n// updateStatus(\"Gotowy\");\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n// endCall();\n }\n\n\n };\n\n call = manager.makeAudioCall(localProfile.getUriString(), \"sip:\" + sipNameOutcome + \"@\" + DOMAIN, callListener, 30);\n\n\n } catch (Exception e ) {\n Log.d(\"Call initiation error.\", \"Error when trying to make a call. \" + e);\n if (localProfile != null) {\n try {\n manager.close(localProfile.getUriString());\n } catch (Exception ee) {\n Log.d(\"Manager closing error.\", \"Error when trying to close manager.\", ee);\n ee.printStackTrace();\n }\n }\n if(call != null) {\n call.close();\n }\n }\n }", "@Override\n protected CallStatusCode placeCallInternal(Intent intent) {\n if (DBG) log(\"placeCallInternal()... intent = \" + intent);\n int sub = intent.getIntExtra(SUBSCRIPTION_KEY, mApp.getVoiceSubscription());\n\n PhoneUtils.setActiveSubscription(sub);\n return super.placeCallInternal(intent);\n }", "@Override\n public void onClick(View v) {\n number = \"112\";\n String s = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(s));\n if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n startActivity(intent);\n\n //for Location:\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (getApplicationContext().checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n\n sendsms();\n\n }\n }\n });\n\n\n } else\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 0);\n }\n }", "public static void openDialerToCall(Context context, String mobileNo) {\n\n try {\n context.startActivity(\n new Intent(Intent.ACTION_DIAL).setData(Uri.parse(\"tel:\" + mobileNo))\n );\n } catch (Exception e) {e.printStackTrace();}\n }", "private void makePhoneCall(View root){\n Log.d(TAG, \"makePhoneCall: call the teacher \" + tvTeachersFirstName + \" \" + tvTeachersLastName);\n // Checks if the app have permission to make a phone call\n if(ContextCompat.checkSelfPermission(root.getContext(),\n Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(getActivity(),\n new String[] {Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n if(tvTeachersPhoneNumber.getText().toString().contains(\"-\")) {\n tvTeachersPhoneNumber.getText().toString().replace(\"-\", \"\");\n }\n\n String dial = \"tel:\" + tvTeachersPhoneNumber.getText().toString();\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(dial));\n startActivity(intent);\n }\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:104\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:100\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onCallGapRequest(CallGapRequest ind) {\n\n }", "private void onCallHeld(int callheld, byte[] address) {\n StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALLHELD);\n event.valueInt = callheld;\n event.device = getDevice(address);\n if (DBG) {\n Log.d(TAG, \"onCallHeld: address \" + address + \" event \" + event);\n }\n HeadsetClientService service = HeadsetClientService.getHeadsetClientService();\n if (service != null) {\n service.messageFromNative(event);\n } else {\n Log.w(TAG, \"onCallHeld: Ignoring message because service not available: \" + event);\n }\n }", "private void onCallHeld(int callheld, byte[] address) {\n StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CALLHELD);\n event.valueInt = callheld;\n event.device = getDevice(address);\n if (DBG) {\n Log.d(TAG, \"onCallHeld: address \" + address + \" event \" + event);\n }\n HeadsetClientService service = HeadsetClientService.getHeadsetClientService();\n if (service != null) {\n service.messageFromNative(event);\n } else {\n Log.w(TAG, \"onCallHeld: Ignoring message because service not available: \" + event);\n }\n }", "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:102\"));\r\n\t\t startActivity(intent);\r\n\t\t}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode){\n case PHONE_CALL_PERMISSION_REQUEST:\n if(grantResults.length > 0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + contactDetails.getNumbers().get(0)));\n startActivity(intent);\n }else{\n\n }\n }\n }", "@Override\n public void onClick(View v) {\n Uri number = Uri.parse(\"tel: 08963451822\");\n Intent call = new Intent(Intent.ACTION_DIAL);\n call.setData(number);\n startActivity(call);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\tcallIntent.setData(Uri.parse(\"tel:\" + getIntent().getLongExtra(\"phone\", 0)));\n\t\t\t\tstartActivity(callIntent);\n\t\t\t}", "@Override\n public void onCallInformationReportRequest(CallInformationReportRequest arg0) {\n\n }", "@Override\n\tpublic void onDial() {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n\n try {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.fromParts(\"tel\", current_number, null));\n startActivity(intent);\n }\n catch (Exception e)\n {\n\n }\n }", "public void onUaCallRinging(UserAgent ua)\n { \n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel://\"\n + number));\n startActivity(intent);\n alert.dismiss();\n }" ]
[ "0.6842242", "0.6710788", "0.6655751", "0.66024977", "0.64271027", "0.6313112", "0.62679386", "0.62439495", "0.62439495", "0.62166387", "0.61972684", "0.6154572", "0.61490494", "0.61359096", "0.6056233", "0.60461605", "0.60425204", "0.599759", "0.5985261", "0.5984831", "0.5983794", "0.5977992", "0.59615695", "0.5957574", "0.59029305", "0.5892871", "0.5889288", "0.58883655", "0.5869853", "0.5835512", "0.58346075", "0.5814459", "0.58107626", "0.5747476", "0.5723502", "0.5720178", "0.5713041", "0.57106256", "0.57099307", "0.56946427", "0.56884617", "0.5674542", "0.56739634", "0.56690574", "0.5660745", "0.56593966", "0.56587815", "0.56567514", "0.56507516", "0.56483626", "0.5647269", "0.5646968", "0.56404066", "0.56272185", "0.56264365", "0.5625756", "0.5625617", "0.56242275", "0.5616184", "0.5612691", "0.56102794", "0.56102663", "0.56094724", "0.55987424", "0.5598588", "0.5591434", "0.55778944", "0.55706704", "0.55628365", "0.5560369", "0.55531394", "0.5551102", "0.55313057", "0.551575", "0.5514417", "0.55124724", "0.5496376", "0.54898787", "0.54867435", "0.5485371", "0.547945", "0.547386", "0.5470235", "0.5460437", "0.5443765", "0.544305", "0.54395825", "0.5435367", "0.54330796", "0.5430873", "0.5430873", "0.54280275", "0.5425435", "0.5418043", "0.54177856", "0.54035056", "0.53970164", "0.53894377", "0.53888583", "0.5381355" ]
0.7076979
0
Notifies the Engine that an active call was terminated or an ongoing phone call setup was cancelled
final protected void callTerminated( String callId ) { callTerminated( getNativeObject(), callId ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void EndCall() {\n TelephonyManager TelephonyMgr = (TelephonyManager) cordova.getActivity().getSystemService(Context.TELEPHONY_SERVICE);\n \n try{\n Class clazz = Class.forName(TelephonyMgr.getClass().getName());\n \n Method method = clazz.getDeclaredMethod(\"getITelephony\");\n method.setAccessible(true);\n \n ITelephony telephonyService = (ITelephony) method.invoke(TelephonyMgr);\n telephonyService.endCall();\n } catch ( ClassNotFoundException e ) {\n \n } catch ( NoSuchMethodException e ) {\n \n } catch ( IllegalAccessException e ) {\n \n \n }catch ( InvocationTargetException e ) {}\n \n \n \n }", "public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }", "@Override\n public void onFailure(Call call, IOException e) {\n call.cancel();\n System.out.println(\"FAILED\"+ e.getMessage());\n }", "public void callEnded(CallEvent event)\n {\n Call sourceCall = event.getSourceCall();\n\n CallShortcut.removeCall(sourceCall, incomingCalls);\n CallShortcut.removeCall(sourceCall, answeredCalls);\n }", "public void hangUpOngoingCall(Context context) {\n // By the time we receive this intent, we could be shut down and call list\n // could be null. Bail in those cases.\n if (mCallList == null) {\n if (mStatusBarNotifier == null) {\n // The In Call UI has crashed but the notification still stayed up. We should not\n // come to this stage.\n StatusBarNotifier.clearAllCallNotifications(context);\n }\n return;\n }\n\n Call call = mCallList.getOutgoingCall();\n if (call == null) {\n call = mCallList.getActiveOrBackgroundCall();\n }\n\n if (call != null) {\n TelecomAdapter.getInstance().disconnectCall(call.getId());\n call.setState(Call.State.DISCONNECTING);\n mCallList.onUpdate(call);\n }\n }", "public void callEnded(DialerCall call, CallDispositionCode dispositionCode) throws DialerException;", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(mContext);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "private void missedCall() {\n\n NotificationCompat.Builder nBuilder = new NotificationCompat.Builder(this);\n\n nBuilder.setSmallIcon(android.R.drawable.stat_notify_missed_call);\n\n nBuilder.setContentTitle(name);\n\n nBuilder.setContentText(resources.getString(R.string.missed_call));\n\n nBuilder.setColor(Color.rgb(4, 137, 209));\n\n nBuilder.setAutoCancel(true);\n\n Intent showCallLog = new Intent(Intent.ACTION_VIEW);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, showCallLog, PendingIntent.FLAG_CANCEL_CURRENT);\n\n nBuilder.setContentIntent(pendingIntent);\n\n showCallLog.setType(CallLog.Calls.CONTENT_TYPE);\n\n notificationManager.notify(MISSED_CALL_NOTIFICATION, nBuilder.build());\n\n CallLogUtilities.addCallToLog(contentResolver, number, 0, CallLog.Calls.MISSED_TYPE, System.currentTimeMillis());\n\n }", "public void onCallStateChanged(Context context, int state, String number) {\n if (lastState == state) {\n //No change, debounce extras\n return;\n }\n switch (state) {\n case TelephonyManager.CALL_STATE_RINGING:\n start_time = System.currentTimeMillis();\n String sub = number.replaceAll(\" \", \"\");\n String sub1 = sub.replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\-\", \"\");\n mynumber = sub1.substring(Math.max(sub1.length() - 10, 0));\n//contactExists(context, mynumber) ||\n if (contactExistsinApp(context, mynumber)) {\n\n rejectCall(context);\n\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else if (!contactExists(context, mynumber)) {\n rejectCall(context);\n if (PreferenceManager.GetSw3()) {\n\n sendSMS(number, PreferenceManager.Getsms());\n }\n } else {\n Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n }\n\n// Toast.makeText(context, \"Incoming Detect\" + mynumber + start_time, Toast.LENGTH_SHORT).show();\n //There is incoming call\n break;\n case TelephonyManager.CALL_STATE_OFFHOOK:\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n Toast.makeText(context, \"Incoming Detect\" + mynumber, Toast.LENGTH_SHORT).show();\n\n }\n if (lastState != TelephonyManager.CALL_STATE_RINGING) {\n }\n\n break;\n case TelephonyManager.CALL_STATE_IDLE:\n //Went to idle- this is the end of a call. What type depends on previous state(s)\n if (lastState == TelephonyManager.CALL_STATE_RINGING) {\n //Ring but no pickup- a miss\n\n }\n }\n lastState = state;\n }", "private void endCall() {\n removeLocalVideo();\n removeRemoteVideo();\n leaveChannel();\n removeCallFromDb(mUser.getUid());\n // go back to home screen after selected end call\n startActivity(new Intent(this, MainActivity.class));\n // Prevent back button back into the call\n finish();\n }", "public void endCall() {\n if (call != null) {\n try {\n call.endCall();\n finish();\n\n } catch (SipException se) {\n Log.d(\"Call ending error\", \"Error when trying to end a call.\", se);\n }\n call.close();\n\n }\n }", "public void processCall() {\n\t\tif (call == null)\n\t\t\treturn;\n\n\t\tString msg = new StringBuffer(\"Call processed on: \").append(new Date()).append(\" by: \")\n\t\t\t\t.append(CallCenterWorker.this.name).append(\" call length: \")\n\t\t\t\t.append(CallCenterWorker.this.call.getLenght()).toString();\n\t\tSystem.out.println(msg);\n\t\tCallCenterWorker.this.call = null;\n\t}", "public void declineIncomingCall(Context context) {\n // By the time we receive this intent, we could be shut down and call list\n // could be null. Bail in those cases.\n if (mCallList == null) {\n StatusBarNotifier.clearAllCallNotifications(context);\n return;\n }\n\n Call call = mCallList.getIncomingCall();\n if (call != null) {\n TelecomAdapter.getInstance().rejectCall(call.getId(), false, null);\n }\n }", "public interface OnCallingListener {\n void onCallEnd();\n}", "@Override\n public void onDisconnect(Call call) {\n maybeShowErrorDialogOnDisconnect(call);\n\n // We need to do the run the same code as onCallListChange.\n onCallListChange(mCallList);\n\n if (isActivityStarted()) {\n mInCallActivity.dismissKeyguard(false);\n }\n }", "private void processCallStateOffhook () {\n\t\t\n\t\ttry {\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"OFFHOOK\");\t\n\t\t\t\n\t\t\tConfigAppValues.processRingCall = false;\n\t\t\t\n\t\t\tif (QSToast.DEBUG) QSToast.d(\n \t\tConfigAppValues.getContext().getApplicationContext(),\n \t\t\"OFFHOOK!!!!!!!!\",\n \t\tToast.LENGTH_SHORT);\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\n\t\t}\n\t}", "public void onPause() {\n\t\tsuper.onPause();\n\t\ttry {\n\t\t\tif (call != null) {\n\t\t\t\tcall.endCall();\n\t\t\t\tcall.close();\n\t\t\t}else Log.d(\"call\", \"�r null\");\n\t\t} catch (SipException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSipController.hasCall = false;\n\t}", "public void makeCall() {\n\n// updateStatus(\"Dzwonię do \" + sipNameOutcome);\n call_timer.setVisibility(TextView.VISIBLE);\n\n try {\n SipAudioCall.Listener callListener = new SipAudioCall.Listener() {\n @Override\n public void onCallEstablished(SipAudioCall call) {\n\n call.startAudio();\n call.setSpeakerMode(true);\n Log.i(\"sip-->\", \"onCallEstablished\");\n\n\n\n if (mTotalTime == 0L){\n mPointTime = System.currentTimeMillis();\n mHandler.removeCallbacks(mUpdateTimeTask);\n mHandler.postDelayed(mUpdateTimeTask, 100);\n }\n }\n @Override\n public void onError(SipAudioCall call, int errorCode, String errorMessage){\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n endCall();\n }\n\n @Override\n public void onCallEnded (SipAudioCall call) {\n// updateStatus(\"Gotowy\");\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n// endCall();\n }\n\n\n };\n\n call = manager.makeAudioCall(localProfile.getUriString(), \"sip:\" + sipNameOutcome + \"@\" + DOMAIN, callListener, 30);\n\n\n } catch (Exception e ) {\n Log.d(\"Call initiation error.\", \"Error when trying to make a call. \" + e);\n if (localProfile != null) {\n try {\n manager.close(localProfile.getUriString());\n } catch (Exception ee) {\n Log.d(\"Manager closing error.\", \"Error when trying to close manager.\", ee);\n ee.printStackTrace();\n }\n }\n if(call != null) {\n call.close();\n }\n }\n }", "public void cancel() {\n LogUtil.enterBlock(\"RefreshAnnotatedCallLogNotifier.cancel\");\n\n Intent intent = new Intent();\n intent.setAction(IntentNames.ACTION_CANCEL_REFRESHING_ANNOTATED_CALL_LOG);\n\n LocalBroadcastManager.getInstance(appContext).sendBroadcast(intent);\n }", "public void handleCall(Call c) {\n\t}", "private void attemptCleanup() {\n boolean shouldCleanup = (mInCallActivity == null && !mServiceConnected &&\n mInCallState == InCallState.NO_CALLS);\n Log.i(this, \"attemptCleanup? \" + shouldCleanup);\n\n if (shouldCleanup) {\n mIsActivityPreviouslyStarted = false;\n mIsChangingConfigurations = false;\n\n // blow away stale contact info so that we get fresh data on\n // the next set of calls\n if (mContactInfoCache != null) {\n mContactInfoCache.clearCache();\n }\n mContactInfoCache = null;\n\n if (mProximitySensor != null) {\n removeListener(mProximitySensor);\n mProximitySensor.tearDown();\n }\n mProximitySensor = null;\n\n mAudioModeProvider = null;\n\n if (mStatusBarNotifier != null) {\n removeListener(mStatusBarNotifier);\n }\n mStatusBarNotifier = null;\n\n if (mCallList != null) {\n mCallList.removeListener(this);\n }\n mCallList = null;\n\n mContext = null;\n mInCallActivity = null;\n\n mListeners.clear();\n mIncomingCallListeners.clear();\n mDetailsListeners.clear();\n mCanAddCallListeners.clear();\n mOrientationListeners.clear();\n mInCallEventListeners.clear();\n\n Log.d(this, \"Finished InCallPresenter.CleanUp\");\n }\n }", "public void takeEmergencyCallAction() {\n if (PhoneUtils.isInCall(this.mContext)) {\n PhoneUtils.resumeCall(this.mContext);\n return;\n }\n KeyguardUpdateMonitor.getInstance(this.mContext).reportEmergencyCallAction(true);\n this.mContext.startActivityAsUser(INTENT_EMERGENCY_DIAL, ActivityOptions.makeCustomAnimation(this.mContext, 0, 0).toBundle(), new UserHandle(KeyguardUpdateMonitor.getCurrentUser()));\n }", "@Override\n\tpublic void CallEventL(int state, String incomingNumber) {\n\t\tLog.i(\"CallNumber\", incomingNumber);\n\t\t\n\t\tswitch (state){\n\t\tcase TelephonyManager.CALL_STATE_IDLE:{\n\t\t\t if(mVIPNeedDeleteLog)\n\t\t\t {\n\t\t\t\t deleteLastCallLog(incomingNumber);\n\t\t\t\t mVIPNeedDeleteLog = false;\t\t\t\t\n\t\t\t }\n\t\t \tbreak;\n\t\t }\n\t\tcase TelephonyManager.CALL_STATE_RINGING:{\n\t\t\t\n\t\t\t processCall(incomingNumber);\n\t\t\t break;\n\t\t\t \n\t\t }\n\t\t}\n\t}", "public void handleVoiceNotification(Intent intent) {\n Log.d(TAG, \"status check dnd = \" + this.mIsInterruptMode + \" carmode = \" + this.isCarModeCheck + \" earjack = \" + this.isEarJackConnected);\n if (!this.mIsInterruptMode || this.isCarModeCheck || this.isEarJackConnected) {\n return;\n }\n if (!Application.getCoreService().isConnected()) {\n Log.d(TAG, \"handleVoiceNotification:: Not connected\");\n } else if (!NotificationUtil.isActiveDevice()) {\n Log.d(TAG, \"handleVoiceNotification:: Not ActiveDevice\");\n } else {\n final NotificationMessage notificationMessage = (NotificationMessage) intent.getSerializableExtra(NotificationConstants.VN_MESSAGE);\n if (notificationMessage != null) {\n notificationMessage.log();\n EarBudsInfo earBudsInfo = Application.getCoreService().getEarBudsInfo();\n if (notificationMessage.getType() == 4866 && !earBudsInfo.wearingR && !earBudsInfo.wearingL) {\n Log.d(TAG, \"handleVoiceNotification:: none wearing\");\n } else if (this.mTTSCore != null) {\n Log.d(TAG, \" appName: \" + notificationMessage.getAppName());\n if (notificationMessage.getType() == 4864) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n if (NotificationCoreService.this.mTTSCore == null || NotificationCoreService.this.telephony.getCallState() != 0) {\n Log.d(NotificationCoreService.TAG, \"alarm, call state is not idle\");\n } else {\n NotificationCoreService.this.mTTSCore.makeAlarm(NotificationCoreService.this.mContext, notificationMessage);\n }\n }\n }, 1000);\n } else if (notificationMessage.getType() == 4866) {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n Log.d(NotificationCoreService.TAG, \" mCurCallTTSTh start\");\n if (NotificationCoreService.this.mTTSCore != null && NotificationCoreService.this.telephony.getCallState() == 1) {\n NotificationCoreService.this.mTTSCore.makeCall(NotificationCoreService.this.mContext, notificationMessage);\n }\n }\n }, 2000);\n } else {\n this.mTTSCore.insert(notificationMessage, false);\n Log.d(TAG, this.mTTSCore.getMsgQsize() + \" , \" + this.mTTSCore + \" , \");\n if (this.mTTSCore.getMsgQsize() > 0 && this.mTTSCore != null && this.telephony.getCallState() == 0) {\n Log.d(TAG, \"MESSAGE_SPEAK_TTS after 1500 \");\n new Handler().postDelayed(new Runnable() {\n public void run() {\n if (NotificationCoreService.this.mTTSCore != null) {\n NotificationCoreService.this.mTTSCore.makeTTS(NotificationCoreService.this.mContext);\n }\n }\n }, 1500);\n }\n }\n }\n }\n }\n }", "public void onCallRemoved(android.telecom.Call call) {\n call.unregisterCallback(mCallCallback);\n }", "public void onUaCallClosed(UserAgent ua)\n { if (ua.ua_profile.call_to!=null) exit();\n else readyToReceive(); \n }", "public void removeFromConference(Call call);", "private void quit() {\n\t\tmSipSdk = myApplication.getPortSIPSDK();\n\n\t\tif (myApplication.isOnline()) {\n\t\t\tLine[] mLines = myApplication.getLines();\n\t\t\tfor (int i = Line.LINE_BASE; i < Line.MAX_LINES; ++i) {\n\t\t\t\tif (mLines[i].getRecvCallState()) {\n\t\t\t\t\tmSipSdk.rejectCall(mLines[i].getSessionId(), 486);\n\t\t\t\t} else if (mLines[i].getSessionState()) {\n\t\t\t\t\tmSipSdk.hangUp(mLines[i].getSessionId());\n\t\t\t\t}\n\t\t\t\tmLines[i].reset();\n\t\t\t}\n\t\t\tmyApplication.setOnlineState(false);\n\t\t\tmSipSdk.unRegisterServer();\n\t\t\tmSipSdk.DeleteCallManager();\n\t\t}\n\t}", "public void onUaCallCancelled(UserAgent ua)\n { readyToReceive();\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n Bundle myBundle = intent.getExtras();\n if (myBundle != null) {\n System.out.println(\"--------Not null-----\");\n try {\n System.out.println(\"BlockCallReceiver:\"+intent.getAction());\n if (intent.getAction().equals(\"android.intent.action.PHONE_STATE\")) {\n String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);\n System.out.println(\"--------in state-----\");\n if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)) {\n // Incoming call\n String incomingNumber = intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER);\n System.out.println(\"--------------my number---------\" + incomingNumber);\n\n List<Plan> list = GetIfResult.getBoolean(ApplicationController.getIfPlanDB(Plan.IF_CALL), incomingNumber);\n if (list.size() == 0) return;\n for (int i = 0; i < list.size(); i++) {\n GetIfResult.doitResult(list.get(i).resultCode, list.get(i).resultValue, context);\n }\n\n if ((System.currentTimeMillis() - ApplicationController.getEndcall() > 5000)\n || (ApplicationController.getEndcall() == -1)) return;\n\n try {\n // this is main section of the code,. could also be use for particular number.\n // Get the boring old TelephonyManager.\n TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n // Get the getITelephony() method\n Class<?> classTelephony = Class.forName(telephonyManager.getClass().getName());\n Method methodGetITelephony = classTelephony.getDeclaredMethod(\"getITelephony\");\n\n // Ignore that the method is supposed to be private\n methodGetITelephony.setAccessible(true);\n\n // Invoke getITelephony() to get the ITelephony interface\n Object telephonyInterface = methodGetITelephony.invoke(telephonyManager);\n\n // Get the endCall method from ITelephony\n Class<?> telephonyInterfaceClass = Class.forName(telephonyInterface.getClass().getName());\n Method methodEndCall = telephonyInterfaceClass.getDeclaredMethod(\"endCall\");\n\n // Invoke endCall()\n methodEndCall.invoke(telephonyInterface);\n\n SendNotification.sendNotification(context, \"전화가 자동 거절되었습니다.\", incomingNumber);\n } catch (Exception e) {\n //am.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n if (mode == -1) {\n mode = notificationManager.getCurrentInterruptionFilter();\n }\n notificationManager.setInterruptionFilter(NotificationManager.INTERRUPTION_FILTER_NONE);\n } else {\n AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n if (mode == -1) {\n mode = mAudioManager.getRingerMode();\n }\n mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT); //무음\n }\n //am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);\n }finally {\n isDoing = true;\n }\n\n //}\n\n } else if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)) {\n Log.d(\"EXTRA_STATE_IDLE\", mode + \"/\"+isDoing);\n if (isDoing) {\n isDoing = false;\n if (mode == -1) return;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);\n assert notificationManager != null;\n notificationManager.setInterruptionFilter(mode);\n mode = -1;\n\n } else {\n AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n assert mAudioManager != null;\n mAudioManager.setRingerMode(mode);\n mode = -1;\n }\n }\n Log.e(\"EXTRA_STATE_IDLE\", mode + \"\");\n }\n }\n } catch (Exception ex) { // Many things can go wrong with reflection calls\n ex.printStackTrace();\n }\n }\n }", "public void onCallBellPressed(MessageReason reason);", "@Override\n public void onFailure(@NonNull Call<AppCMSAudioDetailResult> call,\n @NonNull Throwable t) {\n audioDetailResultAction.call(null);\n }", "@SuppressWarnings(\"unused\")\n @CalledByNative\n private void onCanceled() {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n try {\n mCallback.onCanceled(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onCanceled method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }\n });\n }", "private void cancelNotification() {\n if (!TextUtils.isEmpty(mCallId)) {\n CallList.getInstance().removeCallUpdateListener(mCallId, this);\n mCallId = null;\n }\n if (mCurrentNotification != NOTIFICATION_NONE) {\n Log.d(this, \"cancelInCall()...\");\n mNotificationManager.cancel(mCurrentNotification);\n ///M: when cancel Notification we should remove callUpdateListener\n // like when call state is disconnecting, disconnected,etc.\n // otherwise, Out Of Memory Exception would happen.\n if (mCallId != null) {\n CallList.getInstance().removeCallUpdateListener(mCallId, this);\n }\n }\n mCurrentNotification = NOTIFICATION_NONE;\n }", "@Override\n public void onCallEstablished(SipAudioCall call) {\n Toast.makeText(CallActivity.this, \"onCallEstablished\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onCallEstablished: \");\n try {\n call.answerCall(30);\n } catch (Exception e) {\n e.printStackTrace();\n }\n call.startAudio();\n call.setSpeakerMode(true);\n // call.toggleMute();\n updateStatus(call);\n updateLayout(CONNECTED);\n }", "private void processCallStateRinging (String incomingNumber) {\n\t\t\n\t\ttry {\n\t\t\t\t\t\t\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"RINGING\");\t\t\t\t\t\n\t\t\t\n\t\t\t/* Put the device in silent mode if the incoming number is\n\t\t\t * from contact banned and in schedule interval \n\t\t\t */\t\t\t\t\t\n\t\t\tif (ringerMode() != AudioManager.RINGER_MODE_SILENT && \n\t\t\t\t\tCheckSettingsOperations.checkQuiteSleepServiceState() &&\n\t\t\t\t\t!ConfigAppValues.processRingCall) {\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tConfigAppValues.processRingCall = true;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Process to control the incoming call and kill it if proceed.\t\t\t\t\n\t\t\t\tConfigAppValues.getContext().startService(\n\t\t\t\t\t\tnew Intent(\n\t\t\t\t\t\t\t\tConfigAppValues.getContext(),\n\t\t\t\t\t\t\t\tSilentModeCallService.class).putExtra(\n\t\t\t\t\t\t\t\t\tConfigAppValues.INCOMING_CALL_NUMBER, \n\t\t\t\t\t\t\t\t\tincomingNumber));\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t//------------------------------------------------------------//\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tif (QSToast.DEBUG) QSToast.d(\n\t\t\t\t\t\tConfigAppValues.getContext().getApplicationContext(),\n\t\t\t\t\t\t\"RINGING!!!!!!!!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\n\t\t}\n\t}", "public void onCallAdded(android.telecom.Call call) {\n // Since a call has been added we are no longer waiting for Telecom to send us a\n // call.\n setBoundAndWaitingForOutgoingCall(false, null);\n call.registerCallback(mCallCallback);\n }", "private void makeCall() {\n\t\t// send the originate action (Call)\n\t\tthis.asteriskServer.originateAsync(this.originateAction, new OriginateCallbackAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onDialing(final AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Dialing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\tCall.this.state=CallState.DIALING;\n\t\t\t\tCall.this.currentChannel = asteriskChannel.getName();\n\t\t\t\t// Make sure when there was a hangup event that it is realy hung up.\n\t\t\t\tif(Call.this.hangup)\n\t\t\t\t\tCall.this.hangup();\n\t\t\t\t// Listen for cool stuff like \"ringing\"\n\t\t\t\tasteriskChannel.addPropertyChangeListener(new PropertyChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\t\t// is the phone ringing?\n\t\t\t\t\t\tif (evt.getPropertyName().equals(\"state\") && evt.getNewValue().toString().equals(\"RINGING\")) {\n\t\t\t\t\t\t\tCall.this.log.log(Level.INFO, \"Ringing: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t\t\t\t\t// Schedule hangup timeout\n\t\t\t\t\t\t\tCall.this.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\t\t\t\t\tCall.this.asteriskServer.getChannelByName(Call.this.currentChannel).hangup();\n\t\t\t\t\t\t\t\t\t\t// no \"noAnswer()\" called here because a\n\t\t\t\t\t\t\t\t\t\t// onNoAnswer event will come in anyway\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}, new Long(EPursuit.properties.getProperty(\"callTime\")));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.state=CallState.RUNNING;\n\t\t\t\tCall.this.success = true;\n\t\t\t\tCall.this.log.log(Level.INFO, \"Connection successful: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNoAnswer(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.log.log(Level.INFO, \"Channel not answered: \" + Call.this.currentChannel + \" \" + Call.this.destination);\n\t\t\t\tif (asteriskChannel.getHangupCause().toString().equals(\"CALL_REJECTED\")) {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.noAnswer();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onBusy(AsteriskChannel asteriskChannel) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tCall.this.log.log(Level.INFO, \"Busy: \" + asteriskChannel.getName() + \" \" + Call.this.destination);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(LiveException cause) {\n\t\t\t\tCall.this.noAnswer();\n\n\t\t\t\tif (cause.getClass().getCanonicalName().equals(\"org.asteriskjava.live.NoSuchChannelException\")) {\n\t\t\t\t\t// Called when the channel is busy... dunno why\n\t\t\t\t\tCall.this.log.log(Level.INFO, \"Channel perhabs busy. \" + Call.this.destination);\n\t\t\t\t} else {\n\t\t\t\t\tCall.this.log.log(Level.WARNING, \"Received unknown error.\\n\" + cause + \" \" + Call.this.destination);\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t}", "private void unregisterAfterCallBroadcastReceiver(){\n if (mADialogBroadcastIsRegistered){\n try {\n this.unregisterReceiver(afterCallBroadcastReceiver);\n mADialogBroadcastIsRegistered=false;\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }", "@Test\n public void testOnCallAddedRinging() throws Exception {\n BluetoothCall ringingCall = createRingingCall();\n when(ringingCall.getHandle()).thenReturn(Uri.parse(\"tel:555000\"));\n\n mBluetoothInCallService.onCallAdded(ringingCall);\n\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(0), eq(0), eq(CALL_STATE_INCOMING),\n eq(\"555000\"), eq(PhoneNumberUtils.TOA_Unknown), nullable(String.class));\n }", "@Override\n\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\tswitch (state) {\n\t\t\t/* 取得手机是待机状态 */\n\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_IDLE);\n\n\t\t\t\ttry {\n\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t/* 设置手机为待机时响铃为正常模式 */\n\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n\t\t\t\t\t\taudioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为通话中 */\n\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_OFFHOOK);\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为来电 */\n\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t/* 显示来电信息 */\n\t\t\t\tstateTips.setText(getResources().getText(\n\t\t\t\t\t\tR.string.str_CALL_STATE_RINGING)\n\t\t\t\t\t\t+ incomingNumber);\n Log.i(\"电话\",phoneView.getText().toString());\n\t\t\t\t/* 判断与输入电话是否为一样,一样则转为静音模式 */\n\t\t\t\tif (incomingNumber.equals(phoneView.getText().toString())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t\t/* 设置响铃模式为静音 */\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.str_msg),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\n\t\t\tetPhone.setOnKeyListener(new EditText.OnKeyListener() {\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t/* 同步显示TextView */\n\t\t\t\t\tphoneView.setText(etPhone.getText());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "protected void stopCallConnectedTimer() {\n\t\tif(mModelInterface.isTimerStart(TIMER_TYPE.WAIT_CALL_CONNECTED)) {\n\t\t\tmModelInterface.stopTimer(TIMER_TYPE.WAIT_CALL_CONNECTED);\n\t\t}\n\t}", "@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }", "@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }", "@Override\n public void onCallStateChanged(int state, String incomingNumber) {\n // Log.i(TAG, \"PhoneStateListener.onCallStateChanged: \"\n // + state + \", '\" + incomingNumber + \"'\");\n if ((state == TelephonyManager.CALL_STATE_IDLE) && dialpadChooserVisible()) {\n // Log.i(TAG, \"Call ended with dialpad chooser visible! Taking it down...\");\n // Note there's a race condition in the UI here: the\n // dialpad chooser could conceivably disappear (on its\n // own) at the exact moment the user was trying to select\n // one of the choices, which would be confusing. (But at\n // least that's better than leaving the dialpad chooser\n // onscreen, but useless...)\n showDialpadChooser(false);\n }\n }", "public void onCallStateChanged (int state, String incomingNumber) {\n\t\t\n\t\ttry {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\tswitch (state) {\t\t\t\t\t\n\t\t\t\n\t\t\t\t//-------------\t\tCALL_STATE_IDLE\t\t----------------------//\n\t\t\t\t//Device call state: No activity. \n\t\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tprocessCallStateIdle();\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//-----------------\t\tCALL_STATE_OFFHOOK\t\t--------------//\n\t\t\t\t//Device call state: Off-hook. At least one call exists that is \n\t\t\t\t//dialing, active, or on hold, and no calls are ringing or waiting. \n\t\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\t\t\t\t\t\n\t\t\t\t\tprocessCallStateOffhook();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t//-----------------\t\tCALL_STATE_RINGING\t\t--------------//\n\t\t\t\t//Device call state: Ringing. A new call arrived and is ringing \n\t\t\t\t//or waiting. In the latter case, another call is already active. \n\t\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\t\t\t\t\t\t\t\n\t\t\t\t\tprocessCallStateRinging(incomingNumber);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(CLASS_NAME, ExceptionUtils.exceptionTraceToString(\n\t\t\t\t\te.toString(), \n\t\t\t\t\te.getStackTrace()));\t\t\t\n\t\t}\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n // IF still in a call\n if (!mCallEnd) {\n leaveChannel();\n }\n // Calling static method that destroys the RtcEngine instance\n RtcEngine.destroy();\n }", "public abstract void onError(Call call, Exception e);", "@Override\n public void onCallStateChanged(int state, String incomingNumber) {\n // Log.i(TAG, \"PhoneStateListener.onCallStateChanged: \"\n // + state + \", '\" + incomingNumber + \"'\");\n if ((state == TelephonyManager.CALL_STATE_IDLE) && dialpadChooserVisible()) {\n // Log.i(TAG, \"Call ended with dialpad chooser visible! Taking it down...\");\n // Note there's a race condition in the UI here: the\n // dialpad chooser could conceivably disappear (on its\n // own) at the exact moment the user was trying to select\n // one of the choices, which would be confusing. (But at\n // least that's better than leaving the dialpad chooser\n // onscreen, but useless...)\n showDialpadChooser(phoneIsInUse());\n }\n }", "public void onCallClicked(View view) {\n if (mUIState == UIState.DISCONNECTED) {\n // Prior to joining the channel, ensure audio is muted.\n setAudioState(true);\n\n // Join the channel.\n String token = getString(R.string.agora_access_token);\n if (TextUtils.isEmpty(token) || TextUtils.equals(token, \"#YOUR ACCESS TOKEN#\")) {\n token = null; // default, no token\n }\n mRtcEngine.joinChannel(token, mChannelText.getEditableText().toString(), \"Extra Optional Data\", 0);\n setUIState(UIState.CONNECTED_SPLITSCREEN);\n } else {\n // Leave the channel.\n mRemoteCameraUid = 0;\n removeRemoteCamera();\n removeRemoteShare();\n mRtcEngine.leaveChannel();\n mLogView.logI(\"Left channel\");\n setUIState(UIState.DISCONNECTED);\n }\n }", "@Override\n\tpublic void Call() {\n\t\tSystem.out.println( phoneName+\"'s Call.\");\n\t}", "public void prepareCallObject(){\n\n SipAudioCall.Listener listener = new SipAudioCall.Listener(){\n\n\n @Override\n public void onCallEstablished(SipAudioCall call) {\n// call.startAudio();\n// call.setSpeakerMode(true);\n Log.i(\"sip-->\", \"onCallEstablished\");\n\n\n if (mTotalTime == 0L){\n mPointTime = System.currentTimeMillis();\n mHandler.removeCallbacks(mUpdateTimeTask);\n mHandler.postDelayed(mUpdateTimeTask, 100);\n }\n }\n\n\n @Override\n public void onCallEnded(SipAudioCall call) {\n\n mHandler.removeCallbacks(mUpdateTimeTask);\n finish();\n\n// endCall();\n\n }\n\n };\n try {\n call = manager.takeAudioCall(IncomingCallService_new.incomingIntent, listener);\n\n sipNameIncome = call.getPeerProfile().getUserName();\n// updateStatus(\"Odebrano od \" + sipNameIncome);\n caller_name.setText(sipNameIncome);\n } catch (SipException e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n\tpublic void receiveCall(Call call) {\n\t\tthis.call = call;\n\t\tcall.attend();\n\t}", "@Test\n public void testOnCallAddedCdmaActiveHold() throws Exception {\n BluetoothCall parentCall = createActiveCall();\n final BluetoothCall foregroundCall = getMockCall();\n final BluetoothCall heldCall = createHeldCall();\n addCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE);\n removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN);\n when(parentCall.isConference()).thenReturn(true);\n List<String> childrenIds = Arrays.asList(foregroundCall.getTelecomCallId(),\n heldCall.getTelecomCallId());\n when(parentCall.getChildrenIds()).thenReturn(childrenIds);\n\n mBluetoothInCallService.onCallAdded(parentCall);\n\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(1), eq(1), eq(CALL_STATE_IDLE),\n eq(\"\"), eq(128), nullable(String.class));\n }", "public void outgoingCallCreated(CallEvent event)\n {\n CallShortcut.addCall(event.getSourceCall(), this.answeredCalls);\n }", "public void onUaCallAccepted(UserAgent ua)\n { changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n }", "@Override\n public void phoneHangUp() {\n Log.e(\"test_TTS\", \"phoneHangUp\");\n }", "@Override\n public void phoneHangUp() {\n Log.e(\"test_TTS\", \"phoneHangUp\");\n }", "private void processCallStateIdle () {\n\t\t\n\t\ttry {\n\t\t\tif (QSLog.DEBUG_D)QSLog.d(CLASS_NAME, \"IDLE\");\n\t\t\t\n\t\t\tConfigAppValues.processRingCall = false;\n\t\t\t\n\t\t\tif (ringerMode() == AudioManager.RINGER_MODE_SILENT && \n\t\t\t\t\tCheckSettingsOperations.checkQuiteSleepServiceState() && \n\t\t\t\t\t!ConfigAppValues.processIdleCall) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t/* Put one pause of 1 second for wait before put the\n\t\t\t\t * ringer mode to normal again\n\t\t\t\t */\t\t\t\t\t\t\n\t\t\t\t//Thread.sleep(1000);\t\t\t\t\t\t\n\t\t\t\tConfigAppValues.processIdleCall = true;\n\n\t\t\t\t//-- If you choose use Android Service for process incoming call use this --//\t\t\t\t\n\t\t\t\tConfigAppValues.getContext().startService(\n\t\t\t\t\t\tnew Intent(\n\t\t\t\t\t\t\t\tConfigAppValues.getContext(),\n\t\t\t\t\t\t\t\tNormalModeCallService.class)); \t\t\t\t\n\t\t\t\t//------------------------------------------------------------//\t\t\t\t\t\t\t\n\n\t\t\t\t\n\t\t\t\tif (QSToast.DEBUG) QSToast.d(\n\t\t\t\t\t\tConfigAppValues.getContext().getApplicationContext(),\n\t\t\t\t\t\t\"IDLE!!!!!!!!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}catch (Exception e) {\n\t\t\tif (QSLog.DEBUG_E)QSLog.e(\n\t\t\t\t\tCLASS_NAME, \n\t\t\t\t\tExceptionUtils.exceptionTraceToString(e.toString(), e.getStackTrace()));\n\t\t\t\n\t\t}\n\t}", "public void processLiveCallWhenServiceConnected() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"processLiveCallWhenServiceConnected: still has call\", new Object[0]);\n addCall(callById);\n }\n }\n processCallAudioStateWhenServiceConnected();\n processCanAddCallWhenServiceConnected();\n }\n }", "final protected void callActivated( String callId ) {\n callActivated( getNativeObject(), callId );\n }", "@Override\n public void peerStateChanged(CallPeerChangeEvent evt)\n {\n CallPeer sourcePeer = evt.getSourceCallPeer();\n \n if (!sourcePeer.equals(callPeer))\n return;\n \n CallPeerState newState = (CallPeerState) evt.getNewValue();\n CallPeerState oldState = (CallPeerState) evt.getOldValue();\n \n String newStateString = sourcePeer.getState().getLocalizedStateString();\n \n // Play the dialing audio when in connecting and initiating call state.\n // Stop the dialing audio when we enter any other state.\n if (newState == CallPeerState.INITIATING_CALL\n || newState == CallPeerState.CONNECTING)\n {\n NotificationManager\n .fireNotification(NotificationManager.DIALING);\n }\n else\n {\n NotificationManager.stopSound(NotificationManager.DIALING);\n }\n \n if (newState == CallPeerState.ALERTING_REMOTE_SIDE\n //if we were already in state CONNECTING_WITH_EARLY_MEDIA the server\n //is already taking care of playing the notifications so we don't\n //need to fire a notification here.\n && oldState != CallPeerState.CONNECTING_WITH_EARLY_MEDIA)\n {\n //\n NotificationManager\n .fireNotification(NotificationManager.OUTGOING_CALL);\n }\n else if (newState == CallPeerState.BUSY)\n {\n NotificationManager.stopSound(NotificationManager.OUTGOING_CALL);\n \n // We start the busy sound only if we're in a simple call.\n if (!renderer.getCallDialog().isConference())\n {\n NotificationManager.fireNotification(\n NotificationManager.BUSY_CALL);\n }\n }\n else if (newState == CallPeerState.CONNECTING_INCOMING_CALL ||\n newState == CallPeerState.CONNECTING_INCOMING_CALL_WITH_MEDIA)\n {\n if (!CallPeerState.isOnHold(oldState))\n {\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n NotificationManager\n .stopSound(NotificationManager.INCOMING_CALL);\n }\n }\n else if (newState == CallPeerState.CONNECTING_WITH_EARLY_MEDIA)\n {\n //this means a call with early media. make sure that we are not\n //playing local notifications any more.\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n }\n else if (newState == CallPeerState.CONNECTED)\n {\n if (!CallPeerState.isOnHold(oldState))\n {\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n NotificationManager\n .stopSound(NotificationManager.INCOMING_CALL);\n \n if (!renderer.getCallDialog().isCallTimerStarted())\n renderer.getCallDialog().startCallTimer();\n \n // Enabling all buttons when the call is connected.\n renderer.getCallDialog().enableButtons();\n }\n else\n {\n renderer.setOnHold(false);\n renderer.getCallDialog().updateHoldButtonState();\n // Enabling all buttons when the call get back from hold\n renderer.getCallDialog().enableButtonsWhileOnHold(false);\n }\n }\n else if (newState == CallPeerState.DISCONNECTED)\n {\n // The call peer should be already removed from the call\n // see CallPeerRemoved\n }\n else if (newState == CallPeerState.FAILED)\n {\n // The call peer should be already removed from the call\n // see CallPeerRemoved\n }\n else if (CallPeerState.isOnHold(newState))\n {\n renderer.setOnHold(true);\n renderer.getCallDialog().enableButtonsWhileOnHold(true);\n renderer.getCallDialog().updateHoldButtonState();\n }\n \n renderer.setPeerState(newStateString);\n \n String reasonString = evt.getReasonString();\n if (reasonString != null)\n renderer.setErrorReason(reasonString);\n }", "@Test\n public void testConferenceInProgressCDMA() throws Exception {\n ArrayList<BluetoothCall> calls = new ArrayList<>();\n BluetoothCall parentCall = createActiveCall();\n final BluetoothCall confCall1 = getMockCall();\n final BluetoothCall confCall2 = createHeldCall();\n calls.add(parentCall);\n calls.add(confCall1);\n calls.add(confCall2);\n mBluetoothInCallService.onCallAdded(parentCall);\n mBluetoothInCallService.onCallAdded(confCall1);\n mBluetoothInCallService.onCallAdded(confCall2);\n\n when(mMockCallInfo.getBluetoothCalls()).thenReturn(calls);\n when(confCall1.getState()).thenReturn(Call.STATE_ACTIVE);\n when(confCall2.getState()).thenReturn(Call.STATE_ACTIVE);\n when(confCall1.isIncoming()).thenReturn(false);\n when(confCall2.isIncoming()).thenReturn(true);\n when(confCall1.getGatewayInfo()).thenReturn(\n new GatewayInfo(null, null, Uri.parse(\"tel:555-0000\")));\n when(confCall2.getGatewayInfo()).thenReturn(\n new GatewayInfo(null, null, Uri.parse(\"tel:555-0001\")));\n addCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE);\n addCallCapability(parentCall, Connection.CAPABILITY_SWAP_CONFERENCE);\n removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN);\n String confCall1Id = confCall1.getTelecomCallId();\n when(parentCall.getGenericConferenceActiveChildCallId())\n .thenReturn(confCall1Id);\n when(parentCall.isConference()).thenReturn(true);\n List<String> childrenIds = Arrays.asList(confCall1.getTelecomCallId(),\n confCall2.getTelecomCallId());\n when(parentCall.getChildrenIds()).thenReturn(childrenIds);\n //Add links from child calls to parent\n String parentId = parentCall.getTelecomCallId();\n when(confCall1.getParentId()).thenReturn(parentId);\n when(confCall2.getParentId()).thenReturn(parentId);\n\n clearInvocations(mMockBluetoothHeadset);\n mBluetoothInCallService.queryPhoneState();\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(1), eq(1), eq(CALL_STATE_IDLE),\n eq(\"\"), eq(128), nullable(String.class));\n\n when(parentCall.wasConferencePreviouslyMerged()).thenReturn(true);\n List<BluetoothCall> children =\n mBluetoothInCallService.getBluetoothCallsByIds(parentCall.getChildrenIds());\n mBluetoothInCallService.getCallback(parentCall)\n .onChildrenChanged(parentCall, children);\n verify(mMockBluetoothHeadset).phoneStateChanged(eq(1), eq(0), eq(CALL_STATE_IDLE),\n eq(\"\"), eq(128), nullable(String.class));\n\n when(mMockCallInfo.getHeldCall()).thenReturn(null);\n // Spurious BluetoothCall to onIsConferencedChanged.\n mBluetoothInCallService.getCallback(parentCall)\n .onChildrenChanged(parentCall, children);\n // Make sure the BluetoothCall has only occurred collectively 2 times (not on the third)\n verify(mMockBluetoothHeadset, times(2)).phoneStateChanged(any(int.class),\n any(int.class), any(int.class), nullable(String.class), any(int.class),\n nullable(String.class));\n }", "private void queryLastOutgoingCall() {\n mLastNumberDialed = EMPTY_NUMBER;\n CallLogAsync.GetLastOutgoingCallArgs lastCallArgs =\n new CallLogAsync.GetLastOutgoingCallArgs(\n getActivity(),\n new CallLogAsync.OnLastOutgoingCallComplete() {\n public void lastOutgoingCall(String number) {\n // TODO: Filter out emergency numbers if\n // the carrier does not want redial for\n // these.\n mLastNumberDialed = number;\n updateDialAndDeleteButtonEnabledState();\n }\n });\n mCallLog.getLastOutgoingCall(lastCallArgs);\n }", "private static void updateCdmaCallStateOnNewOutgoingCall(PhoneGlobals app,\n Connection connection) {\n if (app.cdmaPhoneCallState.getCurrentCallState() ==\n CdmaPhoneCallState.PhoneCallState.IDLE) {\n // This is the first outgoing call. Set the Phone Call State to ACTIVE\n app.cdmaPhoneCallState.setCurrentCallState(\n CdmaPhoneCallState.PhoneCallState.SINGLE_ACTIVE);\n } else {\n // This is the second outgoing call. Set the Phone Call State to 3WAY\n app.cdmaPhoneCallState.setCurrentCallState(\n CdmaPhoneCallState.PhoneCallState.THRWAY_ACTIVE);\n\n // TODO: Remove this code.\n //app.getCallModeler().setCdmaOutgoing3WayCall(connection);\n }\n }", "public boolean onCallAdded(Call call) {\n if (call == null) {\n HiLog.error(LOG_LABEL, \"onCallAdded fail, no call.\", new Object[0]);\n return false;\n } else if (call.getState() == 9 && this.mPendingDisconnectPreAddedCall != null) {\n HiLog.info(LOG_LABEL, \"onCallAdded, has pending disconnect call.\", new Object[0]);\n CallAppAbilityConnnectionHandler callAppAbilityConnnectionHandler = this.mHandler;\n if (callAppAbilityConnnectionHandler != null) {\n callAppAbilityConnnectionHandler.removeEvent(1001);\n }\n this.mPendingDisconnectPreAddedCall = null;\n call.disconnect();\n return true;\n } else if (!canAddCallToCallMap()) {\n return false;\n } else {\n if (isConnected()) {\n HiLog.info(LOG_LABEL, \"onCallAdded, already connectted call ability.\", new Object[0]);\n if (this.mPreAddedCall == null && this.mPendingDisconnectPreAddedCall == null) {\n HiLog.info(LOG_LABEL, \"onCallAdded, no pre added call.\", new Object[0]);\n addCallToCallMap(call);\n } else {\n if (this.mPreAddedCall == null) {\n PreAddedCall preAddedCall = this.mPendingDisconnectPreAddedCall;\n }\n processPreAddedCall(this.mPreAddedCall, call);\n this.mPreAddedCall = null;\n this.mPendingDisconnectPreAddedCall = null;\n }\n return addCall(call);\n }\n addCallToCallMap(call);\n this.mPreAddedCall = null;\n this.mPendingDisconnectPreAddedCall = null;\n connect();\n return true;\n }\n }", "@Override\n public void onIncomingCall(Call call) {\n InCallState newState = startOrFinishUi(InCallState.INCOMING);\n InCallState oldState = mInCallState;\n\n Log.i(this, \"Phone switching state: \" + oldState + \" -> \" + newState);\n mInCallState = newState;\n\n for (IncomingCallListener listener : mIncomingCallListeners) {\n listener.onIncomingCall(oldState, mInCallState, call);\n }\n }", "public void addPendingCallToProxy(IBinder iBinder) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy\", new Object[0]);\n this.mRemote = iBinder;\n processLiveCallWhenServiceConnected();\n CallAudioState callAudioState = this.mPendingCallAudioState;\n if (callAudioState != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCallAudioStateChanged %{public}s\", new Object[]{callAudioState.toString()});\n onCallAudioStateChanged(this.mPendingCallAudioState);\n this.mPendingCallAudioState = null;\n }\n Boolean bool = this.mPendingCanAddCall;\n if (bool != null) {\n HiLog.info(LOG_LABEL, \"addPendingCallToProxy:onCanAddCallChanged %{public}s\", new Object[]{bool.toString()});\n onCanAddCallChanged(this.mPendingCanAddCall.booleanValue());\n this.mPendingCanAddCall = null;\n }\n }", "public void processCallAudioStateWhenServiceConnected() {\n CallAudioState callAudioState = this.mCurrentCallAudioState;\n if (callAudioState != null) {\n HiLog.info(LOG_LABEL, \"processCallAudioStateWhenServiceConnected:onCallAudioStateChanged %{public}s\", new Object[]{callAudioState.toString()});\n onCallAudioStateChanged(this.mCurrentCallAudioState);\n }\n }", "@Override\n public void onCanceled(D data) {\n super.onCanceled(data);\n\n // At this point we can release the resources associated with 'apps' if needed.\n onReleaseResources(data);\n }", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "@Override\n\n //of the api calling got failed then it will go for onFailure,inside this we have added one alertDialog\n public void onFailure(Call call, IOException e) {\n\n }", "public void setStuckCall(){\n this.stuckCall = true;\n }", "public boolean onCallDestroyed(Call call) {\n if (this.mRemote == null) {\n HiLog.error(LOG_LABEL, \"onCallDestroyed fail, no remote.\", new Object[0]);\n return false;\n } else if (call != null) {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n boolean z = true;\n try {\n obtain.writeInterfaceToken(DistributedCallUtils.DISTRIBUTED_CALL_ABILITY_DESCRIPTOR);\n obtain = CallSerializationUtils.writeCallToParcel(obtain, call, getIdByCall(call).intValue());\n this.mRemote.transact(9, obtain, obtain2, 0);\n try {\n HiLog.info(LOG_LABEL, \"onCallDestroyed: %{public}s.\", new Object[]{call.toString()});\n } catch (RemoteException unused) {\n }\n } catch (RemoteException unused2) {\n z = false;\n try {\n HiLog.error(LOG_LABEL, \"onCallDestroyed got RemoteException.\", new Object[0]);\n obtain2.recycle();\n obtain.recycle();\n return z;\n } catch (Throwable th) {\n obtain2.recycle();\n obtain.recycle();\n throw th;\n }\n }\n obtain2.recycle();\n obtain.recycle();\n return z;\n } else {\n HiLog.error(LOG_LABEL, \"onCallDestroyed fail, no call.\", new Object[0]);\n return false;\n }\n }", "public Call getCurrentCall();", "private void processCallPresence(PresenceMessage message) throws Exception {\n\t\t\t\t\t\t\n\t\tJID fromJid = message.getFrom();\t\t\n\t\tString callId = fromJid.getNode();\n\t\t\n\t\tif (isOffer(message)) {\t\t\t\n\t\t\tif (!processOffer(message, callId)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (isUnjoinedMixer(message)) {\n\t\t\tprocessUnjoinedMixer(message);\n\t\t} else if (isJoinedMixer(message)) {\n\t\t\tprocessJoinedMixer(message);\t\t\t\n\t\t}\n\t\t\t\t \t\n \tJID from = createExternalJid(callId, fromJid.getResource());\n\t\tString jid = gatewayStorageService.getclientJID(callId); \n\t \tif (jid == null) {\n\t\t log.error(\"Could not find registered JID for call id [%s]\", callId);\n\t\t sendPresenceError(message.getTo(), message.getFrom(), Condition.RECIPIENT_UNAVAILABLE, Type.CANCEL, \"Could not find registered JID for id \" + callId);\n\t\t gatewayStatistics.errorProcessed();\n\t \treturn;\n\t \t}\n \tJID to = getXmppFactory().createJID(jid);\t\t\n\n\t\tif (message.getElement(\"end\", \"urn:xmpp:rayo:1\") != null) {\n\t\t\tgatewayStorageService.unregistercall(callId);\n\t\t}\n\t\t\n\t \tforwardPresence(message, from, to, callId);\t\t\t\t\t\n\t}", "public void terminateConference();", "@Override\n public void onInitiateCallAttemptResponse(InitiateCallAttemptResponse initiateCallAttemptResponse) {\n\n }", "public void communicate() {\r\n System.out.println(\"This iPhone is making a phone call.\");\r\n }", "public void turnOffEngine(MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n //Listen call state: roll back to activity when call is end\n PhoneCallListener phoneListener = new PhoneCallListener();\n TelephonyManager telephonyManager = (TelephonyManager) context\n .getSystemService(Context.TELEPHONY_SERVICE);\n telephonyManager.listen(phoneListener, PhoneStateListener.LISTEN_CALL_STATE);\n\n //start a call\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + GlobalConstant.DEVICE_PHONE_NUMBER));\n\n if (ActivityCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE) !=\n PackageManager.PERMISSION_GRANTED) {\n Log.e(\"CALL_CANCEL\", \"Dont have permission\");\n return;\n }\n context.startActivity(callIntent);\n }\n }", "public void incomingCallReceived(CallEvent event)\n {\n CallShortcut.addCall(event.getSourceCall(), this.incomingCalls);\n }", "private void updateInCallNotification(final InCallState state, CallList callList) {\n /// M: [log optimize] @{\n /** Google log:\n Log.d(this, \"updateInCallNotification...\");\n */\n /// @}\n\n final Call call = getCallToShow(callList);\n\n if (call != null) {\n showNotification(call);\n } else {\n cancelNotification();\n }\n\n /// M: add for OP02 plugin. @{\n// ExtensionManager.getStatusBarExt().updateInCallNotification(call);\n /// @}\n }", "public void answerIncomingCall(Context context, int videoState) {\n // By the time we receive this intent, we could be shut down and call list\n // could be null. Bail in those cases.\n if (mCallList == null) {\n StatusBarNotifier.clearAllCallNotifications(context);\n return;\n }\n\n Call call = mCallList.getIncomingCall();\n if (call != null) {\n TelecomAdapter.getInstance().answerCall(call.getId(), videoState);\n showInCall(false, false/* newOutgoingCall */);\n }\n }", "@Override\n public void onCanceled(T data) {\n super.onCanceled(data);\n // At this point we can release the resources associated with 'apps'\n // if needed.\n onReleaseResources(data);\n }", "public void onInCallServiceUnbind() {\n HiLog.info(LOG_LABEL, \"onInCallServiceUnbind.\", new Object[0]);\n this.mIsInCallServiceBinded = false;\n releaseResource();\n }", "public void lastOutgoingCall(String number) {\n mLastNumberDialed = number;\n updateDialAndDeleteButtonEnabledState();\n }", "@Override\n public void onInitiateCallAttemptRequest(InitiateCallAttemptRequest initiateCallAttemptRequest) {\n\n }", "public void updateMissedCalls() {\n // Mark all \"new\" missed calls as not new anymore\n StringBuilder where = new StringBuilder();\n where.append(\"type = \");\n where.append(Calls.MISSED_TYPE);\n where.append(\" AND \");\n where.append(Calls.NEW);\n where.append(\" = 1\");\n \n ContentValues values = new ContentValues(1);\n values.put(Calls.NEW, \"0\");\n \n startUpdate(UPDATE_MISSED_CALLS_TOKEN, null, Calls.CONTENT_URI_WITH_VOICEMAIL,\n values, where.toString(), null);\n }", "public void addToConference(Call call);", "@Override\r\n public void onCancel(String callerTag) {\n }", "@Override\n public void onCallGapRequest(CallGapRequest ind) {\n\n }", "public interface PhoneStateChangeCallback {\n void onInComingOffHook(String incomingNumber);\n void onInComingEnd(String incomingNumber);\n void onOutComingStart(String outNumber);\n void onOutComingEnd(String outNumber);\n}", "@Override\n\tpublic void onReceive(final Context context, final Intent intent) {\n\t\t isService= AppData.getBool(AppData.service,context);\n\t\tLog.e(TAG,\"\"+isService);\n\t\tthis.context=context;\n\t\tLog.e(TAG, \"start sevicek\"+isService+\" \"+intent.getAction());\n\t\t//isIncomming=true;\n\t\tif(!isService)\n\t\t\treturn;\n\n\t\t String blockingMode=\"\";\n\t\tTelephonyManager telephony = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);\n\t\ttelephony.listen(new PhoneStateListener(){\n\t\t\t@Override\n\t\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\t\t\t\tSystem.out.println(\"incomingNumber1 : \"+incomingNumber);\n\n//\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n//\t\t\t\t{\n//\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n//\t\t\t\t\tIntent in = new Intent(context, RecordingService.class);\n//\t\t\t\t\tcontext.startService(in);\n//\t\t\t\t}\n\t\t\t\tif(incomingNumber!=null&&incomingNumber.length()>0)\n\t\t\t\tPhoneMunber=incomingNumber;\n\t\t\t\tLog.e(\"incomingNumber1\",state+intent.getAction()+ GetCurrentDateTime()+\" \"+incomingNumber);\n\n\t\t\t\tif(lastState == state)\n\t\t\t\t\treturn;\n\n\t\t\t\tswitch (state) {\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t\t\tisIncomming = true;\n\t\t\t\t\t\tin = new Intent(context, RecordingService.class);\n\t\t\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLog.e(TAG, \"start sevice after stop\");\n\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\t\t\t//Transition of ringing->offhook are pickups of incoming calls. Nothing done on them\n\t\t\t\t\t\tif(lastState != TelephonyManager.CALL_STATE_RINGING){\n\t\t\t\t\t\t\tisIncomming = false;\n\t\t\t\t\t\t\tin = new Intent(context, RecordingService.class);\n\t\t\t\t\t\t\tif(!Validation.isServiceRunning(context,RecordingService.class))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.e(TAG, \"start sevicek\");\n\t\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLog.e(TAG, \"start sevice after stop\");\n\t\t\t\t\t\t\t\tcontext.stopService(in);\n\t\t\t\t\t\t\t\tcontext.startService(in);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\t\t\t//Went to idle- this is the end of a call. What type depends on previous state(s)\n\t\t\t\t\t\tif(lastState == TelephonyManager.CALL_STATE_RINGING){\n\t\t\t\t\t\t\t//Ring but no pickup- a miss\n\t\t\t\t\t\t\tcontext.stopService(in);\n\n\t\t\t\t\t\t\tLog.e(\"onMissedCall\",\"call\");\n\t\t\t\t\t\t\t//onMissedCall(context, savedNumber, callStartTime);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(isIncomming){\n\t\t\t\t\t\t\tLog.e(\"onMissedCall\",\"call\");\n\t\t\t\t\t\t\tEndTime=\tGetCurrentDateTime();\n\t\t\t\t\t\t\tLog.e(TAG, GetCurrentDateTime()+\" \"+lastState+\" \"+\"IDLE\"+isIncomming);\n\n\t\t\t\t\t\t\tCallType=\"Incomming\";\n\n\t\t\t\t\t\t\tSetDutyTime();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tEndTime=\tGetCurrentDateTime();\n\t\t\t\t\t\t\tCallType=\"Outgoing\";\n\t\t\t\t\t\t\tLog.e(TAG, GetCurrentDateTime()+\" \"+lastState+\" \"+\"IDLE\"+isIncomming);\n\n\t\t\t\t\t\t\tSetDutyTime();\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlastState = state;\n\n\n\t\t\t}\n\t\t},PhoneStateListener.LISTEN_CALL_STATE);\n\n\t\t {\n\t\t\t Bundle b = intent.getExtras();\n\n\t\t\t String outGoingNumber = b.getString(Intent.EXTRA_PHONE_NUMBER);\n\t\t\t outGoingNumber=getContactDisplayNameByNumber(outGoingNumber, context);\n\t\t\t Log.e(\"outGoingNumber33\",\"\"+outGoingNumber);\n\t\t\t if(outGoingNumber!=null&&outGoingNumber.length()>0)\n\t\t\t\t PhoneMunber=outGoingNumber;\n\t\t\t //blockCall(context, b);\n\n\t\t }\n\n\n }", "@Override\n public void onFailure(Call<EnquiryData>call, Throwable t) {\n Log.e(\"FAILURE: \", t.toString());\n }", "void onCanceled();", "public void disconnectLiveCalls() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"disconnectLiveCalls: %{public}s.\", new Object[]{callById.toString()});\n callById.disconnect();\n }\n }\n this.mCallMapById.clear();\n }\n }", "public void onCallClicked(View view) {\n if (mCallEnd) {\n startCall();\n mCallEnd = false;\n mCallBtn.setImageResource(R.drawable.btn_endcall);\n } else {\n endCall();\n mCallEnd = true;\n mCallBtn.setImageResource(R.drawable.btn_startcall);\n }\n showButtons(!mCallEnd);\n }", "@Override\n public void onFailure(Call<ChallengeResponse> call, Throwable t) {\n Toast.makeText(getBaseContext(), \"Please check your connection!\", Toast.LENGTH_LONG).show();\n finish();\n\n }", "@Override\r\n\tpublic void onEndCall(CallEndAPI data) throws AudiumException {\r\n\t\t// The EndCallInterface defines a single method onEndCall which acts as the execution method for the on call end class.\r\n\t\t// This onEndCall method receives a single argument, an instance of CallEndAPI. \r\n\t\t// This CallEndAPI class belongs to the Session API and is used to access information about the visit to the application that just ended \r\n\t\t// (such as how the call ended or the result of the call\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd-HH\"); //import from java.text\r\n\t\tDate currDate = new Date(); //import from java.util\r\n\t\tString strCurrDate = sdf.format(currDate);\r\n\t\tString fileName = \"D:\\\\CVP\\\\CVP-Java\\\\debug\\\\\"+ data.getApplicationName() + \".\"+ strCurrDate +\".log\";\t\t\r\n\r\n\t\tdata.addToLog(\"EndCallJava Append to file\",fileName);\r\n\r\n\t\tStringBuilder logstring = new StringBuilder();\r\n\r\n\t\tFileOutputStream fileOut = null; //import from java.io\r\n\t\tFile f = null; //import from java.io\r\n\r\n\t\ttry {\r\n\t\t\tlogstring.append(\"startdate: \"+data.getStartDate()) ;\r\n\t\t\tlogstring.append(\",ani:\" + data.getAni());\r\n\t\t\tlogstring.append(\",dnis:\" + data.getDnis());\r\n\t\t\tlogstring.append(\",callid:\" + data.getSessionData(\"callid\")); logstring.append(\",sessionID:\" + data.getSessionId());\r\n\t\t\tlogstring.append(\",result:\" + data.getCallResult());\r\n\t\t\tlogstring.append(\",howend:\" + data.getHowCallEnded());\r\n\t\t\tlogstring.append(\"\\r\\n\");\r\n\r\n\t\t\t// ****** DO YOUR LAB HERE *****\r\n\r\n\t\t\tString elementName, exitName;\r\n\t\t\tReadOnlyList elementHistory = data.getElementHistory(); //import from com.audium.server.session\r\n\t\t\tReadOnlyList exitHistory = data.getExitStateHistory();\r\n\r\n\t\t\tString lastExcCode = (String) data.getSessionData(\"lastException.code\");\r\n\t\t\tif (lastExcCode != null) {\r\n\t\t\t\tdata.addToLog(\"LAST EXC NOT NULL\", lastExcCode); // this will be writing to the activity log\r\n\t\t\t}\telse {\r\n\t\t\t\tdata.addToLog(\"LAST EXC IS NULL\", lastExcCode); // this will be writing to the activity log \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (data.getCallResult().equalsIgnoreCase(\"error\")) {\r\n\t\t\t\tString badElement = elementHistory.lastElement();\r\n\t\t\t\tlogstring.append(\",BadElement:\" + badElement);\r\n\t\t\t\t\r\n\t\t\t\t// This file, only gets generated, every 1 hour\r\n\t\t\t\t// If you only want to send an email, no more than 1 per hour:\r\n\t\t\t\tf=new File(fileName);\r\n\t\t\t\tif (!f.exists()) {\r\n\t\t\t\t\t// sendEmail(data,logstring.toString());\r\n\t\t\t\t\tlogstring.append(\", sent email\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tlogstring.append(\"Elements---Exit States\\r\\n\");\r\n\t\t\tfor (int i=0; i< exitHistory.size(); i++ ) {\r\n\t\t\t\t//get each element name and each exit state name\r\n\t\t\t\telementName = elementHistory.get(i);\r\n\t\t\t\texitName = exitHistory.get(i);\r\n\t\t\t\tlogstring.append( i + \":\" + elementName + \"---\" + exitName + \"\\r\\n\");\r\n\r\n\t\t\t\t//optional Challenge goes here\r\n\t\t\t\tHashMap<String, String> allElementData = data.getAllElementData(elementName); //Quick-Fix: import HashMap from java.util\r\n\t\t\t\tif (allElementData.size()>0) {\r\n\t\t\t\t\tlogstring.append(\"\\tElementData:\\r\\n\");\r\n\t\t\t\t\tfor ( Entry<String, String> entry : allElementData.entrySet() ) {//import java.util.Map.Entry\r\n\t\t\t\t\t\tlogstring.append(\"\\t\"+ entry.getKey() + \"=\" + entry.getValue() + \"\\r\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tf = new File(fileName);\r\n\t\t\tfileOut = new FileOutputStream(f, true); //this creates the file if necessary; true=append\r\n\t\t\tfileOut.write(logstring.toString().getBytes());\r\n\t\t\tfileOut.flush();\r\n\t\t} catch (Exception e) {\r\n\t\t\tdata.logWarning(\"End Call Class Problem\" + e);\r\n\t\t} finally {\r\n\t\t\tif (fileOut!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfileOut.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t}//try - catch\r\n\t\t\t}//if\r\n\t\t}//finally\r\n\r\n\t}", "public void onCancel();" ]
[ "0.68463653", "0.68122447", "0.67391914", "0.6726458", "0.65880513", "0.65418875", "0.6515909", "0.65020543", "0.64099234", "0.6352544", "0.62943923", "0.6113366", "0.61044776", "0.6079402", "0.6077058", "0.6062605", "0.6053274", "0.59775", "0.59723526", "0.5970589", "0.5957987", "0.5955139", "0.5948784", "0.58768725", "0.58459216", "0.5845891", "0.58094776", "0.5807366", "0.5798241", "0.5787996", "0.5787449", "0.5781633", "0.57803696", "0.57786936", "0.57586384", "0.57353544", "0.57332104", "0.5720513", "0.57168895", "0.5704117", "0.5699118", "0.5696279", "0.56897926", "0.56897926", "0.56754786", "0.56660557", "0.5660271", "0.5656764", "0.5655046", "0.5645576", "0.56195295", "0.56183577", "0.5616956", "0.557598", "0.5568593", "0.55357903", "0.5527276", "0.5527276", "0.5519522", "0.5499601", "0.54902077", "0.5470895", "0.54656523", "0.5464161", "0.5460525", "0.5458124", "0.5452737", "0.5450722", "0.5449308", "0.5441024", "0.54273576", "0.5425409", "0.5421354", "0.5415446", "0.5407756", "0.5406828", "0.5401685", "0.53983855", "0.53748536", "0.53713804", "0.5362589", "0.535563", "0.53504485", "0.5348918", "0.53408235", "0.53363556", "0.5334958", "0.5333499", "0.5327023", "0.5319183", "0.5301566", "0.5301493", "0.5300155", "0.5295193", "0.5294551", "0.52865344", "0.52805287", "0.5278867", "0.52638674", "0.5260684" ]
0.60179514
17
Notifies the Engine of a change in connection state of a calling device.
public void connectionStateChanged( ConnectionState state ) { connectionStateChanged( getNativeObject(), state ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void notifyConnectionStateChanged(State state);", "protected void onConnectionChanged() {\n mConnectionChangedListener.didChange(mConnection);\n }", "protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }", "@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\n\t}", "void onIceConnectionChange(boolean connected);", "private void broadcastConnectionState(BluetoothDevice device, int newState, int prevState) {\n\n int delay = mAudioManager.setBluetoothA2dpDeviceConnectionState(device, newState);\n\n mWakeLock.acquire();\n mIntentBroadcastHandler.sendMessageDelayed(mIntentBroadcastHandler.obtainMessage(\n MSG_CONNECTION_STATE_CHANGED,\n prevState,\n newState,\n device),\n delay);\n }", "@Override\n public void updateConnectState(boolean connected){\n if(connected){\n if(DBG) Log.i(DEBUG_TAG, \"Activity received connected notification\");\n setupTopics();\n }else{\n resetTopics();\n if(DBG) Log.i(DEBUG_TAG, \"Activity received disconnect notification\");\n }\n\n }", "@Override\n public void stateChanged(\n final CuratorFramework client, final ConnectionState newState\n ) {\n }", "private void onConnectionStateChanged(int state, int peerFeat, int chldFeat, byte[] address) {\n StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED);\n event.valueInt = state;\n event.valueInt2 = peerFeat;\n event.valueInt3 = chldFeat;\n event.device = getDevice(address);\n // BluetoothAdapter.getDefaultAdapter().getRemoteDevice(Utils.getAddressStringFromByte\n // (address));\n if (DBG) {\n Log.d(TAG, \"Device addr \" + event.device.getAddress() + \" State \" + state);\n }\n HeadsetClientService service = HeadsetClientService.getHeadsetClientService();\n if (service != null) {\n service.messageFromNative(event);\n } else {\n Log.w(TAG, \"Ignoring message because service not available: \" + event);\n }\n }", "private void onConnectionStateChanged(int state, int peerFeat, int chldFeat, byte[] address) {\n StackEvent event = new StackEvent(StackEvent.EVENT_TYPE_CONNECTION_STATE_CHANGED);\n event.valueInt = state;\n event.valueInt2 = peerFeat;\n event.valueInt3 = chldFeat;\n event.device = getDevice(address);\n // BluetoothAdapter.getDefaultAdapter().getRemoteDevice(Utils.getAddressStringFromByte\n // (address));\n if (DBG) {\n Log.d(TAG, \"Device addr \" + event.device.getAddress() + \" State \" + state);\n }\n HeadsetClientService service = HeadsetClientService.getHeadsetClientService();\n if (service != null) {\n service.messageFromNative(event);\n } else {\n Log.w(TAG, \"Ignoring message because service not available: \" + event);\n }\n }", "public void connectivityChanged(ConnectivityEvent ce) {\n\t\t\tthrow new RuntimeException(\"Method 'connectivityChanged' in class 'DummyNode' not yet implemented!\");\n\t\t\t//\n\t\t}", "@Override\n\tpublic void connectionStateChanged(boolean connected, boolean connectionLost) {\n\t\t\n\t}", "@Override\n public void handleMessage(Message pMsg) {\n\n TallyDeviceConnectionStatusActivity tempActivity = activity.get();\n if (tempActivity != null) {\n\n switch (pMsg.what) {\n\n case TallyDeviceService.MSG_CONNECTION_STATE:\n tempActivity.stateChanged(TallyDeviceService.State.values()[pMsg.arg1], pMsg);\n break;\n\n }\n\n }\n\n super.handleMessage(pMsg);\n\n }", "@Override\n\tpublic void onDataConnectionStateChanged(int state) {\n\t\tLog.v(\"FMT\", \"Connection Listener appelé. State : \"+state);\n\t\tsuper.onDataConnectionStateChanged(state);\n\t}", "void firePeerConnected(ConnectionKey connectionKey);", "@ForOverride\n public void onStateChange(InternalSubchannel internalSubchannel, ConnectivityStateInfo connectivityStateInfo) {\n }", "@Override\n public void peerStateChanged(CallPeerChangeEvent evt)\n {\n CallPeer sourcePeer = evt.getSourceCallPeer();\n \n if (!sourcePeer.equals(callPeer))\n return;\n \n CallPeerState newState = (CallPeerState) evt.getNewValue();\n CallPeerState oldState = (CallPeerState) evt.getOldValue();\n \n String newStateString = sourcePeer.getState().getLocalizedStateString();\n \n // Play the dialing audio when in connecting and initiating call state.\n // Stop the dialing audio when we enter any other state.\n if (newState == CallPeerState.INITIATING_CALL\n || newState == CallPeerState.CONNECTING)\n {\n NotificationManager\n .fireNotification(NotificationManager.DIALING);\n }\n else\n {\n NotificationManager.stopSound(NotificationManager.DIALING);\n }\n \n if (newState == CallPeerState.ALERTING_REMOTE_SIDE\n //if we were already in state CONNECTING_WITH_EARLY_MEDIA the server\n //is already taking care of playing the notifications so we don't\n //need to fire a notification here.\n && oldState != CallPeerState.CONNECTING_WITH_EARLY_MEDIA)\n {\n //\n NotificationManager\n .fireNotification(NotificationManager.OUTGOING_CALL);\n }\n else if (newState == CallPeerState.BUSY)\n {\n NotificationManager.stopSound(NotificationManager.OUTGOING_CALL);\n \n // We start the busy sound only if we're in a simple call.\n if (!renderer.getCallDialog().isConference())\n {\n NotificationManager.fireNotification(\n NotificationManager.BUSY_CALL);\n }\n }\n else if (newState == CallPeerState.CONNECTING_INCOMING_CALL ||\n newState == CallPeerState.CONNECTING_INCOMING_CALL_WITH_MEDIA)\n {\n if (!CallPeerState.isOnHold(oldState))\n {\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n NotificationManager\n .stopSound(NotificationManager.INCOMING_CALL);\n }\n }\n else if (newState == CallPeerState.CONNECTING_WITH_EARLY_MEDIA)\n {\n //this means a call with early media. make sure that we are not\n //playing local notifications any more.\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n }\n else if (newState == CallPeerState.CONNECTED)\n {\n if (!CallPeerState.isOnHold(oldState))\n {\n NotificationManager\n .stopSound(NotificationManager.OUTGOING_CALL);\n NotificationManager\n .stopSound(NotificationManager.INCOMING_CALL);\n \n if (!renderer.getCallDialog().isCallTimerStarted())\n renderer.getCallDialog().startCallTimer();\n \n // Enabling all buttons when the call is connected.\n renderer.getCallDialog().enableButtons();\n }\n else\n {\n renderer.setOnHold(false);\n renderer.getCallDialog().updateHoldButtonState();\n // Enabling all buttons when the call get back from hold\n renderer.getCallDialog().enableButtonsWhileOnHold(false);\n }\n }\n else if (newState == CallPeerState.DISCONNECTED)\n {\n // The call peer should be already removed from the call\n // see CallPeerRemoved\n }\n else if (newState == CallPeerState.FAILED)\n {\n // The call peer should be already removed from the call\n // see CallPeerRemoved\n }\n else if (CallPeerState.isOnHold(newState))\n {\n renderer.setOnHold(true);\n renderer.getCallDialog().enableButtonsWhileOnHold(true);\n renderer.getCallDialog().updateHoldButtonState();\n }\n \n renderer.setPeerState(newStateString);\n \n String reasonString = evt.getReasonString();\n if (reasonString != null)\n renderer.setErrorReason(reasonString);\n }", "@Override\r\n\tpublic void onNetChange(boolean isNetConnected) {\n\t\tif (isNetConnected) {\r\n\t\t\tShowToast(R.string.network_error_not_connected);\r\n\t\t}\r\n\t}", "public void reconnected() { }", "public boolean connectionChange()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n for(int i=0; i<numChannel; ++i) {\n PvaClientChannel pvaClientChannel = pvaClientChannelArray[i];\n Channel channel = pvaClientChannel.getChannel();\n ConnectionState stateNow = channel.getConnectionState();\n boolean connectedNow = stateNow==ConnectionState.CONNECTED ? true : false;\n if(connectedNow!=isConnected[i]) return true;\n }\n return false;\n }", "public void notifyClosedConnection (COPSPdpOSReqStateMan man, COPSError error);", "void onNotifyChipConnectionClosed();", "@Override\n public void linkStatusChanged(String connectorId, boolean connected) {\n }", "private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }", "@Override\n\t\tpublic void connectionStateChange(ProxyEvent<Proxy<?>> e) {\n\t\t\tif (e.getConnectionState()==ConnectionState.OPERATIONAL && getConnectionState()==ConnectionState.CONNECTING)\n\t\t\t\tsetConnectionState(ConnectionState.CONNECTED, null);\n\t\t\tsetConnectionState(e.getConnectionState(),e.getError());\n\t\t}", "@Override\n\tpublic void connectionStatusChanged(int connectedState, String reason) {\n\t\tif (mLoginDialog != null && mLoginDialog.isShowing())\n\t\t\tmLoginDialog.dismiss();\n\t\tif (mLoginOutTimeProcess != null && mLoginOutTimeProcess.running) {\n\t\t\tmLoginOutTimeProcess.stop();\n\t\t\tmLoginOutTimeProcess = null;\n\t\t}\n\t\tif (connectedState == XXService.CONNECTED) {\n\t\t\tsave2Preferences();\n\t\t\tstartActivity(new Intent(this, MainActivity.class));\n\t\t\tfinish();\n\t\t} else if (connectedState == XXService.DISCONNECTED)\n\t\t\tT.showLong(LoginActivity.this, getString(R.string.request_failed)\n\t\t\t\t\t+ reason);\n\t}", "void connectionActivity(ConnectionEvent ce);", "private void sendUpdateConnectionInfo() {\n\n }", "public void onStateChange(InCallState oldState, InCallState newState, CallList callList);", "private void connectionLost() {\n setState(EBluetoothStates.CONNECTING);\n // Send a failure message back to the Activity\n // updateActivity(General.MessageType.ERROR, General.OnDeviceConnectionLost);\n }", "private void connectionLost() {\n// mConnectionLostCount++;\n// if (mConnectionLostCount < 3) {\n// \t// Send a reconnect message back to the Activity\n//\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n//\t Bundle bundle = new Bundle();\n//\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost. Reconnecting...\");\n//\t msg.setData(bundle);\n//\t mHandler.sendMessage(msg);\n//\t \n// \tconnect(mSavedDevice); \t\n// } else {\n \tsetState(STATE_LISTEN);\n\t // Send a failure message back to the Activity\n\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n\t Bundle bundle = new Bundle();\n\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost\");\n\t msg.setData(bundle);\n\t mHandler.sendMessage(msg);\n// }\n }", "private void reportExerciseServiceChange(Device dev) {\r\n\t\tif (messengerToExerciseService != null) {\r\n\t\t\tBundle data = new Bundle();\r\n\t\t\tdata.putBoolean(\"running\", dev.running);\r\n\t\t\tdata.putBoolean(\"connected\", dev.connected);\r\n\t\t\tdata.putString(\"status\", dev.status);\r\n\r\n\t\t\tsendDataMessage(messengerToExerciseService, data, DRIVER2EXERCISE_SERVICE_STATUS_UPDATE, thisDriver.my_state_index, dev.my_dev_index);\r\n\t\t}\r\n\t}", "public void stateChanged(SensorPort arg0, int arg1, int arg2) {\n\t\t\n\t}", "void onConnectedAsServer(String deviceName);", "@Override\n public void onCalled() {\n LogitowDeviceManager.current.logger.info(\"Logitow device {} disconnected!\", device);\n device.info.isConnected = false;\n }", "void notifyConnected(MessageSnapshot snapshot);", "public void onConnection();", "@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }", "void firePeerDisconnected(ConnectionKey connectionKey);", "@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) {\n\r\n }", "public interface OnConnectivityChangedListener {\n void onConnectivityChanged(NetworkMonitor.State state);\n}", "private void updateConnectedFlags() {\n ConnectivityManager connMgr =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeInfo = connMgr.getActiveNetworkInfo();\n if (activeInfo != null && activeInfo.isConnected()) {\n wifiConnected = activeInfo.getType() == ConnectivityManager.TYPE_WIFI;\n mobileConnected = activeInfo.getType() == ConnectivityManager.TYPE_MOBILE;\n } else {\n wifiConnected = false;\n mobileConnected = false;\n }\n wifiConnected = true;\n mobileConnected = true;\n System.out.println(\"Change 3\");\n }", "private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;\r\n\t\t\told_conn_status=-2;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (used!=null)\r\n\t\t{\r\n\t\t\tif (old_conn_status!=used.getConnStatus())\r\n\t\t\t{\r\n\t\t\t\told_conn_status=used.getConnStatus();\r\n\t\t\t\tLog.e(TAG,\"Connections Status ACCE : \" + used.getConnStatusStr());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}", "@Override\n\t\tpublic void onDeviceConnected() {\n\t\t\tDFUManager.log(TAG, \"onDeviceConnected()\");\n\t\t\tisDeviceConnected = true;\n\t\t\t\n\t\t\t\n\t\t}", "public interface DeviceContextChangeListener {\n\n /**\n * Notification about start phase in device context, right after successful handshake\n * @param nodeId\n * @param success or failure\n */\n void deviceStartInitializationDone(final NodeId nodeId, final boolean success);\n\n /**\n * Notification about start phase in device context, after all other contexts initialized properly\n * @param nodeId\n * @param success\n */\n void deviceInitializationDone(final NodeId nodeId, final boolean success);\n\n}", "public void notifyConfigChange() {\n }", "private void stateChanged(TallyDeviceService.State pNewState, Message pMsg) {\n\n state = pNewState;\n\n if (state == TallyDeviceService.State.CONNECTED) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectedState();\n } else if (state == TallyDeviceService.State.CONNECTING) {\n tallyDeviceName = (String)pMsg.obj;\n handleConnectingState();\n } else if (state == TallyDeviceService.State.DISCONNECTED) {\n handleDisconnectedState();\n }\n\n }", "protected void setConnected(boolean paramBoolean) {\n/* 169 */ this.delegate.setConnected(paramBoolean);\n/* */ }", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {\n\n if (newState == BluetoothProfile.STATE_CONNECTED) {\n mConnectionState = STATE_CONNECTED;\n\n if (mBleListener != null) {\n mBleListener.onConnected();\n }\n\n // Attempts to discover services after successful connection.\n gatt.discoverServices();\n\n } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {\n mConnectionState = STATE_DISCONNECTED;\n\n if (mBleListener != null) {\n mBleListener.onDisconnected();\n }\n } else if (newState == BluetoothProfile.STATE_CONNECTING) {\n mConnectionState = STATE_CONNECTING;\n\n if (mBleListener != null) {\n mBleListener.onConnecting();\n }\n }\n }", "@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }", "public void updateNotification(InCallState state, CallList callList) {\n updateInCallNotification(state, callList);\n }", "private void updateConnectedState() {\n NetworkInfo activeNetworkInfo = this.mConnectivityManager.getActiveNetworkInfo();\n this.mIsNetworkConnected = activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }", "protected abstract void onConnect();", "public abstract void clientStatusChanged(ClientManager client, Object object);", "@Override\n public void onDeviceStateChange(VirtualDevice virtualDevice, int returncode) {\n\n }", "@Override\n public void onConnectionStateChange(BluetoothGatt gatt, int status,\n int newState) {\n Log.i(\"onConnectionStateChange\", \"The connection status has changed. status:\" + status + \" newState:\" + newState + \"\");\n try {\n if(status == BluetoothGatt.GATT_SUCCESS) {\n switch (newState) {\n // Has been connected to the device\n case BluetoothProfile.STATE_CONNECTED:\n Log.i(\"onConnectionStateChange\", \"Has been connected to the device\");\n if(_ConnectionStatus == ConnectionStatus.Connecting) {\n _ConnectionStatus = ConnectionStatus.Connected;\n try {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnConnected();\n if (gatt.getDevice().getBondState() == BluetoothDevice.BOND_BONDED){\n //Url : https://github.com/NordicSemiconductor/Android-DFU-Library/blob/release/dfu/src/main/java/no/nordicsemi/android/dfu/DfuBaseService.java\n Log.i(\"onConnectionStateChange\",\"Waiting 1600 ms for a possible Service Changed indication...\");\n // Connection successfully sleep 1600ms, the connection success rate will increase\n Thread.sleep(1600);\n }\n } catch (Exception e){}\n // Discover service\n gatt.discoverServices();\n }\n break;\n // The connection has been disconnected\n case BluetoothProfile.STATE_DISCONNECTED:\n Log.i(\"onConnectionStateChange\", \"The connection has been disconnected\");\n if(_ConnectionStatus == ConnectionStatus.Connected) {\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n Close();\n _ConnectionStatus = ConnectionStatus.DisConnected;\n break;\n /*case BluetoothProfile.STATE_CONNECTING:\n Log.i(\"onConnectionStateChange\", \"Connecting ...\");\n _ConnectionStatus = ConnectionStatus.Connecting;\n break;\n case BluetoothProfile.STATE_DISCONNECTING:\n Log.i(\"onConnectionStateChange\", \"Disconnecting ...\");\n _ConnectionStatus = ConnectionStatus.DisConnecting;\n break;*/\n default:\n Log.e(\"onConnectionStateChange\", \"newState:\" + newState);\n break;\n }\n }else {\n Log.i(\"onConnectionStateChange\", \"GATT error\");\n Close();\n if(_ConnectionStatus == ConnectionStatus.Connecting\n && _Timeout - (new Date().getTime() - _ConnectStartTime.getTime()) > 0) {\n Log.i(\"Connect\", \"Gatt Error! Try to reconnect (\"+_ConnectIndex+\")...\");\n _ConnectionStatus = ConnectionStatus.DisConnected;\n Connect(); // Connect\n }else {\n _ConnectionStatus = ConnectionStatus.DisConnected;\n if (_PeripheryBluetoothServiceCallBack != null)\n _PeripheryBluetoothServiceCallBack.OnDisConnected();\n }\n }\n }catch (Exception ex){\n Log.e(\"onConnectionStateChange\", ex.toString());\n }\n super.onConnectionStateChange(gatt, status, newState);\n }", "private void onApnChanged() {\n boolean isConnected;\n\n isConnected = (state != State.IDLE && state != State.FAILED);\n\n // TODO: It'd be nice to only do this if the changed entrie(s)\n // match the current operator.\n createAllApnList();\n if (state != State.DISCONNECTING) {\n cleanUpConnection(isConnected, Phone.REASON_APN_CHANGED);\n if (!isConnected) {\n trySetupData(Phone.REASON_APN_CHANGED);\n }\n }\n }", "@Override\r\n\tpublic void connected(Connection connection, ConnectApprove datagram)\r\n\t{\n\t\t\r\n\t}", "public abstract void onConnect();", "public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }", "private static void updateCdmaCallStateOnNewOutgoingCall(PhoneGlobals app,\n Connection connection) {\n if (app.cdmaPhoneCallState.getCurrentCallState() ==\n CdmaPhoneCallState.PhoneCallState.IDLE) {\n // This is the first outgoing call. Set the Phone Call State to ACTIVE\n app.cdmaPhoneCallState.setCurrentCallState(\n CdmaPhoneCallState.PhoneCallState.SINGLE_ACTIVE);\n } else {\n // This is the second outgoing call. Set the Phone Call State to 3WAY\n app.cdmaPhoneCallState.setCurrentCallState(\n CdmaPhoneCallState.PhoneCallState.THRWAY_ACTIVE);\n\n // TODO: Remove this code.\n //app.getCallModeler().setCdmaOutgoing3WayCall(connection);\n }\n }", "public interface ConnectionStateListener {\n void onDisconnect();\n void onConnect();\n void onLogout();\n}", "public void setConnected(boolean connected);", "protected void stateChanged() {\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t}", "public void setConnected(boolean c) {\n this.connected = c;\n }", "protected abstract boolean isConnected();", "@Override\n\tpublic void onDeviceChangeInfoSuccess(FunDevice funDevice) {\n\n\t}", "Notification createConnectionRequestNotification(Connection conn );", "@Override\n\t\tpublic void agentChangeStatus(String system_id, String state) {\n\t\t\tSystem.out.println(\"=======>Agent Change state: \" + state);\n\t\t\tif (system_id==null || !aCallback.containsKey(system_id))\n\t\t\t\t//Unknown agent changes from disconnect state to unassociated (system_id is not received yet)\n\t\t\t\treturn;\n\n\t\t\t// Send a agent Broadcast Event to all clients.\n\t\t\tfinal RemoteCallbackList<IAgentCallbackService> agentCallbacks = aCallback.get(system_id);\n final int N = agentCallbacks.beginBroadcast();\n for (int i=0; i<N; i++) {\n try {\n \tagentCallbacks.getBroadcastItem(i).agentStateChanged(state);\n } catch (RemoteException e) {\n // The RemoteCallbackList will take care of removing\n // the dead object for us.\n }\n }\n agentCallbacks.finishBroadcast();\n\t\t\t//System.out.println(\"agente \" + system_id + \" changed to: \" + state);\n\t\t}", "public final void deviceConnectivityChanged(Device device,\n\t\t\t\tTimestampedConnectivityStatus status) {\n\t\t\tif (status.isOffline()) {\n\t\t\t\tControlView.this.doShowWarningPaneIfNeeded(deviceUnderDisplay,\n\t\t\t\t\t\tnull, true);\n\t\t\t}\n\n\t\t\tif (status.isOnline()) {\n\t\t\t\tControlView.this.removeWarningPane();\n\t\t\t}\n\t\t}", "public void handleConnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(true);\n setMessageText(\"Connected to \" + tallyDeviceName);\n\n // Waits for 2 seconds so that the user\n // can see the message and then exits the\n // activity\n timerHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n exitActivity();\n\n }\n\n }, 2000);\n\n }", "public abstract void onNetworkStateChange(@NonNull State newState);", "public interface OnConnectListener {\n void onStatusConnection(AndroidDevice androidDevice, boolean connected);\n void onConnected(AndroidDevice androidDevice);\n void onDisconnected(AndroidDevice androidDevice);\n void onTryConnect(AndroidDevice androidDevice);\n}", "@Test\n public void testRcState() {\n int changeCnt[] = {0};\n DeviceState state[] = {null};\n mRC.getState(deviceState -> {\n changeCnt[0]++;\n state[0] = deviceState;\n });\n\n DeviceStateCore stateCore = mRcCore.getDeviceStateCore();\n\n // check initial state\n assertThat(changeCnt[0], is(1));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.DISCONNECTED),\n causeIs(DeviceState.ConnectionStateCause.NONE), canBeForgotten(false), canBeDisconnected(false),\n canBeConnected(false),\n hasNoConnectors(), hasNoActiveConnector()));\n\n Set<DeviceConnectorCore> connectors = new HashSet<>();\n // add a connector. canBeConnected should switch to true\n connectors.add(DeviceConnectorCore.LOCAL_WIFI);\n stateCore.updateConnectors(connectors).notifyUpdated();\n assertThat(changeCnt[0], is(2));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.DISCONNECTED),\n causeIs(DeviceState.ConnectionStateCause.NONE), canBeForgotten(false), canBeDisconnected(false),\n canBeConnected(true),\n hasConnectors(DeviceConnectorCore.LOCAL_WIFI), hasNoActiveConnector()));\n\n // add another connector\n connectors.add(DeviceConnectorCore.LOCAL_USB);\n stateCore.updateConnectors(connectors).notifyUpdated();\n assertThat(changeCnt[0], is(3));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.DISCONNECTED),\n causeIs(DeviceState.ConnectionStateCause.NONE), canBeForgotten(false), canBeDisconnected(false),\n canBeConnected(true),\n hasConnectors(DeviceConnectorCore.LOCAL_WIFI, DeviceConnectorCore.LOCAL_USB), hasNoActiveConnector()));\n\n // move to connecting, canBeConnected should revert to false\n stateCore.updateConnectionState(DeviceState.ConnectionState.CONNECTING,\n DeviceState.ConnectionStateCause.USER_REQUESTED).notifyUpdated();\n assertThat(changeCnt[0], is(4));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.CONNECTING),\n causeIs(DeviceState.ConnectionStateCause.USER_REQUESTED), canBeForgotten(false),\n canBeDisconnected(false),\n canBeConnected(false), hasConnectors(DeviceConnectorCore.LOCAL_WIFI, DeviceConnectorCore.LOCAL_USB),\n hasNoActiveConnector()));\n\n // move to connected with an active local connector, canBeDisconnected should switch to true\n stateCore.updateConnectionState(DeviceState.ConnectionState.CONNECTED)\n .updateActiveConnector(DeviceConnectorCore.LOCAL_WIFI).notifyUpdated();\n assertThat(changeCnt[0], is(5));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.CONNECTED),\n causeIs(DeviceState.ConnectionStateCause.USER_REQUESTED), canBeForgotten(false),\n canBeDisconnected(true),\n canBeConnected(false), hasConnectors(DeviceConnectorCore.LOCAL_WIFI, DeviceConnectorCore.LOCAL_USB),\n activeConnector(DeviceConnectorCore.LOCAL_WIFI)));\n\n // mark as persisted, canBeForgotten should switch to true\n stateCore.updatePersisted(true).notifyUpdated();\n assertThat(changeCnt[0], is(6));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.CONNECTED),\n causeIs(DeviceState.ConnectionStateCause.USER_REQUESTED), canBeForgotten(true), canBeDisconnected(true),\n canBeConnected(false), hasConnectors(DeviceConnectorCore.LOCAL_WIFI, DeviceConnectorCore.LOCAL_USB),\n activeConnector(DeviceConnectorCore.LOCAL_WIFI)));\n\n // remove all connectors and disconnect\n stateCore.updateConnectors(Collections.emptySet()).updateActiveConnector(null)\n .updateConnectionState(DeviceState.ConnectionState.DISCONNECTED,\n DeviceState.ConnectionStateCause.CONNECTION_LOST).notifyUpdated();\n assertThat(changeCnt[0], is(7));\n assertThat(state[0], allOf(stateIs(DeviceState.ConnectionState.DISCONNECTED),\n causeIs(DeviceState.ConnectionStateCause.CONNECTION_LOST), canBeForgotten(true),\n canBeDisconnected(false),\n canBeConnected(false), hasNoConnectors(), hasNoActiveConnector()));\n\n // check state ref does not change when rc is removed\n mRcCore.destroy();\n assertThat(changeCnt[0], is(7));\n }", "@Override\n\tpublic void changeChannel() {\n\t\tSystem.out.println(\"Listening to Radio...\\n channel 1 2 3 4....\");\n\t}", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "@Override\n public void onNetworkConnectionChanged(boolean isConnected) {\n showSnack(isConnected);\n }", "@Override\n public void onNetworkConnectionChanged(boolean isConnected) {\n showSnack(isConnected);\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }", "private void onDevicesListUpdate(Map<String, Boolean> newValue, Map<String, Boolean> oldValue) {\n newValue = newValue == null ? Collections.<String, Boolean>emptyMap() : newValue;\n oldValue = oldValue == null ? Collections.<String, Boolean>emptyMap() : oldValue;\n\n for (Map.Entry<String, Boolean> entry : newValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!oldValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceConnected(entryKey, entry.getValue());\n }\n }\n\n for (Map.Entry<String, Boolean> entry : oldValue.entrySet()) {\n String entryKey = entry.getKey();\n if (!newValue.containsKey(entryKey) && !(entryKey).equals(getMyDeviceId())) {\n onDeviceDisconnected(entryKey, entry.getValue());\n }\n }\n }", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n final Handler handler = new Handler(Looper.getMainLooper());\n final Runnable runnable = new Runnable() {\n public void run() {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n ready = true;\n } else {\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n ready = false;\n }\n }\n };\n handler.postDelayed(runnable, 2000); // waiting time equivalent to the time in onServicesDiscovered for other BLE connections\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }", "void connected();", "abstract void onConnect();", "void onConnectDeviceComplete();", "public abstract void stateChanged(STATE state);", "private void checkUSBConnectionOnStartUp(){\n //Notification and icon\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this, \"765\");\n Intent chargingStatus = registerReceiver(powerConnectionReceiver, filter);\n int plugged = chargingStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);\n isPowerConnected = plugged == BatteryManager.BATTERY_PLUGGED_AC || plugged == BatteryManager.BATTERY_PLUGGED_USB;\n if(SensorService.isPowerConnected){\n builder.setContentTitle(\"Earthquake Detection Enabled\")\n .setSmallIcon(R.drawable.ic_earthquake)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(EARTHQUAKE_STATE));\n }\n else{\n builder.setContentTitle(\"Fall Detection Enabled\")\n .setSmallIcon(R.drawable.ic_falling_man)\n .setAutoCancel(true);\n // Main Activity icon change: StateBroadcast\n sendBroadcast(new Intent().setAction(STANDING_STATE));\n }\n notificationManager = (NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);\n notificationManager.notify(1, builder.build());\n }", "void onConnectionLost();", "void handleConnectionOpened();", "@Override\n public void onReceiveConnections(Map<String, RestApi.Connection> connections) {\n if (connections.containsKey(mDevice.DeviceID)) {\n mVersion.setSummary(connections.get(mDevice.DeviceID).ClientVersion);\n mCurrentAddress.setSummary(connections.get(mDevice.DeviceID).Address);\n }\n }", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n if (!connToastsDeactivated)\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n } else {\n ready = false;\n if (!connToastsDeactivated)\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }", "protected void onRobotConnect (boolean bbUserNotify)\r\n\t{\r\n\t\tsetCOMStatus (true);\r\n\t\tUI_RefreshConnStatus ();\r\n\t}", "@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}", "@Override\n public void updateDevice() throws RemoteHomeConnectionException, RemoteHomeManagerException {\n String[] statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sc\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"c\")) {\n if (statusResponse[2].equals(\"1\")) {\n setCurrentState(true);\n } else {\n setCurrentState(false);\n }\n if (statusResponse[3].equals(\"1\")) {\n setOnWhenAppliedPower(false);\n } else {\n setOnWhenAppliedPower(true);\n }\n if (statusResponse[4].equals(\"1\")) {\n setOnWhenMovementDetected(true);\n } else {\n setOnWhenMovementDetected(false);\n }\n setConfiguredPeriod(Integer.parseInt(statusResponse[5]));\n setCurrentCounter(Integer.parseInt(statusResponse[6]));\n setTimestamp(System.currentTimeMillis());\n }\n statusResponse = m.sendCommandWithAnswer(getDeviceId(), \"sa\").split(\"\\\\|\");\n if (!statusResponse[0].equals(\"1\")) {\n throw new RemoteHomeManagerException(\"This response belongs to different device type: \"+statusResponse[0], RemoteHomeManagerException.WRONG_DEVICE_TYPE);\n }\n if (statusResponse[1].equals(\"a\")) {\n setAlarmStatus(Integer.parseInt(statusResponse[2])); \n if (statusResponse[3].equals(\"1\")) {\n setAlarmSensorCurrentState(true);\n } else {\n setAlarmSensorCurrentState(false);\n } \n setAlarmEnterTimeout(Integer.parseInt(statusResponse[4]));\n setAlarmLeaveTimeout(Integer.parseInt(statusResponse[5]));\n setTimestamp(System.currentTimeMillis());\n\n }\n }", "protected void onConnect() {}" ]
[ "0.7504997", "0.7359237", "0.7025638", "0.67701876", "0.66478485", "0.6422466", "0.62602645", "0.6211879", "0.62060374", "0.62060374", "0.6147608", "0.6146052", "0.6140223", "0.61384106", "0.6085973", "0.6033357", "0.60003644", "0.5984707", "0.5973839", "0.59682727", "0.59638315", "0.5902333", "0.5895666", "0.5886462", "0.58791685", "0.5859807", "0.58571243", "0.5855143", "0.58384615", "0.58075505", "0.58028436", "0.5790963", "0.5776014", "0.5760296", "0.57601047", "0.57494736", "0.57392853", "0.570944", "0.5695235", "0.5691794", "0.5681057", "0.5670247", "0.56462955", "0.5629356", "0.5614209", "0.5611041", "0.5591967", "0.5586894", "0.55822814", "0.5579793", "0.5564642", "0.5559992", "0.5549688", "0.5544802", "0.55413705", "0.55342156", "0.5528084", "0.55275077", "0.55216336", "0.5521089", "0.5514161", "0.5491415", "0.5484996", "0.548462", "0.54819006", "0.54635", "0.546273", "0.54602337", "0.5452613", "0.54482", "0.54475707", "0.5438246", "0.54243624", "0.53977793", "0.53976995", "0.53952986", "0.5394995", "0.53925294", "0.53925294", "0.53912497", "0.5391025", "0.5390227", "0.537949", "0.53750616", "0.5364817", "0.53558373", "0.53386474", "0.5338159", "0.5333194", "0.5327107", "0.5326613", "0.5326613", "0.5326613", "0.5326613", "0.5326613", "0.5325912", "0.53249913", "0.5317002", "0.53158104", "0.5314901" ]
0.62697196
6
Created by yan on 2016/8/10.
public interface MsgChannelsMapper { MsgChannels selectById(int id) throws SQLException; List<MsgChannels> selectChannels(@Param("search_value") String search_value) throws SQLException; List<MsgChannels> selectAllChannels() throws SQLException; int insertChannel(MsgChannels msgChannels) throws SQLException; int updateChannel(MsgChannels msgChannels) throws SQLException; int deleteByChannelId(int id) throws SQLException; List<MsgChannels> selectChannelScreen(Map<String, Object> params) throws SQLException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo4359a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "public void mo55254a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo21877s() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo12930a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}" ]
[ "0.60392433", "0.59550095", "0.58594155", "0.58536786", "0.58422756", "0.58422756", "0.5789378", "0.5770488", "0.5744053", "0.5736863", "0.56923974", "0.5688266", "0.56677085", "0.56430143", "0.56352985", "0.56339264", "0.5624978", "0.56248856", "0.56240284", "0.56151205", "0.55908704", "0.5588144", "0.5587363", "0.55788213", "0.55788213", "0.55788213", "0.55788213", "0.55788213", "0.55778855", "0.5567715", "0.5561621", "0.5551813", "0.5551471", "0.5543194", "0.554299", "0.55375314", "0.5524423", "0.5523758", "0.55124503", "0.5466201", "0.5466201", "0.54648566", "0.5461868", "0.54602057", "0.54594415", "0.5458985", "0.5458985", "0.5458985", "0.5458985", "0.5458985", "0.5458985", "0.5458985", "0.5455084", "0.545095", "0.545095", "0.545095", "0.54451704", "0.54451704", "0.54451704", "0.54425204", "0.54342425", "0.54342425", "0.54241365", "0.54241365", "0.54241365", "0.5422018", "0.5422018", "0.5419515", "0.54043865", "0.5403364", "0.53900504", "0.53856015", "0.53806114", "0.5373405", "0.5368692", "0.53675014", "0.53634053", "0.5356427", "0.535077", "0.5346182", "0.5345706", "0.534419", "0.5342691", "0.53411496", "0.53411496", "0.53411496", "0.53411496", "0.53411496", "0.53411496", "0.5340585", "0.53376174", "0.5328815", "0.53256047", "0.53200555", "0.5319015", "0.5313215", "0.5309195", "0.5297997", "0.5288766", "0.5286298", "0.52823716" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
long countByExample(PineAlarmExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "int deleteByPrimaryKey(Long pineAlarmId);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "private AlarmDeviceZoneTable() {}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "int updateByPrimaryKey(SBCallAlarm record);", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "int updateByPrimaryKey(BachAlarmRole record);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "Schedule selectByPrimaryKey(Integer id);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "List<Bill> todaysBills() throws SQLException;", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "Alarm createAlarm();", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.66226864", "0.62331855", "0.5784389", "0.5676232", "0.55651456", "0.5556063", "0.54896426", "0.5449083", "0.54301167", "0.53997916", "0.5356938", "0.526222", "0.52598655", "0.5226461", "0.5187891", "0.5173056", "0.51718414", "0.51581275", "0.5134447", "0.5128042", "0.5047399", "0.50431603", "0.5010802", "0.5004013", "0.4990962", "0.4987034", "0.49744835", "0.49685717", "0.49681515", "0.49643457", "0.49611095", "0.49504256", "0.49499685", "0.49430025", "0.492545", "0.4894099", "0.48910543", "0.48862368", "0.48715976", "0.48615593", "0.48615035", "0.48609138", "0.48602754", "0.48538813", "0.48450044", "0.48250535", "0.48217502", "0.4816268", "0.4806265", "0.48059022", "0.47821394", "0.4767318", "0.47658226", "0.4763094", "0.47625223", "0.47583026", "0.4758285", "0.4757098", "0.47481516", "0.47421515", "0.4741728", "0.47413576", "0.4734804", "0.47321135", "0.47319567", "0.47305462", "0.47300202", "0.47206068", "0.47126913", "0.4711462", "0.47021863", "0.46994036", "0.46981835", "0.46860686", "0.46792302", "0.46732706", "0.46730664", "0.4669909", "0.46675122", "0.46651015", "0.4647018", "0.46442306", "0.46438998", "0.46308598", "0.46238858", "0.46151844", "0.46021932", "0.46009454", "0.4600679", "0.45991635", "0.4599074", "0.45983243", "0.4597471", "0.45966536", "0.45937294", "0.45935616", "0.45911723", "0.45835352", "0.4577858", "0.45736903", "0.45729706" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
int deleteByExample(PineAlarmExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "int deleteByPrimaryKey(Long pineAlarmId);", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "private AlarmDeviceZoneTable() {}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "int updateByPrimaryKey(SBCallAlarm record);", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "int updateByPrimaryKey(BachAlarmRole record);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "Schedule selectByPrimaryKey(Integer id);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "List<Bill> todaysBills() throws SQLException;", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "Alarm createAlarm();", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.662179", "0.62335896", "0.57859", "0.56751996", "0.5565052", "0.55558884", "0.5488129", "0.54484767", "0.54309213", "0.53986", "0.5356317", "0.52634424", "0.52595836", "0.5226362", "0.5186951", "0.51736766", "0.51700497", "0.5158317", "0.51369864", "0.513075", "0.5047717", "0.5042814", "0.50086045", "0.50047886", "0.4991272", "0.49897903", "0.49731946", "0.49706578", "0.4967737", "0.49633777", "0.4960674", "0.49519032", "0.49500996", "0.4942625", "0.49251696", "0.48927417", "0.48925033", "0.48883942", "0.48711926", "0.48622024", "0.48620048", "0.48618904", "0.48618695", "0.48539555", "0.4845431", "0.4824495", "0.48228365", "0.4817908", "0.48074204", "0.48061603", "0.47815645", "0.47681057", "0.47675774", "0.47637013", "0.47631165", "0.47600037", "0.47596687", "0.47590303", "0.4749005", "0.47425792", "0.47424918", "0.47413313", "0.4736333", "0.47331172", "0.4732544", "0.47311017", "0.47309566", "0.47197017", "0.4713772", "0.47113535", "0.47028747", "0.46997377", "0.46983954", "0.46873286", "0.46804905", "0.46741933", "0.46741766", "0.46711728", "0.46670464", "0.46659997", "0.46472737", "0.46453494", "0.46450436", "0.46319526", "0.4625117", "0.46165437", "0.4603567", "0.4602782", "0.46015394", "0.46008652", "0.4600179", "0.4599541", "0.4598565", "0.45967415", "0.45964912", "0.45951188", "0.4592965", "0.45837274", "0.4579647", "0.45754102", "0.45733732" ]
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
int deleteByPrimaryKey(Long pineAlarmId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "private AlarmDeviceZoneTable() {}", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "int updateByPrimaryKey(SBCallAlarm record);", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "int updateByPrimaryKey(BachAlarmRole record);", "Schedule selectByPrimaryKey(Integer id);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "List<Bill> todaysBills() throws SQLException;", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "FinancialManagement selectByPrimaryKey(Integer fId);", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "Alarm createAlarm();", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.6622558", "0.62320715", "0.57815576", "0.5676552", "0.5563982", "0.5555874", "0.54887265", "0.544873", "0.54296345", "0.53999186", "0.5353354", "0.52619725", "0.52598035", "0.52261424", "0.5186841", "0.5171023", "0.51702106", "0.51609004", "0.5135301", "0.5128344", "0.50474286", "0.50418293", "0.5008546", "0.5003805", "0.49906188", "0.49884397", "0.4972502", "0.49684158", "0.49663168", "0.49591827", "0.4958009", "0.49485564", "0.49474242", "0.49395606", "0.49213532", "0.48940027", "0.48843765", "0.48670083", "0.48650268", "0.48632327", "0.486061", "0.48599136", "0.48561415", "0.48447254", "0.48265427", "0.48242146", "0.48144767", "0.48051962", "0.48051792", "0.47775874", "0.47674334", "0.4767207", "0.47655532", "0.47633126", "0.47620457", "0.47591633", "0.4755103", "0.4745402", "0.47434324", "0.47432983", "0.474319", "0.4733874", "0.47325045", "0.47322017", "0.47318187", "0.4729543", "0.47184065", "0.47119328", "0.47104865", "0.4703942", "0.46998355", "0.469843", "0.46880308", "0.46824256", "0.4676312", "0.46734932", "0.46725953", "0.46672752", "0.46636885", "0.46481225", "0.4645646", "0.46414176", "0.4629033", "0.46213967", "0.46141917", "0.4603043", "0.46017534", "0.46007", "0.45999786", "0.45973444", "0.45969868", "0.4595789", "0.45943964", "0.4593564", "0.45935467", "0.4592155", "0.45831487", "0.4575825", "0.45750883", "0.45734042" ]
0.489168
36
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
int insert(PineAlarm record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "int deleteByPrimaryKey(Long pineAlarmId);", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "private AlarmDeviceZoneTable() {}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "int updateByPrimaryKey(SBCallAlarm record);", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "int updateByPrimaryKey(BachAlarmRole record);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "Schedule selectByPrimaryKey(Integer id);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "List<Bill> todaysBills() throws SQLException;", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "Alarm createAlarm();", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.662179", "0.62335896", "0.57859", "0.56751996", "0.5565052", "0.55558884", "0.5488129", "0.54484767", "0.54309213", "0.53986", "0.5356317", "0.52634424", "0.52595836", "0.5226362", "0.5186951", "0.51736766", "0.51700497", "0.5158317", "0.51369864", "0.513075", "0.5047717", "0.50086045", "0.50047886", "0.4991272", "0.49897903", "0.49731946", "0.49706578", "0.4967737", "0.49633777", "0.4960674", "0.49519032", "0.49500996", "0.4942625", "0.49251696", "0.48927417", "0.48925033", "0.48883942", "0.48711926", "0.48622024", "0.48620048", "0.48618904", "0.48618695", "0.48539555", "0.4845431", "0.4824495", "0.48228365", "0.4817908", "0.48074204", "0.48061603", "0.47815645", "0.47681057", "0.47675774", "0.47637013", "0.47631165", "0.47600037", "0.47596687", "0.47590303", "0.4749005", "0.47425792", "0.47424918", "0.47413313", "0.4736333", "0.47331172", "0.4732544", "0.47311017", "0.47309566", "0.47197017", "0.4713772", "0.47113535", "0.47028747", "0.46997377", "0.46983954", "0.46873286", "0.46804905", "0.46741933", "0.46741766", "0.46711728", "0.46670464", "0.46659997", "0.46472737", "0.46453494", "0.46450436", "0.46319526", "0.4625117", "0.46165437", "0.4603567", "0.4602782", "0.46015394", "0.46008652", "0.4600179", "0.4599541", "0.4598565", "0.45967415", "0.45964912", "0.45951188", "0.4592965", "0.45837274", "0.4579647", "0.45754102", "0.45733732" ]
0.5042814
21
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
int insertSelective(PineAlarm record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "int deleteByPrimaryKey(Long pineAlarmId);", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "private AlarmDeviceZoneTable() {}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "int updateByPrimaryKey(SBCallAlarm record);", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "int updateByPrimaryKey(BachAlarmRole record);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "Schedule selectByPrimaryKey(Integer id);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "List<Bill> todaysBills() throws SQLException;", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "Alarm createAlarm();", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.66226864", "0.62331855", "0.5784389", "0.5676232", "0.55651456", "0.5556063", "0.54896426", "0.5449083", "0.54301167", "0.53997916", "0.5356938", "0.526222", "0.52598655", "0.5226461", "0.5187891", "0.5173056", "0.51718414", "0.51581275", "0.5134447", "0.5128042", "0.5047399", "0.50431603", "0.5010802", "0.5004013", "0.4990962", "0.4987034", "0.49744835", "0.49685717", "0.49643457", "0.49611095", "0.49504256", "0.49499685", "0.49430025", "0.492545", "0.4894099", "0.48910543", "0.48862368", "0.48715976", "0.48615593", "0.48615035", "0.48609138", "0.48602754", "0.48538813", "0.48450044", "0.48250535", "0.48217502", "0.4816268", "0.4806265", "0.48059022", "0.47821394", "0.4767318", "0.47658226", "0.4763094", "0.47625223", "0.47583026", "0.4758285", "0.4757098", "0.47481516", "0.47421515", "0.4741728", "0.47413576", "0.4734804", "0.47321135", "0.47319567", "0.47305462", "0.47300202", "0.47206068", "0.47126913", "0.4711462", "0.47021863", "0.46994036", "0.46981835", "0.46860686", "0.46792302", "0.46732706", "0.46730664", "0.4669909", "0.46675122", "0.46651015", "0.4647018", "0.46442306", "0.46438998", "0.46308598", "0.46238858", "0.46151844", "0.46021932", "0.46009454", "0.4600679", "0.45991635", "0.4599074", "0.45983243", "0.4597471", "0.45966536", "0.45937294", "0.45935616", "0.45911723", "0.45835352", "0.4577858", "0.45736903", "0.45729706" ]
0.49681515
28
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
PineAlarm selectOneByExample(PineAlarmExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "PineAlarm selectOneByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "int deleteByPrimaryKey(Long pineAlarmId);", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "private AlarmDeviceZoneTable() {}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "int updateByPrimaryKey(SBCallAlarm record);", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "int updateByPrimaryKey(BachAlarmRole record);", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "Schedule selectByPrimaryKey(Integer id);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "List<Bill> todaysBills() throws SQLException;", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "Alarm createAlarm();", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.662179", "0.62335896", "0.57859", "0.56751996", "0.5565052", "0.55558884", "0.5488129", "0.54484767", "0.54309213", "0.53986", "0.5356317", "0.52634424", "0.52595836", "0.5226362", "0.5186951", "0.51736766", "0.51700497", "0.5158317", "0.51369864", "0.513075", "0.5047717", "0.5042814", "0.50047886", "0.4991272", "0.49897903", "0.49731946", "0.49706578", "0.4967737", "0.49633777", "0.4960674", "0.49519032", "0.49500996", "0.4942625", "0.49251696", "0.48927417", "0.48925033", "0.48883942", "0.48711926", "0.48622024", "0.48620048", "0.48618904", "0.48618695", "0.48539555", "0.4845431", "0.4824495", "0.48228365", "0.4817908", "0.48074204", "0.48061603", "0.47815645", "0.47681057", "0.47675774", "0.47637013", "0.47631165", "0.47600037", "0.47596687", "0.47590303", "0.4749005", "0.47425792", "0.47424918", "0.47413313", "0.4736333", "0.47331172", "0.4732544", "0.47311017", "0.47309566", "0.47197017", "0.4713772", "0.47113535", "0.47028747", "0.46997377", "0.46983954", "0.46873286", "0.46804905", "0.46741933", "0.46741766", "0.46711728", "0.46670464", "0.46659997", "0.46472737", "0.46453494", "0.46450436", "0.46319526", "0.4625117", "0.46165437", "0.4603567", "0.4602782", "0.46015394", "0.46008652", "0.4600179", "0.4599541", "0.4598565", "0.45967415", "0.45964912", "0.45951188", "0.4592965", "0.45837274", "0.4579647", "0.45754102", "0.45733732" ]
0.50086045
22
This method was generated by MyBatis Generator. This method corresponds to the database table pine_alarm
PineAlarm selectOneByExampleSelective(@Param("example") PineAlarmExample example, @Param("selective") PineAlarm.Column ... selective);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PineAlarm selectByPrimaryKey(Long pineAlarmId);", "SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);", "private void getAlarmsFromDB(){\n \t\tAlarmManager.getInstance().reset();\n \t\tAlarmManager.getInstance().load4DB(ctx, SimpleAlarm.class);\n \t\tStatus.getCurrentStatus().addObserver(AlarmManager.getInstance());\n \t}", "PineAlarm selectByPrimaryKeySelective(@Param(\"pineAlarmId\") Long pineAlarmId, @Param(\"selective\") PineAlarm.Column ... selective);", "List<SBCallAlarm> selectAll();", "@Override\r\n\tpublic List<ProductOptionVO> productOptionStockAlarm() {\n\t\treturn getSqlSession().selectList(namespace+\".productOptionStockAlarm\");\r\n\t}", "List<PineAlarm> selectByExample(PineAlarmExample example);", "int updateByPrimaryKey(PineAlarm record);", "public interface AlarmManagementMapper {\n\n\t\n\t/**\n\t * 获取当前告警条数\n\t * @param map 查询条件\n\t * @return\n\t */\n\tpublic int queryCurrentAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 获取跳转时当前告警条数\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrentAlarmCountForSkip(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int queryCurrAlarmCountForTopoLine(@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取拓扑连线上的告警\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrAlarmForTopoLine(\n//\t\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n//\t\n\t/**\n\t * 获取当前告警记录\n\t * @param map 查询条件\n\t * @param userId 当前用户ID\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryCurrentAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\n\t/**\n\t * 获取设备告警\n\t * 输出rcId,\n\t * shelfNo,\n\t * slotNo,\n\t * severity\n\t * @param rcId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEquipAlarm(@Param(value = \"rcId\") int rcId);\n\t\n//\t/**\n//\t * 获取首页显示的告警统计数据\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAlarmCountForFP(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取未确认的告警数量\n//\t * @param map\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic int getUnConfirmAlarmCount(\n//\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取跳转时的当前告警记录\n//\t * @param map\n//\t * @param userId\n//\t * @param start\n//\t * @param limit\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryCurrentAlarmForSkip(\n//\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n//\t\t\t\t\t\t\t@Param(value = \"userId\") int userId, \n//\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n//\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n\t/**\n\t * 告警确认\n\t * @param map\n\t * @param userId\n\t */\n\tpublic void confirmAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n//\t/**\n//\t * 删除设备、线路告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void deleteELAlarmShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 删除网管告警屏蔽规则\n//\t * @param userId\n//\t */\n//\tpublic void deleteEMSAlarmShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置设备告警、线路告警屏蔽规则\n//\t * @param map\n//\t * @param regionId\n//\t * @param userId\n//\t */\n//\tpublic void setELAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t@Param(value = \"regionId\") int regionId, @Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 设置网管告警屏蔽规则\n//\t * @param map\n//\t * @param userId\n//\t */\n//\tpublic void setEMSAlarmShieldRule(@Param(value = \"map\") Map<String, Object> map, \n//\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n\t\n\t/**\n\t * 查询历史告警数量\n\t * @param map\n\t * @return\n\t */\n\tpublic int queryHistoryAlarmCount(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t\n\t/**\n\t * 查询历史告警\n\t * @param map\n\t * @param start\n\t * @param limit\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> queryHistoryAlarm(\n\t\t\t\t\t\t\t@Param(value = \"map\") Map<String, Object> map,\n\t\t\t\t\t\t\t@Param(value = \"start\") int start, \n\t\t\t\t\t\t\t@Param(value = \"limit\") int limit);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestLinkInfo(@Param(value = \"testResultId\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint testResultId);\n\t\n\t/**\n\t * 获取当前告警\n\t * @param alarm\n\t * @param eqptId/alarmName/alarmType/eqptType/slotNo/portNo/cardType\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUCurrentAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOSMCurrAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取OSM当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取线路当前告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM设备告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMCurAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSFMChannelAlarmList(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取SFM通道告警\n//\t * @param alarm\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMChannelAlarm(@Param(value = \"alarm\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\tPushAlarmModel alarm);\n\t\n\t/**\n\t * 新增历史告警\n\t * @param map\n\t */\n\tpublic void addHistoryAlarm(@Param(value = \"map\") Map<String, Object> map);\n\t\n\t/**\n\t * 删除当前告警\n\t * @param alarmId\n\t */\n\tpublic void deleteCurAlarm(@Param(value = \"alarmId\") int alarmId);\n\t\n\t/**\n\t * 新增RTU当前告警\n\t * @param alarm\n\t */\n\tpublic void addRTUCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n\t\n//\t/**\n//\t * 新增OSM当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addOSMCurrAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增线路当前告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 新增SFM通道告警\n//\t * @param alarm\n//\t */\n//\tpublic void addSFMChannelCurAlarm(@Param(value = \"alarm\") PushAlarmModel alarm);\n//\t\n//\t/**\n//\t * 获取告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getELShieldRule(@Param(value = \"regionId\") int regionId, \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取网管告警屏蔽规则\n//\t * @param regionId\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEMSShieldRule(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取用户可见的regionIds\n//\t * @param userId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRegionIds(@Param(value = \"userId\") int userId);\n//\t\n//\t/**\n//\t * 获取前台combox用的区域信息\n//\t * @param regionIdList\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> queryRegionForCombox(\n//\t\t\t\t\t@Param(value = \"regionIdList\") List<Integer> regionIdList);\n//\t\n//\t/**\n//\t * 获取区域内的机房信息\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getStationsInRegion(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object>map);\n//\t\n//\t/**\n//\t * 通过regionIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByRegionIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n//\t\n//\t/**\n//\t * 通过stationIds获取设备的名称\n//\t * @param map\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getEqptNameByStationIds(@Param(value = \"map\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n\t/**\n\t * 通获取告警同步时的设备信息\n\t * @param map\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getAlarmSyncEquip(@Param(value = \"map\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMap<String, Object> map);\n\t\n//\tpublic List<Map<String, Object>> getRTUInfoList(@Param(value = \"rtuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> rtuNoList);\n\t\n\t/**\n\t * 通过设备编号获取设备信息\n\t * @param rcNoList\n\t * @param rcType\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getRCListByNo(@Param(value = \"rcNoList\") \n\t\t\tList<String> rcNoList, @Param(value = \"type\") int rcType);\n\t\n\t\n//\t/**\n//\t * 通过rcNo获取RTU/CTU信息\n//\t * @param rcNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCNo(@Param(value = \"rcNo\") String rcNo);\n\t\n\t/**\n\t * 通过编号获取RTU的信息\n\t * @param rtuNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getRTUByNo(@Param(value = \"rtuNo\") String rtuNo);\n\t\n\t/**\n\t * 获取机盘型号\n\t * @param rcId\n\t * @param slotNo\n\t * @return\n\t */\n\tpublic Map<String, Object> getCardType(@Param(value = \"rcId\") int rcId, \n\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"slotNo\") int slotNo);\n\t\n//\t/**\n//\t * 通过sfmNo获取SFM信息\n//\t * @param sfmNo\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMNo(@Param(value = \"sfmNo\") String sfmNo);\n//\t\n//\t\n//\tpublic List<Map<String, Object>> getCTUInfoList(@Param(value = \"ctuNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> ctuNoList);\n//\t\n//\tpublic List<Map<String, Object>> getOSMInfoList(@Param(value = \"osmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> osmNoList);\n//\t\n//\tpublic List<Map<String, Object>> getSFMInfoList(@Param(value = \"sfmNoList\") \n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tList<String> sfmNoList);\n//\t\n//\t/**\n//\t * 通过ID获取RTU/CTU信息\n//\t * @param rcId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRCByRCId(@Param(value = \"rcId\") int rcId);\n//\t\n//\t/**\n//\t * 通过ID获取OSM信息\n//\t * @param osmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOSMByOSMId(@Param(value = \"osmId\") int osmId);\n//\t\n//\t/**\n//\t * 通过ID获取SFM信息\n//\t * @param sfmId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getSFMBySFMId(@Param(value = \"sfmId\") int sfmId);\n//\t\n//\t/**\n//\t * 获取机房中在线的设备\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOnLineEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房中所有在线设备的告警\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllOnlineEqptAlarmInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取区域中不同级别告警的个数\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic int getRegionAlarmCount(@Param(value = \"regionId\") int regionId, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取区域离线告警\n//\t * @param regionId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getRegionOutlineAlarm(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取机房告警个数\n//\t * @param stationId\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getStationAlarmCount(@Param(value = \"stationId\") int stationId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取机房cr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationCRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mj级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMJAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房mn级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationMNAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房wr级别告警个数\n//\t * @param stationId\n//\t * @return\n//\t */\n////\tpublic int getStationWRAlarmCount(@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取机房内所有设备状态(在线或离线)\n//\t * @param stationId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptStatusInStation(\n//\t\t\t\t\t\t\t\t\t@Param(value = \"stationId\") int stationId);\n//\t\n//\t/**\n//\t * 获取设备不同级别告警个数\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic int getEqptAlarmCount(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId, @Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 获取端口告警信息\n//\t * @param eqptType\n//\t * @param cardType\n//\t * @param eqptId\n//\t * @param slotNo\n//\t * @param portNo\n//\t * @param alarmLevel\n//\t * @return\n//\t */\n//\tpublic int getPortAlarm(@Param(value = \"eqptType\") int eqptType, \n//\t\t\t@Param(value = \"cardType\") int cardType, \n//\t\t\t@Param(value = \"eqptId\") int eqptId, \n//\t\t\t@Param(value = \"slotNo\") int slotNo, \n//\t\t\t@Param(value = \"portNo\") int portNo, \n//\t\t\t@Param(value = \"alarmLevel\") int alarmLevel);\n//\t\n//\t/**\n//\t * 通过告警名称获取服务器性能告警\n//\t * @param alarmName\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t/**\n//\t * 增加服务器性能告警\n//\t * @param alarmName\n//\t * @param severity\n//\t * @param alarmOccurDate\n//\t */\n//\tpublic void addServerPMAlarm(@Param(value = \"alarmName\") String alarmName, \n//\t\t\t\t\t@Param(value = \"alarmType\") int alarmType, \n//\t\t\t\t\t@Param(value = \"severity\") int severity, \n//\t\t\t\t\t@Param(value = \"alarmOccurDate\") Date alarmOccurDate);\n//\t\n//\t/**\n//\t * 通过告警内容删除服务器性能告警\n//\t * @param alarmName\n//\t */\n//\tpublic void deleteServerPMAlarm(@Param(value = \"alarmName\") String alarmName);\n//\t\n//\t//获取所有一级区域\n//\tpublic List<Map<String, Object>> getAllFirstLevelRegion();\n//\t\n//\t//获取区域内的所有机房\n//\tpublic List<Map<String, Object>> getAllStationInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取机房内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInStation(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//通过ID获取机房信息\n//\tpublic Map<String, Object> getStationById(@Param(value = \"stationId\") int stationId);\n//\t\n//\t//获取区域内的所有设备\n//\tpublic List<Map<String, Object>> getAllEqptInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t/**\n//\t * 获取系统中所有的设备RTU/CTU/OSM/SFM\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllEqptInfo();\n//\t\n//\t//通过设备类型和设备ID删除当前告警表中的记录\n//\tpublic void dltCurAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//通过设备类型和设备ID删除历史告警表中的记录\n//\tpublic void dltHisAlarmByTypeAndId(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n//\t\n//\t//获取区域内所有的可见告警\n//\tpublic List<Map<String, Object>> getAllVisibleAlarmInRegion(@Param(value = \"regionId\") int regionId);\n//\t\n//\t//获取所有的离线告警\n//\tpublic List<Map<String, Object>> getAllOfflineAlarm();\n//\t\n//\t/**\n//\t * 增加设备离线告警\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_NAME 告警名称\n//\t * ALARM_TYPE 告警类型\n//\t * ALARM_LEVEL 告警级别\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t * ACK_STATUS 告警确认状态\n//\t * ALARM_OCCUR_DATE 告警发生时间\n//\t */\n//\tpublic void addNodeOfflineAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取根节点\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getRoot();\n//\t\n//\t/**\n//\t * 获取\"所有设备离线告警\"\n//\t * @param eqptType\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getORTSOfflineAlarm(@Param(value = \"eqptType\") int eqptType);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试链路信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getLinkByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取设备信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取设备信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptInfoByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试计划信息\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestPlanByTestResultId(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 新增当前告警\n//\t * @param map\n//\t */\n//\tpublic void addCurrentAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过测试结果ID获取测试结果记录\n//\t * @param testResultId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getTestResultById(@Param(value = \"testResultId\") int testResultId);\n//\t\n//\t/**\n//\t * 使设备的非离线告警不可见\n//\t * @param map\n//\t * EQPT_ID 设备ID\n//\t * EQPT_IP 设备IP\n//\t * EQPT_TYPE 设备类型\n//\t * STATION_ID 机房ID\n//\t * REGION_ID 区域ID\n//\t * ALARM_VISIBLE_FLAG 告警可见标记\n//\t */\n//\tpublic void changeVisibleStatusOfEqptAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 获取设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t\t\t\t\t\t\t\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 移除设备离线告警\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void removeEqptOfflineAlarm(@Param(value = \"eqptType\") int eqptType,\n//\t\t\t@Param(value = \"eqptId\") int eqptId);\n//\t\n//\t/**\n//\t * 获取当前测试告警\n//\t * @param map\n//\t */\n//\tpublic List<Map<String, Object>> getCurrentTestAlarm(@Param(value = \"map\") Map<String, Object> map);\n//\t\n//\t/**\n//\t * 通过参数名获取参数信息\n//\t * @param configName\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getSysConfigByConfigName(@Param(value = \"configName\") String configName);\n//\t\n\t\n\t/**\n\t * 获取设备的当前告警\n\t * @param eqptType\n\t * @param eqptId\n\t * @return\n\t */\n\tpublic List<Map<String, Object>> getEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 使设备告警可见\n//\t * @param eqptType\n//\t * @param eqptId\n//\t */\n//\tpublic void visibleEqptCurrAlarm(@Param(value = \"eqptType\") int eqptType, @Param(value = \"eqptId\") int eqptId);\n\t\n//\t/**\n//\t * 获取测试链路信息\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getLinkById(@Param(value = \"linkId\") String linkId);\n//\t\n//\t/**\n//\t * 获取光路信息\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getOpticalCableSections(@Param(value = \"opticalId\") String opticalId);\n//\n//\tpublic Map<String, Object> getTestInfoForAnalyze(@Param(value = \"testResultId\") String testResultId);\n//\t\n//\t/**\n//\t * 通过linkId获取测试计划信息\n//\t * @param linkId\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestPlanByLinkId(@Param(value = \"linkId\") int linkId);\n//\t\n//\t/**\n//\t * 通过opmPortId获取opm的信息\n//\t * @param portId\n//\t * @return\n//\t */\n//\tpublic Map<String, Object> getOPMByOPMPortId(@Param(value = \"portId\") int portId);\n//\t\n//\t/**\n//\t * 获取所有的测试告警\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getAllTestAlarm();\n//\t\n//\t/**\n//\t * 获取测试结果记录\n//\t * @param testResultIds\n//\t * @return\n//\t */\n//\tpublic List<Map<String, Object>> getTestResultList(@Param(value = \"testResultIds\") List<Integer> testResultIds);\n\t\n}", "List<PineAlarm> selectByExampleSelective(@Param(\"example\") PineAlarmExample example, @Param(\"selective\") PineAlarm.Column ... selective);", "public void setNextAlarm(){\n }", "public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "@Dao\r\npublic interface HealthReadingDAO {\r\n\r\n @Insert\r\n void addNewRecord(HealthReading healthReading);\r\n\r\n @Query(\"SELECT * FROM health_table\")\r\n List<HealthReading> getAllRecords();\r\n\r\n @Query(\"SELECT * FROM health_table WHERE reading_time >= :lastAlarmTimeInMilli AND reading_time<= :offsetTime AND protocol_id IS NOT NULL AND protocol_id <> '' \")\r\n List<HealthReading> getLastAlarmRecords(long lastAlarmTimeInMilli,long offsetTime);\r\n\r\n\r\n @Query(\"DELETE FROM health_table\")\r\n void deleteAllRecords();\r\n}", "int updateByPrimaryKeySelective(PineAlarm record);", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "@Mapper\npublic interface VirtualRepayFlowMapper {\n @DataSource(\"bigdata2_jdb\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE update_time >= #{from_time} and update_time < #{end_time} and id>#{id} limit 1000\")\n List<VirtualRepayFlow> find(@Param(\"from_time\") String from_time,\n @Param(\"end_time\") String end_time,\n @Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Insert(\"INSERT INTO virtual_repay_flow (id,uuid,virtual_productid,to_user,amount,interest,repay_status,repay_time,create_time,update_time) values\" +\n \"(#{id},#{uuid},#{virtual_productid},#{to_user},#{amount},#{interest},#{repay_status},#{repay_time},#{create_time},#{update_time})\")\n void insert(VirtualRepayFlow virtualRepayFlow);\n\n @DataSource(\"dmp\")\n @Delete(\"DELETE FROM repay_flow where update_time<#{update_time}\")\n void delete(@Param(\"update_time\") String update_time);\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE id=#{id}\")\n VirtualRepayFlow getById(@Param(\"id\") long id);\n\n\n @DataSource(\"dmp\")\n @Select(\"SELECT * FROM virtual_repay_flow WHERE uuid=#{uuid}\")\n VirtualRepayFlow getByUuid(@Param(\"uuid\") String uuid);\n}", "public AppointmentTable() {\n reminders = new HashMap<>();\n followup = new HashMap<>();\n }", "BachAlarmRole selectByPrimaryKey(Integer roleId);", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insert(PineAlarm record);", "PineAlarm selectOneByExample(PineAlarmExample example);", "public void generateSchedule(){\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\"); // Date formatter used when getting SQL records\r\n Database db = new Database();\r\n Connection connection = null;\r\n String sql = \"\";\r\n String report = \"\";\r\n \r\n // Retrieve the inputted consultant's id\r\n User user = (User) combo_user.getValue();\r\n int userID = user.getId();\r\n try{\r\n connection = db.jdbc_connection.connect();\r\n Statement statement = connection.createStatement(); // Set up statement\r\n \r\n sql = \"SELECT appointment.appointmentID, customer.customerName, appointment.title, appointment.description, appointment.location, appointment.contact, \" +\r\n \"appointment.type, appointment.url, appointment.start, appointment.end FROM appointment \" +\r\n \"INNER JOIN customer ON appointment.customerID=customer.customerID \" +\r\n \"WHERE userID = \" + userID + \" GROUP BY appointment.start\"; \r\n ResultSet results = statement.executeQuery(sql); \r\n \r\n while(results.next()) { \r\n String customer = results.getString(\"customerName\");\r\n String title = results.getString(\"title\");\r\n String description = results.getString(\"description\");\r\n String location = results.getString(\"location\");\r\n String contact = results.getString(\"contact\");\r\n String type = results.getString(\"type\");\r\n String url = results.getString(\"url\");\r\n String start = results.getString(\"start\");\r\n String end = results.getString(\"end\");\r\n \r\n \r\n // Convert the start and end DATETIMES to the user's current timezone \r\n java.time.LocalDateTime start_converted = convertToCurrentZone(java.time.LocalDateTime.parse(start.replace(\".0\", \"\"), formatter));\r\n String month = start_converted.getMonth().toString();\r\n int day = start_converted.getDayOfMonth();\r\n int hour = start_converted.getHour();\r\n String minute = String.valueOf(start_converted.getMinute());\r\n \r\n if(minute.length() == 1) minute += \"0\"; // Add following zeroes\r\n \r\n report += month + \" \" + day + \" at \" + hour + \":\" + minute + \" - appointment with \" + customer + \"\\n\";\r\n } \r\n }catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }finally {\r\n try {\r\n connection.close();\r\n } catch (Exception e2) { // Closing databse error handling\r\n System.err.println(e2.getMessage());\r\n }\r\n } \r\n \r\n text_schedule.setText(report);\r\n }", "@Override\n\tpublic ArrayList<StockAlarmBillPO> getAllStockAlarmBill() throws RemoteException {\n\t\tArrayList<StockAlarmBillPO> list = new ArrayList<StockAlarmBillPO>();\n\t\tArrayList<StockAlarmBillItem> itemList = new ArrayList<StockAlarmBillItem>();\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tString sql_1 = \"select * from stockalarmbill\";\t\t\t\t\n\t\t\tResultSet rs = statement_1.executeQuery(sql_1);\n\t\t BillState state = null;\n\t\t String id = null;\t\t \n\t\t java.sql.Date date = null;\t\t \n\t\t String operatorID = null;\t\t \n\t\t String wareID = null;\n\t\t \n\t\t while(rs.next()){\n\t\t \tstate = BillState.getStateByInt(rs.getInt(\"State\"));\n\t\t \tid = rs.getString(\"ID\");\n\t\t \tdate = rs.getDate(\"Date\");\n\t\t \tjava.util.Date d = new java.util.Date(date.getTime());\n\t\t \toperatorID = rs.getString(\"OperatorID\");\n\t\t \twareID = rs.getString(\"WareID\");\n\t\t \t\n\t\t \tStatement statement_2 = con.createStatement();\t\n\t\t \t//��ȡ�����ݱ���������idΪ������\n\t\t \tString sql_2 = \"select * from stock\" + id;\t\t\n\t\t \tResultSet rs_2 = statement_2.executeQuery(sql_2);\n\t\t\t String number = null;\n\t\t\t String name = null;\n\t\t\t long amount = 0;\n\t\t\t long alarmAmount = 0;\n\t\t\t \n\t\t\t while(rs_2.next()) {\n\t\t\t \tnumber = rs_2.getString(\"Number\");\n\t\t\t \tname = rs_2.getString(\"Name\");\n\t\t\t \tamount = rs_2.getLong(\"Amount\");\n\t\t\t \talarmAmount = rs_2.getLong(\"AlarmAmount\");\n\t\t\t \t\n\t\t\t \tStockAlarmBillItem item = new StockAlarmBillItem(number, name, amount, alarmAmount);\n\t\t\t \titemList.add(item);\n\t\t\t }\t\t \t\t\t \n\t\t \tStockAlarmBillPO bill = new StockAlarmBillPO( id, itemList, state, d, operatorID, wareID);\n\t\t \tlist.add(bill);\t \n\t\t \trs_2.close();\n\t\t }\t \n\t\t rs.close();\n\t\t} catch(SQLException e) { \n\t\t\te.printStackTrace(); \t \n\t\t}catch (Exception e) { \n\t\t\te.printStackTrace();\t \n\t\t}\n\t\treturn list;\n\t}", "private String getSQL() {\n return \" SELECT * FROM PFEventNotification \";\n }", "public static Appointment appointmentIn15Min() {\n Appointment appointment;\n LocalDateTime now = LocalDateTime.now();\n ZoneId zid = ZoneId.systemDefault();\n ZonedDateTime zdt = now.atZone(zid);\n LocalDateTime ldt = zdt.withZoneSameInstant(ZoneId.of(\"UTC\")).toLocalDateTime();\n LocalDateTime ldt2 = ldt.plusMinutes(15);\n String username = UserDB.getCurrentUser().getUserName();\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n String query = \"SELECT * FROM appointment WHERE start BETWEEN '\" + ldt + \"' AND '\" + ldt2 + \"' AND \" + \n \"createdBy='\" + username + \"'\";\n ResultSet results = statement.executeQuery(query);\n if(results.next()) {\n appointment = new Appointment(results.getInt(\"appointmentId\"), results.getInt(\"customerId\"), results.getString(\"title\"),\n results.getString(\"end\"), results.getString(\"contact\"), results.getString(\"description\"),results.getString(\"location\"), \n results.getTimestamp(\"start\"), results.getTimestamp(\"end\"), results.getDate(\"createDate\"), results.getDate(\"lastupDate\"), results.getString(\"createdBy\"));\n return appointment;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return null;\n }", "private AlarmDeviceTable() {}", "int insertSelective(PineAlarm record);", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public void setAlarmClock() {\n\n }", "@Updatable\n @Min(1)\n public Integer getDatapointsToAlarm() {\n return datapointsToAlarm;\n }", "public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public int getAlarm () { return alarm; }", "@DB(table = \"share_list\")\npublic interface ShareDao {\n\n @SQL(\"insert into #table(code,name,industry,area,pe,outstanding,totals,totalAssets,liquidAssets,fixedAssets,esp,bvps,pb,timeToMarket,undp,holders) \" +\n \"values(:1.code,:1.name,:1.industry,:1.area,:1.pe,:1.outstanding,:1.totals,:1.totalAssets,:1.liquidAssets,:1.fixedAssets,:1.esp,:1.bvps,:1.pb,:1.timeToMarket,:1.undp,:1.holders)\")\n int insert(List<Share> shares);\n\n @SQL(\"select code,name,timeToMarket from #table\")\n List<Share> findAll();\n\n @SQL(\"select * from #table where code=:1\")\n Share find(String code);\n \n}", "int deleteByPrimaryKey(Long pineAlarmId);", "BPAlarm(int type, int value) {\n\t\t\tthis.type=type;\n\t\t\tthis.value=value;\n\t\t\twriteToDb();\n\t\t}", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}", "public static String getBills(){\n return \"select * from current_bills\";\n }", "private AlarmDeviceZoneTable() {}", "List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);", "Salaries selectByPrimaryKey(@Param(\"empNo\") Integer empNo, @Param(\"fromDate\") Date fromDate);", "@Override\r\n\tpublic List<ScheduledFlights> retrieveAllScheduledFlights() {\t\r\n\t\tTypedQuery<ScheduledFlights> query = entityManager.createQuery(\"select s from ScheduledFlights s, Flight f,Schedule sc where s.flight = f and s.schedule=sc\",ScheduledFlights.class);\r\n\t\tList<ScheduledFlights> flights = query.getResultList();\r\n\t\treturn flights;\r\n\t}", "public List<Office> getAllOffices(){\n String sql = \"select * from offices\";\n return jdbcTemplate.query(sql, new OfficeRowMapper());\n }", "@SqlQuery(\"select * from PLAYERSTATS\")\n List<PlayerStats> getAll();", "public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }", "int updateByPrimaryKey(SBCallAlarm record);", "public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;", "public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}", "public void setAppointment() throws SQLException {\n ResultSet rs;\n Statement st = dbConnection.dbConnect().createStatement();\n Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime());\n \n String getCustomerId=\"SELECT customerId FROM customer WHERE customerName = '\" + selectedCustomer + \"';\";\n rs = st.executeQuery(getCustomerId);\n rs.next();\n selectedCustomerId = rs.getInt(1);\n \n long startTime = appointmentStart.getTime();\n Date startDate = new Date(startTime - TimeZone.getDefault().getOffset(startTime));\n appointmentStarts = new Timestamp(startDate.getTime());\n \n long endTime = appointmentEnd.getTime();\n Date endDate = new Date(endTime - TimeZone.getDefault().getOffset(endTime));\n appointmentEnds = new Timestamp(endDate.getTime());\n \n // Adding to customer table\n String query=\"INSERT INTO appointment(customerId, title, description, location, url, start, end, createDate, createdBy, lastUpdateBy) VALUES('\" \n + selectedCustomerId + \"', '\"\n + title.getText() + \"', '\"\n + description.getText() + \"', '\"\n + location.getText() + \"', '\"\n + urlText.getText() + \"', '\"\n + appointmentStarts + \"', '\"\n + appointmentEnds + \"', '\"\n + date + \"', '\"\n + LoginPageController.getUser() + \"', '\"\n + LoginPageController.getUser() + \"')\";\n st.executeUpdate(query);\n }", "public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}", "int updateByPrimaryKey(BachAlarmRole record);", "Schedule selectByPrimaryKey(Integer id);", "@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);", "@Select({ \"select\", \"app_id, app_name, node, status, restart_times, up_time, template, owner, note, \",\n\t\t\t\"rest3, rest4, rest5, create_time, uuid\", \"from iiot_app_list\",\n\t\t\t\"where app_id = #{appId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"app_id\", property = \"appId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"app_name\", property = \"appName\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"node\", property = \"node\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"status\", property = \"status\", jdbcType = JdbcType.INTEGER),\n\t\t\t@Result(column = \"restart_times\", property = \"restartTimes\", jdbcType = JdbcType.CHAR),\n\t\t\t@Result(column = \"up_time\", property = \"upTime\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"template\", property = \"template\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"owner\", property = \"owner\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"note\", property = \"note\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest3\", property = \"rest3\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest4\", property = \"rest4\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"rest5\", property = \"rest5\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"create_time\", property = \"createTime\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"uuid\", property = \"uuid\", jdbcType = JdbcType.CHAR) })\n\tIiotAppList selectByPrimaryKey(Integer appId);", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}", "MedicalOrdersExecutePlan selectByPrimaryKey(Long moepId);", "@Insert({\n \"insert into A_SUIT_MEASUREMENT (user_id, measure_date, \",\n \"contract_id, consultant_uid, \",\n \"collar, wrist, bust, \",\n \"shoulder_width, mid_waist, \",\n \"waist_line, sleeve, \",\n \"hem, back_length, front_length, \",\n \"arm, forearm, front_breast_width, \",\n \"back_width, pants_length, \",\n \"crotch_depth, leg_width, \",\n \"thigh, lower_leg, height, \",\n \"weight, body_shape, \",\n \"stance, shoulder_shape, \",\n \"abdomen_shape, payment, \",\n \"invoice)\",\n \"values (#{userId,jdbcType=INTEGER}, #{measureDate,jdbcType=TIMESTAMP}, \",\n \"#{contractId,jdbcType=INTEGER}, #{consultantUid,jdbcType=INTEGER}, \",\n \"#{collar,jdbcType=DOUBLE}, #{wrist,jdbcType=DOUBLE}, #{bust,jdbcType=DOUBLE}, \",\n \"#{shoulderWidth,jdbcType=DOUBLE}, #{midWaist,jdbcType=DOUBLE}, \",\n \"#{waistLine,jdbcType=DOUBLE}, #{sleeve,jdbcType=DOUBLE}, \",\n \"#{hem,jdbcType=DOUBLE}, #{backLength,jdbcType=DOUBLE}, #{frontLength,jdbcType=DOUBLE}, \",\n \"#{arm,jdbcType=DOUBLE}, #{forearm,jdbcType=DOUBLE}, #{frontBreastWidth,jdbcType=DOUBLE}, \",\n \"#{backWidth,jdbcType=DOUBLE}, #{pantsLength,jdbcType=DOUBLE}, \",\n \"#{crotchDepth,jdbcType=DOUBLE}, #{legWidth,jdbcType=DOUBLE}, \",\n \"#{thigh,jdbcType=DOUBLE}, #{lowerLeg,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE}, \",\n \"#{weight,jdbcType=DOUBLE}, #{bodyShape,jdbcType=INTEGER}, \",\n \"#{stance,jdbcType=INTEGER}, #{shoulderShape,jdbcType=INTEGER}, \",\n \"#{abdomenShape,jdbcType=INTEGER}, #{payment,jdbcType=INTEGER}, \",\n \"#{invoice,jdbcType=VARCHAR})\"\n })\n int insert(ASuitMeasurement record);", "List<Bill> todaysBills() throws SQLException;", "@Repository\npublic interface AlarmDailyMapper extends QueryMapper {\n List<Alarmdaily> getAlarmDailyStat(Map<String,Object> map);\n}", "@Select({\n \"select\",\n \"ID, OUT_TRADE_NO, TRANSACTION_ID, RESULT_CODE, PARAMETER_LIST, CALLBACK_TIME\",\n \"from payment_t_weixin_callback_records\",\n \"where ID = #{id,jdbcType=BIGINT}\"\n })\n @Results({\n @Result(column=\"ID\", property=\"id\", jdbcType=JdbcType.BIGINT, id=true),\n @Result(column=\"OUT_TRADE_NO\", property=\"outTradeNo\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"TRANSACTION_ID\", property=\"transactionId\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"RESULT_CODE\", property=\"resultCode\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"PARAMETER_LIST\", property=\"parameterList\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CALLBACK_TIME\", property=\"callbackTime\", jdbcType=JdbcType.TIMESTAMP)\n })\n WeixinCallbackRecordsBean selectByPrimaryKey(Long id);", "public NacAlarmDao getAlarmDao()\n\t{\n\t\treturn this.mAlarmDao;\n\t}", "public RAlarmLog selectByPrimaryKey(String id) {\r\n RAlarmLog key = new RAlarmLog();\r\n key.setId(id);\r\n RAlarmLog record = (RAlarmLog) getSqlMapClientTemplate().queryForObject(\"R_ALARM_LOG.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public ReactorResult<java.lang.Integer> getAllBeatsPerMinute_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BEATSPERMINUTE, java.lang.Integer.class);\r\n\t}", "@Override\n\tpublic List<TripDetailResponse> getTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tString sqlcount = \"SELECT count(1) FROM tbu.tripappdata where cast( tripstartdatetime as date )= ? and tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount,\n\t\t\t\tnew Object[] { trequest.getTstartdatetime().trim(), trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tbu.tripappdata where cast( tripstartdatetime as date )= '\"\n\t\t\t\t\t+ trequest.getTstartdatetime().trim() + \"'\" + \" and tuuid='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\t\t} else {\n\n\t\t\treturn triplist;\n\t\t}\n\n\t}", "@Override\n\tprotected IEfDeviceAlarmTargetDao getEntityDao() {\n\t\treturn dao;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getTimeTable() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public static String listScheduleIdSymbol(int tambahanBolehABs) {\n DBResultSet dbrs = null;\n String result = \"\";\n try {\n Date dtStart = new Date();\n Date dtEnd = new Date();\n String dtManual = \"\";\n boolean crossDay = false;\n //dtStart.setHours(dtStart.getHours()-tambahanBolehABs);\n dtStart = new Date(dtStart.getYear(), dtStart.getMonth(), (dtStart.getDate()), (dtStart.getHours() - tambahanBolehABs), dtStart.getMinutes(), dtStart.getSeconds());\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n int jamMelebihiOneDay = 23;\n if (dtStart.getHours() == 0 || dtStart.getHours() == 23) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n if (dtEnd.getHours() == 0) {\n dtManual = \"23:\" + \"59:\" + \"59\";\n crossDay = true;\n jamMelebihiOneDay = jamMelebihiOneDay + tambahanBolehABs;\n }\n\n// String dtManual=\"\";\n// if(dt.getHours()==0 || dt.getHours()+tambahanBolehABs>=23){\n// int idtManual = 24+tambahanBolehABs;\n// dtManual = idtManual+\":59:00\" ;\n// }else{\n// dt.setHours(dt.getHours()+tambahanBolehABs);\n// }\n\n String sql = \"SELECT * FROM \" + PstScheduleSymbol.TBL_HR_SCHEDULE_SYMBOL\n + \" WHERE \\\"00:00:00\\\" <=\" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]\n + \" AND \" + PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] + \"<= \\\"\"\n + \"23:59:00\"\n //+ (dtStart.getHours() == 0 || dtStart.getHours() == 23 || dtEnd.getHours() == 0 ? dtManual : Formater.formatDate(dtEnd, \"HH:mm:00\"))\n + \"\\\"\";\n //+ \" WHERE \" + \"(\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+ (crossDay?dtManual:Formater.formatDate(dtStart, \"HH:mm:00\")) +\"\\\") OR (\"+PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT] +\" BETWEEN \\\"00:00:00\\\" AND \\\"\"+Formater.formatDate(dtEnd, \"HH:mm:00\")+\"\\\")\";\n\n dbrs = DBHandler.execQueryResult(sql);\n ResultSet rs = dbrs.getResultSet();\n while (rs.next()) {\n dtEnd = new Date();\n dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate()), (dtEnd.getHours() + tambahanBolehABs), dtEnd.getMinutes(), dtEnd.getSeconds());\n \n Date schTimeIn = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_IN]);\n\n Date schTimeOut = rs.getTime(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_TIME_OUT]);\n Date dtTmpSchTimeIn = new Date();\n Date dtTmpSchTimeOut = new Date();\n\n\n if (schTimeIn != null && schTimeOut != null) {\n schTimeOut = new Date(dtTmpSchTimeOut.getYear(), dtTmpSchTimeOut.getMonth(), dtTmpSchTimeOut.getDate(), schTimeOut.getHours(), schTimeOut.getMinutes());\n schTimeIn = new Date(dtTmpSchTimeIn.getYear(), dtTmpSchTimeIn.getMonth(), dtTmpSchTimeIn.getDate(), schTimeIn.getHours(), schTimeIn.getMinutes());\n\n Date dtCobaTimeOut = new Date(schTimeOut.getYear(), schTimeOut.getMonth(), (schTimeOut.getDate()), (schTimeOut.getHours() + tambahanBolehABs), schTimeOut.getMinutes(), schTimeOut.getSeconds());\n boolean melebihiHari=false;\n if (schTimeIn.getHours() == 0 || schTimeOut.getHours() == 0) {\n \n } else {\n if (dtCobaTimeOut.getDate() > schTimeIn.getDate()) {\n //dtEnd = new Date(dtEnd.getYear(), dtEnd.getMonth(), (dtEnd.getDate() + 1), (dtEnd.getHours()), dtEnd.getMinutes(), dtEnd.getSeconds());\n melebihiHari=true;\n }\n\n if ( (melebihiHari && dtEnd.getHours()<dtCobaTimeOut.getHours()) || schTimeIn.getTime() <= dtEnd.getTime() || (schTimeIn.getHours() > schTimeOut.getHours() && dtEnd.getTime() < schTimeOut.getTime())) {\n result = result + rs.getString(PstScheduleSymbol.fieldNames[PstScheduleSymbol.FLD_SCHEDULE_ID]) + \",\";\n }\n }\n\n\n\n\n\n }\n\n }\n if (result != null && result.length() > 0) {\n result = result.substring(0, result.length() - 1);\n }\n rs.close();\n return result;\n\n } catch (Exception e) {\n System.out.println(e);\n } finally {\n DBResultSet.close(dbrs);\n }\n return result;\n }", "public List<TripDetailResponse> getAllTripappData(TripDetailRequest trequest) {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\n\t\tString sqlcount = \"SELECT count(1) FROM tripappdata where tuuid=?\";\n\t\tint result = jdbcTemplate.queryForObject(sqlcount, new Object[] { trequest.getTuuid() }, Integer.class);\n\t\tlogger.info(\" RESULT QUERY \" + result);\n\t\tList<TripDetailResponse> triplist = new ArrayList<TripDetailResponse>();\n\t\tif (result > 0) {\n\t\t\t// select all from table user\n\t\t\tString sql = \"SELECT * FROM tripappdata where tuuid ='\" + trequest.getTuuid() + \"'\";\n\t\t\tList<TripDetailResponse> listtripdata = jdbcTemplate.query(sql, new RowMapper<TripDetailResponse>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic TripDetailResponse mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\t\tTripDetailResponse res = new TripDetailResponse();\n\t\t\t\t\t// set parameters\n\t\t\t\t\tres.setTripid(rs.getInt(\"tripid\"));\n\t\t\t\t\tres.setTuuid(rs.getString(\"tuuid\"));\n\t\t\t\t\tres.setMaxspeed(rs.getString(\"maxspeed\"));\n\t\t\t\t\tres.setMaxrpm(rs.getString(\"maxrpm\"));\n\t\t\t\t\tres.setStartlocation(rs.getString(\"startlocation\"));\n\t\t\t\t\tres.setEndlocation(rs.getString(\"endlocation\"));\n\t\t\t\t\tres.setTstartdatetime(rs.getString(\"tripstartdatetime\"));\n\t\t\t\t\tres.setTenddatetime(rs.getString(\"tripenddatetime\"));\n\t\t\t\t\tres.setEngineruntime(rs.getString(\"engineruntime\"));\n\t\t\t\t\tres.setFuellevelstart(rs.getString(\"fuellevelstart\"));\n\t\t\t\t\tres.setFuellevelend(rs.getString(\"fuellevelend\"));\n\t\t\t\t\tres.setStartdistance(rs.getString(\"startdistance\"));\n\t\t\t\t\tres.setEnddistance(rs.getString(\"enddistance\"));\n\t\t\t\t\tres.setStartlatitude(rs.getString(\"startlatitude\"));\n\t\t\t\t\tres.setEndlatitude(rs.getString(\"endlatitude\"));\n\t\t\t\t\tres.setStartlongitude(rs.getString(\"startlongitude\"));\n\t\t\t\t\tres.setEndlongitude(rs.getString(\"endlongitude\"));\n\t\t\t\t\treturn res;\n\t\t\t\t}\n\n\t\t\t});\n\t\t\treturn listtripdata;\n\n\t\t} else {\n\n\t\t\treturn triplist;\n\n\t\t}\n\n\t}", "public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}", "public interface JobScheduleMapper {\n @Select(\"select * from job_schedule where id = #{id}\")\n public JobSchedule findById(@Param(\"id\") long id);\n\n @Select(\"select status from job_schedule where id = #{id}\")\n public int getStatus(@Param(\"id\")long id);\n\n @Insert(\"insert into job_schedule (created_datetime, schedule_datetime, job_id, job_group_name, run_as, status) \" +\n \"values(#{created_datetime}, #{schedule_datetime}, #{job_id}, #{job_group_name}, #{run_as}, #{status})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id\")\n public void insert(JobSchedule jobSchedule);\n\n @Update(\"update job_schedule set status = #{status} where id = #{id}\")\n public void updateStatus(@Param(\"id\") long id, @Param(\"status\")int status);\n\n @Update(\"update job_schedule set status = \" + JobSchedule.JOB_SCHEDULE_STATUS_PENDING + \", retried = retried + 1 where id = #{id}\")\n public void retry(@Param(\"id\") long id);\n\n @Update(\"update job_schedule set next_job_schedule_id = #{nextId} where id = #{thisId}\")\n public void updateNextScheduleId(@Param(\"thisId\")long thisId, @Param(\"nextId\")long nextId);\n}", "@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);", "@Override\n\tpublic boolean addStockAlarmBill(StockAlarmBillPO bill) throws RemoteException {\n\t\ttry {\t\n\t\t\tStatement statement_1 = con.createStatement();\t\n\t\t\tStatement statement_2 = con.createStatement();\t\n\t\t\tStatement statement_3 = con.createStatement();\t\n\t\t\tint state = BillState.getIntByState(bill.getState());\n\t\t\tString id = bill.getId();\n\t\t\tjava.util.Date date = bill.getDate();\n\t\t\tjava.sql.Date d = new java.sql.Date(date.getTime());\n\t\t\tString operatorid = bill.getOperatorID();\n\t\t\tString wareid = bill.getWareID();\n\t\t\tString sql_1 = \"insert into stockalarmbill values(' \" + state +\"','\"+ id +\"','\"+ d+\"','\"+ operatorid+\"','\"\n\t\t\t\t\t+ wareid+\"')\";\t\t\n\t\t\tstatement_1.execute(sql_1);\n\n\t\t\tArrayList<StockAlarmBillItem> itemList = bill.getItemList();\n\n\t\t\tString sql_2 = \"CREATE TABLE IF NOT EXISTS erp.stock\" + id +\t\t \n\t\t\t\t\t\" (Number char(10), \" +\t\t \n\t\t\t\t\t\"Name char(10), \" +\t\t \n\t\t\t\t\t\"Amount bigint(20),\" +\n\t\t\t\t\t\"AlarmAmount bigint(20));\";\n\t\t\t statement_2.execute(sql_2);\n\t\t\tfor(int i=0 ; i<itemList.size() ; i++) {\n\t\t\t\tStockAlarmBillItem item = itemList.get(i);\n\t\t\t\tString sql_3 = \"insert into stock\"\n\t\t\t\t\t\t+id+ \" values(' \" + item.getNumber() +\"','\"+ item.getName() +\"',\"+ item.getAmount() \n\t\t\t\t\t\t+\",\"+ item.getAlarmAmount()+\")\";\n\t\t\t\tstatement_3.execute(sql_3);\n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \t\n\t\treturn false;\n\t}", "@MapperScan\npublic interface DSSettingMapper {\n\n @Insert(\"INSERT INTO ds_setting (dsId, dsAppointment2,dsAppointment3,outCoachIds,status,modifyTime)\" +\n \" VALUES(#{dsId},#{dsAppointment2},#{dsAppointment3},#{outCoachIds},#{status},NOW())\")\n int insertDssetting(DSSetting dsSetting);\n\n @Update(\"UPDATE ds_setting SET dsAppointment2 = #{dsAppointment2},\" +\n \" dsAppointment3 = #{dsAppointment3}, outCoachIds = #{outCoachIds}, \" +\n \"status = #{status}, modifyTime = NOW() \" +\n \"WHERE dsId = #{dsId}\")\n int updateDssetting(DSSetting dsSetting);\n\n @Select(\"SELECT * FROM ds_setting WHERE dsId = #{dsId}\")\n DSSetting findOneDSSetting(@Param(\"dsId\") Long dsId);\n}", "FinancialManagement selectByPrimaryKey(Integer fId);", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "SchedulingPlay selectByPrimaryKey(Long id);", "public LiveData<NacAlarm> getActiveAlarm()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarm();\n\t}", "public interface AlarmLevel {\n\n String getCode();\n\n}", "private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}", "int updateByPrimaryKeySelective(BachAlarmRole record);", "List<String> getPendingSql();", "@Mapper\npublic interface RecruitMapper {\n\n @Insert(\"insert into fe_recruit values(null,#{user_id},#{unit},#{subject},#{stu_intro},#{pattern},#{area},#{address},#{salary},#{work_require},#{send_time,jdbcType=TIMESTAMP},#{end_time,jdbcType=TIMESTAMP},#{status})\")\n int insertRecruitSend(SendRecruit sendRecruit);\n\n @Select(\"select u.uname,u.photo,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.status=#{status} ORDER BY send_time DESC\")\n List<Map<String,Object>> getAllSendRecruits(int status);\n\n @Select(\"select u.uname,u.photo,u.phone,u.email,s.* from fe_recruit s,fe_user u where s.user_id=u.uid and s.id=#{id}\")\n Map<String,Object> getSendRecruitById(int id);\n\n @Select(\"select * from fe_recruit where user_id=#{uid} and status=#{status}\")\n List<Map<String,Object>> getRecruitByUidAndStatus(@Param(\"uid\") String uid, @Param(\"status\") int status);\n\n @Select(\"select * from fe_recruit where user_id=#{uid}\")\n List<SendRecruit> getRecruitByUid(String uid);\n\n @Update(\"update fe_recruit set status=#{status} where id=#{id}\")\n int updateStatusById(@Param(\"id\") int id, @Param(\"status\") int status);\n\n @Delete(\"delete from fe_recruit where id=#{id}\")\n int deleteById(int id);\n\n @Update(\"update fe_recruit set send_time=#{send_time,jdbcType=TIMESTAMP} where id=#{id}\")\n int updateSendTimeById(@Param(\"id\") int id, @Param(\"send_time\") Date send_time);\n\n @Select(\"select * from fe_recruit where id=#{id}\")\n SendRecruit getRecruitById(int id);\n\n @Update(\"update fe_recruit (#{recruit}) where id=#{id}\")\n @Lang(SimpleUpdateExtendedLanguageDriver.class)\n int updateRecruit(SendRecruit recruit);\n\n}", "public ArrayList<Event> retriveTableEventDetails() throws SQLException {\n\t\tArrayList<Event> arr = new ArrayList<Event>();\r\n\r\n\t\tarr = dao.getEventDetailsDao();\r\n//\t\tfor (Event a : arr) {\r\n//\t\t\tSystem.out.println(\"service\" + a.getEvent_id());\r\n//\t\t}\r\n\t\treturn arr;\r\n\t}", "BasicInfoAnodeBurningLossRate selectByPrimaryKey(Integer code);", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "public RAlarmLogDAOImpl() {\r\n super();\r\n }", "public AlarmEntity(){}", "@Override\n\tpublic String getTableName() {\n\t\treturn TICKETCHARGE.TABLE;\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }", "Alarm createAlarm();", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }", "HrMscChaAssig selectByPrimaryKey(Date day, Integer hour, String mscid);", "@Override\n\tpublic List<AttendanceRercordAll> queryAttendanceRecordAllByPropertys(\n\t\t\tMap paramMap) {\n\t\treturn attendanceRercordAllMapper.queryAttendanceRecordAllByPropertys(paramMap);\n\t}" ]
[ "0.6622558", "0.62320715", "0.57815576", "0.5676552", "0.5563982", "0.5555874", "0.54887265", "0.544873", "0.54296345", "0.53999186", "0.5353354", "0.52619725", "0.52598035", "0.52261424", "0.5186841", "0.51702106", "0.51609004", "0.5135301", "0.5128344", "0.50474286", "0.50418293", "0.5008546", "0.5003805", "0.49906188", "0.49884397", "0.4972502", "0.49684158", "0.49663168", "0.49591827", "0.4958009", "0.49485564", "0.49474242", "0.49395606", "0.49213532", "0.48940027", "0.489168", "0.48843765", "0.48670083", "0.48650268", "0.48632327", "0.486061", "0.48599136", "0.48561415", "0.48447254", "0.48265427", "0.48242146", "0.48144767", "0.48051962", "0.48051792", "0.47775874", "0.47674334", "0.4767207", "0.47655532", "0.47633126", "0.47620457", "0.47591633", "0.4755103", "0.4745402", "0.47434324", "0.47432983", "0.474319", "0.4733874", "0.47325045", "0.47322017", "0.47318187", "0.4729543", "0.47184065", "0.47119328", "0.47104865", "0.4703942", "0.46998355", "0.469843", "0.46880308", "0.46824256", "0.4676312", "0.46734932", "0.46725953", "0.46672752", "0.46636885", "0.46481225", "0.4645646", "0.46414176", "0.4629033", "0.46213967", "0.46141917", "0.4603043", "0.46017534", "0.46007", "0.45999786", "0.45973444", "0.45969868", "0.4595789", "0.45943964", "0.4593564", "0.45935467", "0.4592155", "0.45831487", "0.4575825", "0.45750883", "0.45734042" ]
0.5171023
15